@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-900.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-900.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Spline Sans Mono";
  src: url("/fonts/spline-sans-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Spline Sans Mono";
  src: url("/fonts/spline-sans-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --stage: #205a40;
  --paper: #f2ede1;
  --gold: #f0c56e;
  --coral: #e8613c;
  --ink: #141a12;
  --paper-muted: #b7b19f;
  --bowl-deep: #174a31;
  --font-display: "Fraunces", ui-serif, Georgia, serif;
  --font-body: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Spline Sans Mono", ui-monospace, monospace;
  --space: clamp(1.25rem, 4vw, 3rem);
  --wide: 44rem;
  --radius: 1.35rem;
  --radius-sm: 0.85rem;
  --radius-pill: 999px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--stage);
  color: var(--paper);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.0625rem;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p {
  margin: 0;
}

button,
input {
  font: inherit;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: var(--space);
  top: -5rem;
  z-index: 20;
  padding: 0.6rem 0.9rem;
  background: var(--gold);
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: var(--space);
}

.wordmark {
  /* font-family: var(--font-mono); */
  /* font-weight: 400; */
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-sm);
}

.brand .wordmark {
 /*  font-family: var(--font-body);
  font-weight: 900; */
  font-size: clamp(1.05rem, 4.8vw, 1.45rem);
  font-stretch: condensed;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.wordmark-heal,
.brand .wordmark-food,
.brand .wordmark-dot,
.brand .wordmark-tld {
  color: var(--paper);
}

.wordmark-up {
  color: var(--gold);
}

.wordmark-food {
  color: var(--paper-muted);
}

.site-header {
  display: flex;
  align-items: center;
  max-width: var(--wide);
  margin: 0 auto;
  padding: var(--space) var(--space) 0;
}

.hero {
  display: grid;
  gap: 1.25rem;
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 3.5rem) var(--space) 0;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.35rem, 7.2vw, 4.15rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  width: 100%;
}

.subhead {
  width: 100%;
  max-width: none;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 800;
  line-height: 1.35;
}

.attack {
  color: var(--coral);
}

.join {
  position: relative;
  margin-top: 1.5rem;
  width: 100%;
  max-width: none;
  background: var(--paper);
  color: var(--ink);
  padding: 1.6rem 1.4rem;
  border-radius: var(--radius);
}

.hero-art {
  position: absolute;
  top: 0;
  right: -0.35rem;
  z-index: 1;
  width: clamp(5.25rem, 18vw, 7rem);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  transform: translateY(-68%);
  pointer-events: none;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--ink) 32%, transparent);
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.join-form {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

.field input {
  width: 100%;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  padding: 0.95rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 1.125rem;
  font-weight: 800;
}

.field input:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 0;
  border-color: var(--ink);
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 3.5rem;
  padding: 0.9rem 1.25rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover:not(:disabled) {
  background: #e3b65c;
  transform: translateY(-1px);
}

.btn:disabled {
  cursor: wait;
  color: var(--bowl-deep);
}

.btn-ink {
  background: var(--ink);
  color: var(--paper);
}

.btn-ink:hover:not(:disabled) {
  background: #1d241b;
}

.form-error {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--coral);
  margin: 0;
}

.form-success {
  display: none;
  justify-items: center;
  align-content: center;
  gap: 0.9rem;
  width: 100%;
  text-align: center;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  line-height: 1.35;
  color: var(--ink);
  margin: 0;
}

.form-success-icon {
  width: 3.35rem;
  height: 3.35rem;
  color: var(--gold);
}

.form-success-icon path {
  stroke: var(--ink);
}

.join.is-success {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 14rem;
}

.join.is-success .hero-art {
  display: none;
}

.join.is-success .form-success {
  display: grid;
}

.join-form[hidden] {
  display: none;
}

.form-success:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.site-footer {
  max-width: var(--wide);
  margin: clamp(2.5rem, 8vw, 5rem) auto 0;
  padding: clamp(2rem, 6vw, 3.5rem) var(--space) var(--space);
  border-top: 2px solid color-mix(in srgb, var(--paper) 22%, transparent);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}

.social,
.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.social a,
.text-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--paper);
  background: none;
  border: 0;
  padding: 0;
  text-decoration: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease;
}

.social a:hover,
.text-btn:hover {
  color: var(--gold);
}

.footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1.1rem;
  margin-top: 2rem;
}

.copyright {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--paper-muted);
  margin-top: 0.65rem;
}

.legal-dialog {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  width: min(34rem, calc(100% - 2rem));
}

.legal-dialog::backdrop {
  background: color-mix(in srgb, var(--stage) 82%, var(--ink));
}

.legal-panel {
  background: var(--paper);
  padding: 1.5rem;
  border-radius: var(--radius);
}

.legal-panel h2 {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 1.35rem;
  margin-bottom: 0.9rem;
}

.legal-body {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.legal-body p {
  font-size: 0.98rem;
}

@media (max-width: 799px) {
  .hero {
    margin-top: 1.75rem;
  }

  .hero h1 {
    font-size: clamp(1.35rem, 8vw, 2.05rem);
    letter-spacing: -0.045em;
    white-space: nowrap;
  }
}

@media (min-width: 800px) {
  .hero {
    padding-top: 2rem;
  }

  .join {
    padding: 2.25rem 2.5rem;
  }
}

.site-header,
.hero h1,
.subhead,
.join,
.site-footer {
  animation: enter-up 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.site-header {
  animation-delay: 0.06s;
}

.hero h1 {
  animation-delay: 0.16s;
}

.subhead {
  animation-delay: 0.4s;
}

.join {
  animation-delay: 0.54s;
}

.site-footer {
  animation-delay: 0.7s;
}

.legal-dialog[open] {
  animation: enter-up 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.legal-dialog[open]::backdrop {
  animation: enter-fade 0.3s ease both;
}

@keyframes enter-up {
  from {
    opacity: 0;
    transform: translateY(1.15rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes enter-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
