:root {
  --navy: #001f35;
  --navy-2: #06293f;
  --ink: #001727;
  --teal: #0c3a46;
  --gold: #ffd500;
  --gold-2: #f2a42b;
  --amber: #dca854;
  --red: #9f1117;
  --paper: #f7f1df;
  --muted: #b7c5c8;
  --line: rgba(255, 213, 0, 0.18);
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(0, 31, 53, 0.72);
  --text-soft: rgba(247, 241, 223, 0.78);
  --text-muted: rgba(247, 241, 223, 0.62);
  --shadow: 0 22px 70px rgba(0, 8, 16, 0.35);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --navy: #f7f1df;
  --navy-2: #efe4c8;
  --ink: #fbf7eb;
  --teal: #e5f0ed;
  --gold: #a87900;
  --gold-2: #c57d1d;
  --amber: #9f651a;
  --red: #9f1117;
  --paper: #061f32;
  --muted: #395366;
  --line: rgba(168, 121, 0, 0.24);
  --surface: rgba(0, 31, 53, 0.055);
  --surface-strong: rgba(255, 255, 255, 0.84);
  --text-soft: rgba(6, 31, 50, 0.78);
  --text-muted: rgba(6, 31, 50, 0.62);
  --shadow: 0 22px 70px rgba(29, 34, 36, 0.12);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 213, 0, 0.08), transparent 34rem),
    linear-gradient(180deg, var(--ink), var(--navy) 38%, #001a2b);
  color: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 70%);
}

:root[data-theme="light"] body {
  background:
    radial-gradient(circle at 20% 0%, rgba(168, 121, 0, 0.12), transparent 34rem),
    linear-gradient(180deg, var(--ink), var(--navy) 44%, #efe4c8);
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 900;
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease, backdrop-filter 180ms ease;
}

.site-header.is-scrolled {
  border-color: rgba(255, 213, 0, 0.16);
  background: rgba(0, 23, 39, 0.82);
  backdrop-filter: blur(16px);
}

:root[data-theme="light"] .site-header.is-scrolled {
  background: rgba(251, 247, 235, 0.86);
}

.brand {
  order: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 700;
  color: var(--gold);
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 213, 0, 0.22);
}

.brand-name {
  overflow: hidden;
  font-size: 15px;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-nav {
  order: 2;
  position: fixed;
  top: 72px;
  right: 14px;
  left: 14px;
  z-index: 19;
  display: grid;
  align-items: center;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  color: var(--text-soft);
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  visibility: hidden;
  transition: opacity 160ms ease, transform 160ms ease;
  backdrop-filter: blur(16px);
}

.site-nav a {
  padding: 12px 12px;
  border-radius: 6px;
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--surface);
  color: var(--gold);
}

.site-nav.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.header-actions {
  order: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.icon-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 213, 0, 0.28);
  border-radius: 50%;
  background: rgba(0, 31, 53, 0.42);
  color: var(--gold);
  cursor: pointer;
  font: inherit;
}

:root[data-theme="light"] .icon-button {
  background: rgba(255, 255, 255, 0.56);
}

.menu-button span,
.menu-button span::before,
.menu-button span::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.menu-button span {
  position: relative;
}

.menu-button span::before,
.menu-button span::after {
  position: absolute;
  left: 0;
}

.menu-button span::before {
  top: -6px;
}

.menu-button span::after {
  top: 6px;
}

.hero {
  position: relative;
  display: grid;
  min-height: 88svh;
  overflow: hidden;
  padding: 112px 18px 28px;
  background:
    linear-gradient(135deg, rgba(255, 213, 0, 0.13), transparent 38%),
    linear-gradient(180deg, var(--ink), var(--navy));
}

.hero::before,
.hero::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.hero::before {
  right: -14vw;
  bottom: -16vw;
  width: min(78vw, 760px);
  aspect-ratio: 1;
  border: clamp(22px, 5vw, 58px) solid rgba(255, 213, 0, 0.16);
  border-radius: 50%;
}

