/* Minimal storefront: off-white ground, black type, one grotesque, mono labels, pill buttons. */
:root {
  --bg: #FAFAF8; --panel: #F0EEE8; --ink: #111110; --muted: #6B6A66; --line: #DDDBD5; --alert: #A3341A;
  --sans: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.wrap { max-width: 1320px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }

h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -.035em; line-height: 1; }
.tag, .meta, .small, label, .price, .langs, .sold { font-family: var(--mono); font-size: 12px; letter-spacing: .03em; text-transform: uppercase; }
.tag { margin: 0; color: var(--muted); }
.lead { margin: 0; max-width: 36ch; font-size: 18px; line-height: 1.45; color: var(--muted); }
.logo { display: inline-block; font: 900 26px/1 Archivo, "Arial Narrow", sans-serif; font-stretch: 78%; text-transform: uppercase; letter-spacing: -.01em; text-decoration: none; transform: skewX(-6deg); }

/* header */
.top { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.top nav { display: flex; align-items: center; gap: 20px; }
.langs { display: flex; gap: 2px; }
.langs a { padding: 10px 6px; text-decoration: none; color: var(--muted); }
.langs a[aria-current] { color: var(--ink); }
.bag-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 6px 0 16px; background: none; border: 1px solid var(--ink); border-radius: 999px; font-weight: 500; cursor: pointer; }
.bag-btn b { min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; background: var(--ink); color: var(--bg); font: 500 12px/28px var(--mono); text-align: center; }
.bag-btn:hover { background: var(--panel); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px; background: var(--ink); color: var(--bg); border: 1px solid var(--ink); border-radius: 999px; font-weight: 500; text-decoration: none; cursor: pointer; transition: background .15s, color .15s; }
.btn::first-letter { text-transform: uppercase; }
.btn:hover { background: var(--bg); color: var(--ink); }
.btn.wide { width: 100%; }
.btn.ghost { background: none; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); }
.btn[disabled] { opacity: .55; cursor: progress; }

