/* ---------------------------------------------------------------- fonts */
/* Self-hosted so the CSP can stay `default-src 'self'`. Cinzel is the closest
   open face to the Trajan-style capitals in the logo. */

@font-face { font-family: "Cinzel"; src: url("/fonts/cinzel-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url("/fonts/cinzel-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("/fonts/eb-garamond-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("/fonts/eb-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("/fonts/eb-garamond-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

/* --------------------------------------------------------------- tokens */
/* Light page, dark hero — the logo was drawn on black. */

:root {
  color-scheme: light;

  --night: #0e110f;          /* the logo's black, a breath of green */
  --night-2: #171c19;
  --moon: #f3f1ea;
  --moon-soft: rgba(243, 241, 234, 0.68);

  --page: #f7f5ef;
  --ink: #20241e;
  --ink-soft: #565b52;
  --rule: #dcd8cc;
  --field: #ffffff;
  --field-line: #cfcabd;
  --accent: #3d5a45;
  --ok: #3d5a45;
  --error: #a33a22;

  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --serif: "EB Garamond", "Iowan Old Style", Palatino, Georgia, serif;
  --measure: 36rem;
  --gutter: 1.25rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 4px; text-decoration-thickness: 1px; }
@media (hover: hover) { a:hover { text-decoration-thickness: 2px; } }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

/* ----------------------------------------------------------------- hero */

.hero {
  /* Short of a full screen on purpose, so a phone shows the start of what's below. */
  min-height: min(88vh, 50rem);
  min-height: min(88svh, 50rem);
  display: grid;
  place-items: center;
  padding: 4.5rem var(--gutter) 4rem;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, var(--night-2), transparent 70%),
    var(--night);
  color: var(--moon);
  text-align: center;
}

.hero__inner { display: flex; flex-direction: column; align-items: center; width: 100%; }

.hero__mark { margin: 0; width: clamp(12.5rem, 58vw, 18rem); }
.hero__mark img { width: 100%; animation: rise 1.4s ease-out both; }

.hero__eyebrow {
  margin: 1.4rem -0.3em 2.25rem 0; /* negative right margin offsets the trailing letter-spacing */
  font-family: var(--display);
  font-size: 0.8125rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--moon-soft);
  animation: rise 1.4s 0.25s ease-out both;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 48px;
  max-width: 100%;
  padding: 0.75rem 1.5rem;
  border: 1px solid rgba(243, 241, 234, 0.4);
  border-radius: 999px;
  background: transparent;
  color: var(--moon);
  font: 400 1.0625rem/1.3 var(--serif);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.hero .button { animation: rise 1.4s 0.45s ease-out both; }
@media (hover: hover) { .button:hover { background: var(--moon); border-color: var(--moon); color: var(--night); } }
.button__icon { width: 1.15rem; height: 1.15rem; flex: none; }

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__mark img, .hero__eyebrow, .hero .button { animation: none; }
}

/* -------------------------------------------------------------- welcome */

.welcome {
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 4rem var(--gutter) 3.5rem;
  text-align: center;
}

h2 {
  margin: 0 0 1.25rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.55rem, 6vw, 2.1rem);
  letter-spacing: 0.04em;
  line-height: 1.25;
}

.label {
  font-size: 0.8125rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

.welcome__intro p { margin: 0; color: var(--ink-soft); }

.soon, .contact {
  margin-top: 3.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--rule);
}

.soon__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
  color: var(--ink-soft);
}
.soon__list span { color: var(--ink); font-weight: 500; }

.welcome__fb { margin: 3.5rem 0 0; font-style: italic; }

/* -------------------------------------------------------------- contact */

.contact__lede { margin: 0 0 2rem; color: var(--ink-soft); }

.form { display: grid; gap: 1.1rem; text-align: left; }
.form__row { display: grid; gap: 1.1rem; }
@media (min-width: 560px) { .form__row { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: 0.35rem; }
.field > span { font-size: 0.95rem; color: var(--ink-soft); }
.field em { font-style: italic; opacity: 0.8; }

.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--field-line);
  border-radius: 8px;
  background: var(--field);
  color: var(--ink);
  /* Never below 16px: iOS Safari zooms the whole page into smaller inputs. */
  font: 400 1.0625rem/1.4 var(--serif);
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 8.5rem; }
.field input:focus,
.field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }

.form__captcha:empty { display: none; }
.form__captcha { display: flex; justify-content: center; min-height: 65px; }

.field--trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.button--solid {
  justify-self: center;
  width: 100%;
  margin-top: 0.4rem;
  border-color: var(--ink);
  background: var(--ink);
  color: var(--page);
}
@media (hover: hover) { .button--solid:hover { background: transparent; color: var(--ink); border-color: var(--ink); } }
.button--solid:disabled { opacity: 0.55; cursor: progress; }
@media (min-width: 560px) { .button--solid { width: auto; min-width: 14rem; } }

.form__status { margin: 0; text-align: center; font-style: italic; }
.form__status--ok { color: var(--ok); }
.form__status--error { color: var(--error); }

/* --------------------------------------------------------------- footer */

.footer {
  padding: 2.75rem var(--gutter) max(3rem, calc(1.5rem + env(safe-area-inset-bottom)));
  border-top: 1px solid var(--rule);
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}
.footer__mark { width: 3.5rem; margin: 0 auto 1rem; opacity: 0.85; }
.footer p { margin: 0; }
