:root {
  --ink: #0f172a;
  --slate-950: #0b1220;
  --slate-900: #1e293b;
  --slate-800: #334155;
  --slate-700: #475569;
  --slate-600: #64748b;
  --muted: #6b7280;
  --surface: #eef0f3;
  --surface-2: #ffffff;
  --surface-3: #f4f1ea;
  --line: #d4d8de;
  --gold: #c9a227;
  --gold-light: #e8b84a;
  --amber: #d4922a;
  --wrap: 76rem;
  --radius: 6px;
  --shadow: 0 8px 28px rgba(15, 23, 42, 0.07);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--surface);
  color: var(--slate-800);
  line-height: 1.65;
}

h1,
h2,
h3,
h4 {
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.22;
  margin: 0 0 0.65rem;
  color: var(--ink);
}

p {
  margin: 0 0 1rem;
}

a {
  color: #1e3a5f;
  text-underline-offset: 3px;
}

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

:focus-visible {
  outline: 3px solid rgba(201, 162, 39, 0.55);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  background: var(--slate-900);
  color: #fff;
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  z-index: 9999;
  text-decoration: none;
}

.skip-link:focus {
  left: 12px;
}

.wrap {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
}

/* Header — stacked brand + nav (differs from peer row layout) */
.site-header {
  background: linear-gradient(180deg, var(--slate-950) 0%, #121c2e 100%);
  color: rgba(238, 240, 243, 0.92);
  border-bottom: 1px solid rgba(201, 162, 39, 0.5);
  padding: 1rem 0 0.75rem;
}

.header-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  text-align: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(201, 162, 39, 0.12);
  border: 1px solid rgba(232, 184, 74, 0.35);
}

.brand-name {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand-sub {
  display: block;
  font-size: 0.78rem;
  color: rgba(238, 240, 243, 0.58);
  margin-top: 0.1rem;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.25rem;
}

.top-nav a {
  color: rgba(238, 240, 243, 0.82);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

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

/* Disclosure strip */
.disclosure-strip {
  background: var(--surface-3);
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}

.disclosure-strip p {
  margin: 0;
  padding: 0.65rem 0;
}

.disclosure-strip strong {
  color: var(--ink);
}

/* Page main */
.page-main {
  padding: 2.4rem 0 4.5rem;
}

.hero-band {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.hero-band h1 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.hero-lede {
  font-size: 1.05rem;
  color: var(--slate-700);
  max-width: 54ch;
}

.hero-stats {
  background: var(--slate-900);
  color: rgba(238, 240, 243, 0.88);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  align-self: start;
  border-left: 4px solid var(--gold);
}

.hero-stats dl {
  margin: 0;
}

.hero-stats dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(238, 240, 243, 0.55);
  margin-bottom: 0.15rem;
}

.hero-stats dd {
  margin: 0 0 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.hero-stats dd:last-child {
  margin-bottom: 0;
}

/* Context chips — horizontal scroll rail */
.context-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.75rem;
}

.context-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--slate-700);
  transition: border-color 0.15s, background 0.15s;
}

.context-chip:hover {
  border-color: var(--gold);
  color: var(--ink);
}

.context-chip--active {
  background: var(--slate-900);
  border-color: var(--slate-900);
  color: var(--gold-light);
}

/* Directory shell — sidebar + tile grid */
.directory-shell {
  display: grid;
  grid-template-columns: 13rem 1fr;
  gap: 1.75rem;
  align-items: start;
}

.context-sidebar {
  position: sticky;
  top: 1rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.context-sidebar h2 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 0.65rem;
}

.context-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.context-sidebar a {
  display: block;
  padding: 0.45rem 0.55rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--slate-700);
}

.context-sidebar a:hover {
  background: rgba(201, 162, 39, 0.1);
  color: var(--ink);
}

.context-group {
  margin-bottom: 2.25rem;
  scroll-margin-top: 1rem;
}

.context-group h2 {
  font-size: 1.25rem;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid rgba(201, 162, 39, 0.45);
  margin-bottom: 1rem;
}

.context-group p.group-note {
  font-size: 0.92rem;
  color: var(--slate-600);
  margin-bottom: 1rem;
  max-width: 62ch;
}

/* Tile cards */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tile-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform 0.15s, border-color 0.15s;
}

.tile-card:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 162, 39, 0.55);
}

.tile-card__bar {
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--amber));
}

.tile-card__body {
  padding: 1rem 1rem 0.85rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tile-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.55rem;
}

.tile-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  background: rgba(30, 41, 59, 0.08);
  color: var(--slate-600);
}

.tile-card h3 {
  font-size: 1.02rem;
  margin-bottom: 0.4rem;
}

.tile-card p {
  font-size: 0.86rem;
  color: var(--slate-600);
  flex: 1;
  margin-bottom: 0.75rem;
}

.tile-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.75rem;
}

.spec-pill {
  font-size: 0.72rem;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--slate-700);
  background: var(--surface);
}

.tile-card__link {
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  color: var(--slate-900);
}

.tile-card__link:hover {
  color: var(--amber);
}

/* Content panels */
.content-panel {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  margin-bottom: 1.25rem;
}

.content-panel h2 {
  font-size: 1.15rem;
}

/* Detail pages */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 16rem;
  gap: 1.75rem;
  align-items: start;
}

