/* Dear Past Letters — site styles
   Identity: 1950s airmail. Pale airmail paper, fountain-pen ink, the red/blue envelope stripe.
   Type: Newsreader (reading serif) + Public Sans (buttons, navigation) + Cedarville Cursive (handwriting). */

@font-face { font-family: "Newsreader"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/newsreader-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/newsreader-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/newsreader-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-weight: 400; font-style: italic; font-display: swap; src: url("fonts/newsreader-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-weight: 500; font-style: italic; font-display: swap; src: url("fonts/newsreader-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 500; font-display: swap; src: url("fonts/public-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 600; font-display: swap; src: url("fonts/public-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cedarville"; font-weight: 400; font-display: swap; src: url("fonts/cedarville-cursive-latin-400-normal.woff2") format("woff2"); }

:root {
  --sky: #E8EEF3;        /* airmail paper */
  --paper: #FBFCFD;      /* letter paper */
  --ink: #1B2546;        /* fountain-pen ink */
  --ink-soft: #3E4868;
  --muted: #5A6380;
  --air-blue: #24489A;   /* airmail blue */
  --air-blue-dark: #183573;
  --air-red: #C2362C;    /* airmail red: stripe and stamp only */
  --rule: #C9D4DF;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Cedarville", "Segoe Script", cursive;
  --wrap: 1180px;
  --stripe: repeating-linear-gradient(135deg, var(--air-red) 0 14px, var(--paper) 14px 22px, var(--air-blue) 22px 36px, var(--paper) 36px 44px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--sky); color: var(--ink); font-family: var(--serif); font-size: 19px; line-height: 1.6; text-rendering: optimizeLegibility; }
img, video, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--air-blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--air-blue-dark); }
:focus-visible { outline: 3px solid var(--air-blue); outline-offset: 3px; border-radius: 4px; }
::selection { background: #BFD0EA; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.measure { max-width: 680px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 20; font-family: var(--sans); }
.skip:focus { left: 8px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--ink); margin: 0; letter-spacing: -0.015em; }
h1 { font-size: clamp(44px, 7vw, 82px); line-height: 1.02; }
h2 { font-size: clamp(34px, 4.8vw, 54px); line-height: 1.08; }
h3 { font-size: 26px; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(20px, 2.1vw, 23px); line-height: 1.55; color: var(--ink-soft); }
.kicker { font-style: italic; font-size: 20px; color: var(--muted); margin: 0 0 14px; }
.small { font-size: 16px; }
.muted { color: var(--muted); }

/* ---------- airmail stripe: the signature ---------- */
.stripe { height: 10px; background: var(--stripe); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(232, 238, 243, .93); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-name { font-size: 24px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; }
.nav { display: none; gap: 28px; align-items: center; font-family: var(--sans); }
.nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; padding: 10px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--air-blue); }
.menu-btn { min-height: 44px; padding: 0 16px; border: 1px solid var(--rule); border-radius: 999px; background: var(--paper); font: 500 15px var(--sans); color: var(--ink); cursor: pointer; }
.mobile-nav { display: none; background: var(--paper); border-top: 1px solid var(--rule); font-family: var(--sans); }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 15px 22px; color: var(--ink); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--rule); }
@media (min-width: 960px) { .nav { display: flex; } .menu-btn, .mobile-nav, .mobile-nav.open { display: none; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 28px; border-radius: 6px; font: 600 16px/1 var(--sans); text-decoration: none; border: 0; cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.btn-primary { background: var(--air-blue); color: #fff; }
.btn-primary:hover { background: var(--air-blue-dark); color: #fff; }
.btn-quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-quiet:hover { background: var(--ink); color: var(--paper); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; color: var(--air-blue-dark); }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 15px; }
.nav .btn-primary { color: #fff; padding: 0 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ---------- sections ---------- */
.section { padding: 84px 0; }
.section-paper { background: var(--paper); }
.section-ink { background: var(--ink); color: #DCE3EE; }
.section-ink h2, .section-ink h3 { color: #fff; }
.section-ink .lead, .section-ink .kicker { color: #B8C3D6; }
.section-ink a { color: #fff; }
.head { max-width: 760px; margin-bottom: 48px; }
.head .lead { margin-top: 18px; }
@media (min-width: 960px) { .section { padding: 120px 0; } }

/* ---------- hero ---------- */
.hero { padding: 36px 0 72px; overflow: hidden; }
.hero-grid { display: grid; gap: 22px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { max-width: 560px; }
.hero-note { margin-top: 20px; font-size: 16px; color: var(--muted); }
@media (min-width: 960px) { .hero { padding: 56px 0 100px; } .hero-grid { grid-template-columns: 1fr 1.05fr; gap: 36px; } }

/* The box scene. Everything is sized in container units so it scales as one picture. */
.scene { position: relative; width: 100%; max-width: 600px; margin: 0 auto; aspect-ratio: 1 / 0.9; container-type: inline-size; }
.beam { position: absolute; left: 4cqw; right: 4cqw; top: -4cqw; height: 74cqw; background: radial-gradient(ellipse 48% 56% at 50% 40%, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 72%); opacity: 0; animation: beam 2.4s ease-out .6s forwards; pointer-events: none; }
.box { position: absolute; left: 14cqw; right: 14cqw; bottom: 3cqw; height: 32cqw; }
.box-back { position: absolute; left: 2.5cqw; right: 2.5cqw; top: -1.5cqw; height: 9cqw; background: linear-gradient(180deg, #7C5B36, #8E6A41); border-radius: 1cqw 1cqw 0 0; }
.box-front { position: absolute; left: 0; right: 0; top: 4cqw; bottom: 0; border-radius: .8cqw; background: linear-gradient(180deg, #C29A68, #A8814F 70%, #977347); box-shadow: 0 3cqw 5cqw -1cqw rgba(27, 37, 70, .35), inset 0 .6cqw 0 rgba(255, 255, 255, .18); z-index: 3; }
.box-front::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle at 18% 80%, rgba(80, 55, 25, .25), transparent 35%), radial-gradient(circle at 86% 26%, rgba(80, 55, 25, .18), transparent 30%); }
.box-label { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -44%) rotate(-2deg); width: 44cqw; padding: 1.8cqw 2.2cqw; background: #F4EAD3; box-shadow: 0 .4cqw 1cqw rgba(0, 0, 0, .18); font-family: var(--hand); color: #2B3A6B; text-align: center; line-height: 1.15; z-index: 1; }
.box-label b { display: block; font-weight: 400; font-size: 4.4cqw; }
.box-label span { display: block; font-size: 3.2cqw; opacity: .85; }
.lid { position: absolute; left: 12cqw; right: 12cqw; bottom: 31cqw; height: 8.5cqw; border-radius: .9cqw; background: linear-gradient(180deg, #CDA676, #A8814F); box-shadow: 0 1.5cqw 3cqw -1cqw rgba(27, 37, 70, .35), inset 0 .5cqw 0 rgba(255, 255, 255, .2); z-index: 5; animation: lid 1.4s cubic-bezier(.5, 0, .25, 1) .35s forwards; }
.envs { position: absolute; left: 0; right: 0; bottom: 6cqw; height: 72cqw; z-index: 2; clip-path: inset(-40cqw -20cqw 0 -20cqw); }
.env { position: absolute; left: 50%; bottom: 0; width: 52cqw; aspect-ratio: 1.75; margin-left: -26cqw; border-radius: .6cqw;
  background:
    radial-gradient(circle at 16% 74%, rgba(150, 110, 50, .17), transparent 22%),
    radial-gradient(circle at 80% 20%, rgba(150, 110, 50, .12), transparent 25%),
    linear-gradient(170deg, #F6EEDC, #E7D8B8);
  box-shadow: 0 1.6cqw 3.2cqw -1cqw rgba(27, 37, 70, .4); color: #233766; transform: translateY(40cqw); opacity: 0; animation: rise 1.3s cubic-bezier(.22, .9, .3, 1) forwards; }
.env::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1.4cqw solid transparent; background: repeating-linear-gradient(135deg, var(--air-red) 0 1.3cqw, transparent 1.3cqw 2cqw, var(--air-blue) 2cqw 3.3cqw, transparent 3.3cqw 4cqw) border-box; opacity: .8;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0); }
.env .via { position: absolute; left: 4.6cqw; top: 4.2cqw; font: 600 1.7cqw/1 var(--sans); letter-spacing: .06em; color: var(--air-blue); }
.env .addr { position: absolute; left: 13cqw; top: 13.5cqw; font-family: var(--hand); font-size: 3.2cqw; line-height: 1.32; }
.env .stamp { position: absolute; right: 4cqw; top: 3.6cqw; width: 7.6cqw; height: 9.2cqw; background: #F1E3C6; outline: .35cqw dashed var(--air-red); outline-offset: -.35cqw; color: var(--air-red); font: 600 1.05cqw/1.1 var(--sans); text-align: center; padding-top: 2cqw; }
.env .stamp b { display: block; font-family: var(--serif); font-size: 2.9cqw; font-weight: 600; margin-top: .6cqw; }
.env .post { position: absolute; right: 10cqw; top: 6cqw; width: 9cqw; height: 9cqw; border-radius: 50%; border: .3cqw solid rgba(60, 64, 80, .5); color: rgba(60, 64, 80, .72); font: 600 1.2cqw/1.25 var(--sans); text-align: center; padding-top: 2.6cqw; transform: rotate(-12deg); }
.env-1 { animation-delay: 1.1s; --end: translate(-18cqw, -38cqw) rotate(-10deg); }
.env-2 { animation-delay: 1.3s; --end: translate(17cqw, -42cqw) rotate(8deg); }
.env-3 { animation-delay: 1.5s; --end: translate(1cqw, -26cqw) rotate(-2.5deg); z-index: 2; }
.play { z-index: 6; position: absolute; left: 50%; bottom: 2.6cqw; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px 0 8px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: 600 15px/1 var(--sans); cursor: pointer; white-space: nowrap; box-shadow: 0 1cqw 2cqw rgba(27, 37, 70, .3); }
.play:hover { background: var(--air-blue); }
.play { opacity: 0; animation: appear .6s ease-out 2.5s forwards; }
@keyframes appear { to { opacity: 1; } }
.play svg { width: 30px; height: 30px; }
.dust { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.dust i { position: absolute; bottom: 30cqw; width: .7cqw; height: .7cqw; border-radius: 50%; background: rgba(255, 252, 240, .95); box-shadow: 0 0 1cqw rgba(255, 250, 230, .9); opacity: 0; animation: drift 6s ease-out infinite; }
.dust i:nth-child(1) { left: 30%; animation-delay: .9s; } .dust i:nth-child(2) { left: 38%; animation-delay: 1.6s; width: .5cqw; height: .5cqw; }
.dust i:nth-child(3) { left: 47%; animation-delay: 1.1s; } .dust i:nth-child(4) { left: 55%; animation-delay: 2.3s; width: .45cqw; height: .45cqw; }
.dust i:nth-child(5) { left: 62%; animation-delay: 1.3s; } .dust i:nth-child(6) { left: 70%; animation-delay: 2.9s; width: .5cqw; height: .5cqw; }
.dust i:nth-child(7) { left: 43%; animation-delay: 3.4s; } .dust i:nth-child(8) { left: 66%; animation-delay: 4.1s; width: .4cqw; height: .4cqw; }
.dust i:nth-child(9) { left: 34%; animation-delay: 4.6s; width: .4cqw; height: .4cqw; } .dust i:nth-child(10) { left: 58%; animation-delay: 3.8s; }
.dust i:nth-child(even) { --dx: -4cqw; }

/* On phones the box is below the text: hold the animation until it scrolls into view (only when JS runs). */
.js .scene:not(.go) .lid, .js .scene:not(.go) .env, .js .scene:not(.go) .beam, .js .scene:not(.go) .dust i, .js .scene:not(.go) .play { animation-play-state: paused; }

@keyframes lid {
  0% { transform: none; }
  45% { transform: translate(-1cqw, -14cqw) rotate(-5deg); opacity: 1; }
  100% { transform: translate(6cqw, -30cqw) rotate(-9deg); opacity: 0; }
}
@keyframes rise {
  0% { opacity: 0; transform: translateY(40cqw); }
  25% { opacity: 1; }
  100% { opacity: 1; transform: var(--end); }
}
@keyframes drift {
  0% { opacity: 0; transform: translate(0, 0); }
  15% { opacity: .9; }
  100% { opacity: 0; transform: translate(var(--dx, 3cqw), -42cqw); }
}
@keyframes beam { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .lid { animation: none; opacity: 0; }
  .env { animation: none; opacity: 1; transform: var(--end); }
  .dust { display: none; }
  .beam { animation: none; opacity: 1; }
  .play { animation: none; opacity: 1; }
}

/* video dialog */
dialog.video { width: min(420px, 92vw); padding: 0; border: 0; border-radius: 12px; background: #000; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
dialog.video::backdrop { background: rgba(15, 20, 40, .74); }
dialog.video video { width: 100%; aspect-ratio: 9 / 16; background: #000; }
dialog.video .close { position: absolute; top: 10px; right: 10px; z-index: 1; min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .94); font: 600 14px var(--sans); cursor: pointer; }

/* ---------- the translated line ---------- */
.line-demo { text-align: center; }
.line-demo .nl { font-family: var(--hand); font-size: clamp(34px, 5.6vw, 64px); line-height: 1.25; color: #2B3A6B; margin: 0; }
.line-demo .en { font-style: italic; font-size: clamp(24px, 3.1vw, 36px); line-height: 1.3; color: var(--ink); margin: 0; }
.line-demo .turn { width: 1px; height: 46px; margin: 20px auto; background: var(--rule); }
.line-demo .cite { font-size: 16px; color: var(--muted); margin-top: 20px; }

.reasons { display: grid; gap: 30px; margin-top: 76px; }
.reasons h3 { margin-bottom: 8px; }
.reasons p { margin: 0; color: var(--ink-soft); }
@media (min-width: 860px) { .reasons { grid-template-columns: repeat(3, 1fr); gap: 48px; } }

/* ---------- what you receive: editorial rows ---------- */
.rows { display: grid; gap: 80px; }
.row { display: grid; gap: 28px; align-items: center; }
.row h3 { font-size: clamp(28px, 3.2vw, 38px); font-weight: 500; letter-spacing: -0.015em; margin-bottom: 12px; }
.row ul { margin: 0; padding-left: 1.1em; color: var(--ink-soft); }
.row li + li { margin-top: 6px; }
.row figure { margin: 0; }
.row .shot { border-radius: 8px; overflow: hidden; box-shadow: 0 18px 40px -16px rgba(27, 37, 70, .45); background: var(--ink); }
@media (min-width: 900px) { .row { grid-template-columns: 1fr 1fr; gap: 72px; } .row.flip figure { order: 2; } }
.listen-card { background: var(--sky); border-radius: 10px; padding: 26px; display: grid; gap: 12px; }
.listen-card .who { font-family: var(--hand); font-size: 30px; color: #2B3A6B; line-height: 1.1; }
.listen-card audio { width: 100%; }
.listen-card p { margin: 0; font-size: 16px; color: var(--muted); }
.private-card { background: var(--sky); border-radius: 10px; padding: 26px; font-family: var(--sans); font-size: 15px; color: var(--ink-soft); }
.private-card .url { display: flex; align-items: center; gap: 10px; background: var(--paper); border-radius: 6px; padding: 12px 14px; font-weight: 500; color: var(--ink); margin-bottom: 16px; }
.private-card .url svg { width: 16px; height: 16px; flex: none; }
.private-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.private-card li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--rule); padding-bottom: 8px; }

/* ---------- steps (a real sequence) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 34px; counter-reset: step; position: relative; }
.steps li { counter-increment: step; position: relative; padding-left: 74px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -4px; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--ink); font: 500 24px var(--serif); }
.steps h3 { color: #fff; margin-bottom: 6px; }
.steps p { margin: 0; color: #B8C3D6; font-size: 18px; }
@media (min-width: 960px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 36px; }
  .steps::before { content: ""; position: absolute; left: 26px; right: 14%; top: 22px; border-top: 1.5px dashed #4A5785; }
  .steps li { padding-left: 0; padding-top: 80px; }
}

/* ---------- prices ---------- */
.prices { border-top: 1px solid var(--rule); }
.price { display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.price .what { font-size: 24px; font-weight: 500; }
.price .amount { font-size: 40px; font-weight: 500; letter-spacing: -0.02em; text-align: right; white-space: nowrap; }
.price .was { font-size: 20px; color: var(--muted); text-decoration: line-through; margin-right: 10px; }
.price .note { grid-column: 1 / -1; margin: 0; color: var(--ink-soft); font-size: 17px; }
.price.featured { background: var(--sky); margin: 0 -22px; padding: 34px 22px 28px; border-bottom-color: transparent; position: relative; }
.price.featured::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--stripe); background-size: 22px 22px; }
.price .tag { display: inline-block; font: 600 13px/1 var(--sans); color: var(--air-red); margin-left: 10px; white-space: nowrap; vertical-align: middle; }
.price-notes { margin-top: 26px; display: grid; gap: 8px; font-size: 17px; color: var(--ink-soft); }
@media (min-width: 900px) { .price.featured { margin: 0 -32px; padding: 34px 32px 28px; } }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 44px 22px 0; font-size: 22px; font-weight: 500; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 30px; width: 11px; height: 11px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 36px; }
.faq details p { margin: 0 0 24px; color: var(--ink-soft); max-width: 680px; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* ---------- closing envelope ---------- */
.envelope-cta { position: relative; background: var(--paper); border-radius: 10px; padding: 64px 26px; text-align: center; overflow: hidden; }
.envelope-cta::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 12px solid transparent; background: var(--stripe) border-box; pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0); }
.envelope-cta h2 { max-width: 760px; margin: 0 auto; }
.envelope-cta .lead { max-width: 580px; margin: 18px auto 0; }
.envelope-cta .btn-row { justify-content: center; }
@media (min-width: 900px) { .envelope-cta { padding: 96px 60px; } }

/* ---------- sample page ---------- */
.player { border-radius: 10px; overflow: hidden; background: #000; box-shadow: 0 24px 50px -20px rgba(27, 37, 70, .5); }
.player video { width: 100%; aspect-ratio: 16 / 9; }
.pages { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.pages figure { margin: 0; }
.pages a { display: block; box-shadow: 0 10px 26px -10px rgba(27, 37, 70, .45); }
.pages figcaption { font-size: 15px; color: var(--muted); margin-top: 8px; text-align: center; }
@media (min-width: 800px) { .pages { grid-template-columns: repeat(4, 1fr); } }
.two-col { display: grid; gap: 22px; }
@media (min-width: 800px) { .two-col { grid-template-columns: 1fr 1fr; } }
.sample-note { font-size: 16px; color: var(--muted); border-left: 3px solid var(--air-red); padding-left: 14px; }

/* ---------- article pages (pillar, guide, legal) ---------- */
.article { padding: 56px 0 100px; }
.article h1 { font-size: clamp(40px, 5.6vw, 64px); margin-bottom: 20px; }
.prose h2 { font-size: clamp(28px, 3.4vw, 38px); margin: 56px 0 14px; }
.prose h3 { font-size: 23px; margin: 34px 0 8px; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: 8px; }
.table-scroll { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0 24px; font-size: 17px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--rule); }
.prose th { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--muted); }
.prose td:first-child { font-style: italic; white-space: nowrap; }
.crumbs { font-family: var(--sans); font-size: 14px; color: var(--muted); margin-bottom: 26px; }
.crumbs a { color: var(--muted); }
.callout { background: var(--paper); border-radius: 10px; padding: 26px 28px; margin: 34px 0; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- forms ---------- */
.form { display: grid; gap: 22px; }
.field { display: grid; gap: 7px; }
.field label, .field legend { font: 600 15px var(--sans); }
.field .hint { font-size: 15px; color: var(--muted); margin: 0; }
.field input, .field select, .field textarea { width: 100%; min-height: 54px; padding: 12px 14px; border: 1.5px solid var(--rule); border-radius: 6px; background: #fff; font: 17px var(--serif); color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--air-blue); outline: none; box-shadow: 0 0 0 3px rgba(36, 72, 154, .18); }
.field textarea { min-height: 130px; resize: vertical; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; border: 1.5px solid var(--rule); border-radius: 999px; background: #fff; font: 500 15px var(--sans); cursor: pointer; }
.chips input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chips input:focus-visible + span { outline: 3px solid var(--air-blue); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.check input { width: 22px; height: 22px; margin-top: 3px; flex: none; accent-color: var(--air-blue); }
.hp { position: absolute; left: -5000px; }
.form-status { font: 500 16px var(--sans); }
.form-status.error { color: var(--air-red); }
.panel { background: var(--paper); border-radius: 10px; padding: 26px; }
.pair { display: grid; gap: 22px; }
@media (min-width: 760px) { .panel { padding: 40px; } .pair { grid-template-columns: 1fr 1fr; } }
.todo { background: #FFF4D6; border: 1px dashed #C9A24A; border-radius: 4px; padding: 1px 6px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #B8C3D6; font-size: 16px; }
.site-footer .inner { padding: 56px 0 36px; }
.site-footer a { color: #E6ECF5; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 30px; }
.footer-brand { font-size: 28px; color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-family: var(--sans); font-size: 15px; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid #333F66; font-family: var(--sans); font-size: 13px; color: #8E9AB5; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

/* ---------- 3D hero (replaces the CSS box when WebGL is available) ---------- */
.scene3d { position: absolute; inset: -8% -10% 0; z-index: 7; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.scene3d-canvas { width: 100% !important; height: 100% !important; display: block; touch-action: pan-y; }
.scene.is-3d .scene3d { opacity: 1; pointer-events: auto; }
.scene.is-3d > .beam, .scene.is-3d > .box, .scene.is-3d > .envs, .scene.is-3d > .dust, .scene.is-3d > .lid { visibility: hidden; }
.open-hint { display: none; }
.scene.is-3d .open-hint { display: inline-flex; position: absolute; left: 50%; bottom: -2px; transform: translateX(-50%); z-index: 8; min-height: 40px; align-items: center; padding: 0 16px; border: 0; border-radius: 999px; background: rgba(251, 252, 253, .9); color: var(--ink); font: 500 14px var(--sans); cursor: pointer; box-shadow: 0 4px 14px rgba(27, 37, 70, .12); }
.scene.is-3d.is-open .open-hint { display: none; }
.scene.is-3d .play { z-index: 8; opacity: 0; pointer-events: none; animation: none; bottom: -2px; }
.scene.is-3d.is-open .play { opacity: 1; pointer-events: auto; transition: opacity .6s ease 2.2s; }
@media (hover: hover) { .scene.is-3d .open-hint::before { content: "Hover over the box, or "; white-space: pre; } }
