/* ------------------------------------------------------------------
   Boardshelf — "Reading Room"
   Warm editorial design system. Shared across all pages.
------------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }

:root {
  /* Palette */
  --bg:            #f6f1e8;
  --surface:       #fbf7ef;
  --ink:           #1e1915;
  --ink-soft:      #3d342c;
  --muted:         #7d7164;
  --line:          #d9cfbe;
  --line-soft:     #e8dfcb;
  --accent-review: #b85835;
  --accent-blog:   #6b7a5a;

  /* Layout */
  --max: 1080px;
  --gutter: clamp(32px, 5.5vw, 48px);

  /* Type */
  --serif-display: "Fraunces", "Iowan Old Style", "Palatino", Georgia, serif;
  --serif-body:    "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans:          "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html {
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif-body);
  font-weight: 400;
  line-height: 1.65;
  font-feature-settings: "liga", "kern";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;

  /* Faint paper texture — two misaligned dot grids */
  background-image:
    radial-gradient(rgba(30, 25, 21, 0.018) 1px, transparent 1px),
    radial-gradient(rgba(30, 25, 21, 0.012) 1px, transparent 1px);
  background-size: 26px 26px, 41px 41px;
  background-position: 0 0, 13px 19px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ------------------ Container ------------------ */
.container {
  max-width: var(--max);
  padding-inline: var(--gutter);
  margin-inline: auto;
}

/* ------------------ Header ------------------ */
.site-header {
  padding: 26px 0 20px;
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.brand { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }

.brand__title {
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: 1.55rem;
  letter-spacing: -0.015em;
  margin: 0;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}

.brand__tagline {
  font-family: var(--serif-body);
  font-style: italic;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }

.nav a {
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color 200ms ease, border-color 200ms ease;
}

.nav a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.nav a.is-active { color: var(--ink); border-bottom-color: var(--accent-review); }

/* ------------------ Hero ------------------ */
.hero {
  padding-block: clamp(56px, 9vw, 104px) clamp(52px, 8vw, 80px);
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin: 0 0 36px;
}

.hero__eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.hero__title {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(2.8rem, 11vw, 6.4rem);
  line-height: 0.96;
  letter-spacing: -0.028em;
  margin: 0 0 24px;
  font-variation-settings: "opsz" 144, "SOFT" 40;
}

.hero__subtitle {
  font-family: var(--serif-body);
  font-size: clamp(1.12rem, 1.8vw, 1.32rem);
  max-width: 52ch;
  color: var(--ink-soft);
  font-style: italic;
  margin: 0 0 42px;
  font-weight: 400;
}

.now-playing {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  transition: border-color 240ms ease, background 240ms ease;
}

.now-playing:hover { border-color: var(--accent-review); }

.now-playing::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-review);
  box-shadow: 0 0 0 4px rgba(184, 88, 53, 0.15);
  animation: nowPulse 2.8s ease-in-out infinite;
}

.now-playing strong {
  font-family: var(--serif-body);
  font-style: italic;
  font-weight: 500;
  font-size: 0.98rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
}

@keyframes nowPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(184, 88, 53, 0.18); }
  50%      { box-shadow: 0 0 0 8px rgba(184, 88, 53, 0.03); }
}

/* ------------------ Section head ------------------ */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: clamp(56px, 8vw, 88px) 0 32px;
  gap: 12px 24px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 36px;
}

.section-head__title {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  letter-spacing: -0.018em;
  margin: 0;
  font-style: italic;
}

.section-head__meta {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

/* ------------------ Articles grid ------------------ */
.articles {
  padding-bottom: clamp(72px, 10vw, 120px);
  display: grid;
  gap: 48px;
}

.articles__grid-minor {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .articles__grid-minor {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }
}

/* ------------------ Article card ------------------ */
.article-card {
  display: block;
  border-top: 1px solid var(--line);
  padding-top: 28px;
  transition: transform 280ms ease;
}

.article-card:hover { transform: translateY(-2px); }

.article-card__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.article-card__tag {
  display: inline-flex;
  padding: 5px 10px;
  border: 1px solid currentColor;
  color: var(--accent-blog);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
}

.article-card__tag.is-review { color: var(--accent-review); }

.article-card__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.45;
}

