:root {
  --midnight: #0b1d3a;
  --ink: #162b4d;
  --slate: #2d4263;
  --steel: #5a7094;
  --mist: #8fa4c0;
  --cloud: #c8d5e3;
  --snow: #edf1f5;
  --white: #fafbfc;
  --chai-gold: #c4953a;
  --chai-light: #e8c76b;
  --chai-deep: #9b7420;
  --chai-glow: #f5e6c0;
  --sage: #4a7c6f;
  --sage-light: #6ba396;
  --coral-alert: #c75b4a;
  --parchment: #f7f3ed;
  --warm-white: #fffdf8;
  --line: rgba(22, 43, 77, 0.14);
  --shadow: 0 18px 42px rgba(11, 29, 58, 0.08);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", Inter, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(250, 251, 252, 0.94);
  backdrop-filter: blur(10px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  min-height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
}

.brand span {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--midnight);
  white-space: nowrap;
}

.brand em {
  color: var(--chai-deep);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--slate);
}

.nav-links a {
  text-decoration: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--midnight);
  background: var(--midnight);
  color: var(--white);
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1;
}

.button.secondary {
  background: transparent;
  color: var(--midnight);
  border-color: var(--cloud);
}

.button.gold {
  background: var(--chai-gold);
  border-color: var(--chai-gold);
  color: var(--midnight);
}

.page-band {
  border-bottom: 1px solid var(--line);
}

.page-band.midnight {
  background: var(--midnight);
  color: var(--white);
}

.page-band.parchment {
  background: var(--parchment);
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 68px 24px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 56px;
  align-items: center;
  min-height: 650px;
}

.hero > *,
.grid-2 > *,
.grid-3 > *,
.issue-layout > * {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(196, 149, 58, 0.42);
  color: var(--chai-deep);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
}

.midnight .eyebrow {
  color: var(--chai-light);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--midnight);
  font-family: var(--serif);
  line-height: 1.12;
}

.midnight h1,
.midnight h2,
.midnight h3 {
  color: var(--white);
}

h1 {
  max-width: 760px;
  margin-top: 18px;
  font-size: 58px;
  font-weight: 700;
  overflow-wrap: break-word;
}

h2 {
  font-size: 40px;
  font-weight: 700;
}

h3 {
  font-size: 25px;
  font-weight: 700;
}

p {
  margin: 0;
}

.lead {
  max-width: 690px;
  margin-top: 22px;
  color: var(--steel);
  font-size: 19px;
}

.midnight .lead {
  color: var(--cloud);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.brief-panel {
  border: 1px solid rgba(196, 149, 58, 0.35);
  background: var(--warm-white);
  box-shadow: var(--shadow);
  min-width: 0;
}

.brief-panel header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  background: var(--midnight);
  color: var(--white);
}

.brief-panel .panel-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
}

.brief-panel .panel-date,
.stat-label,
.meta-label,
.tag {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
}

.brief-panel .panel-date {
  color: var(--mist);
}

.brief-panel .panel-body {
  padding: 22px;
}

.signal-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.signal {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.signal:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.tag {
  color: var(--chai-deep);
  font-weight: 600;
}

.signal p {
  color: var(--ink);
  font-size: 14px;
}

.chart-card {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--white);
}

.bar-row {
  display: grid;
  grid-template-columns: 120px 1fr 70px;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  font-size: 13px;
}

.bar-track {
  height: 12px;
  background: var(--snow);
}

.bar {
  height: 100%;
  background: var(--sage);
}

.bar.gold {
  background: var(--chai-gold);
}

.bar.alert {
  background: var(--coral-alert);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 36px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.card {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 26px;
}

.parchment .card {
  background: var(--warm-white);
}

.card p,
.issue-body li {
  color: var(--steel);
}

.meta-label {
  display: block;
  margin-bottom: 12px;
  color: var(--chai-deep);
}

.price {
  margin-top: 12px;
  color: var(--midnight);
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 700;
}

.price small {
  color: var(--steel);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
}

.feature-list {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  color: var(--steel);
}

.feature-list li {
  padding-left: 18px;
  position: relative;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 7px;
  height: 7px;
  background: var(--chai-gold);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.section-head p {
  max-width: 560px;
  color: var(--steel);
}

.issue-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 42px;
}

.issue-body {
  max-width: 780px;
}

.issue-body h1 {
  font-size: 52px;
}

.issue-body h2 {
  margin-top: 44px;
  font-size: 32px;
}

.issue-body h3 {
  margin-top: 26px;
}

.issue-body p,
.issue-body li {
  margin-top: 14px;
  font-size: 17px;
}

.side-panel {
  position: sticky;
  top: 96px;
  align-self: start;
  border: 1px solid var(--line);
  background: var(--parchment);
  padding: 22px;
}

.site-footer {
  background: var(--midnight);
  color: var(--cloud);
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 38px;
  padding-bottom: 38px;
  font-size: 14px;
}

@media (max-width: 860px) {
  .page-band,
  .site-header,
  .site-footer {
    max-width: 100vw;
    overflow: hidden;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .brand {
    align-items: flex-start;
  }

  .brand span {
    white-space: normal;
    font-size: 20px;
    line-height: 1.05;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 10px;
  }

  .nav-links a {
    font-size: 13px;
  }

  .nav-links .button {
    grid-column: span 2;
  }

  .hero,
  .grid-2,
  .grid-3,
  .issue-layout {
    display: grid;
    grid-template-columns: 1fr;
    width: min(100%, 330px);
    gap: 32px;
  }

  h1,
  .issue-body h1 {
    max-width: 286px;
    font-size: 24px;
  }

  h2 {
    font-size: 29px;
  }

  h3 {
    font-size: 22px;
  }

  .lead {
    font-size: 16px;
    max-width: 320px;
  }

  .container {
    max-width: 100vw;
    width: 100%;
    padding-top: 48px;
    padding-bottom: 48px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .action-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
    min-width: 0;
  }

  .brief-panel header,
  .signal,
  .bar-row {
    grid-template-columns: 1fr;
  }

  .brief-panel header {
    display: grid;
  }

  .brief-panel,
  .chart-card,
  .signal p,
  .lead {
    width: auto;
    max-width: 320px;
    min-width: 0;
    overflow-wrap: break-word;
  }

  .brief-panel {
    justify-self: start;
    overflow: hidden;
  }

  .brief-panel h3,
  .brief-panel p {
    max-width: 282px;
  }

  .bar-row {
    gap: 6px;
  }

  .bar-track {
    width: 100%;
    min-width: 0;
  }
}
