:root {
  --df-ink: #0d1b2a;
  --df-navy: #10263b;
  --df-midnight: #07111f;
  --df-teal: #2a9d8f;
  --df-gold: #d4a017;
  --df-cream: #f4f4f2;
  --df-slate: #667280;
  --df-line: rgba(13, 27, 42, .14);
  --df-panel: #ffffff;
  --df-soft: #f7f6f1;
  --df-shadow: 0 22px 60px rgba(13, 27, 42, .13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% -8%, rgba(212, 160, 23, .16), transparent 26rem),
    radial-gradient(circle at 86% 18%, rgba(42, 157, 143, .12), transparent 28rem),
    var(--df-cream);
  color: var(--df-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
}

.site-header {
  background: var(--df-midnight);
  color: var(--df-cream);
  border-bottom: 1px solid rgba(244, 244, 242, .13);
}

.site-header__inner {
  width: min(1180px, calc(100% - 2rem));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.brand__mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--df-gold);
  border-radius: 999px;
  color: var(--df-gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.top-nav a {
  color: rgba(244, 244, 242, .78);
  text-decoration: none;
}

.top-nav a:hover {
  color: var(--df-gold);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .78rem 1rem;
  border: 1px solid var(--df-line);
  border-radius: .38rem;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
}

.button.gold {
  background: var(--df-gold);
  border-color: var(--df-gold);
  color: #1b1300;
}

.button.teal {
  background: var(--df-teal);
  border-color: var(--df-teal);
  color: white;
}

.button.ghost {
  background: white;
  color: var(--df-ink);
}

.button.ghost-on-dark {
  background: rgba(244, 244, 242, .08);
  border-color: rgba(244, 244, 242, .28);
  color: var(--df-cream);
}

.page-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 4rem) 0;
}

.companion-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: clamp(1.4rem, 3vw, 2rem);
  align-items: start;
}

.side-rail,
.hero-panel,
.article-card,
.index-card {
  background: var(--df-panel);
  border: 1px solid var(--df-line);
  box-shadow: 0 14px 36px rgba(13, 27, 42, .07);
}

.side-rail {
  position: sticky;
  top: 1rem;
  min-height: 440px;
  padding: 1.25rem;
  background:
    radial-gradient(circle at 50% 0, rgba(212, 160, 23, .22), transparent 11rem),
    var(--df-midnight);
  color: var(--df-cream);
  border-color: rgba(244, 244, 242, .14);
  border-radius: 18px;
}

.side-rail__code {
  display: block;
  margin-bottom: .8rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1;
  color: var(--df-gold);
}

.side-rail p {
  margin: 0 0 1.5rem;
  color: rgba(244, 244, 242, .8);
}

.side-rail a {
  display: block;
  margin: .75rem 0;
  color: rgba(244, 244, 242, .74);
  text-decoration: none;
  font-size: .88rem;
}

.side-rail a:hover {
  color: var(--df-gold);
}

.hero-panel {
  margin-bottom: 1rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 22px;
  overflow: hidden;
  position: relative;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -5rem -5rem auto;
  width: 16rem;
  height: 16rem;
  border: 1px solid rgba(212, 160, 23, .28);
  border-radius: 999px;
}

.eyebrow {
  margin: 0 0 .6rem;
  color: var(--df-gold);
  font-size: .74rem;
  font-weight: 950;
  letter-spacing: .15em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  line-height: 1.08;
  letter-spacing: -.035em;
}

h1 {
  max-width: 13ch;
  margin: 0 0 1rem;
  font-size: clamp(2.6rem, 7vw, 5rem);
}

.hero-panel__summary {
  max-width: 62ch;
  margin: 0;
  color: #263648;
  font-size: 1.08rem;
}

.home-hero {
  width: min(1180px, calc(100% - 2rem));
  min-height: 680px;
  margin: clamp(1rem, 3vw, 2rem) auto 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 5rem);
  background:
    radial-gradient(circle at 16% 18%, rgba(212, 160, 23, .24), transparent 18rem),
    radial-gradient(circle at 80% 24%, rgba(42, 157, 143, .18), transparent 22rem),
    linear-gradient(135deg, #06101d 0%, #0d1b2a 58%, #10263b 100%);
  border: 1px solid rgba(244, 244, 242, .16);
  border-radius: 24px;
  box-shadow: var(--df-shadow);
  color: var(--df-cream);
  overflow: hidden;
  position: relative;
}

.home-hero h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 7vw, 6rem);
}

