/* RipperClue storefront. Brand direction "Field notes" (round 3, option 2): a naturalist's notebook.
   Grid paper, manila specimen tags, and a drawer the cases are filed in. Each game is a numbered case.
   Tokens first: change the look here. A game's own cover colours come from themes.css (--g-*). */

@font-face { font-family: 'Zilla Slab'; font-weight: 500; font-display: swap; src: url('fonts/zilla-slab-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Zilla Slab'; font-weight: 600; font-display: swap; src: url('fonts/zilla-slab-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Zilla Slab'; font-weight: 700; font-display: swap; src: url('fonts/zilla-slab-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Karla'; font-weight: 400; font-display: swap; src: url('fonts/karla-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Karla'; font-weight: 500; font-display: swap; src: url('fonts/karla-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Karla'; font-weight: 700; font-display: swap; src: url('fonts/karla-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 600; font-display: swap; src: url('fonts/jetbrains-mono-latin-600-normal.woff2') format('woff2'); }

:root {
  /* colour (contrast ratios against --paper) */
  --paper: #F5F3EC;      /* the notebook page */
  --grid: #DCE4D8;       /* grid rules, decoration only */
  --card: #FFFFFF;       /* index cards, tables, forms */
  --ink: #20231F;        /* 14:1 */
  --ink-2: #4E544B;      /* 7:1 */
  --line: #CFD6CB;       /* dividers only */
  --ranger: #2E5E3A;     /* primary action and labels; white text 7.7:1, on paper 6.8:1 */
  --ranger-press: #234A2D;
  --manila: #E9D9A8;     /* specimen tags */
  --manila-edge: #C8B47E;
  --manila-rule: #B9A673;
  --pencil: #B3261E;     /* red pencil: hover, errors; 5.9:1 */
  --drawer: #6B5435;     /* the case drawer */
  --drawer-2: #57442A;
  --drawer-edge: #3E2F1C;
  --focus: #B3261E;
  /* type */
  --slab: 'Zilla Slab', Rockwell, 'Roboto Slab', Georgia, serif;
  --sans: 'Karla', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  /* layout */
  --wrap: 1300px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 3px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font-family: var(--sans); font-size: 18px; line-height: 1.55;
  background-color: var(--paper);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
}
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:hover { color: var(--pencil); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
.visually-hidden, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 10px 16px; z-index: 10; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }

/* Text set straight onto the grid gets a patch of plain paper behind it, so the rules never cross the words. */
.on-paper, .lede, .read { background: var(--paper); }
.wrap.narrow.section { background: var(--paper); border-left: 1px solid var(--grid); border-right: 1px solid var(--grid); }
.fit { align-self: flex-start; }

/* ---- type ---- */
.display { font-family: var(--slab); font-size: clamp(50px, 6.4vw, 92px); font-weight: 700; letter-spacing: -0.02em; line-height: 0.95; }
.display-sm { font-size: clamp(44px, 5vw, 72px); }
.h1 { font-family: var(--slab); font-size: clamp(36px, 4vw, 52px); letter-spacing: -0.01em; line-height: 1; }
.h2 { font-family: var(--slab); font-size: clamp(34px, 3.4vw, 44px); line-height: 1; }
.h3 { font-family: var(--slab); font-size: clamp(24px, 2.2vw, 30px); line-height: 1.1; }
.h4 { font-family: var(--slab); font-size: 22px; line-height: 1.15; }
.lede { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.55; max-width: 32em; }
.read { font-size: 19px; line-height: 1.65; max-width: 40em; }
.label-slab { font-family: var(--slab); font-weight: 600; font-size: 17px; color: var(--ranger); }
.kicker { font-family: var(--slab); font-weight: 600; font-size: 16px; color: var(--ranger); }
.mono { font-family: var(--mono); }
.small { font-size: 15px; }
.muted { color: var(--ink-2); }
.accent { color: var(--ranger); }
.strong { font-weight: 700; }
.break { word-break: break-all; }
.text-link { font-weight: 700; color: var(--ranger); text-underline-offset: 4px; }
.text-link-ink { font-weight: 700; color: var(--ink); text-underline-offset: 4px; }

/* ---- layout ---- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.narrow { max-width: 820px; }
.section { padding-top: 72px; padding-bottom: 72px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 10px 24px; margin-bottom: 24px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); align-items: center; gap: 48px; }
.split-text { display: flex; flex-direction: column; gap: 20px; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: start; gap: 40px; }
.with-aside { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px; padding-top: 48px; padding-bottom: 88px; }
.main-col { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 48px; }
.aside { flex: 1 1 340px; position: sticky; top: 24px; display: flex; flex-direction: column; gap: 14px; }
.sheet { background: var(--card); border: 2px solid var(--ink); padding: clamp(20px, 3vw, 34px); display: flex; flex-direction: column; gap: 16px; }
.panel { background: var(--paper); border: 1.5px solid var(--ink); padding: 24px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; }
.list { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 8px; }

/* ---- header and footer ---- */
.site-header { background: var(--paper); border-bottom: 2px solid var(--ink); }
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.mark { width: 26px; height: 38px; flex: none; }
.mark-tag { fill: var(--manila); stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
.mark-hole { fill: var(--paper); stroke: var(--ink); stroke-width: 2; }
.mark-lines { fill: none; stroke: var(--ranger); stroke-width: 2.5; }
.wordmark { font-family: var(--slab); font-size: 32px; font-weight: 700; letter-spacing: -0.01em; line-height: 1; }
.nav { flex: 1 1 auto; display: flex; justify-content: center; flex-wrap: wrap; gap: 0 32px; font-size: 18px; font-weight: 500; }
.nav a { text-underline-offset: 5px; padding: 10px 0; }
.bar-actions { display: flex; align-items: center; gap: 28px; }
.find-link { font-weight: 700; font-size: 18px; text-decoration: none; padding: 6px 0; border-bottom: 3px solid var(--ranger); }
@media (max-width: 1080px) {
  .nav { order: 3; flex-basis: 100%; justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; gap: 0 24px; font-size: 17px; border-top: 1px solid var(--line); }
  .nav a { flex: none; }
  .bar-actions { margin-left: auto; }
}
@media (max-width: 520px) {
  .bar-actions { gap: 14px; }
  .bar-actions .btn { display: none; }
  .nav { flex-wrap: wrap; overflow: visible; gap: 0 20px; }
  .nav a { padding: 7px 0; }
  .wordmark { font-size: 28px; }
}
.site-footer { background: var(--paper); border-top: 2px solid var(--ink); }
.footer { padding-top: 28px; padding-bottom: 28px; display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; }
.footer-brand { font-family: var(--slab); font-weight: 700; font-size: 26px; text-decoration: none; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0 28px; font-weight: 500; font-size: 17px; }
.footer-nav a { text-decoration: none; padding: 6px 0; }
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-legal { color: var(--ink-2); font-size: 15px; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 0 24px; border-radius: var(--radius); border: 2px solid transparent; font: 700 20px/1.15 var(--slab); text-decoration: none; cursor: pointer; text-align: center; }
.btn-primary { background: var(--ranger); color: #fff; }
.btn-primary:hover { background: var(--ranger-press); color: #fff; }
.btn-secondary { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--card); color: var(--ink); }
.btn-text { min-height: 44px; background: none; border: 0; color: var(--ranger); font: 700 17px var(--sans); text-decoration: underline; text-underline-offset: 4px; padding: 0 4px; }
.btn-manila { background: var(--manila); color: var(--ink); }
.btn-manila:hover { background: #F2E6C2; color: var(--ink); }
.btn-sm { min-height: 46px; padding: 0 16px; font-size: 17px; }
.btn-block { width: 100%; }
.btn .ico { width: 20px; height: 20px; }
.back-link { color: inherit; font-weight: 700; text-decoration: none; align-self: flex-start; }
.back-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---- icons ---- */
.ico { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---- specimen tag (a case's label: hero, checkout summary, tickets, certificate) ---- */
.tag { position: relative; background: var(--manila); color: var(--ink); clip-path: polygon(14% 0, 86% 0, 100% 9%, 100% 100%, 0 100%, 0 9%); padding: 54px 34px 30px; display: flex; flex-direction: column; gap: 12px; box-shadow: inset 0 0 0 1px var(--manila-edge); }
.tag::before { content: ''; position: absolute; left: 50%; top: 18px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 4px var(--manila-edge); }
.tag-tilt { transform: rotate(-4deg); }
.tag-label { font-family: var(--slab); font-weight: 600; font-size: 17px; color: var(--ranger); }
.tag-title { font-family: var(--slab); font-weight: 700; font-size: clamp(38px, 4vw, 48px); line-height: 0.95; }
.tag-sm { padding: 44px 24px 22px; gap: 8px; }
.tag-sm::before { top: 14px; width: 14px; height: 14px; margin-left: -7px; box-shadow: 0 0 0 3px var(--manila-edge); }
.tag-sm .tag-title { font-size: 30px; }
.tag-facts { margin: 6px 0 0; display: grid; grid-template-columns: auto 1fr; font-size: 16px; border-top: 1.5px solid var(--ink); }
.tag-facts dt { padding: 8px 14px 8px 0; border-bottom: 1px solid var(--manila-rule); font-weight: 700; }
.tag-facts dd { margin: 0; padding: 8px 0; border-bottom: 1px solid var(--manila-rule); }
.tag-facts dt:last-of-type, .tag-facts dd:last-of-type { border-bottom: 0; }
.string { position: absolute; left: 40%; top: -6px; width: 200px; height: 120px; overflow: visible; fill: none; stroke: #9C8A62; stroke-width: 2.5; }

/* ---- home ---- */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); align-items: center; gap: 48px; padding-top: 72px; padding-bottom: 72px; }
.hero-text { display: flex; flex-direction: column; gap: 24px; }
.hero-tag { position: relative; justify-self: center; width: 100%; max-width: 470px; padding-top: 40px; }
.drawer { background: var(--drawer); padding: 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; border-radius: 4px; }
.case-card { background: var(--paper); padding: 26px; display: flex; flex-direction: column; gap: 12px; min-height: 250px; box-shadow: inset 0 0 0 1px var(--drawer-edge); text-decoration: none; color: var(--ink); }
a.case-card:hover { color: var(--ink); background: #FBFAF5; }
a.case-card:hover .case-open { color: var(--pencil); }
.case-title { font-family: var(--slab); font-weight: 700; font-size: 40px; line-height: 0.95; }
.case-meta { font-size: 15px; color: var(--ink-2); }
.case-foot { margin-top: auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-weight: 700; }
.case-open { color: var(--ranger); text-decoration: underline; text-underline-offset: 4px; }
.case-card-soon { background: var(--drawer-2); color: var(--paper); box-shadow: inset 0 0 0 1px var(--drawer-edge); }
.case-card-soon .tag-label { color: var(--manila); }
.case-card-soon .case-title { font-size: 34px; line-height: 1; }
.notify-form { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.notify-form .input { flex: 1 1 160px; min-height: 46px; border: 0; background: var(--paper); }
.btn-outline-manila { background: transparent; color: var(--paper); border-color: var(--manila); }
.btn-outline-manila:hover { background: var(--drawer-edge); color: var(--paper); }
/* How it works: one card, three steps divided by hairlines */
.how { background: var(--card); border: 1.5px solid var(--ink); padding: clamp(24px, 3vw, 36px); }
.how-title { padding-bottom: 14px; border-bottom: 1.5px solid var(--ink); margin: 0; }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.how-step { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 4px; border-left: 1px solid var(--line); }
.how-step:first-child { padding-left: 0; border-left: 0; }
.how-step:last-child { padding-right: 0; }
.how-step p { margin: 0; color: var(--ink-2); }
.how-icon { display: block; margin-bottom: 6px; }
@media (max-width: 760px) {
  .how-steps { grid-template-columns: 1fr; }
  .how-step { padding: 20px 0 4px; border-left: 0; border-top: 1px solid var(--line); }
  .how-step:first-child { border-top: 0; }
}
.band-ranger { background: var(--ranger); color: #fff; }
/* Home: gift card, the same size as the groups sheet beside it */
.pair { align-items: stretch; }
.gift-card { background: var(--ranger); color: #fff; border: 2px solid var(--ink); padding: clamp(20px, 3vw, 34px); display: flex; flex-direction: column; gap: 22px; }
.gift-card-text { display: flex; flex-direction: column; gap: 16px; }
.gift-card .h3 { color: #fff; }
.gift-card a:not(.btn):hover { color: var(--ink); }
.gift-note.gift-note-sm { justify-self: auto; align-self: flex-start; max-width: 320px; padding: 14px 18px; gap: 6px; font-size: 14px; border-left-width: 7px; transform: rotate(-1.5deg); }
.gift-note-sm .gift-code { font-size: 13px; }
.hero-note { margin-top: 6px; color: var(--ink-2); font-size: 16px; }
.band-ranger .split { padding-top: 72px; padding-bottom: 72px; }
.band-ranger a:hover { color: var(--ink); }
.band-ranger .display, .band-ranger .lede { color: #fff; background: none; }
.gift-note { justify-self: center; width: 100%; max-width: 420px; background: var(--paper); color: var(--ink); padding: 26px 28px; transform: rotate(2deg); display: flex; flex-direction: column; gap: 10px; border-left: 10px solid var(--manila); }
.gift-code { font-family: var(--mono); font-weight: 600; font-size: 24px; letter-spacing: 0.06em; }
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { font-weight: 700; font-size: 18px; cursor: pointer; min-height: 28px; }
.faq details p { margin-top: 10px; }

/* ---- game page ---- */
.game-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); align-items: center; gap: 48px; padding-top: 40px; padding-bottom: 56px; }
.game-hero-text { display: flex; flex-direction: column; gap: 20px; }
.game-title { font-family: var(--slab); font-weight: 700; font-size: clamp(56px, 7vw, 100px); line-height: 0.92; letter-spacing: -0.02em; }
.game-deck { max-width: 32em; font-size: 20px; line-height: 1.55; }
.photo { justify-self: center; width: 100%; max-width: 560px; background: var(--card); padding: 14px 14px 12px; border: 1px solid var(--line); transform: rotate(1.5deg); display: flex; flex-direction: column; gap: 10px; box-shadow: 0 1px 0 var(--line); }
.photo-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--g-ground, var(--ink)); }
.photo-caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font-size: 14px; color: var(--ink-2); }
.facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); background: var(--card); border: 2px solid var(--ink); }
.fact { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.fact dt { font-family: var(--slab); font-weight: 600; font-size: 16px; color: var(--ranger); }
.fact dd { margin: 0; font-size: 18px; font-weight: 700; }
.table-scroll { overflow-x: auto; }
.stops-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 17px; }
.stops-table th { text-align: left; font-family: var(--slab); font-size: 18px; padding: 10px 12px; border-bottom: 2px solid var(--ink); }
.stops-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.stops-table tr:last-child td { border-bottom: 0; }
.stops-table th:first-child, .stops-table td:first-child { padding-left: 0; width: 64px; }
.stop-num { font-family: var(--slab); font-weight: 700; font-size: 22px; }
.buy-card, .summary-card { background: var(--card); border: 2px solid var(--ink); }
.buy-card { padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.summary-card { padding: 20px; display: flex; flex-direction: column; gap: 18px; }
.summary-body { display: flex; flex-direction: column; gap: 14px; }
.price-lg { font-family: var(--slab); font-size: 40px; font-weight: 700; color: var(--ink); }
.aside-note { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; background: var(--paper); border: 1.5px solid var(--ink); font-size: 16px; }
.stepper-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stepper { display: flex; align-items: center; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--card); }
.stepper-btn { width: 48px; height: 48px; border: 0; background: transparent; color: var(--ink); font-size: 22px; cursor: pointer; }
.stepper-btn:hover { background: var(--paper); }
.stepper-input { width: 56px; height: 48px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); background: transparent; color: var(--ink); text-align: center; font: 700 20px var(--slab); -moz-appearance: textfield; }
.stepper-input::-webkit-outer-spin-button, .stepper-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.total-strong { padding-top: 14px; border-top: 1.5px solid var(--ink); font-size: 19px; font-weight: 700; }

/* ---- checkout: the form on an index card, the order on a manila card ---- */
.checkout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; gap: 48px; }
.checkout-form { gap: 22px; }
.checkout-form .stepper-row { justify-content: flex-start; flex-direction: column; align-items: flex-start; gap: 6px; }
.summary, .manila-card { background: var(--manila); border: 1px solid var(--manila-edge); box-shadow: 10px 10px 0 var(--drawer); padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; gap: 16px; }
.summary { position: sticky; top: 24px; }
.summary-title { font-family: var(--slab); font-weight: 700; font-size: clamp(32px, 3vw, 40px); line-height: 1; padding-bottom: 16px; border-bottom: 1.5px solid var(--ink); }
.summary .total-row { padding-bottom: 12px; border-bottom: 1px solid var(--manila-rule); }
.summary .total-strong { border-top: 0; padding-top: 0; border-bottom: 0; }
.promo summary { font-weight: 700; font-size: 16px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; list-style: none; }
.promo summary::-webkit-details-marker { display: none; }
.promo p { margin-top: 8px; }
.summary-foot { padding-top: 16px; border-top: 1px solid var(--manila-rule); }
.manila-card .input { background: var(--card); }
@media (max-width: 860px) { .checkout { grid-template-columns: 1fr; } .summary { position: static; } }

/* ---- paid ---- */
.paid { gap: 20px; }
.paid-lede { max-width: none; }
.paid-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); align-items: center; gap: 48px; margin-top: 12px; }
.paid-tag { position: relative; padding-top: 40px; width: 100%; max-width: 560px; }
.paid-tag .tag { gap: 14px; }
.tag-code { font-family: var(--slab); font-weight: 700; font-size: clamp(32px, 3.6vw, 44px); letter-spacing: 0.03em; line-height: 1; }
.steps { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 10px; }
.sheet-foot { padding-top: 16px; border-top: 1px solid var(--line); }
.paid-links { display: flex; flex-wrap: wrap; gap: 8px 36px; margin-top: 20px; background: var(--paper); align-self: flex-start; }

/* ---- groups ---- */
.groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); align-items: start; gap: 56px; }
.groups-text { gap: 26px; }
.groups-text .sheet { gap: 10px; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 400px) { .field-pair { grid-template-columns: 1fr; } }

/* ---- FAQ ---- */
.faq-intro { max-width: none; }
.faq-layout { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); align-items: start; gap: 56px; margin-top: 24px; }
.faq-nav { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 14px; background: var(--paper); border: 2px solid var(--ink); padding: 26px 30px; font-size: 18px; font-weight: 500; }
.faq-nav a { text-underline-offset: 4px; }
.faq-main { display: flex; flex-direction: column; gap: 48px; }
.faq-section { display: flex; flex-direction: column; gap: 20px; scroll-margin-top: 16px; }
.faq-card { background: var(--card); border: 2px solid var(--ink); }
.faq-card details { padding: 20px 28px; border-top: 1px solid var(--line); }
.faq-card details:first-child { border-top: 0; }
.faq-card summary { font-family: var(--slab); font-weight: 700; font-size: 21px; cursor: pointer; }
.faq-card details p { margin-top: 12px; }
.stuck { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; background: var(--ranger); color: #fff; padding: clamp(24px, 3vw, 40px); border-radius: 4px; scroll-margin-top: 16px; }
.stuck .h3 { color: #fff; }
@media (max-width: 760px) { .faq-layout { grid-template-columns: 1fr; gap: 32px; } .faq-nav { position: static; } .faq-card details { padding: 18px 20px; } }

/* ---- forms ---- */
.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
.label { font-size: 16px; font-weight: 700; }
.input { min-height: 52px; padding: 10px 14px; border: 1.5px solid var(--ink); border-radius: var(--radius); background: var(--card); color: var(--ink); font: 400 17px/1.4 var(--sans); width: 100%; }
textarea.input { resize: vertical; }
.input[aria-invalid="true"], .is-invalid input { border: 2px solid var(--pencil); }
.help { font-size: 15px; color: var(--ink-2); }
.field-error { display: flex; gap: 6px; align-items: flex-start; color: var(--pencil); font-size: 15px; font-weight: 700; }
.field-error .ico { width: 18px; height: 18px; margin-top: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--ranger); flex: none; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.inline-form .input { flex: 1 1 200px; min-height: 46px; }
.inline-form .label { flex-basis: 100%; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; background: var(--card); border: 1.5px solid var(--ink); }
.notice-error { border: 2px solid var(--pencil); color: #6E1712; background: #FBEDEB; }
.notice-warm { background: var(--manila); border-color: var(--manila-edge); }

/* ---- tickets: a specimen tag tied to an index card ---- */
.ticket { display: flex; flex-wrap: wrap; align-items: stretch; background: var(--card); border: 2px solid var(--ink); }
.ticket-tag { flex: 0 0 230px; margin: 14px 0 14px 14px; }
.ticket-tag .tag-title { font-size: 30px; }
.ticket-main { flex: 1 1 300px; padding: 22px 26px; display: flex; flex-direction: column; gap: 14px; }
.code { font-family: var(--mono); font-size: clamp(26px, 3vw, 34px); font-weight: 600; letter-spacing: 0.06em; }
.ticket-facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px 16px; }
.ticket-facts dt { font-family: var(--slab); font-weight: 600; font-size: 16px; color: var(--ranger); }
.ticket-facts dd { margin: 2px 0 0; font-weight: 700; }
.ticket-wide { grid-column: 1 / -1; }
.order-card { padding: 24px 0; border-top: 2px solid var(--ink); display: flex; flex-direction: column; gap: 16px; }
.order-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.status { color: var(--ranger); }

/* ---- gift certificate (prints on one page) ---- */
.certificate { max-width: 680px; margin: 48px auto; padding: 72px 56px 48px; gap: 16px; }
.certificate::before { top: 26px; width: 24px; height: 24px; margin-left: -12px; }
.cert-for { font-family: var(--slab); font-weight: 600; font-size: 26px; color: var(--ranger); }
.cert-message { font-size: 22px; line-height: 1.45; }
.cert-from { font-size: 18px; font-weight: 700; }
.cert-code { padding: 16px 18px; border: 2px dashed var(--ink); background: var(--paper); }
.cert-small { font-size: 15px; line-height: 1.55; }
@media print {
  .site-header, .site-footer, .no-print, .skip { display: none !important; }
  body { background: #fff; }
  .certificate { margin: 0 auto; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---- admin ---- */
.is-admin .admin-table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--card); }
.is-admin .admin-table th, .is-admin .admin-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.is-admin .admin-scroll { overflow-x: auto; }
.is-admin .tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.is-admin .tabs .is-on { background: var(--ink); color: var(--paper); }
.is-admin pre { white-space: pre-wrap; background: var(--card); padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 14px; }
.is-admin #admin { background: var(--paper); }

@media (max-width: 640px) {
  body { font-size: 17px; }
  .section { padding-top: 48px; padding-bottom: 48px; }
  .hero { padding-top: 40px; padding-bottom: 48px; }
  .string { display: none; }
  .hero-tag { padding-top: 8px; }
  .tag { padding: 48px 22px 24px; }
  .aside { position: static; }
  .ticket-tag { flex-basis: 100%; margin: 14px 14px 0; }
  .certificate { padding: 64px 24px 32px; margin: 16px; }
  .gift-note { transform: none; }
  .tag-tilt { transform: rotate(-2deg); margin: 0 6px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
