*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --bg: #f3f1ec;
  --fg: #1c1a16;
  --muted: #534e46;
  --line: #b7b1a4;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #12110f;
    --fg: #f3f0ea;
    --muted: #c1bbb2;
    --line: #4a453e;
  }
}

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

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(36rem, calc(100% - 3rem));
  padding: 3.5rem 0 3rem;
  text-align: center;
}

h1 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Noto Serif Display", Georgia, "Liberation Serif", serif;
  font-size: clamp(3.5rem, 9vw, 5.75rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.95;
}

h1::after {
  content: "";
  display: block;
  width: 2.25rem;
  height: 1px;
  margin: 1.6rem auto 0;
  background: var(--line);
}

.intro {
  margin: 1.6rem auto 0;
  max-width: 26rem;
  font-size: clamp(1.0625rem, 2.4vw, 1.25rem);
  line-height: 1.5;
  letter-spacing: -0.011em;
  text-wrap: balance;
}

.definition {
  margin: 1.15rem auto 0;
  max-width: 28rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
  text-wrap: balance;
}

.contact {
  margin: 2.25rem 0 0;
  font-size: 1rem;
}

.contact a,
.contact a:visited {
  color: inherit;
}

.contact a {
  display: inline-block;
  padding: 0.7rem 0.4rem;
  margin: -0.7rem -0.4rem;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  border-radius: 2px;
}

.contact a:hover {
  text-decoration-thickness: 2px;
}

.contact a:focus {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}

.contact a:focus:not(:focus-visible) {
  outline: none;
}

.why {
  width: min(36rem, calc(100% - 3rem));
  padding: 4.5rem 0 3.5rem;
}

.why h2 {
  margin: 0 0 1.15rem;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Noto Serif Display", Georgia, "Liberation Serif", serif;
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.why p {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.65;
  letter-spacing: -0.011em;
}

footer {
  width: min(36rem, calc(100% - 3rem));
  padding: 0 0 max(2rem, env(safe-area-inset-bottom));
  text-align: center;
}

footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
}

@media (max-width: 420px) {
  .hero,
  .why,
  footer {
    width: min(36rem, calc(100% - 2rem));
  }

  .hero {
    padding-top: 2.75rem;
  }
}

/* Why page: short header, passage right below */
.hero.hero--compact {
  min-height: 0;
  padding: 4rem 0 0;
}
.hero--compact + .why {
  padding-top: 2rem;
}
