/* Deep olive green and cream. Script names, tracked caps, Jost text. Always dark. */
:root {
  color-scheme: dark;
  --gx: clamp(1.25rem, 5vw, 3rem);
  --bg: #3a4226;
  --card: rgba(238, 231, 208, .06);
  --line: rgba(238, 231, 208, .34);
  --ink: #e6dfc6;
  --text: #efe9d6;
  --strong: #f8f4e4;
  --field: #313820;
  --err: #ffd0b8;
  --olive: #e6dfc6;
  --on-ink: #3a4226;
  --script: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg); color: var(--text);
  font-family: var(--body); font-weight: 400; font-size: 1.1875rem; line-height: 1.65; letter-spacing: .005em;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--bg); z-index: 20; }
a { color: var(--strong); text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--strong); outline-offset: 3px; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--bg); color: var(--strong); padding: .6rem 1rem; z-index: 30; }
.skip:focus { top: 1rem; }

.gx {
  padding-left: max(var(--gx), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gx), env(safe-area-inset-right, 0px));
}

/* ---------- Language row and tabs ---------- */
.langs { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 1.1rem; padding-block: .55rem 0; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; }
.langs a { color: var(--ink); opacity: .7; text-decoration: none; padding: .45rem 0; border-bottom: 1px solid transparent; }
.langs a:hover { color: var(--strong); opacity: 1; }
.langs a[aria-current="page"] { color: var(--strong); opacity: 1; }

