/* Sock Paper Scissors — site styles */
@font-face {
  font-family: "Nunito";
  src: url("fonts/Nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --paper: #f6f1e7;
  --card: #fffdf8;
  --ink: #1f2533;
  --muted: #5d6270;
  --line: #e4dccb;
  --sage: #8a9a82;
  --sage-soft: #e3e8dc;
  --slate: #5e7385;
  --mustard: #c9a227;
  --rust: #b0573b;
  --rose: #d9a5a0;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(31, 37, 51, .06), 0 8px 24px rgba(31, 37, 51, .07);
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--card); padding: 8px 12px; border-radius: 8px; z-index: 10; }

/* header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(246, 241, 231, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 104px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.1rem; }
.brand img { width: 84px; height: 84px; }
.brand span { font-size: 1.25rem; }
.nav { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.nav a { text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 700; color: var(--muted); }
.nav a:hover { color: var(--ink); background: var(--card); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--sage-soft); }
.nav .ig { padding: 8px; display: grid; place-items: center; }
.nav .ig svg { width: 22px; height: 22px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.menu-btn svg { width: 26px; height: 26px; }
@media (max-width: 720px) {
  .site-header .wrap { height: 84px; }
  .brand img { width: 68px; height: 68px; }
  .nav { top: 84px !important; }
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; top: 104px; }
  .nav.open { display: flex; }
  .nav .ig { justify-content: start; }
  .brand span { font-size: 1rem; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 800;
  text-decoration: none; border: 2px solid var(--ink); background: var(--ink); color: var(--paper); transition: transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.small { padding: 8px 16px; font-size: .95rem; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 88px; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero-art { position: relative; aspect-ratio: 1; }
.hero-art img { position: absolute; filter: drop-shadow(0 6px 10px rgba(31, 37, 51, .12)); }
.hero-art .a { width: 58%; left: 4%; top: 6%; transform: rotate(-6deg); }
.hero-art .b { width: 46%; right: 0; top: 0; transform: rotate(7deg); }
.hero-art .c { width: 48%; right: 6%; bottom: 2%; transform: rotate(-3deg); }
.hero-art .d { width: 34%; left: 8%; bottom: 4%; transform: rotate(5deg); }
@media (max-width: 820px) {
  .hero { padding: 40px 0 56px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; width: 100%; margin: 0 auto; }
}

/* sections and cards */
section.block { padding: 56px 0; }
section.block.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 800; }
.grid { display: grid; gap: 20px; }
.grid.three { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid.four { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .grid.four { grid-template-columns: repeat(2, 1fr); gap: 12px; } .card .body { padding: 10px 12px 12px; } }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; text-decoration: none;
  display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(31, 37, 51, .08), 0 14px 32px rgba(31, 37, 51, .10); }
.card .pic { aspect-ratio: 1; background: var(--paper); overflow: hidden; }
.card .pic img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 14px 16px 16px; }
.card .body h3 { margin: 0 0 2px; }
.card .body .meta { color: var(--muted); font-size: .92rem; }
.pillars .card { padding: 28px; }
.pillars .icon { width: 64px; height: 64px; margin-bottom: 12px; }
.pillars p { color: var(--muted); }
.pillars .more { margin-top: auto; font-weight: 800; }

/* sticker + postcard previews */
.sticker-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; align-items: center; }
.sticker-row img { width: 100%; height: 150px; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(31, 37, 51, .12)); }
.postcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 22px; }
.postcards figure { margin: 0; }
.postcards img { border-radius: 6px; box-shadow: var(--shadow); aspect-ratio: 2/3; object-fit: cover; width: 100%; }
.postcards figcaption { font-weight: 800; margin-top: 10px; text-align: center; }
.badge { display: inline-block; background: var(--sage-soft); color: var(--ink); font-weight: 800; font-size: .85rem;
  padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; }

/* charts library */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 8px 0 20px; }
.search { flex: 1 1 260px; position: relative; }
.search input { width: 100%; font: inherit; padding: 12px 16px 12px 44px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); }
.search svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
select { font: inherit; padding: 11px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip { font: inherit; font-weight: 700; font-size: .95rem; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); cursor: pointer; text-decoration: none; text-transform: capitalize; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.count { color: var(--muted); margin-bottom: 14px; }
.chart-card .pic img { image-rendering: auto; }
.empty { padding: 40px; text-align: center; color: var(--muted); }

/* single chart */
.crumbs { font-size: .95rem; color: var(--muted); margin: 24px 0 16px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.crumbs a { text-decoration: none; font-weight: 700; }
.chart-page { display: grid; grid-template-columns: minmax(0, 560px) 1fr; gap: 40px; align-items: start; padding-bottom: 40px; }
.chart-main img { border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; width: 100%; height: auto; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; width: 74px; height: 74px;
  cursor: pointer; background: var(--card); }
.thumbs button[aria-current="true"] { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.facts { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.facts dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0 0 20px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; }
.facts .note a { font-weight: 700; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }
@media (max-width: 820px) { .chart-page { grid-template-columns: 1fr; } }

/* text pages */
.prose { max-width: 720px; }
.prose h2 { margin-top: 1.4em; }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; }
.about-grid .photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.about-grid .photos img { border-radius: 14px; aspect-ratio: 1; object-fit: cover; box-shadow: var(--shadow); }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }
.placeholder { background: #fff3c4; padding: 0 4px; border-radius: 4px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; margin-top: 24px; color: var(--muted); font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; font-weight: 700; }
.site-footer a:hover { color: var(--ink); }