.home-hero__lead {
  max-width: 44rem;
  color: rgba(244, 244, 242, .82);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.home-hero__copy {
  position: relative;
  z-index: 1;
}

.home-hero__object {
  display: grid;
  place-items: center;
  min-height: 520px;
  position: relative;
}

.home-hero__object::before {
  content: "";
  position: absolute;
  width: min(82vw, 520px);
  height: min(82vw, 520px);
  border: 1px solid rgba(212, 160, 23, .26);
  border-radius: 50%;
  box-shadow: inset 0 0 80px rgba(212, 160, 23, .08);
}

.book-card {
  width: min(78vw, 340px);
  min-height: 470px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
  background:
    linear-gradient(145deg, rgba(212, 160, 23, .12), transparent 30%),
    linear-gradient(180deg, #10263b, #07111f);
  border: 1px solid rgba(212, 160, 23, .42);
  border-radius: 18px;
  box-shadow: 32px 42px 90px rgba(0, 0, 0, .35);
  transform: rotate(-3deg);
  position: relative;
  z-index: 1;
}

.book-card__mark {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border: 1px solid var(--df-gold);
  border-radius: 50%;
  color: var(--df-gold);
  font-size: 2.4rem;
}

.book-card strong,
.book-card em {
  display: block;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  line-height: .95;
  letter-spacing: -.04em;
}

.book-card strong {
  max-width: 100%;
  font-size: clamp(1.85rem, 4vw, 2.08rem);
  letter-spacing: -.055em;
  text-transform: uppercase;
}

.book-card em {
  color: var(--df-gold);
  font-size: 2.1rem;
  font-style: normal;
}

.book-card p {
  margin: 0;
  color: rgba(244, 244, 242, .78);
}

.home-section,
.decision-strip {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.home-section {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  margin-top: 1rem;
  padding: clamp(1.5rem, 4vw, 2.6rem);
  background:
    linear-gradient(135deg, rgba(42, 157, 143, .07), transparent 38%),
    white;
  border: 1px solid var(--df-line);
  border-radius: 22px;
  box-shadow: 0 14px 36px rgba(13, 27, 42, .07);
}

.home-section__title h2,
.decision-strip h2 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4rem);
}

.home-copy {
  color: #243245;
  font-size: 1.06rem;
}

.home-copy p {
  margin: 0;
  padding: 1rem;
  background: var(--df-soft);
  border: 1px solid rgba(13, 27, 42, .08);
  border-left: 4px solid var(--df-gold);
  border-radius: 14px;
}

.home-copy p + p {
  margin-top: .85rem;
}

.home-copy .button-row {
  margin-top: 1rem;
}

.home-cards {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1rem 0;
}

.feature-card {
  min-height: 280px;
  padding: 1.35rem;
  background: white;
  border: 1px solid var(--df-line);
  border-radius: 20px;
  box-shadow: 0 14px 36px rgba(13, 27, 42, .07);
}

.feature-card span {
  display: inline-flex;
  margin-bottom: 4rem;
  color: var(--df-teal);
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: .14em;
}

.feature-card h2 {
  margin: 0 0 .7rem;
  font-size: 1.7rem;
}

.feature-card p {
  margin: 0;
  color: var(--df-slate);
}

.decision-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 0;
  margin-bottom: 1rem;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  background:
    radial-gradient(circle at 88% 20%, rgba(212, 160, 23, .25), transparent 18rem),
    var(--df-midnight);
  border: 1px solid rgba(244, 244, 242, .14);
  color: var(--df-cream);
  border-radius: 24px;
  box-shadow: var(--df-shadow);
}

.decision-strip p:not(.eyebrow) {
  max-width: 48rem;
  margin: .75rem 0 0;
  color: rgba(244, 244, 242, .78);
}

.article-card {
  padding: clamp(1.4rem, 4vw, 2.6rem);
  border-radius: 22px;
}

.article-card h1 {
  display: none;
}

.article-card h2 {
  margin: 2.2rem 0 .8rem;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

.article-card h2:first-child {
  margin-top: 0;
}

.article-card h3 {
  margin: 1.5rem 0 .5rem;
  font-size: 1.35rem;
}

.article-card p,
.article-card li {
  max-width: 72ch;
}

.article-card blockquote {
  margin: 1rem 0;
  padding: .8rem 1rem;
  border-left: 4px solid var(--df-gold);
  background: #fbf6e8;
  border-radius: 10px;
}

.article-card ul {
  padding-left: 1.2rem;
}

.article-card li + li {
  margin-top: .35rem;
}

.article-card a {
  color: #126f66;
  font-weight: 750;
}

.article-card h2:first-of-type + p {
  padding: 1rem;
  border-left: 4px solid var(--df-gold);
  background: #fbf6e8;
  border-radius: 12px;
}

.page-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.page-nav a,
.index-card {
  border-radius: 16px;
  padding: 1rem;
  text-decoration: none;
}

.page-nav a {
  display: block;
  background: white;
  border: 1px solid var(--df-line);
}

.page-nav span {
  display: block;
  color: var(--df-slate);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.index-hero {
  padding: clamp(2rem, 5vw, 4rem);
  background:
    radial-gradient(circle at 78% 18%, rgba(212, 160, 23, .20), transparent 20rem),
    var(--df-midnight);
  color: var(--df-cream);
  border-radius: 24px;
  box-shadow: var(--df-shadow);
}

.index-hero h1 {
  max-width: 16ch;
}

.index-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.4rem;
}

.index-card h2 {
  margin: 0 0 .5rem;
  font-size: 1.45rem;
}

.index-card p {
  margin: 0;
  color: var(--df-slate);
}

.site-footer {
  padding: 2rem 1rem;
  background: var(--df-midnight);
  color: rgba(244, 244, 242, .78);
  text-align: center;
}

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

@media (max-width: 980px) {
  .home-hero,
  .home-section,
  .home-cards {
    grid-template-columns: 1fr;
  }

  .home-hero__object {
    min-height: 420px;
  }

  .decision-strip {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .side-rail {
    position: static;
  }

  .side-rail {
    min-height: auto;
  }

  .side-rail nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .25rem 1rem;
  }

  .index-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .site-header__inner,
  .top-nav,
  .page-nav,
  .index-grid {
    grid-template-columns: 1fr;
  }

  .site-header__inner,
  .top-nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 1rem 0;
  }
}
