:root {
  --ground: #f2f3ef;
  --surface: #fff;
  --ink: #181c23;
  --muted: #5c6370;
  --line: #dde0da;
  --line-strong: #abb2a8;
  --brand: #24483d;
  --brand-hover: #19362e;
  --brand-soft: #e5ece8;
  --brass: #a67c32;
  --brass-soft: #f3ebdd;
  --alert: #b83b2f;
  --alert-soft: #f8e7e3;
  --display: Cambria, Georgia, "Times New Roman", serif;
  --body: "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: Consolas, "SFMono-Regular", monospace;
  --shadow: 0 16px 40px rgba(24, 28, 35, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--ground);
  font: 16px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 10px 14px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 16px; }
.shell { width: min(1180px, 100%); margin: 0 auto; padding: 0 clamp(16px, 3vw, 32px); }

.masthead { padding: 22px 0 0; background: rgba(242, 243, 239, .96); border-bottom: 1px solid var(--line); }
.masthead-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-letters { display: flex; gap: 3px; }
.brand-letter { width: 29px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 3px; color: #fff; background: var(--brand); font: 700 14px/1 var(--mono); }
.brand-letter:nth-child(2), .brand-letter:nth-child(5) { background: var(--brass); }
.brand-divider { width: 1px; height: 34px; background: var(--line-strong); }
.brand-title strong { display: block; color: var(--brand); font: 800 21px/1 var(--body); letter-spacing: .08em; }
.brand-title span { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.masthead-actions { display: flex; align-items: center; gap: 10px; }
.search { position: relative; }
.search input { width: min(320px, 34vw); height: 44px; padding: 0 42px 0 14px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--surface); color: var(--ink); }
.search::after { content: "⌕"; position: absolute; right: 14px; top: 5px; font-size: 23px; color: var(--brand); pointer-events: none; }
.search-results { position: absolute; display: none; z-index: 20; top: 50px; right: 0; width: min(500px, 90vw); max-height: 420px; overflow: auto; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.search-results.is-open { display: block; }
.search-result { display: block; padding: 12px 14px; text-decoration: none; border-bottom: 1px solid var(--line); }
.search-result:hover { background: var(--brand-soft); }
.search-result small { display: block; color: var(--muted); }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--brand); border-radius: 4px; text-decoration: none; font-weight: 700; }
.button-primary { color: #fff; background: var(--brand); }
.button-primary:hover { background: var(--brand-hover); }
.button-secondary { color: var(--brand); background: transparent; }
.site-nav { display: flex; gap: 24px; overflow-x: auto; scrollbar-width: thin; border-top: 2px solid var(--ink); }
.site-nav a { flex: 0 0 auto; padding: 12px 0 11px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 700; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--brand); box-shadow: inset 0 -3px var(--brand); }

.hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(280px, 4fr); gap: clamp(32px, 5vw, 64px); align-items: center; padding: clamp(54px, 8vw, 96px) 0; }
.eyebrow { color: var(--brand); font: 700 12px/1.2 var(--mono); letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; font-family: var(--display); line-height: 1.08; }
.hero h1 { max-width: 760px; margin: 14px 0 20px; font-size: clamp(43px, 6vw, 72px); letter-spacing: -.035em; }
.hero-lead { max-width: 660px; margin: 0; color: var(--muted); font-size: clamp(18px, 2vw, 21px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.path-card { padding: 26px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--brass); box-shadow: var(--shadow); }
.path-card h2 { margin-bottom: 18px; font-size: 26px; }
.path-card a { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; color: var(--brand); text-decoration: none; border-top: 1px solid var(--line); font-weight: 700; }
.path-card a::after { content: "→"; }

.safety { padding: clamp(26px, 4vw, 42px); color: #fff; background: var(--brand); border-radius: 6px; }
.section-kicker { font: 700 12px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.safety h2 { margin: 8px 0 24px; font-size: clamp(30px, 4vw, 42px); }
.safety-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.safety-rule { padding-top: 16px; border-top: 1px solid rgba(255,255,255,.35); }
.safety-rule b { display: block; margin-bottom: 8px; color: #dcc28d; font: 700 14px var(--mono); }
.safety-rule p { margin: 0; }

.section { padding: clamp(56px, 8vw, 92px) 0 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.section-head h2 { margin: 0; font-size: clamp(31px, 4vw, 43px); }
.section-head a { color: var(--brand); font-weight: 700; }
.card-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.article-card { grid-column: span 4; min-height: 260px; display: flex; flex-direction: column; padding: 22px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.article-card.featured { grid-column: span 6; min-height: 310px; }
.article-card:hover { transform: translateY(-2px); border-color: var(--brand); box-shadow: var(--shadow); }
.card-image { display: block; height: 168px; margin: -22px -22px 20px; overflow: hidden; background: var(--brand-soft); border-bottom: 1px solid var(--line); }
.article-card.featured .card-image { height: 220px; }
.card-image img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .3s ease; }
.article-card:hover .card-image img { transform: scale(1.02); }
.article-card h3 { margin: 16px 0 10px; font-size: clamp(23px, 2.4vw, 30px); }
.article-card p { margin: 0; color: var(--muted); }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; }
.category-label { display: inline-flex; align-items: center; gap: 8px; color: var(--brand); font: 700 11px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.category-label::before { content: ""; width: 8px; height: 8px; background: var(--brass); }
.card-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 22px; color: var(--muted); font-size: 12px; }
.card-foot strong { color: var(--brand); }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.category-card { min-height: 180px; padding: 24px; background: var(--brand-soft); border: 1px solid transparent; text-decoration: none; }
.category-card:hover { border-color: var(--brand); }
.category-card .num { color: var(--brass); font: 700 13px var(--mono); }
.category-card h3 { margin: 28px 0 8px; font-size: 26px; }
.category-card p { margin: 0; color: var(--muted); }
.latest-layout { display: grid; grid-template-columns: minmax(0, 8fr) minmax(260px, 4fr); gap: 26px; }
.article-list { background: var(--surface); border: 1px solid var(--line); }
.article-row { display: grid; grid-template-columns: 135px 1fr auto; gap: 18px; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); text-decoration: none; }
.article-row:last-child { border-bottom: 0; }
.article-row:hover h3 { text-decoration: underline; }
.article-row h3 { margin: 0; font: 700 20px/1.25 var(--display); }
.article-row time, .article-row span { color: var(--muted); font-size: 12px; }
.legal-card { padding: 24px; background: var(--brass-soft); border-left: 4px solid var(--brass); }
.legal-card h3 { font-size: 27px; }
.legal-card p { color: #5f513b; }
.legal-card a { color: var(--brand); font-weight: 700; }

.glossary { padding: 30px; background: var(--surface); border: 1px solid var(--line); }
.glossary-search { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line-strong); }
.glossary-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 30px; margin: 24px 0 0; padding: 0; list-style: none; }
.glossary-list li { padding-top: 10px; border-top: 1px solid var(--line); }
.glossary-list strong { color: var(--brand); }
.glossary-list span { display: block; color: var(--muted); font-size: 14px; }

.footer { margin-top: 90px; padding: 46px 0 24px; color: #e7eeea; background: var(--brand-hover); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; }
.footer h2, .footer h3 { color: #fff; }
.footer h2 { font-size: 28px; }
.footer h3 { font: 700 13px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.footer a { display: block; margin: 7px 0; color: #e7eeea; }
.footer-bottom { margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.2); color: #b9c8c1; font-size: 12px; }

.page-head { padding: 58px 0 36px; border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 850px; margin: 12px 0 16px; font-size: clamp(40px, 5vw, 60px); }
.page-head p { max-width: 760px; margin: 0; color: var(--muted); font-size: 19px; }
.breadcrumbs { padding-top: 22px; color: var(--muted); font-size: 13px; }
.breadcrumbs a { color: var(--brand); }
.article-layout { display: grid; grid-template-columns: minmax(0, 760px) 280px; gap: 56px; align-items: start; padding-top: 46px; }
.article-body { font-size: 17px; line-height: 1.78; }
.article-body > p, .article-body > ul, .article-body > ol { max-width: 72ch; }
.article-body h2 { margin: 52px 0 14px; font-size: 31px; }
.article-body h3 { margin: 34px 0 10px; font-size: 23px; }
.article-body li { margin-bottom: 8px; }
.article-figure { margin: 28px 0 34px; }
.article-figure img { width: 100%; height: auto; display: block; border: 1px solid var(--line); }
.article-figure figcaption { padding: 10px 2px 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.article-figure figcaption span { color: var(--brand); }
.trust-box, .notice { margin: 24px 0; padding: 20px; background: var(--brand-soft); border-left: 4px solid var(--brand); }
.trust-box { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 20px; color: var(--muted); font-size: 13px; }
.trust-box strong { display: block; color: var(--ink); }
.notice.legal { background: var(--brass-soft); border-left-color: var(--brass); }
.source-list a { color: var(--brand); overflow-wrap: anywhere; }
.article-sidebar { position: sticky; top: 24px; }
.sidebar-card { margin-bottom: 16px; padding: 20px; background: var(--surface); border: 1px solid var(--line); }
.sidebar-card h2 { font: 700 13px var(--mono); text-transform: uppercase; letter-spacing: .07em; }
.sidebar-card a { display: block; margin: 9px 0; color: var(--brand); }
.freshness { display: inline-block; padding: 5px 8px; color: var(--brand); background: var(--brand-soft); font: 700 11px var(--mono); }
.empty { display: none; padding: 25px; text-align: center; background: var(--brass-soft); }
.hidden { display: none !important; }

@media (max-width: 900px) {
  .hero, .latest-layout, .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .safety-grid { grid-template-columns: repeat(2, 1fr); }
  .article-card, .article-card.featured { grid-column: span 6; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .masthead-row { align-items: flex-start; flex-direction: column; }
  .masthead-actions { width: 100%; }
  .search { flex: 1; }
  .search input { width: 100%; }
  .brand-title span { display: none; }
  .hero { padding-top: 48px; }
  .safety-grid, .category-grid, .glossary-list, .article-sidebar { grid-template-columns: 1fr; }
  .article-card, .article-card.featured { grid-column: 1 / -1; min-height: auto; }
  .article-row { grid-template-columns: 1fr; gap: 5px; }
  .article-row > span { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-box { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .brand-letter { width: 25px; font-size: 12px; }
  .masthead-actions .button { display: none; }
  .hero-actions .button { width: 100%; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .safety { margin-inline: -8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
