:root {
  --navy-950: #03101f;
  --navy-900: #06182d;
  --navy-800: #082541;
  --cream: #f4e7ce;
  --paper: #fffaf0;
  --gold: #cd9d24;
  --gold-light: #e7bf5e;
  --teal: #4fb7ae;
  --ink: #102132;
  --muted: #596674;
  --line: rgba(205, 157, 36, .28);
  --shadow: 0 28px 70px rgba(3, 16, 31, .18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

.site-header {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  margin: 22px auto 0;
  padding: 12px 14px;
  color: white;
  border: 1px solid rgba(244, 231, 206, .22);
  border-radius: 18px;
  background: rgba(3, 16, 31, .76);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
  font-weight: 800;
  letter-spacing: .01em;
  text-decoration: none;
}

.brand img { border-radius: 12px; }

nav { display: flex; align-items: center; gap: 28px; }
nav a { color: rgba(255, 255, 255, .82); font-size: .94rem; font-weight: 650; text-decoration: none; }
nav a:hover, nav a:focus-visible { color: white; }

.header-socials, .footer-socials { display: flex; align-items: center; gap: 9px; }
.social-icon { display: inline-grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; color: var(--gold-light); border: 1px solid rgba(244, 231, 206, .25); border-radius: 50%; background: rgba(255, 255, 255, .06); text-decoration: none; transition: transform .2s ease, color .2s ease, background .2s ease; }
.social-icon svg { width: 21px; height: 21px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.social-icon .social-fill { fill: currentColor; stroke: none; }
.social-icon:hover, .social-icon:focus-visible { color: var(--navy-950); background: var(--gold-light); transform: translateY(-2px); }

.hero {
  position: relative;
  min-height: 820px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: white;
  background: var(--navy-950);
}

.hero-art {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(3, 16, 31, .32) 0%, rgba(3, 16, 31, .1) 50%, rgba(3, 16, 31, .02) 100%), url("assets/ledgerframe-hero-background.jpg");
  background-size: cover;
  background-position: center;
  filter: saturate(.9) contrast(1.04);
  transform: scale(1.03);
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 16, 31, .18) 45%, var(--navy-950) 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  padding-top: 100px;
}

.eyebrow, .section-label {
  margin: 0 0 16px;
  color: var(--gold-light);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1, h2, h3, p { text-wrap: pretty; }

h1 {
  max-width: 1040px;
  margin: 0;
  color: var(--cream);
  font-size: clamp(4.2rem, 8vw, 7.6rem);
  line-height: .89;
  letter-spacing: -.06em;
}

h1 span { color: var(--gold-light); }
h1 .hero-line { display: block; color: var(--cream); white-space: nowrap; }

.hero-text {
  max-width: 700px;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, .78);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px; border-radius: 999px; font-weight: 800; text-decoration: none; }
.button.primary { color: var(--navy-950); background: var(--gold-light); }
.button.secondary { color: white; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .06); }
.button:hover, .button:focus-visible { transform: translateY(-2px); }

.intro {
  max-width: 1040px;
  margin: 0 auto;
  padding: 110px 40px;
  text-align: center;
}

.intro h2, .topics h2, .follow h2 {
  margin: 0;
  color: var(--navy-900);
  font-size: clamp(2.3rem, 5vw, 4.7rem);
  line-height: 1.05;
  letter-spacing: -.045em;
}

.intro > p:last-child {
  max-width: 780px;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: 1.15rem;
}

.featured {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 66px;
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 120px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: white;
  box-shadow: var(--shadow);
}

.featured-media a { position: relative; display: block; overflow: hidden; border-radius: 20px; background: var(--navy-900); }
.featured-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .35s ease; }
.featured-media a:hover img { transform: scale(1.025); }
.play { position: absolute; inset: 50% auto auto 50%; display: grid; place-items: center; width: 76px; height: 76px; color: var(--navy-950); border-radius: 50%; background: var(--gold-light); box-shadow: 0 14px 30px rgba(3, 16, 31, .3); transform: translate(-50%, -50%); }

.featured-copy { padding-right: 18px; }
.featured-copy h2 { margin: 0; color: var(--navy-900); font-size: clamp(2.1rem, 4vw, 3.6rem); line-height: 1.04; letter-spacing: -.04em; }
.featured-copy p:not(.section-label), .featured-copy li { color: var(--muted); }
.featured-copy ul { padding-left: 20px; }
.featured-copy li::marker { color: var(--gold); }

