:root {
  color-scheme: light;
  --ink: #123327;
  --dark: #123729;
  --paper: #f8f0e1;
  --cream: #fffaed;
  --line: #d5c5aa;
  --muted: #435d50;
  --gold: #8b5d2f;
  --wine: #8c2c36;
  --serif: Georgia, "Times New Roman", serif;
  font: 16px/1.55 "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 1rem; }
body { margin: 0; color: var(--ink); background: radial-gradient(ellipse at 17% 19%, #fffaee 0, transparent 57%), radial-gradient(ellipse at 96% 83%, #d9b98748 0, transparent 52%), repeating-linear-gradient(145deg, #74472409 0 1px, transparent 1px 5px), var(--paper); min-height: 100svh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: inherit; text-underline-offset: .17em; }
button, input, select, textarea { font: inherit; color: inherit; }
button, summary { cursor: pointer; }
button:disabled { opacity: .64; cursor: wait; }
input, select, textarea { width: 100%; min-height: 2.8rem; padding: .65rem .8rem; border: 1px solid #89795f; background: #fffaf4; border-radius: .55rem; }
textarea { resize: vertical; }
label { display: block; font-weight: 650; }
label > input:not([type="checkbox"]), label > select, label > textarea { display: block; margin-top: .28rem; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 6vw, 5rem); margin: 0 0 1rem; letter-spacing: -.05em; }
h2 { font-size: clamp(1.65rem, 3.5vw, 2.75rem); margin-top: 0; margin-bottom: .65rem; letter-spacing: -.035em; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.78rem); margin-top: 0; margin-bottom: .5rem; }
p { margin-top: 0; }
small { font-size: .85rem; }
:focus-visible { outline: .18rem solid #a53645; outline-offset: .2rem; }
.skip-link { position: fixed; z-index: 10; top: -8rem; left: 1rem; background: var(--cream); padding: .6rem; }
.skip-link:focus { top: 1rem; }
[hidden] { display: none !important; }
.wrap { max-width: 91rem; width: calc(100% - clamp(2rem, 7vw, 7.6rem)); margin-inline: auto; }
.site-header { border-bottom: 1px solid #a98d624b; background: #f8eddae8; }
.nav { min-height: 5.6rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; }
.nav nav, .footer nav { display: flex; gap: clamp(.55rem, 2.85vw, 3.3rem); flex-wrap: wrap; justify-content: flex-end; }
.nav nav a, .footer nav a { text-decoration: none; font-weight: 650; }
.nav nav a:hover, .footer nav a:hover { text-decoration: underline; }
.brand { display: inline-flex; gap: .62rem; align-items: center; font: 700 clamp(1.48rem, 3.4vw, 2.75rem)/1 var(--serif); letter-spacing: -.035em; text-decoration: none; white-space: nowrap; }
.brand span { display: inline-grid; place-items: center; width: 3.8rem; height: 3.55rem; border-radius: 46% 48% 45% 41%; transform: rotate(-9deg); background: radial-gradient(circle, #ac5154 11%, #78242e 62%, #a04343 71%); border: .17rem solid #65252b; box-shadow: 0 .14rem .18rem #61341f60, inset 0 0 0 .18rem #c77a626b, inset 0 0 0 .39rem #531f27aa; color: #f6e1b2; font: 2rem/1 var(--serif); }
.demo-banner { background: #eee4d2; color: #402829; border-bottom: 1px solid var(--line); font-size: .78rem; padding: .31rem max(1rem, 3.5vw); }
.hero { display: grid; grid-template-columns: minmax(0,.94fr) minmax(0,1.39fr); gap: clamp(1.6rem, 3.4vw, 3.6rem); align-items: center; padding-block: clamp(1.7rem, 3.4vw, 3.2rem) 2.25rem; }
.hero-copy h1 { font-size: clamp(2.35rem, 3.95vw, 4.55rem); text-wrap: initial; }
.intro { font-size: clamp(1.01rem, 1.9vw, 1.55rem); line-height: 1.45; max-width: 35ch; margin-bottom: 1.45rem; }
.eyebrow { color: var(--muted); font-size: .87rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 .8rem; }
.eyebrow span { margin-left: .4rem; color: var(--gold); }
.hero .eyebrow { font-family: var(--serif); font-size: clamp(.9rem, 1.75vw, 1.26rem); }
.button { appearance: none; display: inline-flex; min-height: 2.8rem; padding: .56rem 1.1rem; border-radius: .65rem; align-items: center; justify-content: center; border: 1px solid transparent; font-size: 1rem; font-weight: 730; text-decoration: none; text-align: center; }
.button.primary { background: linear-gradient(145deg, #1b4936, #0d3125 70%); color: #fffaf0; box-shadow: inset 0 1px 0 #ffffff2d; }
.button.primary:hover { background: #235441; }
.button.secondary { color: var(--dark); background: #fff8ec; border-color: #345849; }
.button.secondary:hover { background: #e0e7d8; }
.hero-copy > .button { width: 100%; padding-block: .8rem; font: 700 clamp(1.14rem, 2.1vw, 1.8rem)/1.25 var(--serif); }
.free-line { margin: .5rem 0 1.4rem; text-align: center; color: var(--muted); font-size: .9rem; }
.hero-code { padding: .75rem 0 0; border-top: 1px solid #a98d625e; }
.hero-code h2 { font-size: clamp(1.2rem, 2.2vw, 1.7rem); margin-bottom: .65rem; }
.hero-code form > label { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
.inline { display: flex; gap: .55rem; align-items: center; }
.inline input, .inline select { flex: 1; min-width: 0; }
.feedback { margin: .4rem 0 0; color: #822430; min-height: .1rem; overflow-wrap: anywhere; font-size: .91rem; }
.feedback:empty { margin: 0; }
.demo-panel, .calendar-panel { position: relative; overflow: hidden; padding: clamp(.9rem, 2.25vw, 2.4rem); color: #fff3d5; border-radius: 1.25rem; border: 2px solid #b19155; background: radial-gradient(ellipse at 8% 4%, #335537 0, transparent 43%), radial-gradient(ellipse at 85% 94%, #2a4e38 0, transparent 48%), repeating-linear-gradient(135deg, #d7cf8a0a 0 1px, transparent 1px 4px), #143a2c; box-shadow: 0 .55rem 1.1rem #50331738, inset 0 0 0 3px #f4d68e44; }
.demo-panel::before { position: absolute; content: ""; display: block; top: 0; left: 0; width: min(31%, 13rem); height: 26%; pointer-events: none; background: url('/pine-corner.png') left top / contain no-repeat; }
.demo-title { display: flex; align-items: center; justify-content: center; gap: clamp(.2rem, 1.5vw, 1.25rem); margin-bottom: clamp(.65rem, 1.9vw, 1.5rem); position: relative; }
.demo-title h2 { margin: 0; font-size: clamp(1.3rem, 3.2vw, 2.88rem); }
.demo-title span { color: #eed392; }
.door-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: clamp(.45rem, 1.05vw, .95rem); }
.envelope { --env: #ebd6af; --fold: #f6e8ca; --edge: #ac8964; position: relative; isolation: isolate; border: 1px solid var(--edge); border-radius: .35rem; aspect-ratio: 1.36; width: 100%; padding: 0; color: #1d2116; background: linear-gradient(145deg,#ffffff32,#5f251125), repeating-linear-gradient(132deg,#50200b10 0 1px,transparent 1px 3px), var(--env); box-shadow: 0 .23rem .26rem #0007,inset 0 0 .75rem #43271143; overflow: hidden; }
.demo-grid .envelope:nth-child(3n+2) { --env: #b4be94; --fold: #ced5af; --edge: #858f70; }
.demo-grid .envelope:nth-child(3n+3) { --env: #b55e5e; --fold: #ca7771; --edge: #88413f; }
.envelope::before, .envelope::after { position: absolute; content: ''; inset: 0; z-index: -1; }
.envelope::before { background: repeating-linear-gradient(130deg,#180d0711 0 1px,transparent 1px 3px), linear-gradient(148deg,#ffffff35,#7a43121d),var(--fold); clip-path: polygon(0 0,100% 0,52% 64%,48% 64%); }
.envelope::after { background: linear-gradient(90deg,#8555224d,#ffedc64a,#85552240); clip-path: polygon(0 100%,46% 39%,50% 48%,54% 39%,100% 100%,0 100%,0 97%,47% 38%,50% 46%,53% 38%,100% 97%,100% 100%); }
.envelope span { position: absolute; top: 10%; inset-inline: 0; text-align: center; font: 700 clamp(.88rem, 2.25vw, 2.35rem)/1 var(--serif); }
.envelope i { display: grid; position: absolute; place-items: center; top: 58%; left: 50%; transform: translateX(-50%) rotate(-8deg); width: 27%; aspect-ratio: 1; border-radius: 46%; background: radial-gradient(circle,#b1524f 8%,#70242b 70%,#9a3f44 72%); border: 1px solid #6e3328; box-shadow: 0 .12rem .18rem #432b176e; color: #fff1c2; font: 600 clamp(.5rem,1.45vw,1.15rem)/1 var(--serif); }
.envelope:hover { transform: translateY(-2px); border-color: #fcdf95; }
.envelope.unsealed { background: linear-gradient(155deg,#fdf0ca,#d2b18c); border-color: #e2d29e; }
.envelope.unsealed::before { inset: 10% 9% 14%; background: repeating-linear-gradient(0deg,#f8efdb 0 9%,#b1956c 10%,#f8efdb 11% 16%); clip-path: polygon(0 0,100% 4%,96% 89%,4% 94%); transform: rotate(-8deg); box-shadow: 0 .3rem .4rem #7c4c25; }
.envelope.unsealed::after { clip-path: polygon(0 18%,49% 65%,100% 20%,100% 100%,0 100%); background: #e9d3a9; }
.envelope.unsealed span { top: 52%; }
.envelope.unsealed i { display: none; }
.link-light { display: block; margin: .8rem auto 0; background: transparent; padding: .25rem; color: #ffefcc; border: 0; text-decoration: underline; text-underline-offset: .25em; font-weight: 650; }
.section { padding-block: clamp(2rem, 5vw, 4.2rem); border-top: 1px solid #a98d6270; }
.section > h2, .section-head, .center, .final-call, .calendar-heading { text-align: center; }
.section-head { margin: 0 auto 1.25rem; max-width: 45rem; }
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; margin-top: 1.4rem; }
.steps article { position: relative; padding: .2rem 1.2rem .1rem clamp(2.3rem, 5vw, 4.7rem); }
.steps article + article { border-left: 1px solid #a98d6260; }
.steps article span { position: absolute; top: -.1rem; left: .45rem; color: #995c31; font: 700 clamp(1.4rem,3.3vw,3rem)/1 var(--serif); }
.steps article p { margin-bottom: 0; }
.offers { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.panel { padding: clamp(.95rem, 2.15vw, 1.55rem); border: 1px solid #ad9b7a; border-radius: .76rem; background: #fffaf0d8; box-shadow: 0 .2rem .35rem #6f481617; }
.offer { display: flex; flex-direction: column; align-items: flex-start; }
.offer-mark { color: #935c34; font-size: 1.9rem; }
.offer dl { margin: .2rem 0 1.15rem; width: 100%; }
.offer dl div { display: flex; justify-content: space-between; gap: .25rem; border-bottom: 1px solid var(--line); padding-block: .4rem; }
.offer dt, .offer dd { margin: 0; }
.offer dd { font-weight: 700; }
.offer .button { margin-top: auto; }
.offer-price { font: 700 1.8rem/1.15 var(--serif); margin: .2rem 0 1rem; }
.offer-price small { font: 500 .86rem/1.3 system-ui,sans-serif; }
.gold-paper { background: repeating-linear-gradient(146deg,#ffffff3a 0 2px,transparent 2px 5px),linear-gradient(145deg,#fff7dd,#e6c976 70%,#f8e4ac); }
.help-grid, .support-tools { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.15fr); gap: clamp(.9rem, 3vw, 2.25rem); }
.tool-list, .list { display: grid; gap: .65rem; }
.tool { display: flex; align-items: center; justify-content: space-between; gap: .8rem; width: 100%; text-align: left; text-decoration: none; }
.tool > div { flex: 1; }
.tool > strong { flex: 1; }
.tool > span { color: #925727; font-size: 1.6rem; }
.tool:hover { background: #e8efdc; }
.tool small, .order small { display: block; color: var(--muted); }
.accordion details, .form-stack details { border: 1px solid #ad9b7a; border-radius: .55rem; background: #fffaf1dc; margin-bottom: .45rem; }
.accordion summary, .form-stack summary { padding: .66rem .85rem; font-weight: 750; }
.accordion details[open] summary { background: #e3e8d4; border-radius: .55rem .55rem 0 0; }
.accordion details > div, .form-stack details > div { padding: .65rem .85rem; }
.accordion p { margin: 0; }
.accordion p + a { display: inline-block; margin-top: .45rem; }
.narrow { max-width: 43rem; padding-block: 2.7rem; }
.narrow h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); }
.narrow > .panel + .panel, .narrow > .panel + h2, .narrow > section + section { margin-top: 1rem; }
.page-guide { margin: 1.5rem auto 0; max-width: 43rem; }
.page-guide h2 { font-size: clamp(1.25rem, 2.4vw, 1.65rem); }
.code-page .intro { max-width: none; }
.code-page .code-form { max-width: 33rem; margin-bottom: 1.4rem; }
.support-page, .standalone { padding-block: 2.6rem; }
.standalone > .center { margin-top: 1.4rem; }
.support-tools { margin-top: 2rem; }
.support-tools form { display: grid; gap: .55rem; }
.support-tools form .button { justify-self: start; }
#recovery > a { display: inline-block; margin-top: .75rem; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: .9rem 1.5rem; padding-block: 1.45rem; }
footer { color: #fff6df; background: #153a2a; }
.footer .brand { font-size: 1.5rem; }
.footer nav { gap: .5rem 1.35rem; }
.paper-icon { background: linear-gradient(145deg,#fff3d9,#ddbd83); border: 1px solid #b49b6c; display: grid; place-items: center; width: 3.9rem; height: 3.2rem; border-radius: .55rem; box-shadow: .06rem .15rem .3rem #6747203c; color: #84412d; font-size: 1.85rem; margin: 0 0 .85rem; }
.form-stack { display: grid; gap: .8rem; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 750; margin-bottom: .25rem; }
.choices { display: flex; gap: .6rem; }
.choices label { position: relative; flex: 1; cursor: pointer; }
.choices input { position: absolute; opacity: 0; margin: 0; inset: 0; cursor: pointer; }
.choices span { display: block; height: 100%; padding: .55rem .38rem; background: #f9f2e1; border: 1px solid #ad9b7a; border-radius: .55rem; text-align: center; }
.choices small { display: block; font-weight: 500; }
.choices input:checked + span { border-color: #234b3a; box-shadow: inset 0 0 0 1px #234b3a; background: #dce8d4; }
.choices input:focus-visible + span { outline: 2px solid #a53645; outline-offset: 2px; }
.themes span { padding: .35rem .3rem; }
.themes b { display: block; font-size: 1.5rem; color: #a65d38; }
.stamps span { font-size: 1.2rem; padding: .36rem .27rem; }
.theme-snow { background-color: #eff0e2 !important; color: #213e37 !important; }
.theme-berry { background-color: #792f3b !important; color: #fbf1df !important; }
.themes .theme-berry b { color: #ffd999; }
.checkbox { display: flex; gap: .55rem; align-items: center; font-size: .94rem; }
.checkbox input { display: inline-block; width: 1.15rem; height: 1.15rem; min-height: 0; accent-color: var(--dark); }
.calendar-heading { padding-block: 2.5rem 1rem; }
.calendar-heading h1 { font-size: clamp(2.6rem,6vw,4.6rem); }
.calendar-heading progress { accent-color: #24553b; width: min(100%,18rem); margin: .1rem auto .55rem; }
.progress-label { font-size: .94rem; font-weight: 750; }
.action-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.calendar-heading .action-bar, .after-actions { justify-content: center; }
.calendar-panel { max-width: 58rem; margin-inline: auto; }
.calendar-grid { max-width: 53rem; margin: auto; }
.door-wrap small { display: block; text-align: center; padding-top: .15rem; }
.calendar-grid .envelope.empty { filter: saturate(.65); }
.calendar-grid .envelope.filled { --env:#aebd90; --fold:#d4dcab; }
.calendar-grid .envelope.today { outline: 2px solid #fbe6a7; outline-offset: 2px; }
.calendar-grid .envelope.today.filled { --env:#b55e5e; --fold:#ca7771; }
.calendar-panel.is-gold .envelope { --env:#d5a949; --fold:#f0cf7c; --edge:#edc66c; }
.gold-tag { display: inline-block; background: #f1d894; color: #41280d; padding: .24rem .7rem; margin-bottom: .6rem; border-radius: 99rem; }
.calendar-after { max-width: 58rem; margin: .7rem auto; display: flex; justify-content: space-between; gap: .45rem 1rem; flex-wrap: wrap; color: var(--muted); font-size: .88rem; }
.after-actions { margin-bottom: 1.25rem; }
.modal-inner { position: relative; padding: clamp(1rem,3vw,1.8rem); }
dialog { width: min(34rem,calc(100% - 1.4rem)); max-height: 94svh; margin: auto; padding: 0; border: 1px solid #af9465; border-radius: .85rem; background: var(--cream); color: var(--ink); box-shadow: 0 1rem 4rem #131c1465; }
dialog::backdrop { background: #10241cb3; }
dialog .close-button { position: absolute; z-index: 1; top: .6rem; right: .6rem; border: 1px solid #aa956f; background: #f8eedc; font-size: 1.32rem; width: 2rem; height: 2rem; border-radius: 100%; text-align: center; line-height: 1; }
dialog h2 { margin-right: .8rem; }
.sample-reveal { text-align: center; }
.letter { margin: .6rem 0 1rem; padding: 1rem; background: radial-gradient(ellipse at top,#fff5de,#efe0bf); border: .16rem solid #b19155; border-radius: .5rem; box-shadow: inset 0 0 0 .28rem #d9b17c41; animation: reveal 250ms ease-out; overflow-wrap: anywhere; }
.letter.gold-paper { animation: golden 550ms ease-out; }
@keyframes reveal { from { opacity: 0; transform: translateY(8px) scale(.97); } }
@keyframes golden { from { filter: brightness(1.6); transform: scale(.93); } }
.letter blockquote { font: italic 1.4rem/1.5 var(--serif); color: #5a2e22; margin: .2rem 0 .65rem; white-space: pre-wrap; }
.letter-star { color: #8b6331; font: 700 1.8rem var(--serif); }
.audio + .audio { margin-top: .65rem; }
audio { display: block; width: 100%; margin: .35rem 0; }
.text-button { border: 0; background: transparent; padding: .25rem 0; font-weight: 650; color: var(--dark); text-decoration: underline; }
.note-wallet { justify-content: space-between; font-size: .88rem; }
.muted { color: var(--muted); }
.invite-code { margin: .75rem 0; }
.invite-code strong { font: 700 1.1rem monospace; padding: .18rem .4rem; background: #e8e8d5; border-radius: .3rem; }
.private-box { margin-top: 1rem; padding: .75rem; border: 1px solid #ae9675; border-radius: .5rem; background: #f3e5ce; }
.private-box label + label { margin-top: .75rem; }
.danger { color: #8d2531; }
.order { display: flex; gap: .65rem; justify-content: space-between; flex-wrap: wrap; margin-bottom: .7rem; }
.order small { overflow-wrap: anywhere; }
#toast { position: fixed; z-index: 10; left: 50%; transform: translate(-50%,1rem); max-width: calc(100% - 1rem); bottom: .8rem; opacity: 0; pointer-events: none; color: #fff7df; background: var(--dark); padding: .7rem 1rem; border-radius: .55rem; transition: opacity .18s ease, transform .18s ease; }
#toast.visible { transform: translate(-50%,0); opacity: 1; }
@media (max-width: 900px) { .desktop-break { display: none; } .hero { grid-template-columns: minmax(0,1fr) minmax(0,1.25fr); } }
@media (max-width: 680px) {
  .nav { align-items: flex-start; padding-block: .8rem; flex-direction: column; gap: .5rem; }
  .nav nav, .footer nav { justify-content: flex-start; font-size: .85rem; }
  .brand span { width: 2.55rem; height: 2.4rem; font-size: 1.2rem; }
  .hero, .offers, .help-grid, .support-tools { grid-template-columns: 1fr; }
  .hero { gap: 1.35rem; }
  .hero-copy h1 { font-size: clamp(2.7rem, 9vw, 4.25rem); text-wrap: balance; }
  .hero-copy .intro { margin-bottom: 1rem; }
  .demo-grid .envelope span { font-size: clamp(.88rem,4vw,1.4rem); }
  .demo-grid .envelope i { font-size: clamp(.46rem,2vw,.73rem); }
  .calendar-grid { grid-template-columns: repeat(4,1fr); }
  .calendar-grid .envelope span { font-size: 1.15rem; }
  .calendar-grid .envelope i { font-size: .65rem; }
  .door-wrap small { font-size: .7rem; }
  .steps { grid-template-columns: 1fr; gap: .75rem; }
  .steps article + article { border-left: 0; }
  .footer { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