.article-card__title {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.4vw, 1.95rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  font-variation-settings: "opsz" 120, "SOFT" 40;
}

.article-card__title a {
  background-image: linear-gradient(var(--accent-review), var(--accent-review));
  background-size: 0 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 320ms ease, color 240ms ease;
}

.article-card__title a:hover {
  background-size: 100% 1px;
  color: var(--accent-review);
}

.article-card__excerpt {
  color: var(--ink-soft);
  margin: 0 0 22px;
  font-size: 1.02rem;
  max-width: 52ch;
}

.article-card__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  transition: color 240ms ease;
}

.article-card__more::after {
  content: "→";
  transition: transform 280ms ease;
}

.article-card:hover .article-card__more { color: var(--accent-review); }
.article-card:hover .article-card__more::after { transform: translateX(5px); }

/* Lead (featured) card */
.article-card--lead {
  padding-top: 0;
  border-top: none;
}

.article-card--lead .article-card__title {
  font-size: clamp(2.1rem, 4.8vw, 3.4rem);
  line-height: 1.03;
  max-width: 18ch;
  margin-bottom: 20px;
}

.article-card--lead .article-card__excerpt {
  font-size: 1.14rem;
  font-style: italic;
  max-width: 56ch;
}

/* ------------------ Footer ------------------ */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 44px 0 60px;
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--muted);
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
}

.site-footer__note {
  font-family: var(--serif-body);
  font-style: italic;
  font-size: 0.98rem;
  color: var(--ink-soft);
}

/* ------------------ Article page ------------------ */
.article {
  padding: clamp(40px, 6vw, 72px) 0 clamp(72px, 10vw, 120px);
}

.article-header {
  max-width: 62ch;
  margin: 0 auto clamp(36px, 5vw, 56px);
}

.article-header__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin: 0 0 26px;
}

.article-header__eyebrow .tag {
  display: inline-flex;
  padding: 5px 10px;
  border: 1px solid currentColor;
  color: var(--accent-blog);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
}

.article-header__eyebrow .tag.is-review { color: var(--accent-review); }