.tabs {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  display: flex; gap: 1.9rem; overflow-x: auto; scrollbar-width: none;
  background: var(--bg); border-bottom: 1px solid var(--line);
  font-size: .9rem; letter-spacing: .16em; text-transform: uppercase;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  flex: none; padding: .95rem 0 .8rem; color: var(--ink); text-decoration: none;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs a:hover { color: var(--strong); }
.tabs a[aria-current="true"] { color: var(--strong); border-bottom-color: var(--strong); }

/* ---------- Welcome ---------- */
.portrait { width: min(15rem, 64vw); aspect-ratio: 4 / 5; margin: 0 auto clamp(2rem, 6vw, 3rem); border-radius: 999px 999px 0 0; overflow: hidden; background: var(--card); }
.portrait img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero { text-align: center; padding-block: clamp(3rem, 9vw, 6rem) clamp(3rem, 8vw, 5rem); scroll-margin-top: 4rem; }
.names {
  margin: 0; font-family: var(--script); font-style: normal; font-weight: 500; color: var(--strong);
  font-size: clamp(4.4rem, 20vw, 6.5rem); line-height: .98; text-wrap: balance;
}
.names span { display: block; }
.names .amp { font-style: italic; font-size: .5em; line-height: 1.1; margin: .08em 0 .04em; color: var(--ink); }
.date { margin: clamp(2.5rem, 7vw, 4rem) 0 .6rem; color: var(--ink); font-size: clamp(1.05rem, 3.6vw, 1.35rem); letter-spacing: .24em; text-transform: uppercase; line-height: 1.5; }
.place { margin: 0; color: var(--ink); font-size: clamp(.95rem, 3vw, 1.15rem); letter-spacing: .24em; text-transform: uppercase; }
.count { display: flex; max-width: 21rem; margin: 2.25rem auto 0; padding: .95rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 4.6rem; color: var(--strong); }
.count > div { flex: 1; min-width: 0; }
.count .n { display: block; font-family: var(--body); font-weight: 500; font-size: 1.9rem; line-height: 1; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.count .u { display: block; margin-top: .45rem; color: var(--ink); font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; }
.welcome { margin: 2.5rem auto 0; max-width: 24rem; color: var(--text); font-family: var(--display); font-style: italic; font-size: 1.45rem; line-height: 1.5; text-wrap: balance; }

/* ---------- Password gate ---------- */
.gate { min-height: 70svh; }
.gate-msg { margin: 2.5rem auto 1.5rem; max-width: 24rem; color: var(--text); font-family: var(--display); font-style: italic; font-size: 1.45rem; line-height: 1.5; text-wrap: balance; }
.gate-form { display: grid; gap: .5rem; max-width: 24rem; margin: 0 auto; text-align: left; }
.gate-form label { font-weight: 500; color: var(--ink); font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; }
.gate-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.gate-row input { flex: 1 1 11rem; min-width: 0; }
.gate .status { text-align: center; }

/* ---------- Sections ---------- */
main { display: block; }
.sec { border-top: 1px solid var(--line); padding-block: clamp(3rem, 8vw, 5rem); scroll-margin-top: 3.5rem; }
.sec-in { max-width: 40rem; margin: 0 auto; }
.sec h2 { margin: 0 0 2.25rem; text-align: center; font-family: var(--script); font-weight: 500; color: var(--strong); font-size: clamp(2.8rem, 10vw, 3.9rem); line-height: 1.1; text-wrap: balance; }

.tba { margin: 0 0 1.5rem; color: var(--ink); font-family: var(--display); font-style: italic; font-size: 1.3rem; line-height: 1.5; text-align: center; }
.stop { background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 1.75rem; margin: 0 0 1.1rem; }
.stop h3 { margin: 0 0 .9rem; color: var(--strong); font-family: var(--body); font-size: .95rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; line-height: 1.4; }
.stop p { margin: 0; }
.stop address { font-style: normal; margin: 0; }
.where { display: flex; gap: .75rem; color: inherit; text-decoration: none; line-height: 1.65; }
.where svg { flex: none; margin-top: .2rem; }
.where .addr { text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 1px; text-underline-offset: .28em; }
.where:hover .addr { text-decoration-color: var(--strong); }
.where .venue { display: block; color: var(--strong); }

.contact { max-width: 30rem; margin: 0 auto; padding: 2.2rem 1.5rem; background: var(--card); border: 1px solid var(--line); border-radius: 4px; text-align: center; }
.contact .lead { margin: 0 auto .6rem; max-width: 22rem; font-family: var(--display); font-style: italic; font-weight: 500; font-size: 1.75rem; line-height: 1.3; color: var(--strong); }
.contact .small { margin: 0 auto 1.4rem; max-width: 21rem; font-size: 1.1rem; line-height: 1.65; text-wrap: balance; }
.contact .rule { width: 3rem; height: 1px; margin: 0 auto 1.4rem; background: var(--line); }
.contact .mail { margin: 0; font-size: clamp(.9rem, 4.2vw, 1.05rem); }
.contact a { color: var(--strong); letter-spacing: .01em; overflow-wrap: anywhere; text-decoration-color: var(--line); text-decoration-thickness: 1px; text-underline-offset: .28em; }
.contact a:hover { text-decoration-color: var(--strong); }

/* ---------- Inputs ---------- */
input[type="password"] {
  width: 100%; font: inherit; color: var(--strong); padding: .8rem 1rem;
  background: var(--field); border: 1px solid var(--line); border-radius: 2px;
}
input:focus-visible { outline: 3px solid var(--strong); outline-offset: 1px; }
button { font: inherit; font-weight: 500; font-size: .9rem; padding: .8rem 1.8rem; background: var(--ink); color: var(--on-ink); border: 0; border-radius: 2px; cursor: pointer; letter-spacing: .16em; text-transform: uppercase; }
button:hover { background: var(--strong); }
.status { margin: 0; font-weight: 500; min-height: 1.5em; }
.status.is-error { color: var(--err); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding-block: 3rem 3.5rem; text-align: center; }
.emblem { display: block; width: 12rem; max-width: 70%; height: auto; margin: 0 auto 1.25rem; color: var(--olive); }
.emblem text { font-family: var(--body); font-weight: 500; }
.emblem .mono text { font-family: var(--display); font-weight: 500; font-style: italic; }
footer p { margin: 0; color: var(--ink); }

@media (min-width: 900px) {
  body { font-size: 1.3125rem; }
  .sec-in { max-width: 46rem; }
  .names { font-size: clamp(6rem, 9vw, 8rem); }
  .stop { padding: 2.25rem; }
  .emblem { width: 13rem; }
  .portrait { width: 17rem; }
  .tabs { justify-content: center; gap: 3rem; }
  .langs { padding-right: max(var(--gx), env(safe-area-inset-right, 0px)); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
