/* Colours, type and the logo follow the Renaissance Brand Kit 2026 (and apps/mobile/src/theme/tokens.ts). The art is always
   the full-colour crop with room around it. Fonts are served from this site: these pages load nothing from anyone else. */
:root {
  --surface: #f1f2ee;
  --raised: #fafbf8;
  --line: #d3dbd8;
  --ink: #172a33;
  --muted: #56636a;
  --adriatic: #1e4b5a;
  --soft: #dce8ea;
  --saffron: #e3a92b;
  --on-saffron: #172a33;
  --parchment: #e9e1d1;
  --rose: #a63d52;
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --voice: "Spectral", Georgia, "Times New Roman", serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --surface: #0e1a20;
    --raised: #15252d;
    --line: #29404a;
    --ink: #e8ece9;
    --muted: #9daab0;
    --adriatic: #7db8c8;
    --soft: #16323b;
    --saffron: #edb440;
    --parchment: #15252d;
    --rose: #e58a9b;
  }
}
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: normal; font-display: swap; src: url("assets/fonts/cormorant-600.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: italic; font-display: swap; src: url("assets/fonts/cormorant-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Spectral"; font-weight: 400; font-style: normal; font-display: swap; src: url("assets/fonts/spectral-400.woff2") format("woff2"); }
@font-face { font-family: "Spectral"; font-weight: 400; font-style: italic; font-display: swap; src: url("assets/fonts/spectral-400-italic.woff2") format("woff2"); }
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
  border-top: 5px solid var(--saffron);
}
main { max-width: 680px; margin: 0 auto; padding: 32px 16px 72px; }
.brand { margin: 0 0 40px; }
.brand a { color: var(--ink); display: inline-block; }
.brand svg, .wordmark svg { display: block; height: auto; }
h1 { margin: 0 0 8px; font: 600 38px/1.12 var(--display); letter-spacing: -0.005em; }
h2 { margin: 40px 0 8px; font-size: 20px; line-height: 1.3; }
h3 { margin: 24px 0 4px; font-size: 17px; }
p, ul { margin: 0 0 14px; }
ul { padding-left: 22px; }
li { margin-bottom: 6px; }
a { color: var(--adriatic); }
.meta { color: var(--muted); font-size: 15px; }
.short { margin-top: 28px; padding: 16px 18px 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--raised); }
.short h2 { margin-top: 0; }
mark { background: var(--soft); color: inherit; padding: 1px 4px; border-radius: 4px; }
table { width: 100%; border-collapse: collapse; margin: 0 0 14px; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }

/* ---- home: a film, then a fresco ----
   The first half is always dark: ordinary busy days on film, with the letter read over them like subtitles.
   The second half is paper: the painting, still, and the rest of the letter. No cards, no feature grid. */
