@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/fraunces-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --accent: #cdb08a;
  --bg: #0c0c0c;
  --glow: rgba(255, 255, 255, 0.055);
  --text: #ffffff;
  --text-strong: rgba(255, 255, 255, 0.92);
  --text-muted: rgba(255, 255, 255, 0.62);
  --text-dim: rgba(255, 255, 255, 0.44);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --hover: rgba(255, 255, 255, 0.04);
  --icon-bg: rgba(255, 255, 255, 0.06);
  --font-display: 'Fraunces', 'Hiragino Mincho ProN', 'Yu Mincho', 'Noto Serif JP', Georgia, serif;
  --font-mono: 'Menlo', 'Consolas', monospace;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --accent: #8a6a3f;
    --bg: #f7f5f1;
    --glow: rgba(0, 0, 0, 0.03);
    --text: #141414;
    --text-strong: rgba(20, 20, 20, 0.92);
    --text-muted: rgba(20, 20, 20, 0.64);
    --text-dim: rgba(20, 20, 20, 0.46);
    --border: rgba(0, 0, 0, 0.08);
    --border-strong: rgba(0, 0, 0, 0.16);
    --hover: rgba(0, 0, 0, 0.04);
    --icon-bg: rgba(0, 0, 0, 0.05);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  background-image: radial-gradient(125% 78% at 50% -10%, var(--glow), transparent 55%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-display);
  font-optical-sizing: auto;
  min-height: 100vh;
  padding: 56px 16px 72px;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(205, 176, 138, 0.28); }

.container { max-width: 880px; margin: 0 auto; }

.top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.brand {
  margin: 0;
  font: 600 34px/1 var(--font-display);
  letter-spacing: -0.01em;
}

.tabs { display: flex; gap: 20px; }

.tab {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}
.tab:hover { color: var(--text-muted); }
.tab[aria-current='page'] { color: var(--text); border-bottom-color: var(--accent); }

.notice {
  margin: 0 0 24px;
  padding: 14px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}
.notice a { color: var(--accent); }

.search {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--border-strong);
  padding: 12px 2px;
  margin-bottom: 8px;
}
.search:focus-within { border-bottom-color: var(--accent); }
.search__icon { flex: none; color: var(--text-dim); }
.search__input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  caret-color: var(--accent);
  font: 400 19px/1.2 var(--font-display);
}
.search__input::-webkit-search-cancel-button { display: none; }

.day {
  margin: 30px 0 6px;
  font: 500 11px/1 var(--font-display);
  letter-spacing: 0.16em;
  color: var(--text-dim);
}

.row {
  display: grid;
  grid-template-columns: 44px 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  margin: 0 -10px;
  width: calc(100% + 20px);
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  background: none;
  border: none;
  font: inherit;
  text-align: left;
}
a.row:hover, button.row:hover { background: var(--hover); }
button.row { cursor: pointer; grid-template-columns: 88px 20px minmax(0, 1fr) auto 16px; }

.row__time {
  font: 400 12px/1 var(--font-mono);
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.row__icon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: var(--icon-bg);
  padding: 2px;
  object-fit: contain;
}
.row__icon.is-missing { visibility: hidden; }

.row__title {
  font-size: 15px;
  line-height: 1.3;
  color: var(--text-strong);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row__host {
  font-size: 12px;
  color: var(--text-dim);
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row__action { color: var(--text-dim); }
button.row:hover .row__action { color: var(--accent); }

.row--sub { grid-template-columns: 88px 20px minmax(0, 1fr) auto 16px; padding-top: 4px; padding-bottom: 4px; }
.row--sub .row__title { font-size: 13.5px; color: var(--text-muted); }

.end {
  margin: 32px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
}

#sentinel { height: 1px; }

@media (max-width: 560px) {
  body { padding-top: 32px; }
  .brand { font-size: 28px; }
  .row { grid-template-columns: 40px 20px minmax(0, 1fr); }
  button.row { grid-template-columns: 76px 20px minmax(0, 1fr) 16px; }
  .row__host { display: none; }
}
