:root {
  --ink: #202a30;
  --muted: #5f686d;
  --paper: #f3efe7;
  --surface: #fffdf8;
  --line: #d5cfc3;
  --accent: #21576a;
  --accent-dark: #143b49;
  --accent-soft: #e5eef0;
  --warm: #a85f36;
  --focus: #d88b28;
  --font-body: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  line-height: 1.62;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent-dark); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: .5rem;
  left: .5rem;
  padding: .7rem 1rem;
  background: var(--surface);
  transform: translateY(-180%);
}
.skip-link:focus { transform: none; }

.site-header {
  background: rgba(255, 253, 248, .96);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1120px;
  margin: auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand-icon {
  width: 1.55rem;
  height: 1.55rem;
  fill: none;
  stroke: var(--accent-dark);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.brand-word {
  font-family: var(--font-display);
  font-size: 1.48rem;
  font-weight: 700;
  letter-spacing: -.025em;
}
.brand-tagline {
  margin-left: .25rem;
  color: var(--muted);
  font-size: .7rem;
}
.site-header nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem 1.15rem;
}
.site-header nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--ink);
  font-size: .9rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.site-header nav a[aria-current="page"] {
  color: var(--accent-dark);
  border-color: var(--accent);
  font-weight: 700;
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5.5rem) 1.25rem 6rem;
}
article { max-width: 780px; }
h1,
h2,
h3 {
  color: #182126;
}
h1 {
  max-width: 20ch;
  margin: .5rem 0 1.4rem;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.03em;
}
h2 {
  margin-top: 2.8rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2rem);
  line-height: 1.2;
}
h3 { line-height: 1.3; }
p,
li { max-width: 68ch; }
.kicker,
.eyebrow,
.section-label {
  margin-bottom: .4rem;
  color: var(--warm);
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.hero {
  max-width: 850px;
  padding: 1.2rem 0 3.25rem;
}
.hero > p:not(.kicker) {
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.15rem;
}
.catalog-note {
  margin-top: 2rem;
  padding: .85rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: .82rem;
}

.guide-index {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  margin-top: 1.75rem;
}
.guide-section {
  border-top: 3px solid var(--ink);
  padding-top: 1rem;
}
.guide-section h2,
.guide-section h3 {
  margin: 0 0 .8rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
}
.guide-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.guide-list li { border-top: 1px solid var(--line); }
.guide-list a {
  display: block;
  padding: 1rem 0 1.1rem;
  color: var(--ink);
  text-decoration: none;
}
.guide-list a:hover .guide-title { text-decoration: underline; }
.guide-index .guide-summary { display: none; }
.guide-title {
  display: block;
  color: var(--accent-dark);
  font-weight: 750;
  font-size: .94rem;
  line-height: 1.3;
}
.guide-summary {
  display: block;
  margin-top: .35rem;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.5;
}

.answer-card {
  margin: 2rem 0;
  padding: 1.35rem 0 1.4rem;
  border-top: 2px solid var(--accent);
  border-bottom: 1px solid var(--line);
}
.answer-card h2 { margin: 0 0 .6rem; }
.answer-card p { margin: 0; font-size: 1.08rem; }
.scroll-cue { display: none; color: var(--muted); font-weight: 700; }
.table-region {
  max-width: 100%;
  overflow-x: auto;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
table { width: 100%; min-width: 560px; border-collapse: collapse; }
caption { text-align: left; font-weight: 700; padding: 1rem; }
th,
td { text-align: left; padding: .8rem 1rem; border-top: 1px solid var(--line); }
thead th { background: #e9e6de; }
code {
  padding: .12rem .3rem;
  color: var(--accent-dark);
  background: var(--accent-soft);
  font-size: 1rem;
  font-weight: 800;
}
details {
  border: 0;
  border-top: 1px solid var(--line);
  padding: .65rem 0;
}
summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
}
.source-card {
  margin-top: 2.8rem;
  padding-top: .15rem;
  border-top: 3px solid var(--ink);
}
.notice {
  margin-top: 2rem;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--warm);
  background: #fbf5ea;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.related-guide {
  display: block;
  min-height: 92px;
  padding: 1rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
.related-guide:last-child { border-right: 0; }
.publisher-identity { font-size: 1.05rem; line-height: 1.9; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 2.5rem;
  padding: 1.45rem max(1.25rem, calc((100vw - 1120px) / 2));
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.site-footer strong { font-family: var(--font-display); font-size: .92rem; }
.site-footer p { margin: .2rem 0; color: var(--muted); font-size: .72rem; }
.site-footer nav { align-content: flex-start; }
.site-footer a {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: .2rem 0;
  font-size: .72rem;
}

@media (max-width: 820px) {
  .brand-tagline { display: none; }
  .guide-index { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 680px) {
  .header-inner { align-items: flex-start; flex-direction: column; gap: .6rem; }
  .site-header nav { width: 100%; flex-wrap: wrap; gap: .15rem 1rem; }
  main { padding-top: 2.6rem; }
  h1 { font-size: 2.55rem; }
  .hero { padding-top: .4rem; }
  .scroll-cue { display: block; }
  .related-grid { grid-template-columns: 1fr; }
  .related-guide { border-right: 0; }
  .site-footer { flex-direction: column; }
}

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

