/* ============================================================ *
 *  Jule & Duc — "Across the water"
 *  Royal blue · teal · turquoise · gold
 * ============================================================ */

/* ---- Self-hosted fonts (GDPR-safe, baked into the image) ---- */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 400;
  src: url("/static/fonts/fraunces-latin-400-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 600;
  src: url("/static/fonts/fraunces-latin-600-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 900;
  src: url("/static/fonts/fraunces-latin-900-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 400;
  src: url("/static/fonts/fraunces-latin-400-italic.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400;
  src: url("/static/fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 500;
  src: url("/static/fonts/hanken-grotesk-latin-500-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 700;
  src: url("/static/fonts/hanken-grotesk-latin-700-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400;
  src: url("/static/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500;
  src: url("/static/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-display: swap; }

/* ---- Design tokens ---- */
:root {
  --royal:     #16347d;
  --royal-deep:#0e2150;
  --teal:      #0e7c86;
  --turquoise: #18b3a8;
  --gold:      #b8893b;
  --gold-bright:#d8b25e;

  --bg:        #f3f7fb;
  --surface:   #ffffff;
  --surface-2: #eef3f9;
  --ink:       #0c1f3f;
  --ink-soft:  #41577a;
  --line:      rgba(12, 31, 63, 0.12);
  --on-dark:   #eaf2fb;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, "Courier New", monospace;

  --wrap: 980px;
  --radius: 14px;
  --shadow: 0 18px 50px -28px rgba(14, 33, 80, 0.45);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:        #07142e;
    --surface:   #0e1f44;
    --surface-2: #11264f;
    --ink:       #e7eefb;
    --ink-soft:  #9db2d6;
    --line:      rgba(231, 238, 251, 0.14);
    --gold:      #d8b25e;
    --turquoise: #34d3c5;
  }
}
:root[data-theme="dark"] {
  --bg:        #07142e;
  --surface:   #0e1f44;
  --surface-2: #11264f;
  --ink:       #e7eefb;
  --ink-soft:  #9db2d6;
  --line:      rgba(231, 238, 251, 0.14);
  --gold:      #d8b25e;
  --turquoise: #34d3c5;
}

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); }
:root[data-theme="dark"] a,
:root:not([data-theme="light"]) a { }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--narrow { max-width: 720px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.9rem;
}
.eyebrow--light { color: var(--gold-bright); }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--gold); color: #1a1304; padding: 0.6rem 1rem;
  border-radius: 0 0 8px 0; z-index: 100; font-weight: 600;
}
.skip-link:focus { left: 0; }

:where(a, button, input, textarea, summary):focus-visible {
  outline: 3px solid var(--turquoise);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- Header ---- */
.site-header { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 88%, transparent); position: sticky; top: 0; z-index: 50; backdrop-filter: blur(8px); }
.site-header__inner { display: flex; align-items: center; gap: 1.25rem; min-height: 68px; }
.brand { text-decoration: none; color: inherit; margin-right: auto; }
.brand__mark {
  font-family: var(--serif); font-weight: 900; font-size: 1.5rem;
  letter-spacing: 0.02em; color: var(--ink);
}
.brand__mark--sm { font-size: 1.2rem; }
.brand__mark .amp { color: var(--gold); font-style: italic; font-weight: 400; padding: 0 0.05em; }

.mainnav { display: flex; gap: 1.4rem; }
.mainnav a {
  text-decoration: none; color: var(--ink-soft); font-size: 0.9rem; font-weight: 500;
  padding: 0.3rem 0; position: relative;
}
.mainnav a:hover { color: var(--ink); }
.mainnav a.is-active { color: var(--ink); }
.mainnav a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--gold); border-radius: 2px;
}

.controls { display: flex; align-items: center; gap: 0.85rem; }
.lang {
  font-family: var(--mono); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.12em;
  text-decoration: none; color: var(--ink-soft); border: 1px solid var(--line);
  padding: 0.32rem 0.55rem; border-radius: 999px;
}
.lang:hover { color: var(--ink); border-color: var(--gold); }
.theme-toggle {
  background: none; border: 1px solid var(--line); border-radius: 999px;
  width: 36px; height: 36px; cursor: pointer; display: grid; place-items: center; color: var(--ink);
}
.theme-toggle:hover { border-color: var(--gold); }
.theme-toggle__icon { width: 16px; height: 16px; border-radius: 50%;
  background: radial-gradient(circle at 32% 32%, var(--gold-bright), var(--gold)); position: relative; }
:root[data-theme="dark"] .theme-toggle__icon,
:root:not([data-theme="light"]) .theme-toggle__icon { background: transparent; box-shadow: inset -4px -4px 0 0 var(--gold-bright); }

/* ---- Hero ---- */
.hero { position: relative; isolation: isolate; color: var(--on-dark);
  display: grid; align-items: center; min-height: clamp(560px, 86vh, 820px);
  overflow: hidden; }
.hero--short { min-height: clamp(420px, 60vh, 560px); }
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(120% 80% at 78% -10%, color-mix(in srgb, var(--turquoise) 70%, transparent), transparent 60%),
    radial-gradient(120% 90% at 10% 110%, color-mix(in srgb, var(--teal) 75%, transparent), transparent 55%),
    linear-gradient(160deg, var(--royal-deep) 0%, var(--royal) 42%, var(--teal) 100%);
  background-size: 160% 160%, 160% 160%, 100% 100%;
  animation: drift 26s ease-in-out infinite alternate;
}
.hero__bg::after { /* faint grain/wave shimmer */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 40% at 50% 120%, color-mix(in srgb, var(--turquoise) 55%, transparent), transparent 70%);
  opacity: 0.5;
}
.hero__horizon { position: absolute; left: 0; right: 0; top: 58%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-bright) 18%, var(--gold-bright) 82%, transparent);
  opacity: 0.85; z-index: -1; }
