/* Bookkeeping AK — plain CSS, no build step. */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/fraunces-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../assets/fonts/source-sans-3-latin.woff2") format("woff2");
}

:root {
  --navy: #0b2340;
  --navy-deep: #07182c;
  --navy-soft: #163556;
  --body: #243044;
  --muted: #4a5a6c;
  --line: #e3e8ef;
  --paper: #f4f7fb;
  --white: #ffffff;
  --accent: #8e3f12;
  --accent-soft: #f8efe8;
  --on-navy: #e6edf5;
  --peach: #f0d8c8;
  --serif: "Fraunces", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --shadow: 0 16px 40px rgba(11, 35, 64, 0.08);
  --radius: 14px;
  --header-offset: 1.25rem;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
}

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

h1,
h2,
h3,
.mission,
.city,
.step-num,
.panel-index,
.footer-name {
  font-family: var(--serif);
  font-optical-sizing: auto;
  color: var(--navy);
  font-weight: 560;
  letter-spacing: -0.02em;
}

h1,
h2,
h3 {
  line-height: 1.15;
  text-wrap: balance;
  margin: 0;
}

p {
  margin: 0 0 1rem;
  text-wrap: pretty;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--navy);
}

a:hover {
  color: var(--navy-soft);
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 40;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  padding: 0.65rem 1rem;
  border-radius: 8px;
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: min(1080px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: static;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-top: 4px solid var(--navy);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.25rem;
  min-height: 4.25rem;
  padding: 0.4rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-right: auto;
  min-height: 44px;
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.brand:hover {
  color: var(--navy);
}

.brand-mark {
  width: 32px;
  height: 32px;
  flex: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.1rem;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
}

.nav a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.28em;
}

.nav-break {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.15rem;
  border: 2px solid var(--navy);
  border-radius: 10px;
  background: var(--navy);
  color: var(--white);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.btn:hover,
.btn:visited:hover {
  background: var(--navy-soft);
  border-color: var(--navy-soft);
  color: var(--white);
}

.btn:visited {
  color: var(--white);
}

.btn-small {
  min-height: 44px;
  padding: 0.45rem 0.9rem;
  font-size: 0.95rem;
}

.hero {
  padding: 2.75rem 0 3.25rem;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.98rem;
  font-weight: 700;
}

.hero h1 {
  max-width: 12em;
  margin: 0 0 1rem;
  font-size: clamp(2.15rem, 4.6vw, 3.35rem);
}

.mission {
  max-width: 22em;
  margin: 0 0 1rem;
  color: var(--navy);
  font-size: clamp(1.22rem, 2vw, 1.5rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.015em;
}

.support {
  max-width: 36rem;
  margin-bottom: 0;
  font-size: 1.075rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  margin-top: 1.5rem;
}

.text-link {
  font-weight: 700;
  text-underline-offset: 0.18em;
}

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.35rem 1.35rem 0.4rem;
}

.panel-title {
  margin: 0 0 0.35rem;
  color: var(--navy);
  font-weight: 700;
}

.panel-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.panel-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 0.95rem 0;
  border-top: 1px solid var(--line);
}

.panel-list li:first-child {
  border-top: 0;
}

.panel-index {
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
}

.panel-item-title {
  margin: 0 0 0.15rem;
  color: var(--navy);
  font-weight: 700;
}

.panel-list p:last-child {
  color: var(--body);
}

.section {
  padding: 4.25rem 0;
}

.band {
  background: var(--paper);
}

.intro {
  max-width: 38rem;
}

.intro h2,
.who h2,
.contact-card h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.85rem, 3vw, 2.35rem);
}

.cards {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem 1.45rem;
}

.card:hover {
  border-color: #c5d0de;
}

.icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1.05rem;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}

.icon svg {
  display: block;
}

.card h3 {
  margin-bottom: 0.55rem;
  font-size: 1.35rem;
}

.steps {
  list-style: none;
  display: grid;
  gap: 0;
  margin: 2rem 0 0;
  padding: 0;
}

.steps li {
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}

.step-num {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--accent);
  font-size: 1.85rem;
  font-weight: 560;
  line-height: 1;
}

