@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dm-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dm-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --olive: #30371b;
  --dark-olive: #292f1b;
  --paper: #f6f0e3;
  --cream: #f5e8d7;
  --light: #fff3e0;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --header-height: 88px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  color: var(--olive);
  background: var(--paper);
  font: 1rem/1.5 var(--sans);
}

img { display: block; width: 100%; }
a { color: inherit; }
p, h1, h2 { margin: 0; }
h1, h2 { font: 400 1em/.98 var(--serif); }
em { font-weight: inherit; }
:focus-visible { outline: 2px solid #b88651; outline-offset: 5px; }

.shell {
  width: min(1280px, calc(100% - 112px));
  margin-inline: auto;
}

.site-header {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-header .wordmark { width: clamp(148px, 15vw, 222px); }

.hero-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  border-bottom: 1px solid #faefd64f;
}

.action {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 11px 21px;
  background: var(--cream);
  color: var(--dark-olive);
  text-align: center;
  text-decoration: none;
  font: 600 .9375rem/1.3 var(--sans);
  cursor: pointer;
}

.action:hover:not(:disabled) { background: #fff6e8; }
.action:disabled { cursor: default; }
fieldset[aria-busy="true"] .action:disabled { cursor: wait; }

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(780px, 90svh);
  display: flex;
  flex-direction: column;
  padding-top: var(--header-height);
  overflow: hidden;
  background: #272517;
  color: var(--light);
}

.hero-photo, .hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-photo { object-fit: cover; object-position: 58% 51%; }

.hero::after {
  content: "";
  background:
    linear-gradient(180deg, #17180eb0, transparent 24%),
    linear-gradient(90deg, #1a1a0eea, #1a1a0e94 39%, #211c1214 69%);
}

.hero-intro {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(76px, 11vw, 145px) clamp(96px, 12vw, 155px);
}

.hero-intro h1 {
  font-size: clamp(6rem, 12.8vw, 12.5rem);
  line-height: .80;
  letter-spacing: -.033em;
}

.hero-intro p {
  max-width: 335px;
  margin-top: 32px;
  font-size: clamp(1.0625rem, 1.65vw, 1.375rem);
}

.story {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(250px, 1fr);
  align-items: center;
  gap: 48px;
  padding-block: clamp(55px, 8vw, 115px);
}

.story h2 {
  font-size: clamp(3rem, 7.9vw, 8rem);
  letter-spacing: -.018em;
  text-wrap: balance;
}

.story p {
  max-width: 320px;
  font-size: clamp(1.0625rem, 1.65vw, 1.25rem);
}

.signup, .site-footer {
  background: var(--dark-olive);
  color: var(--cream);
}

.signup { padding-block: 48px; scroll-margin-top: 24px; }

.signup:focus-visible { outline-offset: -4px; }

.signup-grid {
  display: grid;
  grid-template-columns: 1fr minmax(340px, .85fr);
  align-items: center;
  gap: 26px 56px;
}

.signup-grid h2 { font-size: clamp(2.5rem, 4.4vw, 4.75rem); }
.signup-platforms { margin-top: 10px; font-size: .9375rem; }

.signup fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }

.signup-form-row { display: flex; }
.signup-form-row .action { border-radius: 0 6px 6px 0; }

.signup-form-row input {
  flex: 1;
  min-width: 0;
  padding-inline: 16px;
  border: 1px solid currentColor;
  border-right: 0;
  border-radius: 6px 0 0 6px;
  background: transparent;
  color: inherit;
  font: inherit;
  opacity: 1;
}

.signup-form-row input::placeholder { color: inherit; opacity: .78; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.fine, .status {
  max-width: 450px;
  margin: 10px 0 0;
  font-size: .875rem;
  line-height: 1.55;
}

.status.error { color: #ffbea7; }
.status:empty { margin: 0; }
#challenge:not(:empty) { margin-top: 12px; }

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid #f5e8d754;
  padding-block: 26px;
  font-size: .875rem;
}

.footer-wordmark { width: 142px; }

.error-page .site-header { border-bottom: 1px solid #30371b40; }
.error-content { padding-block: 70px; }
.error-content h1 { font-size: clamp(3.5rem, 8vw, 7rem); }
.error-content p { margin-top: 18px; }

@media (max-width: 850px) {
  .shell { width: calc(100% - 64px); }
  .hero { min-height: 0; }
  .hero-intro h1 { font-size: clamp(5rem, 14vw, 9rem); }
  .signup-grid { grid-template-columns: 1fr minmax(260px, .9fr); gap: 24px; }
}

@media (max-width: 640px) {
  :root { --header-height: 69px; }
  .shell { width: calc(100% - 38px); }
  .site-header { gap: 10px; }
  .site-header .wordmark { width: clamp(118px, 36vw, 164px); }
  .nav-cta { min-height: 44px; padding-inline: 11px; font-size: .8125rem; }

  .hero { min-height: 660px; }
  .hero-photo { object-position: 82% 50%; }
  .hero::after {
    background: linear-gradient(180deg, #191911ad, #1e1c1155 26%, #1a1a0e0c 48%, #17180de8 100%);
  }
  .hero-intro { justify-content: flex-end; padding-block: 175px 42px; }
  .hero-intro h1 { font-size: clamp(4.7rem, 18.5vw, 7.6rem); }
  .hero-intro p { max-width: 270px; margin-top: 21px; font-size: 1.0625rem; }

  .story { grid-template-columns: 1fr; gap: 20px; padding-block: 43px; }
  .story h2 { text-wrap: initial; }
  .story p { max-width: 100%; }
  .signup-grid { grid-template-columns: 1fr; gap: 16px; }
  .signup-form-row .action { padding-inline: 16px; }
}