@keyframes drift { from { background-position: 0% 0%, 0% 100%, 0 0; } to { background-position: 100% 50%, 60% 0%, 0 0; } }

.hero__inner { padding-block: clamp(3rem, 9vh, 7rem); text-align: center; }
.hero__inner > * { animation: rise 0.9s cubic-bezier(.2,.7,.2,1) both; }
.hero__inner > *:nth-child(2) { animation-delay: 0.08s; }
.hero__inner > *:nth-child(3) { animation-delay: 0.16s; }
.hero__inner > *:nth-child(4) { animation-delay: 0.24s; }
.hero__inner > *:nth-child(5) { animation-delay: 0.32s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.hero__names {
  font-family: var(--serif); font-weight: 600; line-height: 0.92;
  font-size: clamp(3.4rem, 13vw, 8.5rem); margin: 0;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 30px rgba(0,0,0,0.25);
}
.hero__name { display: inline-block; }
.hero__amp { display: block; font-style: italic; font-weight: 400;
  font-size: 0.46em; color: var(--gold-bright); margin: 0.06em 0; }
.hero__title { font-family: var(--serif); font-weight: 600; font-size: clamp(2.4rem, 7vw, 4rem); margin: 0; }
.hero__tagline { max-width: 30ch; margin: 1.4rem auto 0; font-size: 1.12rem;
  color: color-mix(in srgb, var(--on-dark) 85%, transparent); }

.factbar { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9rem;
  margin: 2rem 0 0; padding: 0; }
.factbar__item { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px; padding: 0.5rem 1.25rem; backdrop-filter: blur(4px); }
.factbar dt { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold-bright); }
.factbar dd { margin: 0.1rem 0 0; font-weight: 500; }

.countdown { display: flex; justify-content: center; gap: 1.5rem; margin-top: 2rem; }
.countdown__cell span { font-family: var(--serif); font-size: clamp(1.8rem, 5vw, 2.6rem); display: block; }
.countdown__cell small { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold-bright); }

/* ---- Buttons ---- */
.btn { display: inline-block; text-decoration: none; font-weight: 600; cursor: pointer;
  border-radius: 999px; padding: 0.85rem 1.8rem; font-size: 1rem; border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: linear-gradient(180deg, var(--gold-bright), var(--gold)); color: #1c1402;
  box-shadow: 0 12px 30px -12px rgba(184,137,59,0.8); margin-top: 2.2rem; }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); margin-top: 1.5rem; }
.btn--ghost:hover { border-color: var(--gold); }

/* ---- Signposts (landing) ---- */
.signposts { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); }
.signpost { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.5rem; text-decoration: none; color: var(--ink); display: flex; flex-direction: column;
  gap: 0.6rem; position: relative; transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; }
.signpost:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow); }
.signpost .eyebrow { margin: 0; }
.signpost__desc { color: var(--ink-soft); font-size: 0.98rem; }
.signpost__arrow { color: var(--gold); font-size: 1.3rem; margin-top: auto; }

