:root {
  --navy: #0e1c2f;
  --ink: #1c2733;
  --muted: #5c6b7c;
  --paper: #f3f5f8;
  --surface: #ffffff;
  --line: #e2e7ee;
  --accent: #1ec9bc;
  --accent-deep: #0a6e68;
  --accent-soft: #e7f8f6;
  --accent-ink: #042421;
  --shadow: 0 18px 40px rgba(14, 28, 47, 0.08);
  --font-display: "Inter Display", "Inter", system-ui, sans-serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --shell: min(1120px, calc(100% - 2.5rem));
  --radius: 16px;
}

html[data-theme="dark"], html.dark {
  --navy: #e8eef6;
  --ink: #e6edf5;
  --muted: #a9b7c7;
  --paper: #101a28;
  --surface: #172433;
  --line: #2c3e52;
  --accent: #3ee0d4;
  --accent-deep: #8af3ea;
  --accent-soft: #143833;
  --accent-ink: #042421;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.site-shell { width: var(--shell); margin: 0 auto; }
.skip-link {
  position: absolute; left: 1rem; top: -4rem; background: var(--accent); color: var(--accent-ink);
  padding: .5rem .8rem; z-index: 40; border-radius: 8px;
}
.skip-link:focus { top: .6rem; }

.site-header {
  position: sticky; top: 0; z-index: 30;
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(14px);
  border-top: 3px solid var(--accent);
  border-bottom: 1px solid var(--line);
}
.header-bar {
  min-height: 4.4rem;
  display: flex;
  align-items: center;
  gap: .8rem;
}
.brand-lockup {
  display: inline-flex; align-items: center; gap: .65rem;
  text-decoration: none; color: var(--navy); flex: 0 0 auto;
}
.brand-mark { width: 2.15rem; height: 2.15rem; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: -.03em;
  line-height: 1;
  font-optical-sizing: auto;
}
.brand-name strong { font-weight: 700; color: var(--accent-deep); }
.header-search { flex: 1; max-width: 16rem; margin-left: .4rem; }
.header-search input, .archive-tools input, .newsletter-form input, .field input, .ats-form textarea {
  width: 100%;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .62rem .9rem;
}
.ats-form textarea { border-radius: 12px; min-height: 14rem; resize: vertical; }
.header-search input:focus, .archive-tools input:focus, .newsletter-form input:focus, .field input:focus, .ats-form textarea:focus {
  outline: 2px solid var(--accent-deep);
  outline-offset: 2px;
}
.header-cta, .button-primary, .button-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; border-radius: 999px;
  font-family: var(--font-display); font-weight: 650; letter-spacing: -.01em;
  padding: .68rem 1rem; border: 1px solid transparent;
}
.header-cta, .button-primary { background: var(--accent); color: var(--accent-ink); }
.header-cta:hover, .button-primary:hover { background: #17b5a9; }
.button-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.button-ghost:hover, .button-text:hover { color: var(--accent-deep); }
.button-text { color: var(--accent-deep); font-family: var(--font-display); font-weight: 650; }
.header-actions, .icon-link, [data-quartzbc], .anchor-f59a {
  display: inline-flex; align-items: center; justify-content: center;
}
[data-quartzbc], .anchor-f59a, .icon-link {
  width: 2.4rem; height: 2.4rem; padding: 0;
  border: 1px solid var(--line); border-radius: 50%;
  background: var(--surface); color: var(--navy);
}
.anchor-f59a { display: none; }
.anchor-f59a i, .anchor-f59a i::before, .anchor-f59a i::after {
  display: block; width: 1rem; height: 1.5px; background: currentColor; content: ""; position: relative;
}
.anchor-f59a i::before { position: absolute; top: -5px; }
.anchor-f59a i::after { position: absolute; top: 5px; }
.search-link { display: none; }
.primary-nav { border-top: 1px solid var(--line); }
.primary-nav ul {
  display: flex; flex-wrap: wrap; gap: .35rem 1.15rem;
  list-style: none; margin: 0; padding: .7rem 0;
}
.primary-nav a {
  text-decoration: none;
  font-family: var(--font-display);
  font-size: .92rem;
  font-weight: 560;
  color: var(--muted);
}
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--navy); }
.primary-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }

.hero { padding: 2.6rem 0 3rem; }
.hero-grid, .hub-hero-grid, .split {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.5rem; align-items: center;
}
.eyebrow {
  margin: 0;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
h1, h2, h3, .brand-name { font-optical-sizing: auto; }
.hero h1, .page-intro h1, .not-found h1 {
  margin: .45rem 0 .8rem;
  font-family: var(--font-display);
  font-weight: 650;
  letter-spacing: -.04em;
  line-height: 1.02;
  color: var(--navy);
}
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.5rem); max-width: 12ch; }
.lede { margin: 0; font-size: 1.2rem; line-height: 1.55; max-width: 38rem; }
.hero-actions, .action-row { display: flex; flex-wrap: wrap; gap: .8rem 1.1rem; align-items: center; margin-top: 1.4rem; }
.hero-figure img, .hub-hero-grid img, .split img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px;
}
.hub-hero-grid img, .split img { aspect-ratio: 5 / 4; }
.hero-figure figcaption, .caption { margin-top: .55rem; color: var(--muted); font-size: .9rem; }

.band { padding: 3.6rem 0; }
.band-paper { background: var(--paper); }
.band-navy { background: #0e1c2f; color: #f4f7fb; }
.band-navy .eyebrow, .band-navy h2, .band-navy .lede { color: #f4f7fb; }
.band-navy p { color: #d5deea; }
html[data-theme="dark"] .band-navy { background: #1a3148; }
.section-head { display: flex; justify-content: space-between; gap: 1rem; align-items: end; margin-bottom: 1.4rem; }
.section-head h2, .block h2, .tool-card h2, .callout h2 {
  margin: .25rem 0 0;
  font-family: var(--font-display);
  font-weight: 650;
  letter-spacing: -.03em;
  line-height: 1.15;
  color: var(--navy);
  font-size: clamp(1.6rem, 2.4vw, 2.15rem);
}
.section-head p { margin: 0; max-width: 28rem; color: var(--muted); }

.hub-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.hub-card { grid-column: span 2; display: flex; flex-direction: column; text-decoration: none; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-width: 0; }
.hub-card:nth-child(n+4) { grid-column: span 3; }
.hub-card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.hub-card div { padding: 1rem 1rem 1.15rem; }
.hub-card h2 { margin: 0 0 .35rem; font-family: var(--font-display); font-size: 1.25rem; font-weight: 650; letter-spacing: -.02em; color: var(--navy); }
.hub-card p, .tool-card p, .trust-card p, .faq-item p { margin: 0; color: var(--muted); }
.hub-card:hover h2, .tool-card:hover h3 { color: var(--accent-deep); }

.latest-layout { display: grid; grid-template-columns: minmax(0, 1fr) 17rem; gap: 1.5rem; align-items: start; }
.story-grid, .lantern-f479 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.timber-83b2 { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.timber-83b2 a { text-decoration: none; }
.timber-83b2 h3 { margin: .35rem 0 0; padding: 0 1rem; font-family: var(--font-display); font-weight: 650; font-size: 1.12rem; letter-spacing: -.02em; line-height: 1.25; color: var(--navy); }
.timber-83b2 p { margin: .4rem 0 0; padding: 0 1rem 1rem; color: var(--muted); font-size: 1rem; line-height: 1.45; }
.cobalt-fe07, .delta-3470 { display: flex; flex-wrap: wrap; gap: .35rem .6rem; align-items: center; padding: .85rem 1rem 0; color: var(--muted); font-family: var(--font-display); font-size: .75rem; letter-spacing: .03em; }
.delta-3470 { padding-top: .45rem; }
.marble-6590 { color: var(--accent-deep); font-weight: 700; text-decoration: none; text-transform: uppercase; }
.cedar-d568 { width: 1.6rem; height: 1.6rem; border-radius: 50%; object-fit: cover; }
.update-rail { background: var(--paper); border-radius: 14px; padding: 1rem 1rem .4rem; }
.update-rail h3 { margin: 0 0 .3rem; font-family: var(--font-display); font-size: 1rem; color: var(--navy); }
.atlas-63af { list-style: none; margin: .4rem 0 0; padding: 0; }
.atlas-63af li { padding: .75rem 0; border-top: 1px solid var(--line); }
.atlas-63af a { display: block; margin-top: .15rem; text-decoration: none; font-family: var(--font-display); font-weight: 650; color: var(--navy); line-height: 1.3; }
.atlas-63af time { display: block; margin-top: .2rem; color: var(--muted); font-family: var(--font-display); font-size: .75rem; }
.atlas-63af .cobalt-fe07 { padding: 0; }
.update-rail .timber-83b2 { background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.update-rail .sage-0c82, .update-rail .timber-83b2 p, .update-rail .delta-3470 { display: none; }
.update-rail .cobalt-fe07 { padding: .75rem 0 0; }
.update-rail .timber-83b2 h3 { padding: 0 0 .75rem; font-size: .98rem; }
.flint-5e64 { grid-column: 1 / -1; margin: 0; padding: 1rem; color: var(--muted); background: var(--paper); border: 1px dashed var(--line); border-radius: 12px; }

.trust-grid, .tool-grid, .faq-grid, .card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.trust-card, .tool-card, .plain-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.15rem 1.25rem;
}
.tool-card h3, .plain-card h3, .faq-item h3 {
  margin: .2rem 0 .4rem; font-family: var(--font-display); font-size: 1.15rem; font-weight: 650; letter-spacing: -.02em; color: var(--navy);
}
.tool-card ul, .plain-card ul { margin: .7rem 0 0; padding-left: 1.1rem; color: var(--muted); }
.tool-card a.button-text { display: inline-block; margin-top: .8rem; }

main.site-shell { padding-bottom: 3.5rem; }
.page-intro { padding: 2.2rem 0 1.4rem; max-width: 40rem; }
.page-intro h1 { font-size: clamp(2.2rem, 4.6vw, 3.7rem); }
.hub-hero { padding-bottom: 1rem; }
.block { padding: 1.2rem 0 0; }
.block + .block { margin-top: .4rem; }
.stack { display: grid; gap: 1rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.process { margin: 1rem 0 0; padding: 0; list-style: none; counter-reset: step; }
.process li {
  counter-increment: step;
  display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: .7rem;
  padding: .9rem 0; border-top: 1px solid var(--line);
}
.process li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-weight: 700; color: var(--accent-deep);
}
.callout { margin: 1rem 0; padding: 1.1rem 1.15rem; background: var(--accent-soft); border-radius: 14px; }
.callout p { margin: .35rem 0; }
.compare { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: .75rem .6rem; border-bottom: 1px solid var(--line); }
.compare th { font-family: var(--font-display); font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 650; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { padding: .7rem 0; border-top: 1px solid var(--line); }
.checklist label { display: flex; gap: .7rem; align-items: flex-start; }
.checklist input { margin-top: .35rem; accent-color: var(--accent-deep); }
.subhead { margin: 1.6rem 0 .2rem; font-family: var(--font-display); font-size: 1.25rem; color: var(--navy); }

.violet-60aa { display: grid; grid-template-columns: minmax(0, 1fr) 14.5rem; gap: 1.8rem; align-items: start; }
.violet-60aa:has([data-harbor10][hidden]) { grid-template-columns: minmax(0, 1fr); }
[data-harbor10][hidden], [data-fable73][hidden] { display: none; }
.basin-6837 { position: sticky; top: 6.2rem; padding-top: .2rem; }
.basin-6837 h2 { margin: 0 0 .6rem; font-family: var(--font-display); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-deep); }
.basin-6837 ol { margin: 0; padding-left: 1.1rem; color: var(--muted); font-size: .95rem; }
.basin-6837 a { text-decoration: none; }
.basin-6837 a:hover { color: var(--accent-deep); }

.archive-tools { display: flex; gap: .6rem; align-items: center; margin: 1.2rem 0; }
.archive-tools input { max-width: 28rem; }
.filter-list { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1rem; }
.zephyr-6531 {
  display: inline-flex; text-decoration: none; padding: .35rem .7rem; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); background: var(--surface);
  font-family: var(--font-display); font-size: .82rem;
}
.zephyr-6531.quiet-810b, .zephyr-6531:hover { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.saved-list { margin: 0 0 1.4rem; padding: 1rem 1.1rem; background: var(--paper); border-radius: 14px; }
.saved-list h2 { margin: 0 0 .4rem; font-family: var(--font-display); font-size: 1.1rem; color: var(--navy); }
.saved-list ul { margin: 0; padding-left: 1.1rem; }

.article-tools { display: flex; flex-wrap: wrap; gap: .7rem 1rem; align-items: center; margin: 1rem 0; }
.byline { display: flex; gap: .75rem; align-items: center; margin: 0 0 1rem; padding: .8rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.byline img { width: 2.6rem; height: 2.6rem; border-radius: 50%; object-fit: cover; }
.byline p { margin: 0; color: var(--muted); font-size: .95rem; }
#haven-3bd2 .timber-863d h1 { margin: .35rem 0 .6rem; max-width: 18em; font-family: var(--font-display); font-weight: 650; font-size: clamp(2.1rem, 4vw, 3.5rem); letter-spacing: -.04em; line-height: 1.05; color: var(--navy); }
#haven-3bd2 .ivory-cfe0 { max-width: 40rem; font-size: 1.25rem; color: var(--muted); }
.prose { max-width: 40rem; }
.prose p, .prose li { font-size: 1.12rem; line-height: 1.7; }
.prose h2, .prose h3 { font-family: var(--font-display); font-weight: 650; letter-spacing: -.03em; color: var(--navy); line-height: 1.2; }
.prose a { color: var(--accent-deep); }
.prose blockquote { margin: 1.4rem 0; padding: .2rem 0 .2rem 1rem; border-left: 3px solid var(--accent); color: var(--navy); font-size: 1.3rem; line-height: 1.45; }

.comp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.field, .comp-grid fieldset { display: grid; gap: .55rem; margin: 0; border: 1px solid var(--line); border-radius: 14px; padding: 1rem; }
.comp-grid legend { font-family: var(--font-display); font-weight: 650; color: var(--navy); padding: 0 .25rem; }
.field label, .comp-grid label { display: grid; gap: .25rem; font-family: var(--font-display); font-size: .86rem; color: var(--muted); }
.comp-grid input, .field input { border-radius: 10px; }
.ats-score { margin: 0; font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; letter-spacing: -.04em; color: var(--navy); }
.ats-findings { margin: .6rem 0 0; padding: 0; list-style: none; }
.ats-findings li { padding: .55rem 0 .55rem .8rem; border-top: 1px solid var(--line); }
.ats-findings .is-good { border-left: 3px solid var(--accent-deep); }
.ats-findings .is-warn { border-left: 3px solid #c98412; }
.ats-findings .is-bad { border-left: 3px solid #b42318; }
.privacy { font-size: .95rem; color: var(--muted); }

.newsletter-form { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; max-width: 36rem; }
.newsletter-form input { flex: 1 1 16rem; background: #fff; color: #1c2733; }
.band-navy .button-primary { background: var(--accent); color: var(--accent-ink); }
.form-note { flex-basis: 100%; margin: 0; }

.not-found { padding: 4rem 0 5rem; max-width: 36rem; }
.not-found h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding: 2.6rem 0 1.4rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr .8fr; gap: 1.5rem; }
.footer-brand p { color: var(--muted); margin: .7rem 0; }
.footer-brand a, .site-footer nav a { text-decoration: none; }
.footer-brand a:hover, .site-footer nav a:hover { color: var(--accent-deep); }
.site-footer h2 { margin: 0 0 .6rem; font-family: var(--font-display); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-deep); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: .35rem; }
.footer-base { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.8rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.footer-base p { margin: 0; }

@media (max-width: 980px) {
  .hero-grid, .hub-hero-grid, .split, .latest-layout, .trust-grid, .tool-grid, .faq-grid, .card-grid, .two-col, .comp-grid, .footer-grid, .violet-60aa {
    grid-template-columns: 1fr;
  }
  .hub-grid { grid-template-columns: 1fr 1fr; }
  .hub-card, .hub-card:nth-child(n+4) { grid-column: auto; }
  .story-grid, .lantern-f479 { grid-template-columns: 1fr 1fr; }
  .anchor-f59a { display: inline-flex; }
  .primary-nav { display: none; }
  .primary-nav.lantern-36b5 { display: block; }
  .primary-nav ul { flex-direction: column; gap: .15rem; padding-bottom: .9rem; }
  .primary-nav a { display: block; padding: .4rem 0; }
  .basin-6837 { position: static; }
  .hero-figure img { aspect-ratio: 16 / 10; }
}
@media (max-width: 680px) {
  :root { --shell: min(100% - 1.5rem, 1120px); }
  .header-search { display: none; }
  .search-link { display: inline-flex; }
  .header-cta { display: none; }
  .hub-grid, .story-grid, .lantern-f479 { grid-template-columns: 1fr; }
  .hero { padding-top: 1.6rem; }
  .hero h1 { max-width: none; }
  .footer-base, .archive-tools { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
@media print {
  .site-header, .site-footer, .no-print, .basin-6837 { display: none !important; }
  body { background: #fff; color: #000; }
  .violet-60aa { display: block; }
}
