@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Source+Serif+4:opsz,wght@8..60,300;400;600;700&display=swap");

:root {
  --bg: #f7f4ee;
  --surface: #fffdf8;
  --text: #2e2e2e;
  --muted: #65615a;
  --line: #d8d1c6;
  --accent: #28435c;
  --accent-soft: #e8eef2;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Source Sans 3", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  letter-spacing: 0;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.12em;
}

p {
  margin: 0 0 1.1rem;
}

ul {
  margin: 0;
  padding-left: 1.2rem;
}

li + li {
  margin-top: 0.42rem;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(247, 244, 238, 1);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  width: min(100% - 40px, var(--max));
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.wordmark {
  display: inline-block;
  font-family: "Source Serif 4", serif;
  line-height: 1;
  color: #2e2e2e;
  text-decoration: none;
}

.wordmark__top {
  display: inline-flex;
  align-items: baseline;
  gap: 0.10em;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.wordmark__nine {
  font-size: 0.88em;
  font-weight: 600;
}

.wordmark__dot {
  font-weight: 700;
}

.wordmark__sub {
  margin-top: 0.10em;
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: lowercase;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  width: 44px;
  height: 44px;
  padding: 0;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -7px;
}

.nav-toggle span::after {
  top: 7px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
  font-weight: 600;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  color: var(--accent);
}

main {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
}

.hero {
  padding: 92px 0 74px;
  border-bottom: 1px solid var(--line);
}

.hero--home {
  position: relative;
  overflow: hidden;
}

.hero--home::after {
  content: "";
  position: absolute;
  right: -36px;
  top: 58px;
  width: min(34vw, 360px);
  aspect-ratio: 1;
  background: url("assets/nine-dot-motif.svg") center / contain no-repeat;
  opacity: 0.3;
  pointer-events: none;
}

.hero--home > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "Source Serif 4", Georgia, serif;
  line-height: 1.08;
  letter-spacing: 0;
  color: var(--text);
}

h1 {
  max-width: 860px;
  margin: 0 0 1rem;
  font-size: clamp(3rem, 8vw, 5.9rem);
  font-weight: 700;
}

h2 {
  max-width: 780px;
  margin: 0 0 1.1rem;
  font-size: clamp(2rem, 5vw, 3.65rem);
  font-weight: 650;
}

h3 {
  margin: 0 0 0.72rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 650;
}

.hero-subhead {
  margin-bottom: 1.3rem;
  color: var(--accent);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1.15;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2.3vw, 1.32rem);
  line-height: 1.55;
}

.section {
  padding: 70px 0;
  border-bottom: 1px solid var(--line);
}

.narrow {
  max-width: 800px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 58px;
  align-items: start;
}

.stack {
  display: grid;
  gap: 28px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.card,
.topic {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 26px;
}

.card p,
.topic p {
  color: var(--muted);
}

.card-link {
  display: inline-flex;
  margin-top: 0.4rem;
  font-size: 16px;
  font-weight: 700;
}

.topic-list {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.quiet-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 18px;
  color: var(--text);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.25;
}

.cta {
  padding: 70px 0 86px;
}

.button-link,
button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid var(--accent);
  border-radius: 0;
  background: var(--accent);
  color: #fffdf8;
  padding: 0.6rem 1rem;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.button-link:hover,
button[type="submit"]:hover {
  background: #1f3448;
}

.site-footer {
  background: #ebe5da;
  border-top: 1px solid var(--line);
}

.footer-inner {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 44px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
}

.footer-brand {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 650;
}

.footer-inner p {
  margin-bottom: 0.4rem;
}

.copyright {
  color: var(--muted);
  font-size: 14px;
}

.form {
  max-width: 820px;
  display: grid;
  gap: 24px;
}

.field {
  display: grid;
  gap: 8px;
}

label,
legend {
  color: var(--text);
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  padding: 0.85rem 0.9rem;
  font: inherit;
  font-size: 17px;
}

input:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--accent-soft);
  outline-offset: 3px;
}

fieldset {
  margin: 0;
  border: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-weight: 500;
}

.choice input {
  width: auto;
  margin-top: 0.4em;
}

.helper {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

@media (max-width: 780px) {
  body {
    font-size: 17px;
  }

  .header-inner {
    min-height: 78px;
    width: min(100% - 28px, var(--max));
  }

  .wordmark__top {
    font-size: 34px;
  }

  .wordmark__sub {
    font-size: 15px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 14px;
    right: 14px;
    top: calc(100% + 1px);
    padding: 18px;
    border: 1px solid var(--line);
    background: var(--surface);
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .site-nav.is-open {
    display: flex;
  }

  main {
    width: min(100% - 28px, var(--max));
  }

  .hero {
    padding: 58px 0 52px;
  }

  .hero--home::after {
    right: -78px;
    top: 28px;
    width: 260px;
    opacity: 0.18;
  }

  .section {
    padding: 50px 0;
  }

  .split,
  .card-grid,
  .choice-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .split {
    gap: 24px;
  }
}
