/* ---------- Fonts (self-hosted, so the page works offline) ---------- */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/jost-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/jost-latin-500-normal.woff2") format("woff2"); }

/* ---------- Brand colours: change these to restyle the whole page ---------- */
:root {
  --ink: #3A2E2A;
  --ink-soft: #5E5048;
  --ink-muted: #6B5A51;
  --accent: #8A4530;
  --sand: #F7F0E9;
  --blush: #F0E2DA;
  --line: #D9BDB8;
  --card: rgba(251, 248, 243, 0.75);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--blush); color: var(--ink); font-family: var(--sans); }
a { color: var(--ink); text-decoration: none; }
a:hover, a:focus-visible { color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Page ---------- */
.page {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 56px 24px 40px;
  background: linear-gradient(180deg, var(--sand) 0%, var(--blush) 100%);
}
.page > * { position: relative; }

/* background decoration */
.glow {
  position: absolute !important;
  left: 50%; top: -240px;
  width: 900px; height: 900px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 211, 207, 0.75) 0%, rgba(233, 211, 207, 0) 65%);
  pointer-events: none;
}
.arch {
  position: absolute !important;
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid var(--line);
  border-bottom: 0;
  pointer-events: none;
}
.arch--outer { top: 250px; width: min(760px, 150%); height: 900px; border-radius: 380px 380px 0 0; }
.arch--inner { top: 290px; width: min(660px, 135%); height: 860px; border-radius: 330px 330px 0 0; border-color: #E5CFC9; }

/* ---------- Logo ---------- */
.logo { display: flex; flex-direction: column; align-items: center; gap: 22px; font-family: var(--serif); }
.logo__ring {
  width: 76px; height: 76px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.logo__b { font-style: italic; font-weight: 400; font-size: 46px; line-height: 1; margin-top: -3px; }
.logo__word { font-weight: 500; font-size: 64px; line-height: 1; white-space: nowrap; }
/* even optical spacing between the letters */
.logo__word span:nth-child(1) { margin-right: -0.056em; }
.logo__word span:nth-child(2) { margin-right: -0.056em; }
.logo__word span:nth-child(3) { margin-right: -0.042em; }
.logo__word span:nth-child(4) { margin-right: -0.016em; }
.logo__word span:nth-child(5) { margin-right: -0.023em; }
.logo__word span:nth-child(6) { margin-right: -0.053em; }

/* ---------- Message ---------- */
.hero { margin-top: 72px; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; max-width: 760px; }
.eyebrow { margin: 0; font-size: 13px; font-weight: 500; letter-spacing: 0.5em; padding-left: 0.5em; color: var(--accent); }
h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 8vw, 92px); line-height: 1.02; }
h1 em { font-style: italic; font-weight: 500; color: var(--accent); }
.lead { margin: 0; font-size: 18px; line-height: 1.65; color: var(--ink-soft); max-width: 460px; }

/* ---------- Countdown ---------- */
.countdown { margin-top: 52px; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.unit {
  width: 112px;
  padding: 20px 0 16px;
  background: var(--card);
  border: 1px solid #E0C9C2;
  border-radius: 18px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  backdrop-filter: blur(4px);
}
.unit__num { font-family: var(--serif); font-weight: 500; font-size: 48px; line-height: 1; font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; }
.unit__label { font-size: 11px; font-weight: 500; letter-spacing: 0.25em; padding-left: 0.25em; color: var(--ink-muted); }

/* ---------- Sign-up ---------- */
.signup { margin-top: 52px; width: 100%; max-width: 520px; display: flex; flex-wrap: wrap; gap: 12px; }
.signup input {
  flex: 1 1 260px;
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: #FBF8F3;
  color: var(--ink);
  font: 400 16px var(--sans);
}
.signup input::placeholder { color: #7A6B62; opacity: 1; }
.signup input:focus-visible, .signup button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.signup button {
  min-height: 54px;
  padding: 0 34px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--sand);
  font: 500 13px var(--sans);
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: background 0.2s;
}
.signup button:hover { background: var(--accent); }
.note { margin: 14px 0 0; font-size: 13px; color: var(--ink-muted); text-align: center; }

/* ---------- Footer ---------- */
.footer { margin-top: auto; padding-top: 56px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; font-size: 13px; font-weight: 500; letter-spacing: 0.2em; }
.footer__copy { margin: 0; font-size: 12px; color: var(--ink-muted); }

/* ---------- Mobile ---------- */
@media (max-width: 560px) {
  .page { padding: 40px 20px 32px; }
  .logo__word { font-size: 52px; }
  .hero { margin-top: 56px; }
  .countdown { gap: 10px; margin-top: 40px; }
  .unit { width: calc(50% - 5px); max-width: 150px; }
  .signup { margin-top: 40px; }
  .signup button { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
