@font-face {
  font-family: 'Bebas Neue';
  src: url('fonts/BebasNeue-Regular.ttf') format('truetype');
  font-display: swap;
}

:root {
  --red: #CE2B24;
  --red-dk: #A8211B;
  --navy: #1C2433;
  --ink: #181A1F;
  --paper: #F2ECDE;
  --paper-hi: #FBF8F1;
  --mute: #625B50;
  --line: #D9CFBA;
  --line-soft: rgba(28, 36, 51, 0.12);

  --font-display: 'Bebas Neue', 'Impact', sans-serif;
  --font-body: 'Archivo', 'Helvetica Neue', sans-serif;

  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-3xl: clamp(2.75rem, 1rem + 5vw, 5.5rem);

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px;
  --space-6: 24px; --space-8: 32px; --space-10: 40px; --space-12: 48px; --space-16: 64px;

  --radius-sm: 4px;
  --radius-md: 8px;
  --shadow: 0 1px 2px rgba(60, 45, 20, 0.08), 0 6px 18px rgba(60, 45, 20, 0.08);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-interactive: 180ms var(--ease);
  --color-primary: var(--red);
  --color-text: var(--ink);
  --color-bg: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: none; text-size-adjust: none; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { min-height: 100dvh; line-height: 1.55; font-family: var(--font-body); font-size: var(--text-base); color: var(--ink); background: var(--paper); }
img { display: block; max-width: 100%; height: auto; }
ul[role='list'], ol[role='list'] { list-style: none; }
button, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
h1, h2, h3 { text-wrap: balance; line-height: 1.1; }
p, li { text-wrap: pretty; }
a { color: inherit; }
a, button, select { transition: color var(--transition-interactive), background var(--transition-interactive), border-color var(--transition-interactive), box-shadow var(--transition-interactive), transform var(--transition-interactive); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: var(--radius-sm); }
::selection { background: rgba(206, 43, 36, 0.22); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--space-4); top: -60px; background: var(--paper-hi); padding: var(--space-2) var(--space-4); z-index: 100; border-radius: var(--radius-sm); }
.skip:focus { top: var(--space-2); }

.wrap { width: min(1240px, 100% - 2 * clamp(16px, 4vw, 40px)); margin-inline: auto; }

/* masthead */
.masthead { position: sticky; top: 0; z-index: 50; background: var(--navy); color: var(--paper-hi); border-bottom: 4px solid var(--red); }
.masthead-in { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 64px; }
.brand { display: flex; align-items: center; gap: var(--space-3); text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 50%; background: var(--paper-hi); }
.brand-name { font-family: var(--font-display); font-size: 1.75rem; letter-spacing: 0.04em; line-height: 1; padding-top: 3px; }
.brand-name em { font-style: normal; color: #F0605A; }
.nav { display: flex; align-items: center; gap: var(--space-1); font-size: var(--text-sm); font-weight: 600; }
.nav a { text-decoration: none; padding: var(--space-3) var(--space-3); border-radius: var(--radius-sm); min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover { background: rgba(255, 255, 255, 0.08); }
.nav a[aria-current='page'] { box-shadow: inset 0 -3px 0 var(--red); border-radius: 0; }
.nav .follow { background: var(--red); margin-left: var(--space-2); padding-inline: var(--space-4); }
.nav .follow:hover { background: var(--red-dk); }
@media (max-width: 640px) {
  .brand-name { font-size: 1.45rem; }
  .brand img { width: 38px; height: 38px; }
  .nav .follow { display: none; }
  .nav a { padding-inline: var(--space-2); }
}

/* hero */
.day-hero { padding-block: clamp(28px, 5vw, 56px) clamp(20px, 3vw, 32px); }
.eyebrow { font-size: var(--text-xs); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); margin-bottom: var(--space-2); }
.day-title { font-family: var(--font-display); font-weight: 400; font-size: var(--text-3xl); letter-spacing: 0.01em; color: var(--navy); line-height: 0.95; }
.sub { color: var(--mute); margin-top: var(--space-3); }
.pagers { display: flex; gap: var(--space-2); margin-top: var(--space-5); flex-wrap: wrap; }
.pager { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; padding: 0 var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper-hi); font-size: var(--text-sm); font-weight: 700; text-decoration: none; color: var(--navy); }
.pager span { font-weight: 500; color: var(--mute); }
.pager:hover { border-color: var(--navy); }
.pager.is-off { opacity: 0.45; }

