:root {
  color-scheme: dark;
  --midnight: #0c1623;
  --teal: #123a38;
  --forest: #234b3b;
  --ice: #b8dae7;
  --aurora: #8cd4b3;
  --cream: #f6f0e7;
  --gold: #c49b5b;
  --muted: #c5d0d1;
  --error: #ffc1b7;
  --shadow: 0 24px 80px rgb(0 0 0 / 32%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--midnight);
  color: var(--cream);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 75% 15%, rgb(140 212 179 / 14%), transparent 28rem),
    radial-gradient(circle at 20% 65%, rgb(184 218 231 / 9%), transparent 34rem),
    linear-gradient(145deg, #09111c 0%, var(--midnight) 38%, #102a2c 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    repeating-radial-gradient(ellipse at 85% 0%, transparent 0 52px, rgb(184 218 231 / 4%) 53px 54px),
    linear-gradient(105deg, transparent 45%, rgb(140 212 179 / 4%) 52%, transparent 60%);
  content: "";
  pointer-events: none;
}

a {
  color: var(--ice);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--aurora);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--aurora);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--cream);
  color: var(--midnight);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 5.5rem) 0 2rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  min-height: 72vh;
}

.author-mark,
h1,
h2 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

.author-mark {
  margin: 0 0 3rem;
  color: var(--cream);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.author-mark span {
  color: var(--gold);
}

.eyebrow,
.story-label {
  margin: 0 0 0.8rem;
  color: var(--aurora);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.6rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.97;
}

.intro {
  max-width: 58ch;
  margin: 1.75rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1.75;
}

.story-note {
  max-width: 620px;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: 1.5rem 0 0 1.5rem;
  border-top: 1px solid rgb(184 218 231 / 28%);
  border-left: 1px solid rgb(184 218 231 / 28%);
}

.story-note h2,
.newsletter h2,
.prose-shell h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.story-note p:last-child,
.newsletter-heading > p:last-child {
  max-width: 55ch;
  color: var(--muted);
  line-height: 1.7;
}

.portrait-frame {
  position: relative;
  margin: 0;
  padding: 0.75rem;
  border: 1px solid rgb(184 218 231 / 22%);
  border-radius: 48% 48% 1.25rem 1.25rem;
  background: linear-gradient(150deg, rgb(184 218 231 / 12%), rgb(35 75 59 / 18%));
  box-shadow: var(--shadow);
}

.portrait-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 50% 50% 0.75rem 0.75rem;
  object-fit: cover;
  object-position: 50% 28%;
}

.portrait-frame figcaption {
  padding: 1rem 0.5rem 0.35rem;
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.newsletter {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(2rem, 7vw, 7rem);
  margin: clamp(3rem, 8vw, 8rem) 0 2rem;
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid rgb(184 218 231 / 18%);
  border-radius: 1.2rem;
  background: linear-gradient(145deg, rgb(18 58 56 / 84%), rgb(12 22 35 / 92%));
  box-shadow: var(--shadow);
}

form {
  align-self: center;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--cream);
  font-size: 0.84rem;
  font-weight: 700;
}

.optional {
  color: var(--muted);
  font-weight: 500;
}

input[type="text"],
input[type="email"] {
  width: 100%;
  min-height: 3.15rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgb(184 218 231 / 38%);
  border-radius: 0.45rem;
  background: rgb(7 17 25 / 65%);
  color: var(--cream);
  font: inherit;
}

input::placeholder {
  color: #a2b0b4;
}

.consent {
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  gap: 0.8rem;
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.55;
}

.consent input {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.16rem 0 0;
  accent-color: var(--aurora);
}

.form-actions {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  margin-top: 1.3rem;
}

button,
.button-link {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.35rem;
  border: 0;
  border-radius: 999px;
  background: var(--cream);
  color: var(--midnight);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

button:hover,
.button-link:hover {
  background: var(--aurora);
  color: var(--midnight);
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.privacy-note {
  max-width: 40ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.55;
}

.form-status {
  min-height: 1.5rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.form-status.error {
  color: var(--error);
}

.form-status.success {
  color: var(--aurora);
}

.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

footer {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

footer p {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.interior-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 1rem;
}

.prose-shell {
  width: min(760px, 100%);
  padding: clamp(2rem, 6vw, 5rem);
  border: 1px solid rgb(184 218 231 / 18%);
  border-radius: 1rem;
  background: rgb(9 17 28 / 82%);
  box-shadow: var(--shadow);
}

.prose-shell h1 {
  max-width: 14ch;
  margin-bottom: 0.75rem;
}

.prose-shell h2 {
  margin: 2rem 0 0.5rem;
  font-size: 1.35rem;
}

.prose-shell p {
  color: var(--muted);
  line-height: 1.75;
}

.prose-shell .updated {
  color: var(--gold);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.back-link {
  display: inline-block;
  margin-bottom: 3rem;
}

.success-card {
  text-align: center;
}

.success-card h1 {
  max-width: none;
}

.success-card .button-link {
  margin-top: 1rem;
}

@media (max-width: 820px) {
  .hero,
  .newsletter {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .author-mark {
    margin-bottom: 2rem;
  }

  .portrait-frame {
    width: min(500px, 92%);
    margin: 0 auto;
  }

  .newsletter {
    gap: 2rem;
  }
}

@media (max-width: 560px) {
  .site-shell {
    width: min(100% - 1.2rem, 1180px);
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  button {
    width: 100%;
  }

  .newsletter {
    padding: 1.4rem;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
