:root {
  --paper: #EEF4F3;      /* mist */
  --paper-2: #E3EEEC;    /* deeper mist for panels */
  --ink: #12302E;        /* spruce */
  --muted: #536866;
  --teal: #1FA5A0;       /* Narisure teal */
  --teal-ink: #0E7470;   /* accessible teal for text */
  --rose: #C7607D;       /* rose geranium */
  --line: #C9DAD7;
  --serif: 'Literata', Georgia, serif;
  --sans: 'Schibsted Grotesk', system-ui, sans-serif;
  --measure: 66ch;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.7 var(--serif); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; }
.skip:focus { left: 8px; z-index: 10; }
h1, h2, h3 { font-family: var(--sans); line-height: 1.12; letter-spacing: -0.015em; }

/* masthead */
.masthead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; max-width: 1180px; margin: 0 auto; padding: 22px 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 800 1.35rem/1 var(--sans); letter-spacing: -0.03em; }
.brand-mark { width: 30px; height: 30px; color: var(--teal); }
.masthead nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font: 500 0.95rem/1.4 var(--sans); }
.masthead nav a { color: var(--ink); text-decoration: none; }
.masthead nav a:hover { color: var(--teal-ink); text-decoration: underline; }

main { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* hero */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 24px; padding: 36px 0 28px; border-bottom: 1px solid var(--line); }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); font-weight: 800; margin: 0 0 18px; max-width: 11ch; letter-spacing: -0.035em; line-height: 1; }
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 44ch; margin: 0; }
.hero-air { width: 100%; height: auto; }
.hero-air path { stroke-dasharray: 900; stroke-dashoffset: 900; animation: flow 1.6s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: var(--d); }
@keyframes flow { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-air path { animation: none; stroke-dashoffset: 0; } }

/* topic photo row */
.topics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.topic-tile { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; }
.topic-tile img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 14px; border-bottom: 5px solid var(--c); transition: transform .25s ease; }
.topic-tile:hover img { transform: translateY(-3px); }
.topic-tile-label { display: flex; align-items: center; gap: 7px; margin-top: 12px; font: 700 1.05rem/1.2 var(--sans); }
.topic-tile-label::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.topic-tile-blurb { margin-top: 4px; font-size: 0.92rem; line-height: 1.45; color: var(--muted); }
.topic-tile:hover .topic-tile-label { text-decoration: underline; text-decoration-color: var(--c); }
@media (prefers-reduced-motion: reduce) { .topic-tile img { transition: none; } }

/* figures inside articles */
.prose figure { margin: 2em 0; }
.prose figure img { width: 100%; border-radius: 14px; }
.prose figure.wide { margin-left: calc(-1 * min(80px, (100vw - 100%) / 2 - 16px)); margin-right: calc(-1 * min(80px, (100vw - 100%) / 2 - 16px)); }
.prose figcaption { margin-top: 8px; font: 400 0.88rem/1.5 var(--sans); color: var(--muted); }
.prose figcaption .credit { opacity: .8; }

/* topic page header with photo */
.topic-head--photo { display: grid; grid-template-columns: 1fr 260px; gap: 32px; align-items: end; }
.topic-head--photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 14px; }
.topic-blurb { font-family: var(--serif) !important; font-size: 1.15rem; color: var(--ink) !important; margin: 0 0 8px !important; max-width: 40ch; }

/* meta + category */
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 8px; font: 500 0.88rem/1.3 var(--sans); color: var(--muted); }
.cat { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); text-decoration: none; font-weight: 700; }
.cat::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.cat:hover { text-decoration: underline; }

/* lead story */
.lead { display: grid; grid-template-columns: 1.35fr 1fr; gap: 36px; align-items: center; padding: 40px 0; border-bottom: 1px solid var(--line); }
.lead-media img { border-radius: 14px; aspect-ratio: 1200/630; object-fit: cover; width: 100%; }
.lead h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin: 0 0 12px; }
.lead h2 a, .row h2 a { color: var(--ink); text-decoration: none; }
.lead h2 a:hover, .row h2 a:hover { text-decoration: underline; text-decoration-color: var(--teal); }
.dek { color: var(--muted); margin: 0; }

/* rows */
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; padding: 8px 0 56px; }
.row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row-media img { border-radius: 10px; aspect-ratio: 1200/630; object-fit: cover; width: 100%; }
.row h2 { font-size: 1.35rem; margin: 0 0 8px; }
.rail { padding-top: 26px; }
.rail .product { position: sticky; top: 24px; }
.list--wide { max-width: 900px; padding-bottom: 56px; }

