:root {
  --bg: #faf9f6;
  --surface: #ffffff;
  --tint: #f1efe8;
  --ink: #14202b;
  --muted: #55616d;
  --accent: #12305e;
  --accent-hover: #0a2147;
  --accent-ink: #ffffff;
  --highlight: #0d7d73;
  --line: #e0ddd3;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 68rem;
  --narrow: 46rem;
  --gutter: 1.25rem;
  --radius: 0.75rem;
  --header-h: 4rem;
}

/* The page script sets data-theme from the visitor's local time. */
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f171d;
  --surface: #17222b;
  --tint: #121c23;
  --ink: #e9eef1;
  --muted: #a5b1bb;
  --accent: #3cc9bb;
  --accent-hover: #63d8cc;
  --accent-ink: #06221f;
  --highlight: #3cc9bb;
  --line: #283642;
}

/* Without script, fall back to the device's own setting. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #0f171d;
    --surface: #17222b;
    --tint: #121c23;
    --ink: #e9eef1;
    --muted: #a5b1bb;
    --accent: #3cc9bb;
    --accent-hover: #63d8cc;
    --accent-ink: #06221f;
    --highlight: #3cc9bb;
    --line: #283642;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }

h1, h2 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); max-width: 24em; }
h3 { font-size: 1.125rem; line-height: 1.3; }

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.narrow { max-width: var(--narrow); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -4rem;
  z-index: 20;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 0.4rem;
}
.skip-link:focus { top: 0.5rem; color: var(--accent-ink); }

.eyebrow {
  margin-bottom: 0.75rem;
  color: var(--highlight);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.4rem;
  border: 2px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}
.button:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--accent-ink);
}
.button-ghost {
  background: transparent;
  color: var(--accent);
}
.button-ghost:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.button-small { min-height: 2.5rem; padding: 0.45rem 1.1rem; font-size: 0.9375rem; }
.button-large { min-height: 3.5rem; padding: 0.9rem 2rem; font-size: 1.125rem; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.actions-centre { justify-content: center; }

/* Audience switch */

.audience-bar {
  background: var(--tint);
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
}
.audience-bar .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
}
.audience-bar a {
  padding-block: 0.55rem;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}
.audience-bar a:hover { color: var(--ink); }
.audience-bar a[aria-current="page"] {
  border-bottom-color: var(--highlight);
  color: var(--ink);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  min-height: var(--header-h);
  padding-block: 0.5rem;
}

.brand { display: inline-flex; align-items: center; }
.brand img { display: block; width: auto; height: 2rem; }
.brand .logo-dark,
:root[data-theme="dark"] .brand .logo-light { display: none; }
:root[data-theme="dark"] .brand .logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .brand .logo-light { display: none; }
  :root:not([data-theme]) .brand .logo-dark { display: block; }
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.25rem;
}
.site-nav a:not(.button) {
  padding-block: 0.4rem;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 550;
  text-decoration: none;
}
.site-nav a:not(.button):hover { color: var(--accent); }

.menu-toggle { display: none; }

@media (max-width: 53.99rem) {
  /* Without script the links simply wrap below the brand. */
  .js .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
  }
  .menu-toggle-bars,
  .menu-toggle-bars::before,
  .menu-toggle-bars::after {
    display: block;
    width: 1.25rem;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
  }
  .menu-toggle-bars { position: relative; }
  .menu-toggle-bars::before,
  .menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .menu-toggle-bars::before { top: -6px; }
  .menu-toggle-bars::after { top: 6px; }

  .js .site-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 0.75rem;
  }
  .js .site-nav.is-open { display: flex; }
  .js .site-nav a:not(.button) {
    padding-block: 0.8rem;
    border-top: 1px solid var(--line);
    font-size: 1.0625rem;
  }
  .js .site-nav .button { margin-top: 0.75rem; }
}

/* Hero */

.hero { padding-block: clamp(3rem, 8vw, 6rem); }

.hero-inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.hero-copy .lead { margin-top: 1.25rem; max-width: 36em; }

.glance {
  display: grid;
  gap: 0;
  padding: 0.5rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.glance > div { padding-block: 1rem; }
.glance > div + div { border-top: 1px solid var(--line); }
.glance dt {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.glance dd { margin-top: 0.15rem; font-weight: 600; }

/* Sections */

.section { padding-block: clamp(3.5rem, 8vw, 5.5rem); }
.section-tint {
  background: var(--tint);
  border-block: 1px solid var(--line);
}
.section h2 { margin-bottom: 2.25rem; }
.section-note {
  margin-top: 2rem;
  font-family: var(--serif);
  font-size: 1.25rem;
}

.grid { display: grid; gap: 1.25rem; }

.card {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.card p, .point p, .steps p { margin-top: 0.5rem; color: var(--muted); }

.point {
  padding-left: 1.25rem;
  border-left: 3px solid var(--highlight);
}

.split { display: grid; gap: 1.75rem; }
.plain-note {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.9375rem;
}

.steps {
  display: grid;
  gap: 1.75rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding-left: 3.75rem;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 2px solid var(--highlight);
  border-radius: 50%;
  color: var(--highlight);
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 700;
}

.checks {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding: 0;
  list-style: none;
}
.checks li {
  position: relative;
  padding-left: 2rem;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.4rem;
  width: 0.95rem;
  height: 0.5rem;
  border-left: 3px solid var(--highlight);
  border-bottom: 3px solid var(--highlight);
  transform: rotate(-45deg);
}

/* FAQ */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  padding: 1.1rem 2.5rem 1.1rem 0;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 1.25rem; color: var(--muted); }

/* Contact */

.contact { text-align: center; }
.contact h2 { margin-inline: auto; margin-bottom: 1rem; }
.contact .or { margin-top: 2.5rem; color: var(--muted); }
.contact .or + .actions { margin-top: 1rem; }

/* Footer */

.site-footer {
  padding-block: 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
}
.site-footer strong { color: var(--ink); }
.footer-inner { display: grid; gap: 1.25rem; }

@media (min-width: 45rem) {
  .grid-2, .split { grid-template-columns: repeat(2, 1fr); gap: 2rem 3rem; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 2.25rem 3rem; }
  .footer-inner { grid-template-columns: 1fr 1fr auto; align-items: end; }
}

@media (min-width: 60rem) {
  .hero-inner { grid-template-columns: 1.5fr 1fr; gap: 4rem; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .steps li { padding-left: 0; padding-top: 3.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
