:root {
  --bg: #fffbf2;
  --surface: #fffdf8;
  --text: #302116;
  --muted: #634f3e;
  --primary: #8e4016;
  --accent: #ffc266;
  --accent-hover: #ffb34a;
  --tint: #fff1ce;
  --line: #eedbc0;
  --control-line: #987653;
  --cover-bg: #f5e5ce;
  --radius: 16px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-section: 48px;
  --display: "Helvetica Neue", system-ui, sans-serif;
  --body: system-ui, -apple-system, sans-serif;
  --shadow: 0 8px 24px rgba(88,49,15,.10);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-padding-top: 20px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--body);
}

a { color: inherit; text-underline-offset: .18em; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
h1, h2, h3, .brand { font-family: var(--display); }
h1, h2, h3 { line-height: 1.1; margin: 0; letter-spacing: -.035em; }
h1 { font-size: clamp(2.5rem, 5.2vw, 4.5rem); font-weight: 780; }
h2 { font-size: clamp(1.625rem, 3vw, 2.25rem); font-weight: 740; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0; }

.wrap { width: min(1140px, 100% - 64px); margin-inline: auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip-link { position: fixed; z-index: 4; top: 12px; left: 12px; padding: 8px 16px; background: var(--accent); transform: translateY(-180%); }
.skip-link:focus { transform: none; }

.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-row, .footer-row { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: var(--space-lg); }
.brand { display: inline-flex; gap: 8px; align-items: center; font-size: 1.55rem; line-height: 1; font-weight: 800; letter-spacing: -.055em; text-decoration: none; }
.brand img { display: block; flex: none; }
.site-nav, .site-footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-lg); }
.site-nav a, .site-footer nav a { display: flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .875rem; }
.site-nav a:hover, .site-footer nav a:hover { color: var(--text); text-decoration: underline; }

.home-hero {
  background:
    radial-gradient(ellipse at 87% 4%, #ffe4a3, transparent 65%),
    linear-gradient(116deg, #fff8e4, var(--tint));
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding-block: 40px; }
.hero-copy h1 { max-width: 11ch; text-wrap: balance; }
.lede { font-size: clamp(1rem, 1.7vw, 1.1875rem); color: var(--muted); max-width: 48ch; }
.hero-copy .lede { margin-top: var(--space-md); }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 48px; padding: 10px 18px; border: 1px solid transparent;
  background: var(--accent); color: var(--text); border-radius: 10px; text-decoration: none;
  font-weight: 680;
}
.button:hover { background: var(--accent-hover); border-color: var(--primary); }
.hero-copy .button { margin-top: var(--space-lg); }
.button span { font-size: 1.2em; line-height: 1; }

.feature, .game-card, .collection { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.feature, .game-card { overflow: hidden; }
.feature {
  display: block;
  box-shadow: 0 10px 28px rgba(88,49,15,.13), 0 0 0 6px rgba(255,253,248,.58);
}
.feature:hover, .game-card:hover, .collection:hover { border-color: var(--primary); }
.cover { display: block; background-color: var(--cover-bg); background-repeat: no-repeat; background-size: 200% 200%; aspect-ratio: 3 / 2; }
.feature .cover { aspect-ratio: 2.15 / 1; }
.feature-label { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); padding: var(--space-md) var(--space-lg); }
.feature-label h2 { margin: 3px 0; font-size: 1.65rem; }
.feature-label p, .card-content p, .collection p { color: var(--muted); font-size: .9rem; }
.category { display: block; color: var(--primary); font-weight: 680; font-size: .8rem; }
.feature-arrow, .card-arrow {
  display: grid; place-items: center; flex: none;
  width: 36px; height: 36px; border-radius: 50%; background: var(--tint); font-size: 1.2rem;
}
.feature:hover .feature-arrow, .game-card:hover .card-arrow { background: var(--accent); color: var(--text); }

.content-section { padding-block: var(--space-section); }
.browse-heading, .browse-controls { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); flex-wrap: wrap; }
.browse-heading { margin-bottom: var(--space-md); }
.browse-controls { margin-bottom: var(--space-lg); }
.search-box { width: min(315px, 100%); position: relative; }
.search-box input { display: block; width: 100%; height: 46px; padding: 0 14px 0 40px; background: var(--surface); color: var(--text); border: 1px solid var(--control-line); border-radius: 8px; }
.search-icon { position: absolute; left: 16px; top: 15px; width: 13px; height: 13px; border: 1.5px solid var(--muted); border-radius: 50%; pointer-events: none; }
.search-icon::after { content: ""; position: absolute; height: 1.5px; width: 6px; background: var(--muted); transform: rotate(45deg); top: 10px; left: 9px; }
.filters { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.filters button, .no-games button { color: var(--text); cursor: pointer; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; min-height: 44px; padding: 6px 15px; font-weight: 580; font-size: .875rem; }
.filters button:hover, .no-games button:hover { border-color: var(--primary); }
.filters button[aria-pressed="true"] { background: var(--tint); border-color: var(--primary); color: var(--primary); }
.game-count { color: var(--muted); font-size: .875rem; }
.no-games { padding: var(--space-xl); background: var(--tint); border-radius: var(--radius); text-align: center; }
.no-games button { margin-top: var(--space-sm); }

.game-grid { display: grid; gap: var(--space-md); grid-template-columns: repeat(4, minmax(0,1fr)); }
.game-card { display: flex; flex-direction: column; min-width: 0; transition: border-color .15s, box-shadow .15s; }
.game-card:hover { box-shadow: var(--shadow); }
.game-card .cover { aspect-ratio: 1.7 / 1; }
.card-content { display: grid; align-content: start; gap: 5px; padding: var(--space-md); }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); }
.card-title h3 { overflow-wrap: anywhere; }
.card-arrow { width: 28px; height: 28px; font-size: 1rem; }
.card-content p { line-height: 1.55; }

