/* Atlas story — an editorial long-read behind the Discover Map. Uses the site tokens but leans on
   Fraunces (the atlas's own hand) for a magazine feel distinct from the tool pages. */

.atlas-article { --measure: 42rem; }

/* "Coming soon" placeholder shown while the writeup is unwritten (soft launch) */
.atlas-soon {
  position: relative; overflow: hidden; border-radius: 16px; border: 1px solid var(--line);
  border-left: 4px solid var(--blue); background: var(--ink-2);
  min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center;
}
.atlas-soon-map { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.18; }
.atlas-soon::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 100% at 50% 50%, transparent, var(--ink-2)); }
.atlas-soon-inner { position: relative; z-index: 1; padding: 3rem 1.5rem; max-width: 40rem; }
.atlas-soon .atlas-eyebrow { color: var(--blue); }
.atlas-soon h1 {
  font-family: "Fraunces", Georgia, serif; font-weight: 600; letter-spacing: -0.02em;
  font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.0; margin: 0.6rem 0 1rem;
}
.atlas-soon-dek { color: var(--muted); font-size: 1.05rem; margin: 0 auto 1.8rem; max-width: 34rem; }
.atlas-soon .hero-cta { background: var(--blue); }

/* Hero: the whole atlas, dissolving upward into the headline */
.atlas-hero {
  position: relative; margin: -2.5rem -1.4rem 3rem;   /* bleed past .site-main padding */
  min-height: 62vh; display: flex; align-items: flex-end; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.atlas-hero-map { position: absolute; inset: 0; background-size: cover; background-position: center 30%; }
.atlas-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, var(--ink) 6%, color-mix(in srgb, var(--ink) 55%, transparent) 55%, transparent 100%);
}
.atlas-hero-inner { position: relative; z-index: 1; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 2.5rem 1.4rem; }
.atlas-eyebrow { color: var(--blue); }
.atlas-hero h1 {
  font-family: "Fraunces", Georgia, serif; font-weight: 600; letter-spacing: -0.02em;
  font-size: clamp(2.6rem, 7vw, 5rem); line-height: 0.98; margin: 0.5rem 0 0.7rem; max-width: 16ch;
}
.atlas-dek { font-size: 1.15rem; color: var(--text); opacity: 0.9; max-width: 40rem; margin: 0; }
.atlas-byline { margin-top: 1rem; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }

/* Prose column */
.atlas-prose { max-width: var(--measure); margin: 0 auto; }
.atlas-prose > section { margin-bottom: 3rem; }
.atlas-prose h2 {
  font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.9rem; line-height: 1.1;
  letter-spacing: -0.01em; margin: 0 0 1rem;
}
.atlas-prose h3 { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.2rem; margin: 1.6rem 0 0.5rem; }
.atlas-prose p { font-size: 1.06rem; line-height: 1.72; color: color-mix(in srgb, var(--text) 92%, var(--muted)); margin: 0 0 1.1rem; }
.atlas-prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.atlas-prose strong { color: var(--text); font-weight: 600; }
.atlas-prose em { font-style: italic; }

.atlas-section-label { display: block; margin-bottom: 0.4rem; color: var(--blue); }

/* Drop cap on the opening paragraph — one editorial flourish */
.atlas-lead::first-letter {
  font-family: "Fraunces", Georgia, serif; font-weight: 600; float: left;
  font-size: 3.6rem; line-height: 0.82; padding: 0.1rem 0.6rem 0 0; color: var(--text);
}

/* Numbered method steps — the pipeline IS a real sequence, so numbering carries meaning */
.atlas-steps { list-style: none; padding: 0; margin: 1.5rem 0; counter-reset: step; }
.atlas-steps > li { position: relative; padding: 0 0 1.4rem 3.4rem; counter-increment: step; }
.atlas-steps > li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0;
  font-family: var(--mono); font-size: 0.9rem; color: var(--blue);
  border: 1px solid color-mix(in srgb, var(--blue) 45%, var(--line)); border-radius: 8px;
  width: 2.3rem; height: 2.3rem; display: grid; place-items: center;
}
.atlas-steps > li:not(:last-child)::after { content: ""; position: absolute; left: 1.15rem; top: 2.5rem; bottom: 0.4rem; width: 1px; background: var(--line); }
.atlas-steps h3 { margin: 0.2rem 0 0.3rem; font-size: 1.15rem; }
.atlas-steps p { margin: 0; font-size: 1rem; }

/* Region-name register table */
.atlas-registers { display: grid; gap: 0.5rem; margin: 1.4rem 0; }
.atlas-register { display: grid; grid-template-columns: 8rem 1fr; gap: 0.9rem; align-items: baseline; padding: 0.6rem 0; border-top: 1px solid var(--line); }
.atlas-register dt { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue); }
.atlas-register dd { margin: 0; font-family: "Fraunces", Georgia, serif; font-size: 1.05rem; color: var(--text); }
.atlas-register dd small { display: block; font-family: var(--body); font-size: 0.85rem; color: var(--muted); margin-top: 0.15rem; }

/* Pull quote */
.atlas-pull {
  border-left: 3px solid var(--blue); padding: 0.3rem 0 0.3rem 1.3rem; margin: 2rem 0;
  font-family: "Fraunces", Georgia, serif; font-style: italic; font-size: 1.4rem; line-height: 1.35; color: var(--text);
}

/* "Notes from the cartographer" — editable discovery cards */
.atlas-notes { display: grid; gap: 1rem; margin: 1.4rem 0; }
.atlas-note {
  background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--orange);
  border-radius: var(--radius); padding: 1.1rem 1.3rem;
}
.atlas-note h3 { margin: 0 0 0.35rem; font-size: 1.1rem; }
.atlas-note p { margin: 0; font-size: 0.98rem; }
.atlas-note .atlas-note-tag { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange); display: block; margin-bottom: 0.4rem; }

/* Callout for the honest-caveats box */
.atlas-caveat { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.5rem; }
.atlas-caveat p:last-child { margin-bottom: 0; }

/* Closing CTA */
.atlas-cta {
  max-width: var(--maxw); margin: 3.5rem auto 0; text-align: center;
  border-top: 1px solid var(--line); padding-top: 2.5rem;
}
.atlas-cta h2 { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 2rem; margin: 0 0 1.2rem; }
.atlas-cta .hero-cta { background: var(--blue); }

@media (max-width: 620px) {
  .atlas-register { grid-template-columns: 1fr; gap: 0.2rem; }
  .atlas-prose p { font-size: 1.02rem; }
}