.masthead {
  margin-bottom: 1.25rem;
}

.masthead-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.65rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}

.tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  background: rgba(201, 162, 39, 0.15);
  color: var(--slate-700);
}

.lede {
  font-size: 1.05rem;
  color: var(--slate-700);
  max-width: 62ch;
}

.spec-rail {
  position: sticky;
  top: 1rem;
  background: var(--slate-900);
  color: rgba(238, 240, 243, 0.9);
  border-radius: var(--radius);
  padding: 1.15rem;
  border-top: 3px solid var(--gold);
}

.spec-rail h2 {
  font-size: 0.95rem;
  color: var(--gold-light);
  margin-bottom: 0.75rem;
}

.spec-rail dl {
  margin: 0;
  font-size: 0.86rem;
}

.spec-rail dt {
  color: rgba(238, 240, 243, 0.55);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.55rem;
}

.spec-rail dt:first-child {
  margin-top: 0;
}

.spec-rail dd {
  margin: 0.1rem 0 0;
  font-weight: 600;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0;
  border-radius: 0;
  font-weight: 650;
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  border: none;
  background: transparent;
  color: var(--slate-800);
}

.btn:hover {
  color: var(--amber);
}

.btn--gold {
  border: none;
  background: transparent;
  color: var(--slate-800);
}

.btn--gold:hover {
  color: var(--amber);
}

/* Legal / prose pages */
.prose-narrow {
  max-width: 44rem;
}

.prose-narrow h1 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.contact-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem;
}

.contact-card h2 {
  font-size: 1rem;
}

/* Footer */
.site-footer {
  background: var(--slate-950);
  color: rgba(238, 240, 243, 0.82);
  padding: 2rem 0 1.25rem;
  border-top: 2px solid rgba(201, 162, 39, 0.35);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.5rem;
}

.legal-name {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
  color: var(--gold-light);
}

.footer-meta {
  font-size: 0.88rem;
  line-height: 1.55;
}

.footer-meta .muted {
  color: rgba(238, 240, 243, 0.62);
}

.footer-links nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-links a {
  color: rgba(238, 240, 243, 0.85);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(238, 240, 243, 0.12);
  font-size: 0.82rem;
  color: rgba(238, 240, 243, 0.6);
}

.cookie-manage {
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  background: transparent;
  border: 1px solid rgba(232, 184, 74, 0.35);
  color: var(--gold-light);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
}

.cookie-manage:hover {
  background: rgba(201, 162, 39, 0.12);
}

/* Cookie banner */
#cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: rgba(11, 18, 32, 0.97);
  border-top: 3px solid rgba(201, 162, 39, 0.85);
  color: rgba(238, 240, 243, 0.94);
  padding: 1.1rem 0 1.2rem;
  box-shadow: 0 -14px 40px rgba(0, 0, 0, 0.22);
}

#cookie-banner[hidden] {
  display: none;
}

.cookie-inner {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.2rem;
  align-items: start;
}

.cookie-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.cookie-text {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(238, 240, 243, 0.78);
}

.cookie-text a {
  color: var(--gold-light);
}

.cookie-status {
  margin-top: 0.45rem;
  font-size: 0.82rem;
  color: rgba(238, 240, 243, 0.6);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
  align-self: center;
}

.cookie-actions button {
  font: inherit;
  font-weight: 650;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(232, 184, 74, 0.55);
  background: linear-gradient(180deg, rgba(232, 184, 74, 0.35), rgba(201, 162, 39, 0.2));
  color: #fff;
  cursor: pointer;
}

.cookie-actions button.alt {
  background: transparent;
  border-color: rgba(238, 240, 243, 0.25);
  color: rgba(238, 240, 243, 0.88);
}

@media (max-width: 900px) {
  .hero-band {
    grid-template-columns: 1fr;
  }

  .directory-shell {
    grid-template-columns: 1fr;
  }

  .context-sidebar {
    position: static;
  }

  .context-sidebar nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .spec-rail {
    position: static;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .tile-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cookie-inner {
    grid-template-columns: 1fr;
  }

  .cookie-actions {
    justify-content: flex-start;
  }
}

/* Editorial publication layout */
.section {
  margin-top: 3.2rem;
}

.section-title {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}

.section-title h2 {
  margin: 0;
  font-size: 1.55rem;
}

.section-title .hint {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.feature-lead {
  padding: 0 0 2.2rem;
  border-bottom: 1px solid var(--line);
}

.feature-lead h1 {
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  max-width: 24ch;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.hub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 2.5rem;
}

.hub {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.hub h3 {
  font-size: 1.35rem;
  margin-bottom: 0.45rem;
}

.hub p {
  color: var(--slate-700);
  line-height: 1.72;
  margin: 0 0 0.65rem;
}

.hub .hub-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.feature-row article h3 {
  font-size: 1.25rem;
  margin-bottom: 0.45rem;
  line-height: 1.2;
}

.feature-row article p {
  color: var(--slate-700);
  line-height: 1.72;
  margin: 0 0 0.75rem;
}

.independence {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 2rem 0;
  margin-top: 2.8rem;
}

.independence h2 {
  font-size: 1.45rem;
  margin-bottom: 0.65rem;
}

@media (max-width: 860px) {
  .hub-grid,
  .feature-row {
    grid-template-columns: 1fr;
  }
}
