/* B+ · Soft Sports — scan-first, quieter editorial */
body {
  font-family: "IBM Plex Sans", "Noto Sans SC", sans-serif;
}

.chrome {
  background: color-mix(in srgb, var(--bg) 90%, transparent);
}

.nav {
  border-right-color: var(--line-soft);
}

.wordmark {
  font-family: "Newsreader", "IBM Plex Sans", serif;
  font-weight: 500;
  letter-spacing: 0.26em;
}

.cover {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "kicker count"
    "title count"
    "meta count";
  column-gap: 24px;
  padding: 10px 0 20px;
  background: transparent;
  border: 0;
  overflow: hidden;
}

.cover-wash {
  display: block;
  inset: -12px -28px auto -8px;
  width: auto;
  height: 168px;
  opacity: 0.55;
  background:
    linear-gradient(108deg, var(--mist-wash) 0%, transparent 46%),
    linear-gradient(210deg, var(--apricot-wash) 6%, transparent 40%),
    linear-gradient(332deg, var(--sakura-wash) 0%, transparent 44%);
  mask-image: linear-gradient(to bottom, #000 28%, transparent 92%);
}

.cover-kicker {
  grid-area: kicker;
  font-family: "Newsreader", serif;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.3em;
}

.cover-title {
  grid-area: title;
  font-family: "Noto Serif SC", "Newsreader", serif;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  margin-top: 8px;
  letter-spacing: 0.03em;
}

.cover-weekday {
  font-family: "Newsreader", serif;
  font-size: 0.42em;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.cover-meta {
  grid-area: meta;
  margin-top: 14px;
  justify-content: flex-start;
}

.cover-count {
  grid-area: count;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  align-self: stretch;
  min-width: 88px;
  margin: 0;
}

.cover-count-num {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 48px;
  font-weight: 600;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}

.cover-count-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.refresh {
  border: 0;
  padding: 4px 2px;
  font-size: 12px;
  letter-spacing: 0.1em;
  box-shadow: inset 0 -1px 0 var(--line);
}

.filters {
  margin-top: 18px;
  padding: 12px 0 14px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
}

.filter-label {
  font-family: "IBM Plex Sans", sans-serif;
  width: 36px;
}

.filter-pills {
  gap: 2px;
  border: 0;
}

.filter-pills button {
  margin: 0;
  padding: 5px 11px;
  font-size: 12px;
  border-right: 0;
}

.filter-pills button.is-on {
  background: transparent;
  font-weight: 600;
  box-shadow: inset 0 -1px 0 currentColor;
}

.filter-row[data-filter="person"] button[data-value="harimoto"].is-on {
  background: transparent;
  color: var(--mist-deep);
}

.filter-row[data-filter="person"] button[data-value="lin"].is-on {
  background: transparent;
  color: var(--apricot-deep);
}

.filter-row[data-filter="person"] button[data-value="miwa"].is-on {
  background: transparent;
  color: var(--miwa-text);
}

.notes {
  margin-top: 8px;
  gap: 0;
}

.note {
  --accent: var(--mist);
  --hover-wash: color-mix(in srgb, var(--mist) 8%, var(--ivory));
  position: relative;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  column-gap: clamp(14px, 2vw, 24px);
  align-items: start;
  justify-content: start;
  width: 100%;
  padding: 22px 10px 22px 16px;
  margin: 0 -10px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  transition: background-color 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.note[data-tone="apricot"] {
  --accent: var(--apricot);
  --hover-wash: color-mix(in srgb, var(--apricot) 9%, var(--ivory));
}

.note[data-tone="sakura"] {
  --accent: var(--miwa-border);
  --hover-wash: var(--miwa-hover);
}

.note[data-tone="multi"] {
  --accent: color-mix(in srgb, var(--multi-accent) 42%, var(--ivory));
  --hover-wash: var(--multi-hover);
}

.note[data-tone="neutral"],
.note[data-tone="mixed"] {
  --accent: color-mix(in srgb, var(--ink) 16%, var(--ivory));
  --hover-wash: color-mix(in srgb, var(--ink) 4.5%, var(--ivory));
}

.note::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: transparent;
  transition: background-color 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.note-time {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-align: right;
  padding: 4px 8px 0 0;
}

.note-date {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--muted);
  white-space: nowrap;
}

.note-clock {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}

.note-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.tag-person {
  border-color: transparent;
}

.tag-event {
  border-color: var(--line-soft);
  font-family: "IBM Plex Sans", sans-serif;
}

.tag-kind {
  background: color-mix(in srgb, var(--ink) 3.5%, var(--ivory));
  border-color: var(--line-soft);
  color: color-mix(in srgb, var(--muted) 82%, var(--ink-soft));
}

.note-title {
  font-family: "Noto Serif SC", "Newsreader", serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.42;
  letter-spacing: 0.01em;
}

.note-title a {
  cursor: pointer;
  transition: color 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.note-summary {
  margin-top: 7px;
  font-family: "Noto Sans SC", "IBM Plex Sans", sans-serif;
  font-size: 14px;
  line-height: 1.7;
}

.note-foot {
  margin-top: 12px;
}

.note-origin {
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease;
}

.note-thumb {
  width: 122px;
  height: 122px;
  border-radius: 0;
  overflow: hidden;
  align-self: center;
}

.note-thumb svg,
.note-thumb img {
  transform: scale(1);
  transform-origin: center;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.note-title a:hover,
.note-title a:focus-visible {
  color: color-mix(in srgb, var(--ink) 82%, #000);
}

.note-origin:hover,
.note-origin:focus-visible {
  color: var(--text);
  border-bottom-color: var(--text);
}

.note-title a:focus-visible,
.note-origin:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 3px;
}

.rail {
  padding-top: 32px;
}

.rail-inner {
  padding: 0;
  background: transparent;
  border: 0;
}

.rail-kicker {
  font-family: "Newsreader", serif;
  font-style: italic;
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--text);
}

.rail-block {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.rail-block h2 {
  font-family: "IBM Plex Sans", sans-serif;
  letter-spacing: 0.08em;
}

.next-item {
  padding: 8px 0;
  background: transparent;
}

.next-bar {
  width: 2px;
}

.next-home {
  font-weight: 600;
}

.next-vs {
  margin: 0 0.4em;
  font-size: 0.86em;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.next-away {
  font-weight: 500;
}

.next-copy p {
  margin-top: 3px;
  line-height: 1.45;
}

.next-copy p:first-child {
  margin-top: 0;
}

.next-meta,
.next-when {
  font-size: 12px;
  color: var(--ink-soft);
}

@media (min-width: 1024px) {
  :root {
    --nav-w: 72px;
  }

  .shell {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-right: var(--page-pad-end);
    justify-content: stretch;
    grid-template-columns:
      var(--nav-w)
      minmax(0, var(--feed-track-max))
      var(--feed-rail-gap)
      var(--rail-span)
      minmax(0, 1fr);
    grid-template-areas: "nav feed . rail .";
  }

  .nav {
    background: var(--bg-nav);
    border-right-color: var(--line-soft);
  }

  .feed {
    width: auto;
    max-width: none;
    min-width: 0;
    padding: 24px 0 80px clamp(20px, 2.2vw, 32px);
  }

  .feed-inner {
    display: block;
    width: 100%;
    max-width: none;
  }

  .cover {
    grid-template-columns: minmax(0, 1fr) auto;
    padding-right: var(--content-right-inset);
  }

  .cover-wash {
    inset: -12px 0 auto 0;
    width: auto;
  }

  .cover-count {
    min-width: 80px;
    align-items: flex-end;
    align-self: stretch;
    justify-content: center;
  }

  .note {
    grid-template-columns: 3.5rem minmax(0, 1fr) auto;
    column-gap: var(--note-media-gap);
    justify-content: start;
    padding: 22px var(--content-right-inset) 22px 0;
    margin: 0;
  }

  .note-time {
    padding: 4px 0 0;
  }

  .note-main,
  .note-thumb {
    max-width: none;
    grid-column: auto;
  }

  .note-title,
  .note-summary {
    max-width: none;
  }

  .note-thumb {
    width: 122px;
    height: 122px;
    margin-top: 0;
    align-self: center;
  }

  .rail {
    width: auto;
    min-width: 0;
    height: auto;
    max-height: calc(100vh - 44px);
    padding: 32px 0 40px;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
  }

  .rail::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }
}

.event-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--sage);
}

.event-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
}

@media (hover: hover) and (pointer: fine) {
  .note:hover {
    background: var(--hover-wash);
  }

  .note:hover::before {
    background: var(--accent);
  }

  .note:hover .note-title a {
    color: color-mix(in srgb, var(--ink) 78%, #000);
  }

  .note:hover .note-thumb svg,
  .note:hover .note-thumb img {
    transform: scale(1.03);
  }
}

.note:has(:focus-visible) {
  background: var(--hover-wash);
}

.note:has(:focus-visible)::before {
  background: var(--accent);
}

.note:has(:focus-visible) .note-title a {
  color: color-mix(in srgb, var(--ink) 78%, #000);
}

@media (min-width: 1280px) {
  .shell {
    grid-template-columns:
      var(--nav-w)
      minmax(var(--feed-min), var(--feed-track-max))
      var(--feed-rail-gap)
      var(--rail-span)
      minmax(0, 1fr);
    grid-template-areas: "nav feed . rail .";
  }

  .note::after {
    content: none;
  }
}

@media (max-width: 719px) {
  .cover {
    grid-template-columns: 1fr auto;
  }

  .cover-wash {
    inset: -8px -12px auto -4px;
    height: 132px;
  }

  .cover-count-num {
    font-size: 36px;
  }

  .note {
    grid-template-columns: 48px minmax(0, 1fr) 88px;
    padding: 16px 6px 16px 10px;
    margin: 0 -6px;
  }

  .note[data-media="none"] {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .note::before {
    display: none;
  }

  .note-time {
    font-size: 13px;
    padding-right: 2px;
  }

  .note-date {
    font-size: 9px;
  }

  .note-clock {
    font-size: 13px;
  }

  .note-title {
    font-size: 18px;
  }

  .note-thumb {
    width: 88px;
    height: 88px;
    align-self: center;
  }
}