.hero::after {
  inset: auto 0 0;
  height: 34%;
  background:
    linear-gradient(90deg, rgba(255, 213, 0, 0.2), transparent 56%),
    repeating-linear-gradient(90deg, rgba(255, 213, 0, 0.18) 0 1px, transparent 1px 64px);
  opacity: 0.24;
}

.hero-content {
  position: relative;
  z-index: 2;
  align-self: center;
  max-width: 760px;
}

.hero-brand-panel {
  position: relative;
  z-index: 2;
  display: none;
  align-self: center;
  justify-self: end;
  width: min(28vw, 280px);
}

.hero-brand-panel img {
  width: 100%;
  border-radius: 50%;
  box-shadow: var(--shadow);
}

.eyebrow,
.section-kicker,
.article-label {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 8ch;
  margin-bottom: 18px;
  color: #ffe56a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(58px, 18vw, 148px);
  line-height: 0.88;
  letter-spacing: 0;
}

:root[data-theme="light"] h1,
:root[data-theme="light"] .intro h2,
:root[data-theme="light"] .formats h2,
:root[data-theme="light"] .section-heading h2,
:root[data-theme="light"] .article-title,
:root[data-theme="light"] .article-body h2,
:root[data-theme="light"] .pullquote {
  color: #092a43;
}

.hero-copy {
  max-width: 660px;
  margin-bottom: 28px;
  color: rgba(247, 241, 223, 0.84);
  font-size: clamp(18px, 4.8vw, 25px);
  line-height: 1.35;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(255, 213, 0, 0.32);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--gold);
  color: var(--ink);
}

.button.ghost {
  background: var(--surface);
  color: var(--paper);
}

.signal-card {
  position: relative;
  z-index: 2;
  align-self: end;
  width: min(100%, 360px);
  margin-top: 58px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.signal-card span {
  display: block;
  margin-bottom: 9px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.signal-card strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.12;
}

.ticker {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 14px 18px 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}

.ticker::-webkit-scrollbar {
  display: none;
}

.ticker span {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid rgba(247, 241, 223, 0.12);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
}

.section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 64px 0;
}

.intro h2,
.formats h2,
.section-heading h2 {
  max-width: 830px;
  color: #ffe56a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 9vw, 66px);
  line-height: 0.98;
  letter-spacing: 0;
}

.intro p:not(.section-kicker),
.formats > p:not(.section-kicker) {
  max-width: 700px;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.7;
}

.section-heading {
  display: grid;
  gap: 18px;
  margin-bottom: 22px;
}

.text-link {
  align-self: end;
  color: var(--gold);
  font-size: 14px;
  font-weight: 800;
}

.article-grid {
  display: grid;
  gap: 14px;
}

