:root {
  --navy: #262a6b;
  --navy-line: rgba(244, 239, 230, 0.16);
  --cream: #f4efe6;
  --cream-soft: rgba(244, 239, 230, 0.72);
  --amber: #f2a93b;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: var(--navy);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.page {
  min-height: 100vh;
  min-height: 100svh;
  max-width: 1296px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
}

.top {
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--navy-line);
}

.wordmark {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.wordmark em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.2em;
  letter-spacing: 0;
}

.hero {
  flex: 1;
  display: grid;
  gap: 40px;
  align-items: center;
  padding: 48px 0;
}

.eyebrow {
  margin: 0 0 20px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-soft);
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--amber);
  vertical-align: 1px;
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.25rem, 8.5vw, 6.5rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.lede {
  margin: 24px 0 36px;
  font-size: 19px;
  color: var(--cream-soft);
}

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

.hp { position: absolute; left: -9999px; }

.join { max-width: 480px; }

.field {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.field input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 15px 16px;
  font: inherit;
  font-size: 16px;
  color: var(--cream);
  background: transparent;
  border: 1px solid rgba(244, 239, 230, 0.45);
  border-radius: 2px;
}

.field input::placeholder { color: rgba(244, 239, 230, 0.6); }

.field input:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
  border-color: var(--cream);
}

.is-error .field input { border-color: var(--amber); }

.field button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 15px 20px;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  color: var(--navy);
  background: var(--cream);
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.field button:hover { background: #fff; }
.field button:disabled { opacity: 0.7; cursor: progress; }

.done {
  margin: 0;
  font-family: var(--serif);
  font-size: 24px;
}

@media (max-width: 520px) {
  .field button { flex-basis: 100%; }
}

.field button:focus-visible,
.fine a:focus-visible,
.foot a:focus-visible,
.wordmark:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
}

.fine {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--cream-soft);
}

.fine a { text-underline-offset: 3px; }

.shot { margin: 0; }

.frame { position: relative; }

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* The open tin sits over the corner of the main shot, so the chews read at a glance. */
.shot .inset {
  position: absolute;
  left: 12px;
  bottom: -28px;
  width: 42%;
  max-width: 300px;
  border: 4px solid var(--cream);
  box-shadow: 0 12px 32px rgba(10, 12, 40, 0.35);
}

.shot figcaption {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: right;
  color: var(--cream-soft);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 24px 0 32px;
  border-top: 1px solid var(--navy-line);
  font-size: 13px;
  color: var(--cream-soft);
}

.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }

@media (min-width: 900px) {
  .page { padding: 0 72px; }
  .shot .inset { left: -12px; }
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 64px;
    padding: 64px 0;
  }
}

/* Privacy page */
.prose {
  flex: 1;
  max-width: 640px;
  padding: 56px 0;
}

.prose h1 { font-size: clamp(2.5rem, 6vw, 3.5rem); margin-bottom: 28px; }
.prose p, .prose li { color: var(--cream-soft); }
.prose h2 {
  margin: 32px 0 8px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  color: var(--cream);
}

@media (prefers-reduced-motion: reduce) {
  .field button { transition: none; }
}