.collections-section { border-block: 1px solid var(--line); background: var(--tint); }
.collections-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: var(--space-md); margin-top: var(--space-lg); }
.collection { position: relative; display: block; padding: var(--space-lg); padding-right: 50px; }
.collection h3 { margin-bottom: 6px; }
.collection > span { position: absolute; right: 20px; top: 22px; font-size: 1.2rem; }
.editorial, .collection-page, .game-page { padding-block: var(--space-section); }
.reading { max-width: 68ch; color: var(--muted); }
.reading h2, .reading h3 { color: var(--text); }
.reading h2 { margin-top: var(--space-xl); margin-bottom: 12px; font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
.reading h2:first-child { margin-top: 0; }
.reading h3 { margin-top: var(--space-lg); margin-bottom: 8px; letter-spacing: -.02em; }
.reading p { margin-bottom: var(--space-md); }
.reading a { color: var(--primary); text-decoration-thickness: .08em; }

.back-link { display: inline-flex; gap: 7px; align-items: center; min-height: 40px; color: var(--primary); font-size: .875rem; text-decoration: none; margin-bottom: var(--space-md); }
.back-link:hover { text-decoration: underline; }
.collection-page h1 { max-width: 18ch; }
.collection-page > .lede { margin-top: 12px; }
.page-list { margin-block: var(--space-xl); }
.page-list h2 { margin-bottom: var(--space-md); }
.collection-page > .reading { margin-top: var(--space-xl); }
.game-hero {
  display: grid; grid-template-columns: 1.06fr 1fr; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.game-hero > .cover { align-self: stretch; height: 100%; min-height: 280px; }
.game-hero-copy { padding: clamp(20px, 4vw, 50px); align-self: center; }
.game-hero-copy h1 { margin: 4px 0 12px; font-size: clamp(2.25rem, 5vw, 4rem); overflow-wrap: anywhere; }
.game-hero-copy .button { margin-top: var(--space-lg); }
.publisher { margin-top: 6px; color: var(--muted); font-size: .875rem; overflow-wrap: anywhere; }
.game-guides { display: grid; grid-template-columns: minmax(0,1fr) minmax(240px,320px); gap: 48px; margin-top: var(--space-section); }
.related { align-self: start; padding: var(--space-md); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.related h2 { font-size: 1.4rem; margin-bottom: var(--space-md); }
.related-link { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: var(--space-sm) 0; border-top: 1px solid var(--line); text-decoration: none; }
.related-link:hover strong { text-decoration: underline; }
.related-link .cover { width: 58px; flex: none; border-radius: 6px; }
.related-link strong, .related-link small { display: block; line-height: 1.35; }
.related-link small { color: var(--muted); margin-top: 2px; }
.related-arrow { margin-left: auto; color: var(--muted); }

.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-row { padding-block: 12px; }

@media (max-width: 920px) {
  .wrap { width: calc(100% - 48px); }
  .hero-grid { gap: var(--space-lg); }
  .game-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .game-guides { gap: var(--space-xl); }
}
@media (max-width: 650px) {
  .wrap { width: calc(100% - 32px); }
  .header-row, .footer-row, .site-nav, .site-footer nav { gap: 10px; }
  .brand { font-size: 1.35rem; gap: 5px; }
  .brand img { width: 24px; height: 24px; }
  .site-nav a, .site-footer nav a { font-size: .8rem; }
  .search-box { width: 100%; }
  .filters { gap: 6px; }
  .filters button { padding-inline: 9px; }
  .hero-grid, .game-hero, .game-guides, .collections-grid { grid-template-columns: 1fr; }
  .hero-grid { padding-block: var(--space-lg); }
  .hero-copy h1 { max-width: 13ch; }
  .feature { display: grid; grid-template-columns: 42% 1fr; }
  .feature .cover { height: 100%; min-height: 136px; aspect-ratio: auto; }
  .feature-label { padding: 12px; gap: 8px; }
  .feature-label h2 { font-size: 1.45rem; }
  .feature-arrow { width: 28px; height: 28px; font-size: 1rem; }
  .game-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .card-content { padding: 12px; }
  .card-title h3 { font-size: 1.08rem; }
  .card-arrow { width: 22px; height: 22px; font-size: .9rem; }
  .game-hero > .cover { min-height: 0; height: auto; aspect-ratio: 1.7 / 1; }
  .content-section, .editorial, .collection-page, .game-page { padding-block: var(--space-xl); }
  .game-guides { margin-top: var(--space-xl); }
}
@media (max-width: 355px) {
  .site-nav { gap: 7px; }
  .feature-arrow { display: none; }
  .card-title .card-arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .game-card { transition: none; }
}

:root {
  --art-sheet-a: url("https://img.pickdle.org/s_4z406r5v0k194e/pickdle-covers-a.e3bf9a1efe.jpg");
  --art-sheet-b: url("https://img.pickdle.org/s_4z406r5v0k194e/pickdle-covers-b.a94e32829c.jpg");
}
.cover {
  background-image: var(--art-sheet);
  background-position: var(--art-x, 0%) var(--art-y, 0%);
}
@supports (width: 1cqh) {
  .cover { position: relative; overflow: hidden; container-type: size; background-image: none; }
  .cover::before {
    content: ""; position: absolute; left: 50%; top: 50%;
    width: max(100%, 150cqh); aspect-ratio: 3 / 2;
    transform: translate(-50%, -50%);
    background: var(--art-sheet) var(--art-x, 0%) var(--art-y, 0%) / 200% 200% no-repeat;
  }
}
.cover[data-cover="wordle"] { --art-sheet: var(--art-sheet-a); --art-x: 0%; --art-y: 0%; }
.cover[data-cover="waffle"] { --art-sheet: var(--art-sheet-a); --art-x: 100%; --art-y: 0%; }
.cover[data-cover="semantle"] { --art-sheet: var(--art-sheet-a); --art-x: 0%; --art-y: 100%; }
.cover[data-cover="stow"] { --art-sheet: var(--art-sheet-a); --art-x: 100%; --art-y: 100%; }
.cover[data-cover="enclose-horse"] { --art-sheet: var(--art-sheet-b); --art-x: 0%; --art-y: 0%; }
.cover[data-cover="wonderhop"] { --art-sheet: var(--art-sheet-b); --art-x: 100%; --art-y: 0%; }
.cover[data-cover="pokekrillion"] { --art-sheet: var(--art-sheet-b); --art-x: 0%; --art-y: 100%; }
.cover[data-cover="worldle"] { --art-sheet: var(--art-sheet-b); --art-x: 100%; --art-y: 100%; }