.shorts { width: min(1180px, calc(100% - 48px)); margin: 0 auto 100px; }
.shorts-heading { max-width: 780px; margin-bottom: 34px; }
.shorts-heading h2 { margin: 0 0 14px; color: var(--navy-900); font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.05; letter-spacing: -.035em; }
.shorts-heading > p:last-child { color: var(--muted); font-size: 1.05rem; }
.shorts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.short-card { padding: 14px 14px 24px; border: 1px solid rgba(6, 24, 45, .1); border-radius: 22px; background: #fff; box-shadow: 0 18px 46px rgba(6, 24, 45, .08); }
.short-frame { overflow: hidden; border-radius: 14px; background: var(--navy-900); aspect-ratio: 9 / 16; }
.short-frame iframe { width: 100%; height: 100%; border: 0; }
.short-card h3 { margin: 20px 8px 10px; color: var(--navy-900); font-size: 1.25rem; line-height: 1.2; }
.short-card p { margin: 0 8px; color: var(--muted); font-size: .95rem; }
.text-link { display: inline-flex; gap: 8px; margin-top: 8px; color: var(--navy-900); font-weight: 850; text-decoration-color: var(--gold); text-underline-offset: 5px; }

.topics { padding: 110px max(40px, calc((100vw - 1180px) / 2)); color: white; background: var(--navy-900); }
.topics-heading { display: grid; grid-template-columns: .6fr 1.4fr; gap: 40px; align-items: end; margin-bottom: 58px; }
.topics h2 { color: var(--cream); }
.topic-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(244, 231, 206, .2); }
.topic-grid article { min-height: 310px; padding: 30px 26px; border-right: 1px solid rgba(244, 231, 206, .16); }
.topic-grid article:last-child { border-right: 0; }
.topic-number { color: var(--teal); font-size: .78rem; font-weight: 800; letter-spacing: .14em; }
.topic-grid h3 { margin: 72px 0 10px; color: var(--cream); font-size: 1.45rem; }
.topic-grid p { color: rgba(255, 255, 255, .62); font-size: .96rem; }

.follow {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 38px;
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  margin: 110px auto;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: white;
  box-shadow: var(--shadow);
}
.follow img { border-radius: 24px; }
.follow h2 { font-size: clamp(2rem, 4vw, 3.8rem); }
.follow p:not(.section-label) { max-width: 650px; color: var(--muted); }
.follow-links { display: grid; grid-template-columns: repeat(2, minmax(150px, 1fr)); gap: 12px; }
.follow-links > a { display: flex; align-items: center; gap: 10px; min-width: 160px; padding: 9px 16px 9px 9px; color: var(--navy-900); border: 1px solid var(--line); border-radius: 999px; font-weight: 800; text-decoration: none; }
.follow-links > a .social-icon { width: 36px; height: 36px; flex-basis: 36px; color: var(--navy-900); border-color: var(--line); background: rgba(205, 157, 36, .1); }
.follow-links > a:hover { color: white; background: var(--navy-900); }
.follow-links > a:hover .social-icon { color: var(--gold-light); background: rgba(255, 255, 255, .08); transform: none; }

footer {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: 30px;
  align-items: center;
  padding: 42px max(40px, calc((100vw - 1180px) / 2));
  color: rgba(255, 255, 255, .58);
  background: var(--navy-950);
  font-size: .88rem;
}
.footer-brand { display: grid; }
.footer-brand strong { color: var(--cream); font-size: 1rem; }
.footer-connect { display: grid; justify-items: end; gap: 10px; }
.footer-connect p { margin: 0; }
.footer-socials .social-icon { width: 34px; height: 34px; flex-basis: 34px; }
.footer-socials .social-icon svg { width: 18px; height: 18px; }

@media (max-width: 900px) {
  .site-header { position: absolute; }
  nav > a:not(.nav-button) { display: none; }
  .hero { min-height: 760px; }
  .hero-art { background-position: 60% center; }
  .featured { grid-template-columns: 1fr; gap: 34px; }
  .featured-copy { padding: 0 8px 14px; }
  .shorts-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .topics-heading { grid-template-columns: 1fr; }
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
  .topic-grid article:nth-child(2) { border-right: 0; }
  .topic-grid article:nth-child(-n+2) { border-bottom: 1px solid rgba(244, 231, 206, .16); }
  .follow { grid-template-columns: auto 1fr; }
  .follow-links { grid-column: 1 / -1; grid-template-columns: repeat(2, 1fr); }
  footer { grid-template-columns: 1fr; }
  .footer-connect { justify-items: start; }
}

@media (max-width: 620px) {
  .site-header { width: calc(100% - 24px); margin-top: 12px; }
  .brand span { font-size: .93rem; }
  .brand img { width: 46px; height: 46px; }
  nav { gap: 10px; }
  .header-socials { gap: 6px; }
  .header-socials .social-icon { width: 34px; height: 34px; flex-basis: 34px; }
  .header-socials .social-icon svg { width: 18px; height: 18px; }
  .hero { min-height: 720px; }
  .hero-copy { width: calc(100% - 32px); padding-top: 80px; }
  h1 { font-size: clamp(3.7rem, 19vw, 5.5rem); }
  h1 .hero-line { white-space: normal; }
  .hero-text { font-size: 1.05rem; }
  .hero-actions .button { width: 100%; }
  .intro { padding: 82px 24px; }
  .featured { width: calc(100% - 24px); margin-bottom: 78px; padding: 12px; border-radius: 22px; }
  .featured-media a { border-radius: 14px; }
  .shorts { width: calc(100% - 24px); margin-bottom: 78px; }
  .shorts-grid { grid-template-columns: 1fr; gap: 24px; }
  .short-card { max-width: 420px; margin: 0 auto; }
  .topics { padding: 78px 24px; }
  .topic-grid { grid-template-columns: 1fr; }
  .topic-grid article { min-height: auto; border-right: 0; border-bottom: 1px solid rgba(244, 231, 206, .16); }
  .topic-grid article:last-child { border-bottom: 0; }
  .topic-grid h3 { margin-top: 34px; }
  .follow { grid-template-columns: 1fr; width: calc(100% - 24px); margin: 78px auto; padding: 26px; text-align: center; }
  .follow img { width: 110px; margin: auto; }
  .follow-links { grid-column: auto; grid-template-columns: 1fr; }
  footer { padding: 38px 24px; text-align: center; }
  .footer-connect { justify-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
