/* Pocket Packer developer site: one stylesheet for every page. No build step, no web fonts,
   no external requests. Palette and "shipping label" look follow research/prototype-v2.html. */

:root {
  color-scheme: light dark;
  --bg: #E7EBEB; --surface: #F8FAF9; --ink: #141D24; --muted: #56636B; --line: #C8D0D2;
  --accent: #2347C5; --hi: #DCE3FB;
  --kraft: #C79E68; --kraft-dark: #AD8450; --kraft-ink: #3B2812; --kraft-line: rgba(59, 40, 18, .22);
  --tape: #EBC277; --tape-ink: #2B1D07; --stamp: #9E2A1F;
  --sky: #4B9FD6; --plum: #86499E; --rose: #D35C86; --orange: #E0742B; --green: #3F8A3A; --teal: #21827F;
  --f-display: "Avenir Next Condensed", "Bahnschrift", "Roboto Condensed", sans-serif-condensed, "Arial Narrow", system-ui, sans-serif;
  --f-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --cell: clamp(36px, 10vw, 58px);
  --gutter: max(16px, env(safe-area-inset-left, 0px));
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101518; --surface: #182026; --ink: #E4E9EB; --muted: #9AA7AE; --line: #2D3940;
    --accent: #8AA2FF; --hi: #1D2752;
    --kraft: #A57C4B; --kraft-dark: #86633A; --kraft-ink: #1E1308; --kraft-line: rgba(20, 10, 0, .3);
    --tape: #D9AE5E; --stamp: #F07A6E;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 var(--f-body);
  overflow-wrap: break-word;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

.skip {
  position: absolute; left: var(--gutter); top: -60px; z-index: 10;
  background: var(--surface); color: var(--ink); padding: 8px 12px; border: 1.5px solid var(--ink); border-radius: 6px;
}
.skip:focus { top: 12px; }

.wrap {
  max-width: 1040px; margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.eyebrow {
  font-family: var(--f-mono); font-size: 12px; font-weight: 500;
  letter-spacing: .09em; text-transform: uppercase; color: var(--muted);
}

/* Site header and footer */
.site-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 24px; padding-top: 18px; padding-bottom: 18px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none;
  font-family: var(--f-display); font-weight: 800; font-stretch: condensed;
  font-size: 22px; letter-spacing: .02em; text-transform: uppercase;
}
.brand-mark {
  width: 22px; height: 18px; background: var(--kraft); border-radius: 3px;
  box-shadow: inset 0 5px 0 var(--kraft-dark); position: relative; flex: none;
}
.brand-mark::after {
  content: ""; position: absolute; width: 8px; height: 8px; left: 7px; top: -6px;
  background: var(--accent); border-radius: 2px;
}
.site-nav ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 6px 0; display: inline-block; }
.site-nav a:hover { text-decoration: underline; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

.site-foot {
  width: min(1008px, calc(100% - 2 * var(--gutter))); padding-left: 0; padding-right: 0;
  border-top: 1px solid var(--line); margin-top: 64px; padding-top: 20px; padding-bottom: 40px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
  color: var(--muted); font-size: 14px;
}
.site-foot ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }

/* Landing page */
main { display: block; }
.home main { display: flex; flex-direction: column; gap: 56px; }
.label {
  background: var(--surface); border: 1.5px solid var(--ink); border-radius: 8px;
  padding: clamp(18px, 4vw, 32px); display: flex; flex-direction: column; gap: 20px;
}
.label-top {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-bottom: 12px; border-bottom: 1.5px dashed var(--line);
}
.barcode {
  flex: none; width: 140px; height: 28px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px,
    var(--ink) 8px 11px, transparent 11px 12px, var(--ink) 12px 13px, transparent 13px 17px);
}
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 32px; align-items: center; }
.hero-text { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.display {
  font-family: var(--f-display); font-weight: 800; font-stretch: condensed;
  text-transform: uppercase; letter-spacing: .005em; line-height: .88;
}
.hero h1 { font-size: clamp(54px, 12.5vw, 112px); }
.pitch { font-size: clamp(19px, 2.4vw, 23px); line-height: 1.4; max-width: 32ch; }
.stores { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.stores a, .stores .soon {
  display: inline-flex; flex-direction: column; justify-content: center; min-height: 52px;
  padding: 7px 16px 8px; border: 1.5px solid var(--ink); border-radius: 10px;
  color: var(--ink); text-decoration: none; line-height: 1.2; background: var(--bg);
}
.stores a:hover { background: var(--hi); }
.stores .soon { cursor: default; }
.stores small { font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.stores strong { font-size: 17px; font-weight: 600; }
.small { font-size: 14px; color: var(--muted); }

/* The illustration: one box with a gap, and the tray of three */
.scene { display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 0; }
.scene-art { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.box {
  background: var(--kraft); border-radius: 4px; padding: 10px 12px 12px;
  display: flex; flex-direction: column; gap: 8px;
  box-shadow: 0 2px 0 var(--kraft-dark), 0 14px 24px -16px rgba(0, 0, 0, .55);
}
.box-tag { font-family: var(--f-mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--kraft-ink); }
.box-grid {
  display: grid; grid-template-columns: repeat(4, var(--cell)); grid-template-rows: repeat(3, var(--cell));
  background: var(--kraft-dark);
}
.box-grid i { display: block; box-shadow: inset 0 0 0 .5px var(--kraft-line); }
.box-grid i.gap {
  background: repeating-linear-gradient(135deg, transparent 0 7px, rgba(255, 255, 255, .09) 7px 9px);
  box-shadow: inset 0 0 0 1px var(--kraft-line);
}
.sky { background: var(--sky); } .plum { background: var(--plum); } .rose { background: var(--rose); }
.orange { background: var(--orange); } .green { background: var(--green); } .teal { background: var(--teal); }
.box-grid i:not(.gap) { box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .18), inset 0 2px 0 rgba(255, 255, 255, .16); }
.tray { display: flex; gap: 10px; }
.slot {
  width: calc(var(--cell) * 1.55); aspect-ratio: 1; display: grid; place-items: center;
  border: 1.5px dashed var(--line); border-radius: 8px; background: var(--bg);
}
.slot.fits { border: 1.5px solid var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.slot.nofit .mini { opacity: .35; }
.mini { --m: calc(var(--cell) * .34); display: grid; gap: 2px; grid-auto-rows: var(--m); }
.mini.w1 { grid-template-columns: var(--m); }
.mini.w2 { grid-template-columns: repeat(2, var(--m)); }
.mini.w3 { grid-template-columns: repeat(3, var(--m)); }
.mini i { display: block; border-radius: 2px; }
.mini i.off { visibility: hidden; }
.scene figcaption { font-weight: 600; text-align: center; }

/* Sections on the landing page */
.section { display: flex; flex-direction: column; gap: 18px; }
.section h2, .doc h2 { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.2; font-weight: 600; letter-spacing: -.01em; }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; counter-reset: step; }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: 6px; border-top: 1.5px solid var(--ink); padding-top: 12px; min-width: 0; }
.steps li::before { content: counter(step); font-family: var(--f-display); font-weight: 800; font-size: 36px; line-height: 1; }
.steps h3 { font-size: 17px; font-weight: 600; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; max-width: 70ch; }
.card h2, .card h3 { margin-bottom: 6px; }
.prose { max-width: 66ch; }
.prose p + p { margin-top: 10px; }

/* Policy pages */
.doc { max-width: 74ch; }
.draft {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
  background: var(--tape); color: var(--tape-ink); padding: 10px 16px; border-radius: 4px;
}
.draft strong { font-family: var(--f-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.doc h1 { font-size: clamp(44px, 9vw, 72px); margin-top: 28px; }
.doc .meta { font-family: var(--f-mono); font-size: 13px; color: var(--muted); margin-top: 12px; }
.doc .intro { font-size: 18px; margin-top: 16px; }
.doc .summary { margin-top: 28px; }
.summary { background: var(--surface); border: 1.5px solid var(--ink); border-radius: 8px; padding: 18px 20px; margin-top: 24px; }
.summary h2 { font-size: 20px; margin-bottom: 8px; }
.toc { margin-top: 28px; }
.doc .toc h2 { font-size: 12px; font-weight: 500; letter-spacing: .09em; }
.toc ol { margin-top: 8px; padding-left: 22px; columns: 2; column-gap: 32px; }
.toc li { break-inside: avoid; padding: 2px 0; }
.doc .toc li + li { margin-top: 0; }
.doc section { margin-top: 40px; scroll-margin-top: 16px; }
.doc section > * + * { margin-top: 12px; }
.doc h3 { font-size: 17px; font-weight: 600; margin-top: 20px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.doc .summary ul li + li { margin-top: 4px; }
.review {
  border: 1.5px dashed var(--stamp); border-radius: 6px; padding: 10px 12px; font-size: 14px;
}
.review strong:first-child { color: var(--stamp); }

@media (max-width: 760px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .barcode { width: 90px; }
  .toc ol { columns: 1; }
  .home main { gap: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-nav, .skip, .toc { display: none; }
  body { background: #fff; color: #000; }
}