/* ---- Page head (inner pages) ---- */
.pagehead { border-bottom: 1px solid var(--line); padding-block: clamp(2.5rem, 6vw, 4rem) clamp(1.6rem, 3vw, 2.2rem);
  background:
    linear-gradient(180deg, var(--surface-2), transparent);
  position: relative; }
.pagehead::after { content: ""; position: absolute; left: 0; bottom: -1px; width: min(220px, 40%); height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent); }
.pagehead__title { font-family: var(--serif); font-weight: 600; margin: 0;
  font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1.05; }

.lede { font-size: 1.15rem; color: var(--ink-soft); margin: 0 0 2rem; }

/* ---- FAQ ---- */
.faq { display: grid; gap: 0.75rem; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; }
.faq__item[open] { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); }
.faq__q { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; padding: 1.1rem 1.4rem; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }
.faq__q::-webkit-details-marker { display: none; }
.faq__chevron { width: 11px; height: 11px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: rotate(45deg); transition: transform 0.25s ease; flex: none; }
.faq__item[open] .faq__chevron { transform: rotate(-135deg); }
.faq__a { padding: 0 1.4rem 1.3rem; color: var(--ink-soft); }

/* ---- Timeline ---- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, var(--gold), var(--teal)); opacity: 0.5; }
.timeline__item { position: relative; padding: 0 0 2rem 2.6rem; }
.timeline__item::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--surface); border: 3px solid var(--gold); }
.timeline__time { font-family: var(--mono); font-weight: 500; font-size: 0.95rem; color: var(--teal);
  letter-spacing: 0.05em; }
:root[data-theme="dark"] .timeline__time,
:root:not([data-theme="light"]) .timeline__time { color: var(--turquoise); }
.timeline__title { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; margin: 0.15rem 0 0.2rem; }
.timeline__note { margin: 0; color: var(--ink-soft); }

/* ---- Form ---- */
.form { display: grid; gap: 1.4rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; }
.field--narrow { max-width: 200px; }
.field label, .field__label, .field legend { font-weight: 500; font-size: 0.92rem; color: var(--ink); padding: 0; }
.req { color: var(--gold); margin-left: 0.15rem; }
.field input, .field textarea {
  font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 0.7rem 0.85rem; width: 100%; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.field input:focus, .field textarea:focus { border-color: var(--teal);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--turquoise) 30%, transparent); outline: none; }
.field textarea { resize: vertical; }
fieldset.field { border: none; margin: 0; padding: 0; }

.choice { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.2rem; }
.chip { display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px; padding: 0.5rem 1rem; background: var(--surface);
  font-weight: 500; font-size: 0.95rem; transition: border-color 0.15s ease, background 0.15s ease; }
.chip:hover { border-color: var(--gold); }
.chip:has(input:checked) { border-color: var(--teal); background: color-mix(in srgb, var(--turquoise) 14%, var(--surface)); }
.chip input { accent-color: var(--teal); width: auto; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Notice / success ---- */
.notice { border-radius: var(--radius); padding: 2rem; border: 1px solid var(--line); background: var(--surface); }
.notice--success { border-color: color-mix(in srgb, var(--teal) 50%, var(--line));
  background: color-mix(in srgb, var(--turquoise) 10%, var(--surface)); }
.notice__title { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; margin: 0 0 0.4rem; color: var(--teal); }
:root[data-theme="dark"] .notice__title,
:root:not([data-theme="light"]) .notice__title { color: var(--turquoise); }

/* ---- Prose (privacy) ---- */
.prose { color: var(--ink-soft); }
.prose h2 { font-family: var(--serif); color: var(--ink); font-weight: 600; font-size: 1.4rem;
  margin: 2rem 0 0.5rem; }
.prose p { margin: 0 0 1rem; }
.prose a { color: var(--teal); }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--line); margin-top: 2rem; padding-block: 2.5rem; background: var(--surface-2); }
.site-footer__inner { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.site-footer__meta { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }
.site-footer__links { margin-left: auto; display: flex; gap: 1.2rem; }
.site-footer__links a { color: var(--ink-soft); text-decoration: none; font-size: 0.9rem; }
.site-footer__links a:hover { color: var(--gold); }

/* ---- Responsive ---- */
@media (max-width: 720px) {
  .mainnav { display: none; }
  .signposts { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
}

/* ---- Motion / a11y ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto; }
}
