:root {
  --background: #f4ede0;
  --text: #1a1a1a;
  --muted: #5a5550;
  --accent: #6b1f1f;
  --rule: #d4cab8;
  --content-width: 560px;
  --serif: "EB Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(212, 202, 184, 0.16) 0 1px, transparent 1px 100%),
    var(--background);
  background-size: 100% 100%;
}

.page-shell {
  width: min(var(--content-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 20px 0 32px;
}

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 0 24px;
}

.mark {
  margin: 0 0 16px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
}

.hero-copy {
  margin-top: 22px;
  font-size: 18px;
  line-height: 1.42;
  color: var(--text);
}

.hero-copy p,
.letter-section p,
.thanks-card p {
  margin: 0;
}

.hero-copy p + p {
  margin-top: 14px;
}

.signup-form {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.signup-form input,
.signup-form button,
.download-button {
  width: 100%;
  min-height: 50px;
  border-radius: 0;
  font: inherit;
}

.signup-form input {
  border: 1px solid var(--rule);
  padding: 0 16px;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1;
  color: var(--text);
  background: rgba(255, 252, 246, 0.52);
}

.signup-form input::placeholder {
  color: rgba(90, 85, 80, 0.78);
}

.signup-form input:focus {
  outline: 2px solid rgba(107, 31, 31, 0.22);
  outline-offset: 2px;
  border-color: var(--accent);
}

.signup-form button,
.download-button {
  border: 1px solid var(--accent);
  padding: 0 18px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
  color: #fffaf1;
  background: var(--accent);
  cursor: pointer;
}

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 32px;
  text-decoration: none;
}

.micro-copy {
  margin: 13px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

hr {
  height: 1px;
  margin: 64px 0;
  border: 0;
  background: var(--rule);
}

.letter-section {
  font-size: 17px;
  line-height: 1.6;
}

.letter-section .intro-line {
  margin-bottom: 18px;
  color: var(--muted);
}

.inside-section h2 {
  margin: 0 0 28px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.law-list {
  display: grid;
  gap: 18px;
}

.law-list p {
  margin: 0;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
  color: rgba(26, 26, 26, 0.9);
}

.closing-line {
  margin: 64px auto 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.35;
  text-align: center;
}

.site-footer {
  margin-top: 54px;
  padding-bottom: 10px;
  text-align: center;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
  font-size: 13px;
}

.site-footer nav {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

.site-footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
  color: var(--accent);
}

.thanks-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 40px;
}

.thanks-card {
  width: 100%;
}

.thanks-card h1 {
  margin-bottom: 28px;
}

.thanks-card p {
  font-size: 17px;
  color: var(--text);
}

.thanks-card p + p {
  margin-top: 18px;
}

.thanks-card .after-note {
  margin-top: 28px;
  color: var(--muted);
}

.thanks-card .signature {
  margin-top: 28px;
  font-size: 14px;
  color: var(--muted);
}

.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;
}

@media (min-width: 760px) {
  body {
    font-size: 18px;
  }

  .page-shell {
    padding: 32px 0 48px;
  }

  .hero {
    min-height: 720px;
    padding: 48px 0;
  }

  h1 {
    font-size: 56px;
  }

  .hero-copy {
    margin-top: 28px;
    font-size: 22px;
    line-height: 1.5;
  }

  .signup-form {
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin-top: 32px;
  }

  .signup-form button {
    width: auto;
    min-width: 190px;
  }

  .letter-section,
  .thanks-card p {
    font-size: 18px;
  }
}

@media (max-width: 390px) {
  .page-shell {
    width: min(var(--content-width), calc(100% - 32px));
    padding-top: 14px;
  }

  .hero {
    min-height: auto;
    justify-content: flex-start;
    padding-top: 16px;
  }

  .mark {
    margin-bottom: 12px;
    font-size: 11px;
  }

  h1 {
    font-size: 32px;
    line-height: 1.1;
  }

  .hero-copy {
    margin-top: 12px;
    font-size: 17px;
    line-height: 1.34;
  }

  .hero-copy p + p {
    margin-top: 10px;
  }

  .signup-form {
    gap: 10px;
    margin-top: 18px;
  }

  .signup-form input,
  .signup-form button {
    min-height: 48px;
  }

  .micro-copy {
    margin-top: 10px;
    font-size: 12.5px;
  }
}
