@import url("https://fonts.googleapis.com/css2?family=Libre+Franklin:wght@400;500;600;700&family=Source+Serif+4:opsz,wght@8..60,500;8..60,600&display=swap");

:root {
  color-scheme: light;
  --ink: #1c1917;
  --muted: #6f6861;
  --soft: #a49b92;
  --line: #e8e3de;
  --paper: #ffffff;
  --wash: #faf9f7;
  --focus: #d6b371;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Libre Franklin", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

.site-shell {
  min-height: 100vh;
}

.topbar {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 24px 0;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  opacity: 0.88;
}

.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 70px 24px 56px;
  display: grid;
  grid-template-columns: minmax(0, 660px) minmax(300px, 360px);
  grid-template-rows: auto 1fr;
  gap: clamp(42px, 7vw, 86px);
  align-items: start;
}

.hero-intro,
.story {
  grid-column: 1;
}

.eyebrow,
.form-kicker {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0 0 32px;
  max-width: 720px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2.65rem, 6vw, 4.35rem);
  font-weight: 600;
  line-height: 1.04;
}

.story {
  max-width: 650px;
  color: var(--ink);
  font-size: 1.01rem;
}

.story p {
  margin: 0 0 18px;
}

.story strong {
  font-weight: 700;
}

.story .signature {
  margin: 34px 0 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
}

.portrait {
  width: min(180px, 52vw);
  margin: 34px 0 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--wash);
}

.signup-card {
  position: sticky;
  grid-column: 2;
  grid-row: 1 / span 2;
  top: 28px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.signup-card h2 {
  margin: 0 0 24px;
  max-width: 14em;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.12;
}

.field {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.field input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 14px;
  background: var(--wash);
  color: var(--ink);
  font: inherit;
  font-weight: 400;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.field input::placeholder {
  color: var(--soft);
}

.field input:focus {
  outline: 0;
  border-color: color-mix(in srgb, var(--focus) 70%, var(--line));
  background: var(--paper);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 24%, transparent);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.button {
  width: 100%;
  border: 1px solid var(--ink);
  border-radius: 6px;
  padding: 14px 18px;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:hover {
  background: #38322d;
  border-color: #38322d;
  transform: translateY(-1px);
}

.is-submitting .button {
  cursor: wait;
  opacity: 0.72;
}

.form-status {
  min-height: 1.45em;
  margin: 14px 0 0;
  color: #9f2f2f;
  font-size: 0.9rem;
  font-weight: 600;
}

.featured {
  max-width: 880px;
  margin: 0 auto;
  padding: 38px 24px 82px;
  text-align: center;
}

.featured h2 {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.featured img {
  width: min(680px, 100%);
  margin: 0 auto;
  opacity: 0.92;
}

.footer {
  padding: 28px 24px 42px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  text-align: center;
  font-size: 0.82rem;
}

.ty-page {
  background: var(--paper);
}

.ty-shell {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(42px, 8vw, 82px) 24px 76px;
}

.ty-title {
  margin: 0 0 42px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2.4rem, 8vw, 4.6rem);
  font-weight: 600;
  line-height: 1.02;
}

.ty-title span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-family: "Libre Franklin", Arial, sans-serif;
  font-size: 0.27em;
  font-style: normal;
  font-weight: 500;
  line-height: 1.5;
}

.ty-copy {
  color: var(--ink);
  font-size: clamp(1.02rem, 2.4vw, 1.2rem);
  line-height: 1.78;
}

.ty-copy p,
.ty-copy ul {
  margin: 0 0 22px;
}

.ty-copy ul {
  padding-left: 1.25em;
}

.ty-copy li {
  margin-bottom: 14px;
}

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 42px 0;
}

.support-title {
  margin: 0 0 22px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  font-weight: 600;
  line-height: 1.12;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 38px;
    padding-top: 46px;
  }

  .hero-intro,
  .story,
  .signup-card {
    grid-column: auto;
    grid-row: auto;
  }

  .hero-intro {
    order: 1;
  }

  .signup-card {
    position: static;
    order: 2;
    max-width: 500px;
  }

  .story {
    order: 3;
  }
}

@media (max-width: 560px) {
  body {
    line-height: 1.68;
  }

  .topbar {
    padding: 22px 18px 0;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .hero,
  .featured,
  .ty-shell {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero {
    padding-top: 42px;
  }

  h1 {
    font-size: clamp(2.35rem, 12vw, 3.35rem);
  }

  .signup-card {
    padding: 22px;
  }

  .portrait {
    width: 150px;
  }
}
