/* =======================================================================
   Story Page — Base
   ======================================================================= */

:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #666666;
  --rule: #dcdcdc;

  --max: 1120px;
  --gap: 44px;

  --body: 15.5px;
  --leading: 1.65;
  --title: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: var(--bg);
}

body {
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: var(--body);
  line-height: var(--leading);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =======================================================================
   Hero Header (shared structure, story-specific color)
   ======================================================================= */

.hero-header {
  max-width: var(--max);
  margin: 0 auto;

  padding-top: 22px;
  /* MATCHES home top offset */
  padding-bottom: 20px;
  padding-left: 24px;
  padding-right: 24px;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  /* matches home default */
  text-align: center;
}

.hero-logo {
  display: block;
  line-height: 0;
}

.hero-logo img {
  width: 160px;
  height: auto;
  display: block;
}

/* Vertical nav */
.hero-nav {
  display: flex;
  flex-direction: column;
  /* gap: 6px; */

  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-nav a {
  color: rgba(0, 0, 0, 0.78);
}

/* Hover / focus */
.hero-nav a:hover,
.hero-nav a:focus-visible {
  color: #111;
}

/* Current page */
.hero-nav a[aria-current="page"] {
  display: inline-block;
  align-self: center;
  /* keeps the pill centered in stacked nav */
  background: #111;
  color: #fff;
  padding: 2px 10px;
  /* pill size */
  border-radius: 0px;
  /* square corners like your screenshot */
  font-weight: 500;
  text-decoration: none;
}

/* Prevent underline on active item */
.hero-nav a[aria-current="page"]:hover,
.hero-nav a[aria-current="page"]:focus-visible {
  color: #fff;
  text-decoration: none;
}

/* =======================================================================
   Page Container
   ======================================================================= */

.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* =======================================================================
   Story Layout
   ======================================================================= */

.story {
  display: grid;
  grid-template-columns: 520px 1fr;
  gap: var(--gap);
  align-items: start;
}

/* Image frame */
.story-media {
  margin: 0;
  padding-top: 77px;
}

.story-media img {
  width: 100%;
  height: auto;
  display: block;
}

/* Copy column */
.story-copy {
  max-width: 560px;
}

.story-title {
  font-size: var(--title);
  font-weight: 500;
  line-height: 1.35;
  margin: 0 0 14px 0;
}

.story-copy p {
  margin: 0 0 14px 0;
}

/* =======================================================================
   Stars accent — above story text
   ======================================================================= */

.story-stars {
  width: 220px;
  /* slightly tighter than image version */
  height: 70px;

  background: url("web-stars.png") center / contain no-repeat;

  margin: 0 0 5px 40px;
  /* sits right above headline */
  /* opacity: 0.8; */
}

/* =======================================================================
   Responsive
   ======================================================================= */

@media (max-width: 980px) {
  .story {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .story-copy {
    max-width: 720px;
  }

  .hero-header {
    /* mimic home top offset, but using padding instead of absolute top */
    padding-top: calc(14px + env(safe-area-inset-top));
    padding-bottom: 16px;
    gap: 12px;
    /* EXACT match to home */
  }

  .hero-logo img {
    width: clamp(120px, 42vw, 160px);
    /* EXACT match */
  }

  .hero-nav {
    font-size: 14px;
    /* EXACT match */
    letter-spacing: 0.14em;
    /* EXACT match */
    gap: 6px;
    /* EXACT match */
  }

  .hero-nav a {
    padding: 6px 0;
    /* EXACT match */
  }

  .story-media {
    margin: 0;
    padding-top: 20px;
  }
}