.article-header__title {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(2.1rem, 4.6vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.022em;
  margin: 0 0 22px;
  font-variation-settings: "opsz" 144, "SOFT" 40;
}

.article-header__dek {
  font-family: var(--serif-body);
  font-style: italic;
  font-size: clamp(1.08rem, 1.6vw, 1.22rem);
  color: var(--ink-soft);
  margin: 0;
  max-width: 50ch;
}

.article-body {
  max-width: 62ch;
  margin: 0 auto;
  font-size: 1.08rem;
  line-height: 1.68;
  color: var(--ink-soft);
}

.article-body > p:first-child::first-letter {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: 3.4em;
  float: left;
  line-height: 0.92;
  margin: 0.04em 0.12em 0 -0.04em;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 40;
}

.article-body p {
  margin: 0 0 1.3em;
}

.article-body h2 {
  font-family: var(--serif-display);
  font-weight: 500;
  font-style: italic;
  font-size: 1.55rem;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 2.2em 0 0.7em;
}

.article-body h3 {
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: 1.22rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 1.8em 0 0.5em;
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.3em;
  padding-left: 1.3em;
}

.article-body li { margin-bottom: 0.5em; }

.article-body strong {
  font-weight: 500;
  color: var(--ink);
}

.article-body a {
  color: var(--accent-review);
  border-bottom: 1px solid rgba(184, 88, 53, 0.35);
  transition: border-color 240ms ease;
}

.article-body a:hover { border-bottom-color: var(--accent-review); }

/* Game specs — Wingspan */
.game-specs {
  max-width: 62ch;
  margin: 0 auto clamp(36px, 5vw, 52px);
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.game-specs dl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 28px;
  margin: 0;
}

@media (min-width: 640px) {
  .game-specs dl { grid-template-columns: repeat(4, 1fr); }
}

.game-specs dt {
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 6px;
}

.game-specs dd {
  margin: 0;
  font-family: var(--serif-body);
  font-size: 1rem;
  color: var(--ink);
}

/* Verdict */
.verdict {
  max-width: 62ch;
  margin: clamp(40px, 6vw, 56px) auto 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
}

.verdict__label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.verdict__score {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 5.8vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.022em;
  color: var(--accent-review);
  font-variation-settings: "opsz" 144, "SOFT" 40;
}

.verdict__score small {
  font-size: 0.45em;
  color: var(--muted);
  font-weight: 400;
  margin-left: 2px;
}

/* Game list entries — two-player article */
.game-entry {
  padding-top: 1.4em;
  margin-bottom: 1.8em;
  border-top: 1px solid var(--line-soft);
}

.game-entry:first-of-type {
  border-top: none;
  padding-top: 0;
}

.game-entry__title {
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.5em;
}

.game-entry__best {
  font-family: var(--serif-body);
  font-style: italic;
  color: var(--muted);
  font-size: 0.98rem;
  margin: 0.4em 0 0;
}

.game-entry__best::before {
  content: "Best moment — ";
  font-family: var(--sans);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-blog);
  margin-right: 4px;
}

/* Back nav */
.article-nav {
  max-width: 62ch;
  margin: clamp(48px, 7vw, 72px) auto 0;
  padding-top: 32px;
  border-top: 1px solid var(--line-soft);
}

.article-nav a {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  transition: color 240ms ease;
}

.article-nav a::before {
  content: "← ";
  margin-right: 2px;
}

.article-nav a:hover { color: var(--accent-review); }

/* ------------------ 404 ------------------ */
.notfound {
  padding-block: clamp(88px, 15vw, 160px);
  text-align: center;
  max-width: 46ch;
  margin: 0 auto;
}

.notfound__eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin: 0 0 22px;
}

.notfound__title {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  letter-spacing: -0.022em;
  margin: 0 0 18px;
  font-variation-settings: "opsz" 144, "SOFT" 40;
}

.notfound__text {
  font-family: var(--serif-body);
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1.12rem;
  margin: 0 0 40px;
}

.notfound__back {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  transition: color 240ms ease, border-color 240ms ease;
}

.notfound__back:hover { color: var(--accent-review); border-color: var(--accent-review); }

/* ------------------ Selection ------------------ */
::selection {
  background: rgba(184, 88, 53, 0.2);
  color: var(--ink);
}

/* ------------------ Mobile tweaks ------------------ */
@media (max-width: 480px) {
  .hero__title { letter-spacing: -0.02em; }

  .article-header__title,
  .article-card__title { word-break: break-word; }

  .article-body > p:first-child::first-letter {
    font-size: 2.8em;
    margin: 0.06em 0.08em 0 -0.02em;
  }

  .verdict {
    padding-top: 22px;
    gap: 12px 20px;
  }

  .verdict__score { font-size: 2.4rem; }

  .now-playing {
    display: grid;
    grid-template-areas:
      "dot label"
      "dot value";
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 2px 12px;
    padding: 12px 20px 12px 14px;
    border-radius: 18px;
    font-size: 0.66rem;
    letter-spacing: 0.14em;
  }

  .now-playing::before { grid-area: dot; align-self: center; }
  .now-playing > span { grid-area: label; align-self: end; }

  .now-playing strong {
    grid-area: value;
    align-self: start;
    font-size: 0.92rem;
    line-height: 1.2;
  }
}

/* ------------------ Reduced motion ------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