body.home { border-top: 0; background: var(--surface); }
.film { position: relative; background: #0e1a20; color: #f1f2ee; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.reel-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s ease; }
.film-on .reel-video { opacity: 1; }
.shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 15, 19, 0.5) 0%, rgba(8, 15, 19, 0.28) 34%, rgba(8, 15, 19, 0.5) 62%, rgba(8, 15, 19, 0.86) 100%); }
.masthead { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: max(22px, env(safe-area-inset-top)) clamp(20px, 5vw, 56px) 0; }
.masthead .mark { color: #f1f2ee; display: block; }
.masthead svg, .signature svg { display: block; height: auto; }
.quiet-link { color: #f1f2ee; font-size: 14px; text-decoration: none; border-bottom: 1px solid rgba(241, 242, 238, 0.55); padding-bottom: 2px; }
.film-toggle { position: absolute; right: clamp(20px, 5vw, 56px); bottom: 22px; background: none; border: 0; padding: 6px 0; color: rgba(241, 242, 238, 0.72); font: inherit; font-size: 13px; cursor: pointer; border-bottom: 1px solid rgba(241, 242, 238, 0.35); }
.quiet-link:focus-visible, .film-toggle:focus-visible, .masthead .mark:focus-visible { outline: 2px solid #f1f2ee; outline-offset: 4px; }
.lines { position: relative; margin-top: -100vh; margin-top: -100svh; }
.line { margin: 0; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; padding: 0 clamp(20px, 5vw, 56px) clamp(84px, 17vh, 170px); }
.line span { display: block; max-width: 21em; font: italic 400 clamp(22px, 2.5vw + 13px, 36px)/1.38 var(--voice); text-wrap: pretty; text-shadow: 0 1px 22px rgba(8, 15, 19, 0.55); }
.line-large span { max-width: 12em; font: 600 clamp(44px, 8vw + 12px, 104px)/0.98 var(--display); letter-spacing: -0.01em; text-wrap: balance; }
.reveal .line span { opacity: 0; transform: translateY(14px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal .line.on span { opacity: 1; transform: none; }

main.paper { max-width: none; margin: 0; padding: 0 0 clamp(64px, 12vh, 120px); }
.fresco { display: block; width: 100%; height: auto; max-height: 92vh; object-fit: cover; }
.letter { max-width: 34em; margin: 0 auto; padding: clamp(56px, 11vh, 120px) clamp(20px, 5vw, 56px) 0; font: 400 clamp(19px, 0.5vw + 17px, 22px)/1.66 var(--voice); }
.letter p { margin: 0 0 1.25em; text-wrap: pretty; }
.letter .plain { margin: 2.6em 0 0.7em; font: 600 clamp(34px, 4.6vw + 10px, 58px)/1.04 var(--display); letter-spacing: -0.005em; text-wrap: balance; }
.vows { list-style: lower-roman; margin: 0 0 2.8em; padding: 0 0 0 1.5em; }
.vows li { margin: 0 0 0.75em; padding-left: 0.35em; }
.vows li::marker { font-style: italic; color: var(--adriatic); }
.letter .closing { margin: 0 0 0.5em; font: italic 500 clamp(26px, 1.6vw + 18px, 34px)/1.3 var(--display); color: var(--adriatic); }
.signature { color: var(--ink); margin: 0 !important; }

.ask { max-width: 34em; margin: 0 auto; padding: clamp(72px, 14vh, 150px) clamp(20px, 5vw, 56px) 0; scroll-margin-top: 8px; }
.ask h2 { margin: 0 0 1.6em; font: 600 13px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.sentence { margin: 0 0 1.4em; font: 400 clamp(22px, 1.4vw + 17px, 30px)/1.75 var(--voice); }
.sentence label { display: inline; font: inherit; margin: 0; }
.sentence input, .sentence select { font: italic 400 1em/1.3 var(--voice); color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--muted); border-radius: 0; padding: 0 2px 2px; margin: 0 0.15em; max-width: 100%; }
.sentence input { width: 13.5em; }
.sentence input::placeholder { color: var(--muted); opacity: 0.75; }
.sentence select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 0.2em; }
.sentence input:focus-visible, .sentence select:focus-visible { outline: 0; border-bottom: 2px solid var(--adriatic); }
.ask form { position: relative; }
.sentence .city-trigger { font: italic 400 1em/1.3 var(--voice); color: var(--ink); background: none; border: 0; border-bottom: 1px solid var(--muted); border-radius: 0; padding: 0 1.1em 2px 2px; margin: 0 0.15em; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%2356636a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.5 1.75 6 6.25l4.5-4.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.15em center; background-size: 0.5em auto; }
.sentence .city-trigger:focus-visible, .sentence .city-trigger[aria-expanded="true"] { outline: 0; border-bottom: 2px solid var(--adriatic); }
.cities { position: absolute; left: 0; z-index: 5; width: min(430px, 100%); background: var(--raised); border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 18px 50px rgba(23, 42, 51, 0.16), 0 2px 8px rgba(23, 42, 51, 0.08); overflow: hidden; }
.cities[hidden] { display: none; }
.cities-search { display: block; width: 100%; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ink); padding: 18px 24px 16px; font: 400 16px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.cities-search::placeholder { color: var(--muted); }
.cities-search:focus { outline: 0; border-bottom-color: var(--adriatic); }
.cities-list { max-height: min(420px, 58vh); overflow-y: auto; overscroll-behavior: contain; padding: 6px 10px 12px; }
.cities-title { padding: 16px 14px 6px; font: 600 11.5px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.city-option { display: flex; align-items: center; gap: 14px; padding: 8px 14px; border-radius: 16px; cursor: pointer; }
.city-option.is-active, .city-option[data-value]:hover { background: var(--soft); }
.city-tile { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--soft); color: var(--adriatic); }
.city-option.is-active .city-tile, .city-option[data-value]:hover .city-tile { background: var(--raised); }
.city-text { display: block; min-width: 0; }
.city-name { display: block; font: 400 17px/1.3 var(--voice); color: var(--ink); }
.city-note { display: block; font: 400 13.5px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: var(--muted); }
.city-option[aria-selected="true"] .city-name { font-style: italic; color: var(--adriatic); }
.city-option.is-soon { cursor: default; padding-top: 5px; padding-bottom: 5px; }
.city-option.is-soon .city-tile { width: 36px; height: 36px; border-radius: 10px; margin: 0 5px; background: transparent; border: 1px solid var(--line); color: var(--muted); opacity: 0.7; }
.city-option.is-soon .city-tile svg { width: 16px; height: 16px; }
.city-option.is-soon .city-name { font-size: 16px; color: var(--muted); opacity: 0.8; }
.cities-none { margin: 0; padding: 22px 14px 14px; font: italic 400 16px/1.4 var(--voice); color: var(--muted); }
.ask button[type="submit"] { background: none; border: 0; border-bottom: 1px solid currentColor; border-radius: 0; padding: 0 0 3px; color: var(--adriatic); font: 600 clamp(26px, 1.6vw + 18px, 34px)/1.2 var(--display); cursor: pointer; }
.ask button[type="submit"]:focus-visible { outline: 2px solid var(--adriatic); outline-offset: 6px; }
.ask button[type="submit"]:disabled { opacity: 0.55; cursor: default; }
.ask .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin: 0 0 1em; color: var(--rose); font-size: 15px; font-weight: 600; }
.thanks p { margin: 0; font: italic 400 clamp(22px, 1.4vw + 17px, 30px)/1.6 var(--voice); color: var(--adriatic); }
.fineprint { margin: clamp(56px, 10vh, 96px) 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.7; }
@media (prefers-reduced-motion: reduce) { .reel-video { transition: none; } }
@media (max-width: 520px) {
  thead { display: none; }
  tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  td { display: block; padding: 0; border: 0; }
  td:first-child { font-weight: 600; }
}
