:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #586174;
  --paper: #fffaf2;
  --line: rgba(23, 32, 51, 0.16);
  --red: #d92636;
  --blue: #2478a8;
  --focus: #101827;
}

* {
  box-sizing: border-box;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  overflow-x: hidden;
}

a {
  color: inherit;
}

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

.hero {
  background: #e8eef2;
  line-height: 0;
  max-height: 72vh;
  overflow: hidden;
}

.hero img {
  display: block;
  height: min(72vh, 760px);
  object-fit: cover;
  object-position: center 18%;
  width: 100%;
}

.content {
  margin: 0 auto;
  max-width: 880px;
  padding: clamp(28px, 6vw, 72px) 20px 64px;
  width: 100%;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.social-link {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  width: 44px;
}

.social-link:hover {
  border-color: rgba(23, 32, 51, 0.42);
  box-shadow: 0 10px 30px rgba(23, 32, 51, 0.1);
  transform: translateY(-1px);
}

.social-link:focus-visible,
.email-row input:focus-visible,
.email-row button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.social-link svg {
  fill: currentColor;
  height: 21px;
  width: 21px;
}

.letter {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(23, 32, 51, 0.08);
  padding: clamp(24px, 5vw, 56px);
}

.kicker {
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

h1 {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.98;
  margin: 0 0 28px;
  overflow-wrap: break-word;
}

.letter p {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.58;
  margin: 0 0 20px;
  overflow-wrap: break-word;
}

.letter .signature {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 22px;
  font-weight: 800;
  margin-top: 28px;
}

.email-form {
  border-top: 1px solid var(--line);
  margin-top: 32px;
  padding-top: 28px;
}

.email-form label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.email-row {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.email-row input,
.email-row button {
  border: 1px solid var(--ink);
  border-radius: 0;
  font: inherit;
  min-height: 50px;
}

.email-row input {
  background: #ffffff;
  color: var(--ink);
  min-width: 0;
  padding: 0 14px;
}

.email-row button {
  background: var(--ink);
  color: #ffffff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 0 18px;
  text-transform: uppercase;
}

.email-row button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-status {
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  margin: 12px 0 0 !important;
}

.form-status[data-state="success"] {
  color: #166534;
}

.form-status[data-state="error"] {
  color: #991b1b;
}

.site-footer {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: clamp(34px, 6vw, 64px) auto 0;
  text-align: center;
}

.footer-logo {
  display: block;
  height: auto;
  max-width: min(280px, 72vw);
}

.paid-for {
  background: #ffffff;
  border: 1px solid var(--ink);
  color: var(--ink);
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.35;
  margin: 0;
  padding: 10px 14px;
}

@media (max-width: 640px) {
  .hero {
    max-height: none;
  }

  .hero img {
    height: clamp(300px, 44svh, 430px);
    object-position: 61% top;
  }

  .content {
    padding: 18px 12px 40px;
  }

  .socials {
    gap: 8px;
    justify-content: center;
    margin-bottom: 18px;
  }

  .social-link {
    height: 40px;
    width: 40px;
  }

  .social-link svg {
    height: 19px;
    width: 19px;
  }

  .letter {
    border-radius: 8px;
    overflow: hidden;
    padding: 24px 17px 26px;
  }

  .kicker {
    font-size: 12px;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
  }

  h1 {
    font-size: clamp(24px, 6.6vw, 28px);
    line-height: 1.12;
    margin-bottom: 22px;
  }

  .letter p {
    font-size: 17px;
    line-height: 1.54;
    margin-bottom: 17px;
  }

  .letter .signature {
    font-size: 20px;
    margin-top: 22px;
  }

  .email-form {
    margin-top: 26px;
    padding-top: 22px;
  }

  .email-row {
    grid-template-columns: 1fr;
  }

  .email-row input,
  .email-row button {
    min-height: 48px;
  }

  .email-row button {
    width: 100%;
  }

  .site-footer {
    gap: 14px;
    margin-top: 34px;
  }

  .footer-logo {
    max-width: min(230px, 72vw);
  }

  .paid-for {
    font-size: 12px;
    padding: 9px 12px;
  }
}
