:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --alt: #f3f1ec;
  --ink: #1b2430;
  --muted: #556070;
  --line: #e2ded5;
  --accent: #1f4e79;
  --accent-hover: #173c5e;
  --accent-ink: #ffffff;
  --rule: #b8862b;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11161d;
    --surface: #18202a;
    --alt: #151c25;
    --ink: #e8ecf1;
    --muted: #a3adba;
    --line: #2a3441;
    --accent: #8fb8e0;
    --accent-hover: #b3d0ec;
    --accent-ink: #0d1620;
    --rule: #d4a54a;
  }
}

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

html { -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.65;
}

a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { color: var(--accent-hover); }
a:focus-visible, .button:focus-visible {
  outline: 3px solid var(--rule);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.2rem + 3vw, 3rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1rem; }
.wrap.narrow { max-width: 44rem; }
@media (min-width: 40rem) { .wrap { padding: 0 2rem; } }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--surface);
  padding: 0.5rem 1rem;
  z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
}
.mark {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.98rem;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}
nav a:hover { color: var(--ink); }
nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--rule); }

/* Sections */
.hero { padding: 4rem 0 3.5rem; }
.hero.compact { padding: 3rem 0 1.5rem; }
.hero h1 { max-width: 22ch; }
.hero.compact h1 { max-width: none; }
.lead {
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  color: var(--muted);
  max-width: 42rem;
  margin-bottom: 1.75rem;
}
.section { padding: 3rem 0; }
.section.alt { background: var(--alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { position: relative; padding-top: 0.9rem; }
.section h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2.5rem;
  height: 3px;
  background: var(--rule);
}

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 600;
  padding: 0.8rem 1.4rem;
  border-radius: 6px;
}
.button:hover { background: var(--accent-hover); color: var(--accent-ink); }

/* Cards and grids */
.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.25rem 1.25rem 0.5rem;
}
.card h3 { font-size: 1.15rem; }
.card p { color: var(--muted); }
.more { margin-top: 1.5rem; font-weight: 600; }

.points {
  display: grid;
  gap: 1.5rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}
.points p { color: var(--muted); }

.services {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
}
.service {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.5rem 1.5rem 0.75rem;
}
.service p { color: var(--muted); }
.service .get { color: var(--ink); border-top: 1px solid var(--line); padding-top: 0.75rem; }

/* Lists */
.steps { padding-left: 1.4rem; margin: 0; }
.steps li { margin-bottom: 1rem; padding-left: 0.3rem; }
.steps li::marker { font-family: var(--serif); font-weight: 600; color: var(--rule); }
.plain { padding-left: 1.2rem; }
.plain li { margin-bottom: 0.75rem; }
.rate {
  border-left: 3px solid var(--rule);
  padding: 0.25rem 0 0.25rem 1rem;
  margin: 1.5rem 0;
}

.study + .study { margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.study h2 { padding-top: 0; }
.study h2::before { display: none; }

.contact { margin: 0 0 2rem; display: grid; grid-template-columns: max-content 1fr; gap: 0.4rem 1.5rem; }
.contact dt { font-weight: 600; }
.contact dd { margin: 0; overflow-wrap: anywhere; }

/* Call to action and footer */
.cta { background: var(--accent); color: var(--accent-ink); padding: 2.5rem 0; }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.cta-text { font-family: var(--serif); font-size: 1.35rem; margin: 0; max-width: 34rem; }
.cta .button { background: var(--accent-ink); color: var(--accent); }
.cta .button:hover { background: var(--bg); color: var(--accent-hover); }

.site-footer { border-top: 1px solid var(--line); padding: 2rem 0; color: var(--muted); font-size: 0.95rem; }
.footer-inner p { margin: 0 0 0.4rem; }
.small { font-size: 0.9rem; color: var(--muted); }
