:root {
  --dw-bg: #f6efe2; --dw-fg: #1c2340; --dw-accent: #c2412a; --dw-panel: rgba(28, 35, 64, .96);
  --dw-font-body: 'Manrope', system-ui, sans-serif;
  --serif: 'Fraunces', Georgia, serif; --mono: 'JetBrainsMono', ui-monospace, monospace;
  --paper: #fbf7ee; --ink: #1c2340; --line: rgba(28, 35, 64, .14); --wood: #8a5a2b;
  --act: #c8402a; --reply: #2c4fa3; --fyi: #b9850f; --ignore: #6c7480;
}
body { overflow-x: hidden; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.05; margin: 0 0 .45em; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4.6vw, 3.3rem); }
h3 { font-size: 1.25rem; }
section { padding: clamp(56px, 8vw, 110px) clamp(16px, 5vw, 64px); }
.sub { max-width: 60ch; font-size: 1.08rem; opacity: .85; }
.kicker { font-family: var(--mono); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--act); margin: 0 0 .9rem; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--ink); color: #fff; padding: .5em 1em; border-radius: 6px; }
.skip:focus { left: 8px; }
.dw-toast { --dw-fg: #f6efe2; color: #f6efe2; }
.dw-toast .dw-toast-k { color: #ffb59e; }

.t-act { color: var(--act); } .t-reply { color: var(--reply); } .t-fyi { color: var(--fyi); } .t-ignore { color: var(--ignore); }
.k-act { --k: var(--act); } .k-reply { --k: var(--reply); } .k-fyi { --k: var(--fyi); } .k-ignore { --k: var(--ignore); }
.tag { display: inline-block; font-family: var(--mono); font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff;
  background: var(--k, var(--ink)); padding: .25em .7em; border-radius: 3px; }

/* topbar */
.topbar { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 12px clamp(16px, 4vw, 40px); background: #f6efe2e6; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .55em; font-family: var(--serif); font-weight: 900; font-size: 1.3rem; color: var(--ink); text-decoration: none; }
.dots { display: inline-grid; grid-template-columns: repeat(2, 9px); gap: 3px; }
.dots i { width: 9px; height: 9px; border-radius: 2px; background: var(--k); }
.dots .c-act { --k: var(--act); } .dots .c-reply { --k: var(--reply); } .dots .c-fyi { --k: var(--fyi); } .dots .c-ignore { --k: var(--ignore); }
.topbar nav { display: flex; align-items: center; gap: 18px; font-size: .88rem; font-weight: 700; }
.topbar nav a { color: var(--ink); text-decoration: none; opacity: .75; }
.topbar nav a:hover { opacity: 1; color: var(--act); }
@media (max-width: 720px) { .topbar nav a { display: none; } }

/* hero */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding: 90px 0 40px; overflow: hidden; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 108%; object-fit: cover; object-position: 62% 50%; }
.hero-wash { position: absolute; inset: 0; background: linear-gradient(90deg, #f6efe2f7 0%, #f6efe2e8 34%, #f6efe266 58%, transparent 75%), linear-gradient(transparent 75%, #f6efe2 100%); }
.hero-copy { position: relative; z-index: 2; max-width: 640px; padding: 0 clamp(16px, 5vw, 64px); }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); font-weight: 900; }
.lede { font-size: clamp(1.05rem, 1.8vw, 1.2rem); max-width: 50ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }
.btn { display: inline-block; font-family: var(--mono); font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  color: var(--ink); border: 2px solid var(--ink); padding: .9em 1.3em; border-radius: 6px; background: transparent; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--act); border-color: var(--act); }
@media (max-width: 720px) {
  .hero { align-items: end; }
  .hero-art { object-position: 70% 50%; }
  .hero-wash { background: linear-gradient(180deg, #f6efe200 0%, #f6efe2cc 38%, #f6efe2 62%); }
}

/* hotspots */
.hs { position: absolute; z-index: 3; width: 8%; aspect-ratio: 1; border-radius: 50%; border: 2px dashed transparent; background: transparent; transition: border-color .3s, background .3s; }
.hs:hover, .hs:focus-visible { border-color: var(--act); background: #c8402a1f; }
.hs.is-found { border-color: #2c4fa366; }
.word-secret { text-decoration: underline dotted transparent; text-underline-offset: .12em; transition: text-decoration-color .3s, color .3s; }
.word-secret:hover, .word-secret:focus-visible { text-decoration-color: var(--act); color: #6b3a1c; }
.word-secret.is-found { color: #6b3a1c; }

/* chutes */
.chutes { max-width: 1200px; margin: 0 auto; }
.chute-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 2rem; }
.chute-card { background: var(--paper); border: 1px solid var(--line); border-top: 6px solid var(--k); border-radius: 8px; padding: 1.3rem 1.3rem 1rem; box-shadow: 0 10px 30px #1c234012; }
.chute-card h3 { margin-top: .8rem; }
.chute-card p { margin: 0; opacity: .82; }

/* sorter */
.sorter { background: var(--ink); color: var(--paper); --dw-fg: var(--paper); }
.sorter-head { max-width: 880px; margin: 0 auto 1.4rem; text-align: center; }
.sorter-head .kicker { color: #ffb59e; }
.sorter-head p { opacity: .85; }
kbd { font-family: var(--mono); font-size: .85em; border: 1px solid #ffffff40; border-bottom-width: 2px; border-radius: 4px; padding: 0 .35em; }
.persona { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 0 auto 1.4rem; }
.persona button { font: inherit; font-weight: 700; font-size: .9rem; padding: .6em 1.1em; border-radius: 999px; border: 1px solid #ffffff38; background: transparent; color: var(--paper); cursor: pointer; }
.persona button[aria-selected="true"] { background: var(--paper); color: var(--ink); }
.board { display: grid; grid-template-columns: minmax(280px, 1fr) 2fr; gap: 18px; max-width: 1280px; margin: 0 auto; align-items: start; }
@media (max-width: 980px) { .board { grid-template-columns: 1fr; } }
.tray { background: #252d52; border-radius: 12px; padding: 14px; border: 1px solid #ffffff1a; }
.tray-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.tray-head h3 { margin: 0; font-size: 1.2rem; }
.tray-head small { font-family: var(--mono); font-size: .75rem; opacity: .7; font-weight: 400; }
.levers { display: flex; gap: 8px; }
.lever { font-family: var(--mono); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; padding: .7em 1.1em; border-radius: 6px; border: 0; background: #ffb59e; color: var(--ink); cursor: pointer; }
.lever:hover { background: #fff; }
.lever.ghost { background: transparent; color: var(--paper); border: 1px solid #ffffff40; }
.lever[disabled] { opacity: .4; cursor: default; }
.bin ol:empty::after { content: 'empty chute'; font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; opacity: .35; }
@media (min-width: 981px) { .tray-list { max-height: 640px; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; } }
.tray-list, .bin ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tray-empty { margin: .4rem 0 0; font-family: var(--serif); font-style: italic; opacity: .8; }

.letter { position: relative; background: var(--paper); color: var(--ink); border-radius: 6px; padding: 10px 12px 10px 14px; border-left: 5px solid #d8cdb6;
  box-shadow: 0 2px 0 #00000022; font-size: .88rem; line-height: 1.35; outline-offset: 2px; }
.letter[data-guess] { border-left-color: var(--g); }
.letter .from { display: flex; justify-content: space-between; gap: 8px; font-weight: 800; }
.letter .from time { font-family: var(--mono); font-weight: 400; font-size: .72rem; opacity: .6; white-space: nowrap; }
.letter .subj { font-weight: 700; margin-top: 2px; }
.letter .snip { opacity: .7; font-size: .82rem; margin-top: 2px; }
.guess { display: flex; gap: 5px; margin-top: 8px; flex-wrap: wrap; }
.guess button { font-family: var(--mono); font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .35em .6em; border-radius: 3px;
  border: 1px solid var(--k); color: var(--k); background: transparent; cursor: pointer; }
.guess button[aria-pressed="true"] { background: var(--k); color: #fff; }
.bins { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 560px) { .bins { grid-template-columns: 1fr; } }
.bin { padding: 12px; border-radius: 12px; background: #ffffff0d; border: 1px solid #ffffff1a; border-top: 5px solid var(--k); min-height: 150px; }
.bin h4 { margin: 0 0 10px; display: flex; align-items: center; justify-content: space-between; }
.bin h4 small { font-family: var(--mono); font-size: .9rem; opacity: .8; }
.bin .letter { border-left-color: var(--k); cursor: pointer; }
.bin .letter .guess { display: none; }
.why { display: none; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); font-size: .82rem; }
.letter.is-open .why { display: block; }
.why .reason { margin: 0 0 6px; }
.why .reason b { color: var(--k); font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.why .draft { margin: 0; padding: 8px 10px; background: #2c4fa30f; border-left: 3px solid var(--reply); font-family: var(--serif); font-style: italic; white-space: pre-line; }
.why .draft-k { display: block; font-family: var(--mono); font-style: normal; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--reply); margin-bottom: 4px; }
.mark { position: absolute; top: 8px; right: 10px; font-family: var(--mono); font-size: .7rem; font-weight: 700; }
.mark.ok { color: #2e7d4f; } .mark.no { color: var(--act); }
.letter .mark + .from { padding-right: 70px; }
.dead-letter { margin-top: 10px; width: 100%; text-align: left; font: inherit; font-size: .8rem; color: #ffd27a; background: transparent; border: 1px dashed #ffd27a80; border-radius: 6px; padding: .5em .8em; cursor: pointer;
  animation: rattle 2.4s ease-in-out infinite; }
@keyframes rattle { 0%, 88%, 100% { transform: none; } 91% { transform: translateX(-2px) rotate(-.6deg); } 94% { transform: translateX(2px) rotate(.6deg); } }
.dead-letter.is-found { animation: none; opacity: .7; }
.verdict { margin: .8rem 0 0; font-size: .98rem; line-height: 1.5; }
.verdict:empty { display: none; }
@media (min-width: 981px) { .tray { position: sticky; top: 76px; } }
.fine { max-width: 760px; margin: .6rem auto 0; text-align: center; font-size: .82rem; opacity: .65; }

/* promise */
.promise { display: grid; place-items: center; }
.promise-paper { max-width: 700px; background: var(--paper); padding: clamp(24px, 4vw, 48px); border: 1px solid var(--line); box-shadow: 0 30px 70px #1c234024; transform: rotate(-.8deg);
  background-image: repeating-linear-gradient(transparent 0 31px, #2c4fa314 31px 32px); }
.stamp { display: inline-block; color: var(--act); border: 2px solid var(--act); padding: .2em .7em; font-family: var(--mono); text-transform: uppercase; letter-spacing: .2em; font-size: .72rem; transform: rotate(-3deg); }
.promise-paper ol { padding-left: 1.2em; font-size: 1.05rem; }
.promise-paper li { margin: .6em 0; }
.sig { font-family: var(--serif); font-style: italic; text-align: right; margin-bottom: 0; }

/* back room */
.backroom { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 4vw, 56px); align-items: center; max-width: 1200px; margin: 0 auto; }
@media (max-width: 880px) { .backroom { grid-template-columns: 1fr; } .backroom .art { order: -1; } }
.art { position: relative; margin: 0; border-radius: 10px; overflow: hidden; box-shadow: 0 30px 80px #1c234033; }
.art img { width: 100%; height: auto; }
.hs-cat { left: 6%; top: 8%; width: 26%; aspect-ratio: 1.6; border-radius: 40%; }
.hs-plane { left: 67%; top: 5%; width: 25%; aspect-ratio: 2; border-radius: 40%; }
.hs-seal { left: 42%; top: 46%; width: 15%; }
.hs-bell { left: 67%; top: 38%; width: 12%; aspect-ratio: .8; }
.hs-twine { left: 66%; top: 76%; width: 15%; }
.found { font-family: var(--mono); font-size: .88rem; }
.reward { padding: 1rem 1.2rem; border: 2px solid var(--fyi); border-radius: 8px; background: #b9850f14; }
.reward p { margin: 0; }
.journal { padding-left: 1.2em; font-size: .95rem; }
.journal li { margin: .5em 0; }

/* rule card */
.rulecard-wrap { display: grid; justify-items: center; gap: 18px; background: linear-gradient(#f6efe2, #efe4cf); }
.rulecard { max-width: 640px; width: 100%; background: #fffdf8; border: 2px solid var(--ink); border-radius: 4px; padding: clamp(22px, 4vw, 40px); box-shadow: 10px 10px 0 var(--ink); }
.rules { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 12px; }
.rules li { display: grid; grid-template-columns: 74px 1fr; gap: 12px; align-items: baseline; font-size: 1.02rem; }
.rules .tag { text-align: center; }
.rule-foot { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; opacity: .55; margin: 0; text-align: right; }

/* install + pricing */
.install { max-width: 1180px; margin: 0 auto; text-align: center; }
.install .sub { margin: 0 auto; }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 2rem 0; }
.tier { display: grid; gap: .5rem; align-content: start; text-align: left; font: inherit; color: var(--ink); background: var(--paper); border: 2px solid var(--line); border-radius: 10px; padding: 1.4rem; cursor: pointer;
  transition: border-color .2s, transform .2s, box-shadow .2s; }
.tier:hover, .tier:focus-visible { border-color: var(--ink); transform: translateY(-3px); box-shadow: 0 16px 36px #1c234022; }
.tier-hot { border-color: var(--act); }
.tier-k { font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--act); font-weight: 700; }
.tier-p { font-family: var(--serif); font-size: 2.4rem; font-weight: 900; line-height: 1; }
.tier-p small { font-size: .9rem; font-weight: 700; }
.tier-d { font-size: .95rem; opacity: .85; }
.live { display: grid; gap: 14px; justify-items: center; max-width: 720px; margin: 0 auto; padding: 1.4rem; border: 1px dashed var(--ink); border-radius: 10px; }
.live p { margin: 0; }

/* opt-in */
.dibs { display: grid; justify-items: center; text-align: center; background: var(--ink); color: var(--paper); --dw-fg: var(--paper); --dw-bg: var(--ink); --dw-accent: #ffb59e; }
.dibs .dw-optin { text-align: left; width: 100%; }
.dibs input[type=email] { background: #ffffff10; }
.offer-note { margin: 0; color: #ffb59e; font-family: var(--mono); font-size: .85rem; }

/* footer */
.foot { padding: 34px 16px 10px; text-align: center; border-top: 1px solid var(--line); display: grid; justify-items: center; gap: 4px; }
.more { font-size: .92rem; margin: 0; }
.more a { color: var(--ink); font-weight: 700; }
.postmark { width: 56px; height: 56px; padding: 0; margin-top: 14px; border: 0; background: transparent; color: var(--act); opacity: .55; transform: rotate(-12deg); }
.postmark:hover, .postmark:focus-visible, .postmark.is-found { opacity: 1; }
.postmark svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; }

@media print {
  body * { visibility: hidden; }
  .rulecard, .rulecard * { visibility: visible; }
  .rulecard { position: absolute; left: 0; top: 0; box-shadow: none; }
  .topbar, .dw-toast { display: none; }
}
@media (prefers-reduced-motion: reduce) { .dead-letter { animation: none; } }