/* lead card */
.lead-wrap { margin-bottom: clamp(36px, 6vw, 64px); }
.card-lead { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
@media (min-width: 860px) {
  .card-lead { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
}
.card-lead .card-open { max-width: 560px; }
.card-lead .card-meta { max-width: 520px; }
.card-lead .card-title { text-wrap: pretty; font-size: var(--text-xl); font-family: var(--font-body); font-weight: 800; color: var(--navy); margin-block: var(--space-2) var(--space-4); }
.card-text { font-size: var(--text-base); color: var(--ink); max-width: 46ch; }

/* cards */
.card-open { display: block; width: 100%; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow); background: var(--paper-hi); }
.card-open img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 400ms var(--ease); }
.card-open:hover img { transform: scale(1.02); }
.kicker { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-xs); font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--navy); flex: none; }
.g-dyk { background: var(--red); }
.g-profiles { background: var(--navy); }
.g-leaders { background: #B8862B; }
.g-calendar { background: #3E7C59; }
.g-trades { background: #7A3B8C; }
.g-scores { background: #2F6DB5; }
.g-previews { background: #C4561E; }
.swatch { display: inline-flex; gap: 3px; margin-left: auto; }
.swatch i { width: 14px; height: 6px; border-radius: 2px; }
.card .card-meta { padding-top: var(--space-3); }
.grid .card-title { font-size: var(--text-base); font-weight: 700; color: var(--navy); margin-top: var(--space-1); line-height: 1.3; }

.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-4); }
.sec-head h2, .arch-list h2, .month h2 { font-family: var(--font-display); font-weight: 400; font-size: var(--text-xl); color: var(--navy); letter-spacing: 0.02em; }
.link { color: var(--red); font-weight: 700; font-size: var(--text-sm); text-underline-offset: 3px; }
.link:hover { color: var(--red-dk); }

/* filters */
.filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); padding-block: var(--space-3); margin-bottom: var(--space-6); border-block: 1px solid var(--line); }
.filters > * { min-width: 0; max-width: 100%; }
.chips { display: flex; gap: var(--space-2); overflow-x: auto; scrollbar-width: none; margin-inline: -4px; padding: 4px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 40px; padding: 0 var(--space-4); border-radius: 999px; border: 1px solid var(--line); background: var(--paper-hi); font-size: var(--text-sm); font-weight: 600; color: var(--navy); white-space: nowrap; }
.chip span { color: var(--mute); font-weight: 500; margin-left: 2px; }
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed='true'] { background: var(--navy); border-color: var(--navy); color: var(--paper-hi); }
.chip[aria-pressed='true'] span { color: #C9C2B2; }
.team-pick select { min-height: 44px; padding: 0 var(--space-8) 0 var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper-hi) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231C2433' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center; appearance: none; font-size: var(--text-sm); font-weight: 600; color: var(--navy); }
@media (max-width: 640px) {
  .filters { flex-direction: column; align-items: stretch; }
  .team-pick select { width: 100%; }
}
.empty { padding: var(--space-8) 0; color: var(--mute); }
.empty .link { background: none; text-decoration: underline; }

.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-8) var(--space-6); }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card[hidden] { display: none; }

/* recent strip */
.strip { padding-block: clamp(48px, 8vw, 96px) clamp(40px, 6vw, 72px); }
.today { padding-bottom: var(--space-4); }
.days { max-width: 100%; display: grid; grid-auto-flow: column; grid-auto-columns: 132px; gap: var(--space-4); overflow-x: auto; padding-bottom: var(--space-3); scroll-snap-type: x proximity; }
.day { scroll-snap-align: start; text-decoration: none; display: flex; flex-direction: column; gap: 2px; }
.day img { border-radius: var(--radius-sm); aspect-ratio: 4 / 5; object-fit: cover; margin-bottom: var(--space-2); box-shadow: 0 0 0 1px var(--line-soft); transition: transform 300ms var(--ease); }
.day:hover img { transform: translateY(-3px); }
.day-dow { font-size: var(--text-xs); font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--mute); }
.day-date { font-family: var(--font-display); font-size: 1.6rem; color: var(--navy); line-height: 1; }
.day-n { font-size: var(--text-xs); color: var(--mute); }
.day[aria-current='date'] img { box-shadow: 0 0 0 3px var(--red); }
.day[aria-current='date'] .day-dow { color: var(--red); }

