@font-face {
  font-family: "Lora";
  src: url("/lora.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}
/* Brand palette (window logo): midnight navy, antique gold, glow gold, warm
   linen, night glass, light core. No green, and no orange or red: ember
   #D9583B is reserved for the app's alert state and is not used on the site. */
:root {
  --navy: #0E1626; --navy-top: #131D33; --navy-end: #0A101C;
  --gold: #C9A55A; --gold-hi: #DCBB73; --gold-lo: #BE994F; --sill: #B8934A;
  --glow: #E6C98A; --core: #FFF6DB;
  --linen: #F2EBDD;
  --glass-1: #223354; --glass-2: #15213A; --glass: #1A2743;
  --text: #F2EBDD; --muted: #C4BFB4; --fine: #A29E94;
  --card: rgba(26, 39, 67, 0.55); --border: rgba(201, 165, 90, 0.28);
  --input: #0B1220; --placeholder: #8F8C85;
  --serif: "Lora", Georgia, serif;
}
* { box-sizing: border-box; }
/* Wrapping: no automatic hyphenation (Finnish compounds break badly); only
   soft hyphens written into the copy may split a word. Headings and short
   centred blocks are balanced, running text avoids orphans. */
html { scroll-behavior: smooth; hyphens: manual; -webkit-hyphens: manual; }
h1, h2, .eyebrow, .launch, .msg { text-wrap: balance; }
p { text-wrap: pretty; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--navy) linear-gradient(180deg, var(--navy-top) 0%, var(--navy) 50%, var(--navy-end) 100%) fixed;
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
.top {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1080px; margin: 0 auto; padding: 12px 16px;
}
/* The lockup file already includes its clear space; pull it to the gutter. */
.brand { display: inline-flex; margin-left: -9px; }
.brand img { display: block; }
.lang {
  font: inherit; font-size: 14px; font-weight: 600; letter-spacing: 0.04em; color: var(--linen);
  background: transparent; border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 16px; min-height: 40px; min-width: 52px; cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.lang:hover { border-color: var(--gold); color: var(--glow); }
main { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.hero { text-align: center; padding: 8px 0 64px; }
.window { width: min(200px, 48vw); margin: 0 auto 12px; }
.window img { display: block; width: 100%; }
.eyebrow { margin: 0; color: var(--gold); font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; font-size: 13px; }
h1, h2 { font-family: var(--serif); color: var(--linen); }
h1 { font-weight: 500; font-size: clamp(30px, 6vw, 52px); line-height: 1.12; margin: 12px auto 18px; max-width: 18ch; letter-spacing: -0.01em; }
.lead { color: var(--muted); max-width: 54ch; margin: 0 auto 36px; font-size: clamp(17px, 2.2vw, 19px); text-wrap: balance; }

/* Countdown: one window, four panes, the last one lit. */
.countdown {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px;
  width: min(calc(100% - 28px), 432px); margin: 0 auto; padding: 6px;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo));
  border-radius: 14px;
}
.countdown::after {
  content: ""; grid-column: 1 / -1; height: 6px; margin: 2px -14px -12px;
  background: var(--sill); border-radius: 3px;
}
.countdown div {
  padding: 16px 2px 12px;
  background: linear-gradient(180deg, var(--glass-1), var(--glass-2));
  border-radius: 7px;
}
.countdown b {
  display: block; font-family: var(--serif); font-weight: 600;
  font-size: clamp(28px, 7.5vw, 42px); line-height: 1; color: var(--linen);
  font-variant-numeric: tabular-nums lining-nums;
}
.countdown span { display: block; margin-top: 8px; font-size: clamp(8.5px, 2.5vw, 11px); font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.02em; }
.countdown .lit { background: radial-gradient(circle at 50% 72%, var(--core) 0%, #F6DFA6 55%, #E8C987 100%); }
.countdown .lit b { color: var(--navy); }
.countdown .lit span { color: #4A3A16; }
.launch { margin: 30px 0 28px; color: var(--glow); font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 18px; }

.cta, .news button {
  display: inline-block; font: inherit; font-weight: 700; color: var(--navy);
  background: var(--gold); border: 0; border-radius: 12px;
  padding: 13px 28px; min-height: 48px; text-decoration: none; cursor: pointer;
  transition: background 0.15s;
}
.cta:hover, .news button:hover { background: var(--glow); }
.cta:focus-visible, .news button:focus-visible, .lang:focus-visible, .news input:focus-visible, a:focus-visible { outline: 3px solid var(--glow); outline-offset: 3px; }

/* 1, 2 or 4 columns, never 3 + 1: a lone fourth card reads as an orphan. */
.features { display: grid; grid-template-columns: 1fr; gap: 14px; padding-bottom: 64px; }
@media (min-width: 560px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.features article { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 22px 22px 24px; }
.features .pane { display: block; width: 60px; height: 60px; margin: -4px 0 10px -10px; }
.features h2 { font-size: 21px; font-weight: 500; line-height: 1.25; margin: 0 0 8px; }
.features p { margin: 0; color: var(--muted); font-size: 16px; }

.news {
  text-align: center; max-width: 640px; margin: 0 auto 56px;
  background: var(--card); border: 1px solid var(--border); border-top: 3px solid var(--gold);
  border-radius: 14px; padding: 32px 20px;
  scroll-margin-top: 16px;
}
.news h2 { font-weight: 500; line-height: 1.2; margin: 0 0 10px; font-size: clamp(24px, 4vw, 30px); }
.news > p { color: var(--muted); max-width: 44ch; margin: 0 auto 20px; text-wrap: balance; }
.news form { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.news input[type=email] {
  flex: 1 1 240px; min-width: 0; font: inherit; color: var(--text);
  background: var(--input); border: 1px solid rgba(201, 165, 90, 0.5); border-radius: 12px;
  padding: 12px 16px; min-height: 48px;
}
.news input[type=email]:hover { border-color: var(--gold); }
.news input::placeholder { color: var(--placeholder); opacity: 1; }
.news button { flex: 0 1 auto; max-width: 100%; }
.news button[disabled] { opacity: 0.6; cursor: default; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.news > .msg { min-height: 1.5em; margin: 14px auto 0; font-weight: 600; }
.msg.ok { color: var(--glow); }
/* Errors stay in the palette: linen text behind a gold rule (ember is alert-only). */
.msg.err { color: var(--linen); display: inline-block; padding-left: 12px; border-left: 3px solid var(--gold); text-align: left; }
.news > .fine { font-size: 13px; line-height: 1.5; color: var(--fine); max-width: 60ch; margin: 12px auto 0; }
.news > .fine + .fine { margin-top: 6px; }
footer { text-align: center; color: var(--fine); font-size: 13px; padding: 0 16px 32px; }
/* Confirm / unsubscribe pages served by newsletter.js. */
a.brand { color: inherit; text-decoration: none; }
.notice { margin-top: 24px; }
.notice h1 { font-weight: 500; font-size: clamp(26px, 5vw, 34px); line-height: 1.2; margin: 0 0 10px; max-width: none; }
.notice p { color: var(--muted); max-width: 44ch; margin: 0 auto 12px; text-wrap: balance; }
/* A long address may split anywhere, but only when it cannot fit on a line. */
.notice b { color: var(--text); overflow-wrap: anywhere; }
.notice .alt { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.notice .alt h2 { font-size: 20px; margin: 0 0 6px; }
.notice form { margin-top: 20px; }
.notice a { color: var(--glow); }
.notice .back { margin: 20px auto 0; font-size: 15px; }
.notice .back a, .notice button span { white-space: nowrap; }