.steps h3 {
  margin-bottom: 0.4rem;
  font-size: 1.35rem;
}

.who {
  background: var(--navy);
  color: var(--on-navy);
}

.who h2,
.city {
  color: var(--white);
}

.who-lead,
.who-note {
  max-width: 38rem;
  color: var(--on-navy);
  font-size: 1.125rem;
}

.places {
  list-style: none;
  display: grid;
  gap: 1.25rem;
  margin: 1.75rem 0 0;
  padding: 0;
}

.places li {
  padding-top: 0.85rem;
  border-top: 2px solid rgba(240, 216, 200, 0.75);
}

.city {
  display: block;
  font-size: clamp(1.75rem, 3vw, 2.2rem);
  line-height: 1.1;
}

.region {
  display: block;
  margin-top: 0.3rem;
  color: var(--peach);
  font-weight: 600;
}

.who-note {
  margin-top: 1.75rem;
}

.contact-card {
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.35rem, 3vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}

.contact-card h2 {
  max-width: 12em;
}

.contact-action .btn {
  margin-top: 1rem;
}

.email-label {
  margin: 0 0 0.2rem;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 700;
}

address {
  margin: 0;
  font-style: normal;
}

.email {
  color: var(--navy);
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  font-weight: 700;
  overflow-wrap: anywhere;
  text-underline-offset: 0.18em;
}

.site-footer {
  background: var(--navy-deep);
  color: #d5dee8;
  padding: 2.4rem 0;
}

.footer-inner {
  display: grid;
  gap: 1.25rem;
}

.footer-name {
  margin: 0 0 0.35rem;
  color: var(--white);
  font-size: 1.35rem;
}

.site-footer p {
  max-width: 36rem;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  align-items: center;
}

.footer-meta a {
  color: var(--white);
  font-weight: 650;
  text-underline-offset: 0.18em;
}

.footer-meta p {
  margin: 0;
}

.missing {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 3rem 0;
}

.missing-card {
  max-width: 34rem;
}

.missing h1 {
  margin: 0.4rem 0 0.8rem;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.missing .btn {
  margin-top: 0.5rem;
}

@media (max-width: 1040px) {
  .nav {
    order: 3;
    flex: 1 0 100%;
  }
}

@media (max-width: 640px) {
  .nav-break {
    display: block;
    flex-basis: 100%;
    height: 0;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(1080px, calc(100% - 2rem));
  }

  .header-cta {
    display: none;
  }

  .hero {
    padding: 2rem 0 2.5rem;
  }

  .section {
    padding: 3.15rem 0;
  }

  .actions,
  .contact-action .btn {
    width: 100%;
  }

  .actions .btn,
  .contact-action .btn {
    width: 100%;
  }
}

@media (min-width: 720px) {
  .places {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 641px) {
  :root {
    --header-offset: 8.5rem;
  }

  .site-header {
    position: sticky;
    top: 0;
  }
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.25rem;
  }

  .steps li,
  .steps li + li {
    padding: 1.15rem 0 0;
    border-top: 2px solid var(--line);
  }

  .contact-card {
    grid-template-columns: 1.25fr 0.9fr;
    gap: 2rem;
    align-items: center;
  }
}

@media (min-width: 860px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
  }

  .card h3 {
    min-height: 2.6em;
  }
}

@media (min-width: 1100px) {
  :root {
    --header-offset: 5.75rem;
  }
}

@media (min-width: 960px) {
  .hero {
    padding: 4.25rem 0 4.75rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 3.25rem;
  }

  .footer-inner {
    grid-template-columns: 1.4fr auto;
    align-items: end;
  }

  .footer-meta {
    justify-content: flex-end;
  }
}

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

@media print {
  .site-header,
  .skip-link,
  .actions,
  .btn,
  .header-cta {
    display: none;
  }

  .who,
  .site-footer {
    background: var(--white);
    color: var(--navy);
  }

  .who h2,
  .city,
  .footer-name,
  .who-lead,
  .who-note,
  .region {
    color: var(--navy);
  }

  body {
    color: #000;
    background: #fff;
  }
}
