:root {
  --bg: #f4f1ec;
  --bg-soft: #ebe6dd;
  --text: #3d4742;
  --muted: #6a746c;
  --brand: #6f7d74;
  --brand-dark: #59675f;
  --accent: #c4b09a;
  --line: #d7d2c8;
  --focus: #8a6f55;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--text);
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 80% 55% at 50% -10%, #fffdf8 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 100% 100%, #e4ddd2 0%, transparent 55%),
    var(--bg);
  font-family: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

.page {
  width: min(640px, 90vw);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 1.5rem 0 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.logo {
  width: min(340px, 78vw);
  display: block;
  margin: 0 auto;
}

main {
  margin-top: 2.25rem;
}

h1 {
  margin: 0 0 1.15rem;
  color: var(--brand-dark);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.7rem, 4.4vw, 2.35rem);
  font-weight: 500;
  line-height: 1.25;
}

.lede {
  margin: 0 auto 1rem;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.lede:last-child {
  margin-bottom: 0;
}

.email {
  color: var(--brand-dark);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 0.08rem;
  font-weight: 500;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.email:hover,
.email:focus-visible {
  color: var(--focus);
  border-color: var(--focus);
}

.email:focus-visible,
.crisis a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.crisis {
  width: 100%;
  padding-top: 1.5rem;
}

.crisis p {
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

.crisis a {
  color: var(--brand-dark);
}

footer {
  width: 100%;
  margin-top: 1.35rem;
}

footer p {
  margin: 0;
  color: #8b918c;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

@media (max-width: 640px) {
  .page {
    padding-top: 1.5rem;
  }

  .lede {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .email {
    transition: none;
  }
}
