/* ============================================================
   home.css, index.html specific styles
   Hero (skyline + D2M wordmark) and intro block.
   Depends on shared.css for tokens, masthead, nav, footer.
   ============================================================ */

/* ---------- hero ---------- */
.hero {
  position: relative;
  width: 100%;
  min-height: clamp(380px, 56vh, 580px);
  background-image:
    /* warm dusk tint, sits on the photograph */
    linear-gradient(
      180deg,
      oklch(0.22 0.040 50 / 0.50) 0%,
      oklch(0.28 0.060 45 / 0.30) 40%,
      oklch(0.22 0.070 40 / 0.55) 100%
    ),
    url("assets/dallas-skyline.jpg");
  background-size: cover;
  background-position: center 38%;
  background-repeat: no-repeat;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

/* faint warm radial wash to lift the wordmark off the photo center */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 62% 50% at 50% 52%,
    oklch(0.30 0.080 45 / 0.45),
    oklch(0.20 0.060 40 / 0) 70%
  );
  pointer-events: none;
  z-index: 1;
}

/* thin top + bottom rules so it doesn't feel like a generic full-bleed photo */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--rule);
  opacity: 0.4;
  z-index: 2;
}

.hero-inner {
  position: relative;
  z-index: 3;
  padding: clamp(60px, 9vw, 140px) var(--gutter-x);
  display: grid;
  justify-items: center;
  text-align: center;
  color: var(--paper);
}

/* ---------- D2M wordmark (inline SVG logo) ---------- */
.wordmark {
  display: block;
  margin: 0;
  line-height: 1;
  filter: drop-shadow(0 2px 28px oklch(0.18 0.04 40 / 0.45));
}

.wordmark-svg {
  display: block;
  width: clamp(280px, 38vw, 560px);
  height: auto;
}

.wm-glyph {
  dominant-baseline: alphabetic;
  text-anchor: start;
}

.wm-sans {
  font-family: "Inter Tight", system-ui, sans-serif;
  font-weight: 800;
  font-size: 280px;
  letter-spacing: -12px;
  fill: var(--paper);
}

.wm-serif {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600;
  font-style: italic;
  font-size: 305px;
  letter-spacing: -12px;
  fill: var(--accent);
}

.wordmark-tagline {
  display: block;
  margin-top: clamp(18px, 2.8vw, 32px);
  font-family: var(--font-sans);
  font-size: clamp(0.78rem, 1.2vw, 0.95rem);
  font-weight: 500;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: 0.92;
  text-indent: 0.36em;
}

.wordmark-tagline-thin {
  font-weight: 400;
  color: var(--accent-soft);
}

/* ---------- intro block ---------- */
.intro {
  padding: clamp(28px, 4vw, 56px) var(--gutter-x) clamp(40px, 6vw, 80px);
  max-width: 880px;
  margin: 0 auto;
}

.intro-heading {
  font-family: var(--font-sans);
  font-size: var(--step-3);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.08;
  color: var(--ink);
  margin: 0 0 0.55em;
}
.intro-heading:not(:first-child) {
  margin-top: clamp(40px, 5vw, 64px);
}

.intro-body p {
  font-family: var(--font-serif);
  font-size: var(--step-1);
  line-height: 1.58;
  color: var(--ink);
  margin: 0 0 1.1em;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  hanging-punctuation: first last;
}
.intro-body p:last-child { margin-bottom: 0; }

/* drop-cap-ish lead for the first paragraph of "The issue." */
.intro-body .lead {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink);
  font-weight: 400;
}
.intro-body .lead .accent-phrase {
  color: var(--accent-deep);
  font-style: italic;
  font-weight: 500;
}

/* ---------- the three things, numbered, no bullet dots ---------- */
.three-things {
  display: grid;
  gap: clamp(22px, 3vw, 34px);
  margin: 0;
  counter-reset: thing;
}
.three-things li {
  position: relative;
  padding-left: clamp(48px, 6vw, 68px);
  counter-increment: thing;
  font-family: var(--font-serif);
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink);
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  hanging-punctuation: first last;
}
.three-things li::before {
  content: counter(thing);
  position: absolute;
  left: 0;
  top: -0.08em;
  font-family: var(--font-sans);
  font-size: clamp(2.0rem, 3.6vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--accent);
}
.three-things li strong {
  font-family: var(--font-serif);
  font-weight: 600;
  font-style: italic;
  color: var(--ink);
}

/* ---------- CTA ---------- */
.cta-row {
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: clamp(24px, 3vw, 36px);
  border-top: 1px solid var(--rule);
}
.cta-link {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: clamp(1.05rem, 1.4vw, 1.20rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
  transition: color 120ms ease, border-color 120ms ease;
}
.cta-link:hover {
  color: var(--accent-deep);
  border-bottom-color: var(--accent-deep);
}
.cta-link .arrow {
  color: var(--accent);
  display: inline-block;
  margin-left: 0.35em;
  transition: transform 160ms ease;
}
.cta-link:hover .arrow {
  transform: translateX(3px);
  color: var(--accent-deep);
}

/* ---------- mobile refinements ---------- */
@media (max-width: 640px) {
  .hero {
    min-height: 62vh;
    background-position: center 42%;
  }
  .wordmark {
    font-size: clamp(4.4rem, 26vw, 7rem);
  }
  .wordmark-tagline {
    letter-spacing: 0.26em;
    text-indent: 0.26em;
  }
  .three-things li {
    padding-left: 42px;
  }
  .three-things li::before {
    font-size: 1.9rem;
  }
}
