:root {
  --bg: #fafafa;
  --card: #ffffff;
  --ink: #1a1a1a;
  --ink-soft: #222222;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #3d6b66;
  --accent-hover: #325853;
  --accent-soft: #f0f4f3;
  --table-head: #f5f5f5;
  --focus: #4a6fa5;
  --wrap: 68rem;
  --prose: 42rem;
  --home-wrap: 40rem;
  --radius: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

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

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: #fff;
  font-weight: 500;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.wrap--home {
  max-width: var(--home-wrap);
}

.wrap--prose {
  max-width: calc(var(--prose) + 3rem);
}

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

header.site .wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.15rem 1.4rem;
  padding-top: 0.85rem;
  padding-bottom: 0.7rem;
  min-height: 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
  margin-bottom: 0.05rem;
}

.logo:hover {
  color: var(--ink);
  text-decoration: none;
}

.logo-mark {
  width: 21px;
  height: 21px;
  color: var(--accent);
  flex-shrink: 0;
  transform: translateY(1px);
}

.logo-text {
  font-size: 1rem;
  letter-spacing: -0.015em;
  line-height: 1.05;
  font-weight: 500;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(61, 107, 102, 0.28);
}

.logo-text .brand-answered {
  font-weight: 400;
  color: var(--ink);
}

.logo-text .brand-frontdesk {
  font-weight: 600;
  color: var(--accent);
}

nav.top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.2rem 1.5rem;
  padding-bottom: 0.1rem;
}

nav.top a:nth-child(2) {
  margin-left: 0.2rem;
}

nav.top a:nth-child(3) {
  margin-left: -0.1rem;
}

nav.top a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.35rem 0;
}

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

/* Hero / Home */
.hero {
  padding: 4.4rem 0 2.15rem;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.15rem);
  line-height: 1.25;
  letter-spacing: -0.025em;
  font-weight: 500;
  color: var(--ink);
  max-width: 18ch;
}

.hero .sub {
  margin-top: 1.05rem;
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 36rem;
  line-height: 1.62;
  font-weight: 400;
}

.cards {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0.35rem 0 4.75rem;
}

/* Home cards: hairlines, not three identical white boxes */
.card {
  background: transparent;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
  padding: 1.45rem 0.1rem 1.55rem;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.cards .card:first-child {
  margin-top: 0.35rem;
  padding-top: 1.15rem;
  padding-left: 0.85rem;
  border-left: 2px solid var(--accent);
  border-bottom: 1px solid var(--line);
}

.cards .card:nth-child(2) {
  padding: 1.7rem 0.05rem 1.4rem;
}

.cards .card:last-child {
  border-bottom: none;
  padding: 1.5rem 0.15rem 0.85rem;
}

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

.cards .card:first-child:hover {
  border-left-color: var(--accent-hover);
}

.card .kicker {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.card h2 {
  font-size: 1.15rem;
  line-height: 1.4;
  letter-spacing: -0.015em;
  margin: 0.4rem 0 0.5rem;
  font-weight: 500;
}

.card h2 a {
  color: var(--ink);
  text-decoration: none;
}

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

.card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.58;
}

.meta {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 0.9rem;
}

/* Articles & static pages */
main#main {
  min-height: 55vh;
}

article.post,
.page {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 3.35rem 0 4.35rem;
  margin: 0 auto;
  max-width: var(--prose);
  box-shadow: none;
}

article.post h1,
.page h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin-bottom: 0.55rem;
  color: var(--ink);
}

article.post h2,
.page h2 {
  font-size: 1.2rem;
  line-height: 1.35;
  letter-spacing: -0.015em;
  font-weight: 500;
  margin: 2.4rem 0 0.7rem;
  color: var(--ink);
}

article.post h2 {
  margin-top: 2.65rem;
}

article.post h3,
.page h3 {
  font-size: 1.05rem;
  font-weight: 500;
  margin: 1.55rem 0 0.45rem;
  color: var(--ink-soft);
}