/* hero */
.hero { padding: 88px 0 112px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: end; }
.hero .tag { margin-bottom: 28px; }
.hero h1 { font-size: clamp(52px, 8.6vw, 128px); line-height: .95; letter-spacing: -.045em; margin-bottom: 52px; }
.hero .lead { margin-bottom: 32px; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* catalog */
.shop { padding-bottom: 112px; }
.drop-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 20px 0 32px; border-top: 1px solid var(--ink); }
.drop-head h2 { font-size: clamp(28px, 3.6vw, 44px); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 56px 20px; margin-bottom: 96px; }
.grid:last-child { margin-bottom: 0; }
.card { min-width: 0; }
.turn { display: block; position: relative; width: 100%; aspect-ratio: 4 / 5; padding: 0; border: 0; background: var(--panel); overflow: hidden; cursor: pointer; }
div.turn { cursor: default; }
.face { position: absolute; inset: 0; display: grid; place-items: center; }
.face img { width: 100%; height: 100%; object-fit: cover; }
.face.b { opacity: 0; transition: opacity .35s ease; }
.turn.is-turned .face.b { opacity: 1; }
@media (hover: hover) { .turn:hover .face.b { opacity: 1; } }
.soon { font: 12px var(--mono); text-transform: uppercase; color: var(--muted); }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 16px; }
.card-head h3 { font-size: 18px; letter-spacing: -.015em; line-height: 1.2; }
.card-head h3::first-letter { text-transform: uppercase; }
.price { white-space: nowrap; font-size: 13px; }
.meta { margin: 6px 0 16px; color: var(--muted); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.pill { min-width: 44px; height: 44px; padding: 0 12px; background: none; border: 1px solid var(--line); border-radius: 999px; font: 500 12px var(--mono); cursor: pointer; }
.pill:hover { border-color: var(--ink); }
.pill:disabled { color: var(--muted); text-decoration: line-through; opacity: .5; cursor: not-allowed; border-color: var(--line); }
.pill[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.sold { margin: 0; padding: 14px 0; border-top: 1px solid var(--line); color: var(--muted); }
.error { margin: 10px 0 0; color: var(--alert); font-size: 14px; font-weight: 500; }

/* how it works */
.how { background: var(--panel); padding: 56px 0; }
.how ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.how li { font-size: 22px; font-weight: 500; letter-spacing: -.02em; line-height: 1.2; }
.how li::first-letter { text-transform: uppercase; }
.how b { font: 400 12px var(--mono); }

/* footer */
.foot { padding: 32px 0 calc(32px + env(safe-area-inset-bottom, 0px)); }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; font: 12px var(--mono); text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.foot .logo { font-size: 20px; color: var(--ink); margin-right: auto; }

/* bag drawer */
.scrim { position: fixed; inset: 0; z-index: 9; background: rgba(17, 17, 16, .35); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 10; width: min(440px, 100%); overflow-y: auto; background: var(--bg); padding: calc(20px + env(safe-area-inset-top, 0px)) max(24px, env(safe-area-inset-right, 0px)) calc(28px + env(safe-area-inset-bottom, 0px)) 24px; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.drawer-head h2 { font-size: 28px; }
.drawer-head h2::first-letter, .done h3::first-letter { text-transform: uppercase; }
.x { width: 40px; height: 40px; background: none; border: 1px solid var(--line); border-radius: 999px; font-size: 20px; line-height: 1; cursor: pointer; }
.x:hover { border-color: var(--ink); }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.line img, .line .nophoto { width: 64px; height: 80px; object-fit: cover; background: var(--panel); }
.line h4 { margin: 0 0 2px; font-size: 15px; font-weight: 500; line-height: 1.25; }
.line h4::first-letter { text-transform: uppercase; }
.line p { margin: 0; font: 12px var(--mono); text-transform: uppercase; color: var(--muted); }
.line .rm { margin-top: 4px; padding: 4px 0; background: none; border: 0; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; color: var(--muted); }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty button { width: 36px; height: 36px; background: none; border: 0; border-radius: 999px; font-size: 16px; cursor: pointer; }
.qty button:hover { background: var(--panel); }
.qty span { min-width: 20px; text-align: center; font: 500 13px var(--mono); }
.total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 24px; padding: 18px 0; border-top: 1px solid var(--ink); font-size: 20px; font-weight: 500; }
label { display: block; margin-bottom: 14px; color: var(--muted); }
input { display: block; width: 100%; height: 48px; margin-top: 6px; padding: 0 14px; background: #fff; border: 1px solid var(--line); border-radius: 8px; font: 16px var(--sans); text-transform: none; letter-spacing: 0; color: var(--ink); }
input:focus { border-color: var(--ink); outline: none; }
.drawer form .btn { margin-top: 6px; }
.small { margin: 14px 0 0; color: var(--muted); line-height: 1.6; text-transform: none; letter-spacing: 0; font-family: var(--sans); font-size: 13px; }
.done h3 { font-size: 36px; margin: 16px 0 14px; }
.done h3 { margin-top: 0; }
.done .lead { margin-bottom: 16px; max-width: none; }
.done .lead b { color: var(--ink); font: 500 16px var(--mono); }
.account { margin: 0 0 20px; padding: 16px; background: var(--panel); border-radius: 8px; font: 14px/1.7 var(--mono); white-space: pre-line; overflow-wrap: anywhere; user-select: all; }
.done .btn { margin-top: 12px; }
.done .btn + .btn { margin-top: 10px; }

/* handwriting and pen sketches */
.hand { font-family: "Covered By Your Grace", "Bradley Hand", "Segoe Print", cursive; font-weight: 400; letter-spacing: .01em; text-transform: none; }
.doodle { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.hero h1 .hand { position: relative; display: inline-block; font-size: 1.22em; line-height: .8; transform: rotate(-3deg); transform-origin: left bottom; margin-top: .1em; }
.underline { position: absolute; left: -1%; bottom: -.22em; width: 102%; height: .26em; stroke-width: 3; }
.hero-photo { position: relative; }
.star { position: absolute; top: -26px; left: -26px; width: 56px; height: 56px; transform: rotate(-12deg); }
.note { position: absolute; right: 8px; bottom: -40px; margin: 0; font-size: 26px; line-height: 1; transform: rotate(-4deg); }
.hint { display: flex; justify-content: flex-end; align-items: flex-start; gap: 10px; margin: 0 0 6px; font-size: 26px; line-height: 1; color: var(--ink); }
.hint span { transform: rotate(-2deg); }
.arrow { width: 44px; height: 34px; margin-top: 8px; }
.how b { position: relative; display: grid; place-items: center; width: 54px; height: 38px; margin: 0 0 12px -8px; color: var(--ink); }
.ring { position: absolute; inset: 0; width: 100%; height: 100%; stroke-width: 2; }
.how .hand { display: inline-block; margin-left: 6px; font-size: 1.25em; line-height: .8; transform: rotate(-4deg); }
.foot .hand { font-size: 22px; color: var(--ink); text-transform: none; letter-spacing: 0; transform: rotate(-2deg); }

@media (max-width: 800px) {
  .star { left: -10px; width: 44px; height: 44px; }
  .hint { font-size: 22px; }
  .hero { padding: 48px 0 72px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .shop { padding-bottom: 72px; }
  .how ol { grid-template-columns: 1fr; gap: 28px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 12px; }
  .card-head { flex-direction: column; gap: 4px; }
  .pill { min-width: 40px; padding: 0 8px; }
}
@media (max-width: 440px) { .grid { grid-template-columns: 1fr; } .card-head { flex-direction: row; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .face.b, .btn { transition: none; } }
