/* Paper Innings storefront. One typeface, a neutral page, and one brand colour:
   the product pictures carry the warmth. */
@font-face { font-family: "Libre Franklin"; src: url("fonts/LibreFranklin.ttf"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Patrick Hand"; src: url("fonts/PatrickHand-Regular.ttf"); font-display: swap; }
@font-face { font-family: "Architects Daughter"; src: url("fonts/ArchitectsDaughter-Regular.ttf"); font-display: swap; }
@font-face { font-family: "Kalam"; src: url("fonts/Kalam-Regular.ttf"); font-display: swap; }
@font-face { font-family: "Shadows Into Light"; src: url("fonts/ShadowsIntoLight.ttf"); font-display: swap; }

:root {
  --ink: #141414; --muted: #5f6368; --line: #e3e3e0; --page: #ffffff; --stage: #efefec; --soft: #f6f6f4;
  --brand: #123f2f; --focus: #1a6b4f; --danger: #a12a1f;
  --font: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --r: 6px; --w: 1200px; --pad: clamp(18px, 4vw, 40px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
img, canvas { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; }
h1 { font-size: clamp(38px, 5vw, 62px); }
h2 { font-size: clamp(26px, 3vw, 36px); }
h3 { font-size: 15px; letter-spacing: 0; font-weight: 600; }
p { margin: 0 0 0.8em; }
[hidden] { display: none !important; }
.wrap { max-width: var(--w); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---- chrome */
.announce { margin: 0; background: var(--brand); color: #fff; text-align: center; font-size: 14px; font-weight: 500; padding: 8px 12px; }
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 28px; padding: 12px var(--pad); backdrop-filter: saturate(1.4) blur(8px); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; white-space: nowrap; }
.logo svg { color: var(--brand); flex: none; }
.top nav { display: flex; gap: 26px; margin-left: 8px; flex: 1; font-size: 15px; font-weight: 500; }
.top nav a { text-decoration: none; color: #2c2c2c; padding: 6px 0; border-bottom: 2px solid transparent; }
.top nav a:hover { border-bottom-color: var(--ink); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 16px/1 var(--font); color: #fff; background: var(--ink); border: 1.5px solid var(--ink); border-radius: var(--r); padding: 15px 24px; text-decoration: none; cursor: pointer; transition: background .15s, transform .05s; }
.btn:hover { background: #2e2e2e; border-color: #2e2e2e; }
.btn:active { transform: translateY(1px); }
.btn.small { padding: 10px 16px; font-size: 14.5px; }
.btn.wide { width: 100%; }
.btn.ghost { background: #fff; color: var(--ink); }
.btn.ghost:hover { background: var(--soft); }
.text-link { font: inherit; color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.text-link:hover { text-decoration-thickness: 2px; }

/* ---- hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, min(50%, 700px)); align-items: stretch; background: var(--stage); }
.hero-copy { align-self: center; padding: clamp(36px, 6vw, 88px) var(--pad) clamp(36px, 6vw, 88px) max(var(--pad), calc((100vw - var(--w)) / 2 + var(--pad))); }
.lede { font-size: 20px; line-height: 1.5; color: #2c2c2c; margin: 22px 0 30px; max-width: 30em; }
.cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin: 0; }
.assure { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 0; margin: 26px 0 0; font-size: 14.5px; color: var(--muted); }
.assure li { display: flex; align-items: center; gap: 8px; }
.assure li::before { content: ""; width: 14px; height: 8px; border-left: 2px solid var(--focus); border-bottom: 2px solid var(--focus); transform: rotate(-45deg) translateY(-3px); flex: none; }
.hero-shot { display: block; overflow: hidden; max-height: 760px; }
.hero-shot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; transition: transform .5s ease; }
.hero-shot:hover img { transform: scale(1.015); }

/* ---- the archive in numbers */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); max-width: var(--w); margin: 0 auto; padding: 0 var(--pad); }
.facts div { padding: 30px 24px 30px 0; }
.facts div + div { border-left: 1px solid var(--line); padding-left: 24px; }
.facts b { display: block; font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.facts span { display: block; color: var(--muted); font-size: 14.5px; line-height: 1.4; margin-top: 4px; }

/* ---- sections */
.section { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 88px); }
.band { background: var(--soft); padding: clamp(48px, 7vw, 88px) 0; }
.section-head { max-width: 46em; margin-bottom: 28px; }
.section-head p { color: var(--muted); margin: 12px 0 0; }

/* ---- finder */
.finder-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: clamp(16px, 2.4vw, 28px); box-shadow: 0 1px 2px rgba(20, 20, 20, .04), 0 12px 28px -18px rgba(20, 20, 20, .18); }
.seg { display: inline-flex; background: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: 3px; margin-bottom: 20px; }
.seg button { font: 600 14.5px var(--font); color: var(--muted); background: none; border: 0; border-radius: 6px; padding: 9px 16px; cursor: pointer; }
.seg button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(20, 20, 20, .14); }
.fields { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px 16px; align-items: end; }
.fields .w2 { grid-column: span 2; } .fields .w3 { grid-column: span 3; }
label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; color: #2c2c2c; }
select, input[type="search"], input[type="date"], input:not([type]) { font: 400 16px var(--font); color: var(--ink); background: #fff; border: 1px solid #c9c9c5; border-radius: var(--r); padding: 11px 12px; width: 100%; min-width: 0; height: 46px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23141414' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
select:hover, input:hover { border-color: #8d8d88; }
.hint { font-size: 14.5px; color: var(--muted); margin: 14px 0 0; }
.fields .hint { margin: 0 0 12px; grid-column: span 4; }
.results { margin-top: 12px; border-top: 1px solid var(--line); max-height: 520px; overflow: auto; }
.results:empty { border: 0; margin: 0; }
.g { display: grid; grid-template-columns: 6.6em minmax(0, 1.5fr) minmax(0, 1fr) 20px; gap: 2px 18px; align-items: center; width: 100%; text-align: left; padding: 13px 8px; background: none; border: 0; border-bottom: 1px solid var(--line); font: 400 16px/1.35 var(--font); color: var(--ink); cursor: pointer; }
.g:hover, .g:focus-visible { background: var(--soft); }
.g .d { font-size: 14px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.g .m b { font-weight: 700; }
.g .x { font-size: 14px; color: var(--muted); }
.g::after { content: ""; width: 8px; height: 8px; border-right: 2px solid #9a9a95; border-top: 2px solid #9a9a95; transform: rotate(45deg); justify-self: end; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--brand); background: #e7f1ec; border-radius: 999px; padding: 2px 9px; margin-left: 8px; vertical-align: 1px; white-space: nowrap; }

/* ---- builder */
.builder { background: var(--stage); padding: clamp(24px, 4vw, 48px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.builder-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(20px, 3vw, 44px); align-items: start; }
.sheet { background: #fff; box-shadow: 0 1px 2px rgba(20, 20, 20, .18), 0 24px 48px -22px rgba(20, 20, 20, .4); overflow: auto; max-height: 88vh; }
.sheet canvas { width: 100%; }
.sheet.zoom canvas { width: 220%; max-width: none; }
.stage-tools { display: flex; gap: 18px; justify-content: center; align-items: baseline; flex-wrap: wrap; font-size: 14.5px; margin: 14px 0 0; }
#unverified { color: var(--danger); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 22px; position: sticky; top: 84px; display: grid; gap: 16px; }
.panel h2 { font-size: 23px; letter-spacing: -0.015em; line-height: 1.2; }
.panel .muted { margin: -10px 0 2px; font-size: 14.5px; }
.back { font-size: 14px; justify-self: start; color: var(--muted); }
.field { gap: 6px; }
.opt { border: 0; padding: 0; margin: 0; min-width: 0; }
.opt legend { font-size: 13.5px; font-weight: 600; color: #2c2c2c; padding: 0; margin-bottom: 8px; }
.opt-row { display: grid; gap: 16px; }
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chips label, .swatches label { display: block; position: relative; cursor: pointer; font-weight: 400; }
.chips input, .swatches input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span { display: flex; align-items: center; justify-content: center; min-height: 42px; border: 1px solid #c9c9c5; border-radius: var(--r); font-size: 14.5px; padding: 6px 8px; text-align: center; background: #fff; }
.chips.hands span { font-size: 17px; }
.chips input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-weight: 600; }
.chips.hands input:checked + span { font-weight: 400; }
.chips input:focus-visible + span, .swatches input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.swatches { display: flex; gap: 14px; flex-wrap: wrap; }
.swatches label { display: grid; justify-items: center; gap: 5px; width: 60px; }
.swatches span { width: 34px; height: 34px; border-radius: 50%; background: var(--c); border: 1px solid rgba(20, 20, 20, .22); box-shadow: 0 0 0 3px #fff; }
.swatches input:checked + span { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--ink); }
.swatches em { font-style: normal; font-size: 12px; color: var(--muted); white-space: nowrap; }
.buy { border-top: 1px solid var(--line); padding-top: 18px; display: grid; gap: 12px; }
.buy p { margin: 0; }
.price { display: flex; align-items: baseline; gap: 12px; }
.price b { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.price span { color: var(--muted); font-size: 14.5px; }
.fine { font-size: 13.5px; color: var(--muted); }
.code summary { cursor: pointer; font-size: 14.5px; font-weight: 600; }
.code-row { display: flex; gap: 8px; margin-top: 10px; }
.code-row input { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 15px; }
.code-row .btn { padding: 0 16px; height: 46px; flex: none; }
.dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---- famous games */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 22px; }
.tile { display: block; text-decoration: none; background: none; border: 0; padding: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.tile .shot { background: var(--stage); overflow: hidden; border-radius: 4px; aspect-ratio: 720 / 860; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.tile:hover img { transform: scale(1.03); }
.tile b { display: block; margin-top: 12px; font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em; }
.tile span { display: block; color: var(--muted); font-size: 14.5px; margin-top: 2px; }

/* ---- close view */
.wide-shot { margin: 0; position: relative; background: #2a2723; }
.wide-shot img { width: 100%; max-height: 620px; object-fit: cover; }
.wide-shot figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 80px max(var(--pad), calc((100vw - var(--w)) / 2 + var(--pad))) 30px; color: #fff; font-size: 18px; line-height: 1.45; background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .78)); }
.wide-shot figcaption b { display: block; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.02em; margin-bottom: 6px; }

/* ---- steps */
.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 0; margin: 0; }
.steps li { counter-increment: s; border-top: 2px solid var(--ink); padding-top: 18px; }
.steps li::before { content: counter(s); display: block; font-size: 15px; font-weight: 700; color: var(--muted); margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.steps b { display: block; font-size: 21px; letter-spacing: -0.015em; margin-bottom: 8px; }
.steps span { color: #3a3a3a; }

/* ---- reading guide */
.guide { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.guide-shot { position: relative; box-shadow: 0 1px 2px rgba(20, 20, 20, .18), 0 22px 44px -22px rgba(20, 20, 20, .4); }
.dot { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 3px rgba(255, 255, 255, .9); }
.guide-text p { color: #3a3a3a; margin: 14px 0 20px; }
.keyed { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.keyed li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: #3a3a3a; }
.keyed li::before { content: attr(data-n); flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.keyed b { color: var(--ink); margin-right: 6px; }

/* ---- printing */
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.two h2 { margin-bottom: 16px; }
.two p { color: #3a3a3a; }
.sizes { width: 100%; border-collapse: collapse; font-size: 16px; }
.sizes th { text-align: left; font-size: 13.5px; font-weight: 600; color: var(--muted); padding: 0 0 10px; border-bottom: 1px solid var(--ink); }
.sizes td { padding: 14px 0; border-bottom: 1px solid var(--line); }
.sizes td:first-child { font-weight: 600; white-space: nowrap; padding-right: 24px; font-variant-numeric: tabular-nums; }

/* ---- questions */
.faq { border-top: 1px solid var(--ink); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 26px; width: 9px; height: 9px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 30px; }
.faq p { margin: 0 0 22px; color: #3a3a3a; max-width: 44em; }

/* ---- footer */
.foot { background: var(--ink); color: #d9d9d6; padding: 56px 0 36px; font-size: 15px; }
.foot .logo { color: #fff; font-size: 18px; } .foot .logo svg { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand p { margin: 14px 0 0; color: #a9a9a5; max-width: 22em; }
.foot h3 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.foot nav a { display: block; text-decoration: none; color: #c9c9c5; padding: 5px 0; }
.foot nav a:hover { color: #fff; text-decoration: underline; }
.foot-legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid #333; font-size: 13.5px; color: #a9a9a5; }
.foot-legal p { margin: 0 0 8px; max-width: 70em; }

/* ---- plain pages (terms, privacy, not found) */
.doc { max-width: 760px; margin: 0 auto; padding: clamp(36px, 6vw, 72px) var(--pad); }
.doc h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 8px; }
.doc h2 { font-size: 21px; margin: 34px 0 10px; letter-spacing: -0.01em; }
.doc p, .doc li { color: #3a3a3a; }
.doc .updated { color: var(--muted); font-size: 14.5px; }

@media (max-width: 980px) {
  .top nav { display: none; }
  .top { justify-content: space-between; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { justify-self: start; max-width: none; padding: 36px var(--pad) 30px; }
  .hero-shot { max-height: 520px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div { padding: 20px 16px 20px 0; }
  .facts div:nth-child(3) { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .facts div:nth-child(4) { border-top: 1px solid var(--line); }
  .builder-grid, .guide, .two { grid-template-columns: 1fr; }
  .panel { position: static; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .fields { grid-template-columns: 1fr 1fr; }
  .fields .w2, .fields .w3, .fields .hint { grid-column: span 2; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: span 2; }
  .g { grid-template-columns: 5.6em 1fr 14px; }
  .g .x { grid-column: 2; }
  .wide-shot img { min-height: 340px; }
  .wide-shot figcaption { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
