/* Tokens, type scale, and spacing from the editorial redesign. */

@font-face {
  font-family: Fraunces;
  font-style: normal;
  font-weight: 520;
  font-display: swap;
  src: url("/fonts/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Fraunces;
  font-style: normal;
  font-weight: 560;
  font-display: swap;
  src: url("/fonts/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Fraunces;
  font-style: italic;
  font-weight: 520;
  font-display: swap;
  src: url("/fonts/fraunces-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/plex-mono-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ivory: #fbf8f2;
  --ink: #141414;
  --accent: #19b5b0;
  --line: rgba(20, 20, 20, 0.14);
  --muted: rgba(20, 20, 20, 0.62);
  --serif: Fraunces, "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  --sans: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --pad: clamp(1rem, 3vw, 2rem);
  --header: 4.75rem;
  --wrap: 1120px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; background: #efeae2; }

a {
  color: var(--ink);
  text-underline-offset: 0.18em;
}

a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

::selection {
  background: var(--accent);
  color: var(--ink);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--ivory);
  padding: 0.5rem 0.8rem;
  z-index: 20;
}

.skip:focus { top: 0.5rem; }

.wrap {
  width: min(var(--wrap), calc(100% - var(--pad) * 2));
  margin-inline: auto;
}

.kicker,
.caption,
label,
.privacy,
.footer-note,
.optional {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.kicker {
  font-size: calc(0.72rem * 1.5);
}

h2.kicker {
  margin: 0 0 1.1rem;
  line-height: 1.4;
  text-wrap: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

h1,
h2,
.display {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 0.96;
  text-wrap: balance;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  min-height: var(--header);
  padding: 0.7rem var(--pad);
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.wordmark img {
  height: 50px;
  width: auto;
  background: transparent;
}

.launch-copy {
  width: min(var(--wrap), calc(100% - var(--pad) * 2));
  margin-inline: auto;
}

.hero {
  margin: 0;
  background: var(--ivory);
}

.hero img {
  width: 100%;
  height: auto;
  background: var(--ivory);
}

.statement { padding: 1.6rem 0 0; }

.rule {
  display: block;
  width: 2.5rem;
  height: 2px;
  background: var(--accent);
  margin: 0.85rem 0 1.15rem;
  border: 0;
}

.statement h1 {
  font-size: clamp(2.7rem, 8vw, 6.4rem);
  margin: 0 0 1.2rem;
  max-width: 7.2em;
}

.lede,
.sail,
.journey {
  max-width: 36rem;
  margin: 0;
  font-size: 1.15rem;
}

.sail { margin-top: 1rem; }

.journey { margin-top: 0.85rem; }

.journey a {
  color: var(--ink);
  text-decoration-color: var(--accent);
  text-underline-offset: 0.2em;
}

.thanks h2,
.page h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin: 0.35rem 0 1rem;
}

.notify {
  padding: 1.75rem 0 2.25rem;
  scroll-margin-top: calc(var(--header) + 1rem);
}

.notify h2 {
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  margin: 0 0 0.7rem;
}

.notify .intro {
  max-width: 34rem;
  margin: 0 0 0.9rem;
  font-size: 1.05rem;
}

form {
  display: grid;
  gap: 0.7rem;
  max-width: 40rem;
  position: relative;
}

.fields { display: grid; gap: 0.7rem; }

.field { display: grid; gap: 0.35rem; }

.optional {
  letter-spacing: 0.04em;
  text-transform: none;
}

input {
  font: inherit;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  padding: 0.75rem 0.8rem;
  min-height: 48px;
  width: 100%;
  border-radius: 0;
}

input:user-invalid {
  border-color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--accent);
}

button {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--ivory);
  border: 0;
  min-height: 48px;
  padding: 0.85rem 1.15rem;
  cursor: pointer;
  width: 100%;
}

button:hover { background: var(--accent); color: var(--ink); }

button:disabled { opacity: 0.55; cursor: progress; }

.privacy {
  margin: 0.15rem 0 0;
  font-family: var(--sans);
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.45;
}

.form-error { margin: 0; color: var(--ink); }

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.thanks h2 { margin-top: 0; }

.thanks p { max-width: 34rem; font-size: 1.15rem; }

.site-footer {
  padding: 1.6rem var(--pad) 2.4rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.5rem;
  justify-content: space-between;
  align-items: baseline;
}

.site-footer a,
.footer-note {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.site-footer a { text-decoration-color: var(--accent); }

.footer-note { margin: 0; color: var(--muted); }

.page {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 10vw, 7rem);
  min-height: calc(100vh - 14rem);
}

.page h1 { max-width: 10em; }

.page p { max-width: 36rem; font-size: 1.15rem; }

.page a.back {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}

@media (min-width: 760px) {
  :root { --header: 5.15rem; }
  .wordmark img { height: 58px; }
  .statement { padding-top: clamp(2.4rem, 6vw, 4.25rem); }
  .notify { padding: 2rem 0 2.5rem; }
}

/* Desktop: full portrait on the left, announcement and sign-up on the right.
   The image keeps its own ratio, so the face and gown are not cropped. */
@media (min-width: 960px) {
  .launch {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    min-height: calc(100svh - var(--header));
  }

  .hero {
    display: flex;
    align-items: center;
    padding: 1.15rem 0 1.15rem var(--pad);
  }

  .hero img {
    width: auto;
    height: auto;
    max-width: min(48vw, 640px);
    max-height: calc(100svh - var(--header) - 2.75rem);
    object-fit: contain;
    object-position: center top;
  }

  .launch-copy {
    width: auto;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 1.5rem var(--pad) 2rem clamp(1.5rem, 3vw, 2.75rem);
  }

  .launch .statement { padding-top: 0; }

  .launch .notify { padding-bottom: 0; }
}

@media (min-width: 900px) {
  .fields {
    grid-template-columns: minmax(9rem, 0.7fr) minmax(14rem, 1.2fr);
    align-items: end;
  }
  button { width: fit-content; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