/* archive */
.archive { padding-bottom: var(--space-16); }
.arch-grid { display: grid; gap: var(--space-12); }
@media (min-width: 1000px) { .arch-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; } .arch-list { position: sticky; top: 92px; } }
.month + .month { margin-top: var(--space-12); }
.month h2 { margin-bottom: var(--space-4); }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.dow { font-size: var(--text-xs); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--mute); padding-bottom: var(--space-1); }
.cell { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-sm); background: rgba(217, 207, 186, 0.35); overflow: hidden; text-decoration: none; }
.cell.is-out { background: none; }
.cell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 300ms var(--ease); }
.cell.has::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28, 36, 51, 0.72) 0%, rgba(28, 36, 51, 0) 42%); }
.cell.has:hover img { transform: scale(1.06); }
.cell-n { position: absolute; z-index: 1; left: 6px; top: 4px; font-family: var(--font-display); font-size: clamp(1rem, 0.7rem + 1vw, 1.5rem); color: var(--mute); line-height: 1; }
.cell.has .cell-n { color: #fff; }
.cell-c { position: absolute; z-index: 1; right: 5px; bottom: 5px; background: var(--red); color: #fff; font-size: 0.75rem; font-weight: 800; min-width: 22px; height: 22px; border-radius: 11px; display: grid; place-items: center; padding: 0 6px; }
@media (max-width: 520px) { .cell-c { display: none; } .cal { gap: 4px; } }
.arch-list h2 { margin-bottom: var(--space-3); }
.arch-row a { display: grid; grid-template-columns: 76px 1fr auto; gap: var(--space-4); align-items: start; padding: var(--space-4) 0; border-top: 1px solid var(--line); text-decoration: none; }
.arch-row a:hover .arch-titles { color: var(--navy); }
.arch-row a:hover .arch-date { color: var(--red); }
.arch-date { font-family: var(--font-display); font-size: 1.5rem; line-height: 1; color: var(--navy); display: flex; flex-direction: column; }
.arch-date b { font-family: var(--font-body); font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); font-weight: 800; }
.arch-titles { list-style: none; font-size: var(--text-sm); color: var(--ink); display: grid; gap: 4px; }
.arch-titles li { display: flex; gap: var(--space-2); align-items: baseline; }
.arch-titles .dot { transform: translateY(-1px); }
.arch-titles .more { color: var(--mute); padding-left: 16px; }
.arch-n { font-family: var(--font-display); font-size: 1.5rem; color: var(--red); line-height: 1; }

/* footer */
.foot { background: var(--navy); color: #C9C2B2; font-size: var(--text-xs); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2) var(--space-6); padding-block: var(--space-6); }
.foot-in span:first-child { color: var(--paper-hi); font-weight: 700; }

/* viewer */
.viewer { border: none; padding: 0; background: transparent; max-width: min(1040px, 100vw - 24px); max-height: calc(100dvh - 24px); margin: auto; }
.viewer::backdrop { background: rgba(18, 20, 26, 0.82); }
.viewer-in { position: relative; display: grid; background: var(--paper-hi); border-radius: var(--radius-md); overflow: auto; max-height: calc(100dvh - 24px); }
@media (min-width: 820px) { .viewer-in { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.viewer-img { width: 100%; height: auto; max-height: calc(100dvh - 24px); object-fit: contain; background: var(--navy); }
.viewer-body { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); }
.viewer-kind { font-size: var(--text-xs); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); padding-right: 72px; }
.viewer-text { white-space: pre-line; font-size: var(--text-base); }
.viewer-tags { color: var(--navy); font-weight: 700; font-size: var(--text-sm); }
.viewer-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: auto; }
.btn { min-height: 44px; display: inline-flex; align-items: center; padding: 0 var(--space-5); border-radius: var(--radius-sm); font-size: var(--text-sm); font-weight: 700; border: 1px solid var(--line); background: var(--paper); text-decoration: none; color: var(--navy); }
.btn:hover { border-color: var(--navy); }
.btn-red { background: var(--red); border-color: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dk); border-color: var(--red-dk); }
.viewer-close { position: absolute; top: var(--space-3); right: var(--space-3); min-height: 40px; padding: 0 var(--space-4); border-radius: 999px; background: var(--navy); color: #fff; font-size: var(--text-xs); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; z-index: 2; }
@media (max-width: 819px) { .viewer-close { top: var(--space-2); right: var(--space-2); } .viewer-kind { padding-right: 0; } }