.article-card {
  min-height: 270px;
  border: 1px solid rgba(247, 241, 223, 0.13);
  border-radius: 8px;
  background: linear-gradient(145deg, var(--surface), rgba(255, 255, 255, 0.025));
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.article-card:hover {
  border-color: rgba(255, 213, 0, 0.48);
  background: linear-gradient(145deg, rgba(255, 213, 0, 0.12), rgba(255, 255, 255, 0.035));
  transform: translateY(-2px);
}

.article-card a,
.article-card .card-inner {
  display: flex;
  min-height: inherit;
  flex-direction: column;
  padding: 20px;
}

.article-card h3 {
  margin-bottom: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1.04;
}

.article-card p {
  color: var(--text-soft);
  line-height: 1.6;
}

.article-card footer {
  display: flex;
  gap: 12px;
  margin-top: auto;
  color: var(--amber);
  font-size: 13px;
  font-weight: 800;
}

.article-card.featured {
  background:
    linear-gradient(145deg, rgba(159, 17, 23, 0.22), rgba(255, 213, 0, 0.07)),
    rgba(255, 255, 255, 0.04);
}

.article-card.muted {
  opacity: 0.72;
}

.format-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.format-list div {
  padding: 20px;
  border-left: 3px solid var(--gold);
  background: var(--surface);
}

.format-list span {
  color: var(--amber);
  font-weight: 900;
}

.format-list h3 {
  margin: 10px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
}

.format-list p {
  color: var(--text-soft);
  line-height: 1.55;
}

.site-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px 18px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.site-footer nav a {
  color: var(--gold);
  font-weight: 800;
}

.article-page {
  padding-top: 92px;
}

.article-hero {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 36px 0 28px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.article-meta span {
  padding: 7px 10px;
  border: 1px solid rgba(255, 213, 0, 0.18);
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 800;
}

.article-title {
  max-width: 900px;
  margin-bottom: 20px;
  color: #ffe56a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 13vw, 92px);
  line-height: 0.94;
}

.article-deck {
  max-width: 760px;
  color: var(--text-soft);
  font-size: clamp(18px, 4.8vw, 24px);
  line-height: 1.45;
}

.article-shell {
  display: grid;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto 70px;
  gap: 26px;
}

.article-aside {
  display: none;
}

.article-body {
  max-width: 760px;
}

.article-body h2 {
  margin: 46px 0 16px;
  color: #ffe56a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 7vw, 45px);
  line-height: 1.02;
}

.article-body p,
.article-body li {
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.76;
}

.article-body ul {
  padding-left: 20px;
}

.pullquote {
  margin: 36px 0;
  padding: 20px;
  border-left: 4px solid var(--gold);
  background: rgba(255, 213, 0, 0.06);
  color: #ffe56a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 7vw, 39px);
  line-height: 1.08;
}

.article-image {
  margin: 32px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.article-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  padding: clamp(18px, 6vw, 46px);
}

.article-image figcaption {
  padding: 12px 14px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.4;
}

.note-box,
.x-draft {
  margin-top: 34px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.note-box h3,
.x-draft h3 {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
}

.x-draft textarea {
  width: 100%;
  min-height: 210px;
  resize: vertical;
  padding: 14px;
  border: 1px solid rgba(247, 241, 223, 0.14);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--paper);
  font: inherit;
  line-height: 1.5;
}

.legal-body {
  width: min(760px, calc(100% - 36px));
  margin: 0 auto 70px;
}

.copy-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.copy-status {
  color: var(--amber);
  font-size: 13px;
}

@media (min-width: 720px) {
  .site-nav {
    position: static;
    display: flex;
    gap: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    visibility: visible;
    backdrop-filter: none;
  }

  .site-nav a {
    padding: 9px 10px;
  }

  .menu-button {
    display: none;
  }

  .hero {
    min-height: 88vh;
    padding-right: clamp(34px, 5vw, 72px);
    padding-left: clamp(34px, 5vw, 72px);
    grid-template-columns: minmax(0, 1fr) minmax(180px, 320px);
    gap: clamp(28px, 5vw, 72px);
  }

  .hero-brand-panel {
    display: block;
  }

  .signal-card {
    grid-column: 1 / -1;
    justify-self: end;
  }

  .section,
  .article-hero,
  .article-shell {
    width: min(1120px, calc(100% - 72px));
  }

  .section-heading {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .article-grid,
  .format-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .article-card.featured {
    grid-column: span 2;
  }

  .site-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-right: clamp(34px, 5vw, 72px);
    padding-left: clamp(34px, 5vw, 72px);
  }
}

@media (min-width: 980px) {
  .article-shell {
    grid-template-columns: 240px minmax(0, 760px);
    align-items: start;
  }

  .article-aside {
    position: sticky;
    top: 104px;
    display: block;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-strong);
  }

  .article-aside strong {
    display: block;
    margin-bottom: 14px;
    color: var(--gold);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .article-aside a {
    display: block;
    padding: 8px 0;
    color: var(--text-soft);
    font-size: 14px;
  }

  .article-aside a:hover {
    color: var(--gold);
  }
}

@media (max-width: 420px) {
  .brand-name {
    max-width: 120px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .article-card h3 {
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