/* product box */
.product { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: center; background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--teal); border-radius: 14px; padding: 22px; margin: 40px 0; }
.product--compact { grid-template-columns: 1fr; }
.product img { width: 100%; border-radius: 8px; background: var(--paper-2); }
.product-kicker { margin: 0; font: 500 0.85rem/1.3 var(--sans); color: var(--rose); }
.product-name { font-size: 1.3rem; margin: 4px 0 8px; }
.product p { margin: 0 0 12px; font-size: 0.98rem; }
.product-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-block; padding: 11px 18px; border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none; font: 700 0.95rem/1 var(--sans); border: 2px solid var(--ink); }
.btn:hover { background: var(--teal-ink); border-color: var(--teal-ink); text-decoration: none; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { color: #fff; }

/* New Jersey specialist box */
.local { background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--rose); border-radius: 14px; padding: 22px 24px; margin: 40px 0 0; }
.local-kicker { margin: 0; font: 500 0.85rem/1.3 var(--sans); color: var(--rose); }
.local-title { font-size: 1.3rem; margin: 4px 0 10px; }
.local p { font-size: 0.98rem; margin: 0 0 12px; }
.local-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.local-note { font: 400 0.82rem/1.5 var(--sans) !important; color: var(--muted); margin: 6px 0 0 !important; }

/* article */
.post { max-width: 820px; margin: 0 auto; padding: 32px 0 24px; }
.post-head h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; margin: 6px 0 16px; letter-spacing: -0.03em; }
.lede { font-size: 1.25rem; line-height: 1.55; color: var(--muted); max-width: 60ch; margin: 0 0 28px; }
.post-figure { margin: 0 0 36px; }
.post-figure img { width: 100%; border-radius: 16px; aspect-ratio: 1200/630; object-fit: cover; }
.post-figure figcaption { font: 400 0.85rem/1.4 var(--sans); color: var(--muted); margin-top: 8px; }
.post-body { max-width: var(--measure); margin: 0 auto; }
.prose h2 { font-size: 1.7rem; margin: 2.2em 0 0.5em; }
.prose h3 { font-size: 1.25rem; margin: 1.8em 0 0.4em; }
.prose p, .prose li { max-width: var(--measure); }
.prose li { margin-bottom: 0.35em; }
.prose blockquote { margin: 1.6em 0; padding-left: 20px; border-left: 4px solid var(--rose); color: var(--muted); font-style: italic; }
.prose table { width: 100%; border-collapse: collapse; font: 400 0.95rem/1.45 var(--sans); margin: 1.5em 0; }
.prose th, .prose td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 700; }

.takeaways { background: var(--paper-2); border-radius: 14px; padding: 20px 24px; margin-bottom: 32px; }
.takeaways h2 { font-size: 1.1rem; margin: 0 0 8px; }
.takeaways ul { margin: 0; padding-left: 1.2em; }
.takeaways li::marker { color: var(--teal); }

.faq { margin-top: 40px; }
.faq h2, .sources h2, .more h2 { font-size: 1.5rem; margin: 0 0 12px; }
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font: 700 1.05rem/1.4 var(--sans); }
.faq details[open] summary { color: var(--teal-ink); }
.faq p { margin: 10px 0 0; }
.sources { margin-top: 40px; font-size: 0.95rem; }
.sources li { margin-bottom: 8px; }
.sources span { color: var(--muted); }
.disclosure { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); font: 400 0.88rem/1.55 var(--sans); color: var(--muted); }
.more { max-width: 900px; margin: 0 auto; padding: 24px 0 56px; border-top: 1px solid var(--line); }

.topic-head { padding: 48px 0 16px; border-bottom: 4px solid var(--c, var(--teal)); max-width: 900px; }
.topic-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0 0 6px; }
.topic-head p { margin: 0; color: var(--muted); font-family: var(--sans); }
.empty { color: var(--muted); padding: 32px 0; }

/* footer */
.footer { background: var(--ink); color: #D5E4E2; margin-top: 24px; }
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 40px 24px; font: 400 0.92rem/1.6 var(--sans); }
.footer-inner p { max-width: 72ch; }
.footer a { color: #fff; margin-right: 18px; }
.footer-brand { font: 800 1.3rem/1 var(--sans); color: #fff; }
.fine { color: #93AEAB; }

@media (max-width: 900px) {
  .hero, .lead, .home-grid { grid-template-columns: 1fr; }
  .topics { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 42%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 20px; }
  .topic-tile { scroll-snap-align: start; }
  .topic-head--photo { grid-template-columns: 1fr 140px; }
  .hero-air { max-width: 520px; }
  .rail .product { position: static; }
  .product { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  main, .masthead, .footer-inner { padding-left: 16px; padding-right: 16px; }
  .row { grid-template-columns: 1fr; gap: 12px; }
  .masthead nav { gap: 4px 14px; font-size: 0.9rem; }
}