article.post p,
.page p {
  margin: 0.85rem 0;
  color: var(--ink-soft);
}

article.post ul,
article.post ol,
.page ul,
.page ol {
  margin: 0.85rem 0 0.85rem 1.3rem;
  color: var(--ink-soft);
}

article.post li,
.page li {
  margin: 0.48rem 0;
}

article.post li::marker,
.page li::marker {
  color: var(--muted);
}

.byline {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 0.5rem;
}

.disclosure {
  background: #f5f5f5;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.85rem 1.1rem;
  font-size: 0.86rem;
  color: var(--muted);
  margin: 1.2rem 0 1rem;
  line-height: 1.55;
}

.callout {
  border: none;
  border-left: 2px solid var(--accent);
  background: #f5f5f5;
  padding: 1rem 1.15rem 1rem 1.2rem;
  border-radius: 0 8px 8px 0;
  margin: 1.45rem 0;
  color: var(--ink-soft);
}

.callout strong {
  color: var(--ink);
  font-weight: 500;
}

/* Tables */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.3rem 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
}

table.cmp {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 0.9rem;
  min-width: 36rem;
}

table.cmp th,
table.cmp td {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 0.75rem 0.9rem;
  text-align: left;
  vertical-align: top;
  color: var(--ink-soft);
}

table.cmp th:last-child,
table.cmp td:last-child {
  border-right: none;
}

table.cmp tr:last-child td {
  border-bottom: none;
}

table.cmp th {
  background: var(--table-head);
  color: var(--ink);
  font-weight: 500;
  font-size: 0.82rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.65rem 1.35rem;
  background: var(--accent);
  color: #fff !important;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 8px;
  text-decoration: none !important;
  border: 1px solid transparent;
  margin-top: 0.5rem;
  transition: background 0.2s ease, opacity 0.2s ease;
  line-height: 1.2;
}

.btn:hover {
  background: var(--accent-hover);
  color: #fff !important;
  opacity: 0.95;
}

.btn-ghost {
  background: transparent;
  color: var(--accent) !important;
  border-color: var(--line);
}

.btn-ghost:hover {
  background: var(--accent-soft);
  color: var(--accent-hover) !important;
  opacity: 1;
}

.cta-row {
  margin: 1.05rem 0 0.35rem;
}

/* Footer */
footer.site {
  border-top: 1px solid var(--line);
  padding: 2.1rem 0 2.85rem;
  margin-top: 0;
  color: var(--muted);
  font-size: 0.88rem;
  background: var(--bg);
}

footer.site .brand {
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
}

footer.site .affiliate-note {
  max-width: 34rem;
  margin: 0 0 1.05rem;
  line-height: 1.55;
}

footer.site nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.45rem;
}

footer.site nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

footer.site nav a:hover {
  color: var(--accent);
}

/* Mobile */
@media (max-width: 640px) {
  .wrap {
    padding: 0 1.15rem;
  }

  header.site .wrap {
    gap: 0.55rem 0.75rem;
    padding-top: 0.7rem;
    padding-bottom: 0.6rem;
  }

  .logo-text {
    font-size: 0.95rem;
  }

  nav.top {
    gap: 0.15rem 0.95rem;
  }

  nav.top a:nth-child(2),
  nav.top a:nth-child(3) {
    margin-left: 0;
  }

  nav.top a {
    font-size: 0.86rem;
  }

  .hero {
    padding: 2.85rem 0 1.55rem;
  }

  .hero .sub {
    font-size: 1rem;
  }

  .cards {
    padding-bottom: 3.35rem;
  }

  .cards .card:first-child {
    padding-left: 0.7rem;
    padding-top: 1rem;
  }

  .cards .card:nth-child(2) {
    padding: 1.45rem 0 1.25rem;
  }

  .card {
    padding: 1.3rem 0 1.35rem;
  }

  article.post,
  .page {
    padding: 2.15rem 0 2.85rem;
  }

  article.post h2,
  .page h2 {
    font-size: 1.12rem;
  }
}
