@font-face {
  font-family: "Marcellus";
  src: url("/fonts/marcellus-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/fonts/hanken-grotesk-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --crepe: #F5EEE6;      /* the cream abaya */
  --ink: #000000;        /* the black underdress and embroidery */
  --stone: #675D55;      /* secondary text on crepe */
  --seam: #D8CCBF;       /* hairlines and field borders on crepe */
  --mist: #BDB3A9;       /* secondary text on ink */
  --error: #8E1B1B;
  --error-on-ink: #F2A7A7;

  --display: "Marcellus", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --text: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --measure: 34rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--crepe);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; }

.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 var(--gutter); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: var(--crepe); padding: 10px 14px; z-index: 10; }
.skip:focus { top: 8px; }

/* ---------- Hero ---------- */

.hero { padding: clamp(56px, 10vw, 120px) 0 clamp(48px, 7vw, 88px); text-align: center; }
.hero-inner { display: flex; flex-direction: column; align-items: center; }

.wordmark { margin: 0 0 clamp(40px, 7vw, 72px); line-height: 1; }
.wm-name {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-right: -0.32em; /* optically recentre tracked caps */
}
.wm-sub {
  display: block;
  font-family: var(--text);
  margin-top: 0.7em;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  margin-right: -0.5em;
}

/* On the home page the wordmark is the headline. */
.hero .wordmark { margin: 0; }
.hero .wm-name { font-size: clamp(2.6rem, 9vw, 5.2rem); letter-spacing: 0.26em; margin-right: -0.26em; }
.hero .wm-sub { font-size: clamp(0.72rem, 1.4vw, 0.95rem); margin-top: 1.1em; }


/* ---------- Forms (shared) ---------- */

input[type="email"], input[type="text"], textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #FFFDFA;
  border: 1px solid var(--ink);
  border-radius: 2px;
  padding: 0.8rem 0.9rem;
  min-height: 3.1rem;
}
textarea { resize: vertical; min-height: 9rem; }
input::placeholder { color: #9A8F85; }
input:focus-visible, textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

button {
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--crepe);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 2px;
  padding: 0.8rem 1.4rem;
  min-height: 3.1rem;
  cursor: pointer;
  white-space: nowrap;
}
button:hover { background: var(--crepe); color: var(--ink); }
button[disabled] { opacity: 0.6; cursor: progress; }

.field-row { display: flex; gap: 8px; }
.field-row input { flex: 1 1 auto; min-width: 0; }

.status { min-height: 1.5em; margin: 0.75rem 0 0; font-size: 0.98rem; }
.status.is-error { color: var(--error); }

/* ---------- Join (hero form) ---------- */

.join { width: 100%; max-width: 31rem; margin: clamp(40px, 6vw, 64px) auto 0; text-align: left; }
.join-title { font-size: 1.5rem; text-align: center; }
.join-help { margin: 0.4rem 0 1.1rem; text-align: center; color: var(--stone); }
.join .status { text-align: center; }
.join .status.is-done { font-family: var(--display); font-size: 1.2rem; }
.fine { margin: 0.25rem 0 0; font-size: 0.85rem; color: var(--stone); text-align: center; }

/* ---------- Early access (black) ---------- */

.access { background: var(--ink); color: var(--crepe); padding: clamp(40px, 6vw, 64px) 0 clamp(16px, 3vw, 32px); }


.code { max-width: 31rem; margin: 0 auto; text-align: center; }
.code label { display: block; font-family: var(--display); font-size: 1.35rem; margin-bottom: 0.8rem; }
.code input {
  background: transparent;
  color: var(--crepe);
  border-color: var(--crepe);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.code input:focus-visible { outline-color: var(--crepe); }
.code button { background: var(--crepe); color: var(--ink); border-color: var(--crepe); }
.code button:hover { background: var(--ink); color: var(--crepe); }
.code .status { color: var(--mist); }
.code .status.is-error { color: var(--error-on-ink); }

/* ---------- Contact ---------- */

.contact { padding: clamp(56px, 9vw, 112px) 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 7vw, 96px); align-items: start; }
.contact h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.contact-intro > p { color: var(--stone); max-width: 26rem; margin: 0.9rem 0 0; }
.contact h3 { font-size: 1.3rem; margin-top: 2.6rem; }

.socials { list-style: none; padding: 0; margin: 0.9rem 0 0; max-width: 26rem; }
.socials li { border-top: 1px solid var(--seam); }
.socials li:last-child { border-bottom: 1px solid var(--seam); }
.socials a { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.8rem 0; text-decoration: none; font-weight: 500; }
.socials a span { color: var(--stone); font-weight: 400; font-size: 0.95rem; }
.socials a:hover span, .socials a:focus-visible span { color: var(--ink); text-decoration: underline; }

.contact-form .field { margin-bottom: 1.1rem; }
.contact-form label { display: block; font-weight: 500; margin-bottom: 0.35rem; }
.contact-form .check { display: flex; gap: 0.6rem; align-items: center; font-weight: 400; margin: 0.2rem 0 1.4rem; cursor: pointer; }
.check input { width: 1.15rem; height: 1.15rem; accent-color: var(--ink); margin: 0; }

/* ---------- Footer ---------- */

.footer { border-top: 1px solid var(--seam); padding: 28px 0 36px; font-size: 0.92rem; color: var(--stone); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 8px 32px; align-items: baseline; }
.footer p { margin: 0; }
.footer-mark { font-family: var(--display); color: var(--ink); font-size: 1.05rem; margin-right: auto !important; }

/* ---------- Simple pages (privacy) ---------- */

.page { padding: clamp(28px, 6vw, 64px) 0 clamp(56px, 8vw, 96px); }
.page .wordmark { text-align: center; margin-bottom: clamp(40px, 7vw, 72px); }
.page .wordmark a { text-decoration: none; }
.prose { max-width: 40rem; margin: 0 auto; }
.prose h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 0.4rem; }
.prose h2 { font-size: 1.35rem; margin: 2.2rem 0 0.5rem; }
.prose p, .prose li { color: #2B2622; }
.prose .updated { color: var(--stone); margin-top: 0; }

/* ---------- Small screens ---------- */

@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
  .footer-mark { flex-basis: 100%; }
}

@media (max-width: 440px) {
  .field-row { flex-direction: column; }
  .field-row button { width: 100%; }
}

@media (prefers-reduced-motion: no-preference) {
  .status.is-done { animation: settle 420ms ease-out; }
  @keyframes settle { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}
.prose-center { text-align: center; }
