/* Eos Breathing Room — promo flyer */

:root {
  --bg: #0f172a;
  --bg-elevated: #161d26;
  /* Softer than #76b83f — a few shades darker, less aggressive */
  --text: #5a8428;
  --text-muted: rgba(90, 132, 40, 0.75);
  --accent: #6b9e88;
  --accent-hover: #82b89a;
  --accent-soft: rgba(107, 158, 136, 0.15);
  --accent-border: rgba(107, 158, 136, 0.35);
  --border: rgba(232, 236, 240, 0.08);
  --radius: 12px;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --max: 52rem;
  --shot-gap: clamp(0.3rem, 1.2vw, 0.55rem);
  --grid-cols: minmax(0, 1fr) minmax(11.5rem, 28%);
  --grid-gap-col: clamp(1rem, 3vw, 2rem);
  /* Hero & guide (matches primary text) */
  --hero-heading: #5a8428;
  --hero-tagline: #5a8428;
  --guide-body: #5a8428;
  --guide-border-mist: rgba(90, 132, 40, 0.38);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  /* Full-quality art: images/Gemini_Eos-2.png (2082×1080) — scales with cover */
  background-image:
    linear-gradient(
      180deg,
      rgba(15, 23, 42, 0.58) 0%,
      rgba(15, 23, 42, 0.38) 38%,
      rgba(15, 23, 42, 0.62) 78%,
      rgba(15, 23, 42, 0.78) 100%
    ),
    url("../images/Gemini_Eos-2.png");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

@media (max-width: 900px) {
  body {
    background-attachment: scroll;
  }
}

@media (prefers-reduced-motion: reduce) {
  body {
    background-attachment: scroll;
  }
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent-hover);
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--bg);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  padding-block: 2.5rem 0.85rem;
}

header.hero {
  padding-block: 2rem 3rem;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: var(--grid-cols);
  column-gap: var(--grid-gap-col);
  align-items: start;
}

.hero-focus {
  grid-column: 1;
  text-align: center;
}

.hero-rail {
  grid-column: 2;
  min-height: 1px;
}

.hero h1 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.48rem, 3.6vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--hero-heading);
}

.hero .tagline {
  margin: 0;
  color: var(--hero-tagline);
  font-size: 1.05rem;
  line-height: 1.55;
}

@media (max-width: 720px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-rail {
    display: none;
  }

  .hero-focus {
    grid-column: 1;
  }
}

section {
  padding-block: 2.75rem;
}

section + section {
  border-top: 1px solid var(--border);
}

section h2 {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.45rem;
  color: var(--text);
}

.promo-body {
  padding-block: 1.25rem 0;
}

.content-grid {
  display: grid;
  grid-template-columns: var(--grid-cols);
  grid-template-rows: auto auto;
  column-gap: var(--grid-gap-col);
  row-gap: clamp(0.85rem, 2vw, 1.25rem);
  align-items: start;
}

.guide-cell {
  grid-column: 1;
  grid-row: 1;
}

.links-sidebar {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
}

.gallery-cell {
  grid-column: 1;
  grid-row: 2;
}

.topics-sidebar {
  grid-column: 2;
  grid-row: 2;
  align-self: end;
}

@media (max-width: 720px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .guide-cell,
  .links-sidebar,
  .gallery-cell,
  .topics-sidebar {
    grid-column: 1;
  }

  .guide-cell {
    grid-row: 1;
  }

  .links-sidebar {
    grid-row: 2;
  }

  .gallery-cell {
    grid-row: 3;
  }

  .topics-sidebar {
    grid-row: 4;
    align-self: stretch;
  }
}

.guide-text-block {
  max-width: 100%;
  width: 100%;
  margin-inline: auto;
}

.guide {
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--guide-border-mist);
}

.guide p {
  margin: 0 0 1rem;
  color: var(--guide-body);
}

.guide p:last-child {
  margin-bottom: 0;
}

.gallery-cell .gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: start;
  gap: var(--shot-gap);
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
  overflow-x: visible;
  box-sizing: border-box;
}

figure.card {
  margin: 0;
  min-width: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

figure.card figcaption {
  padding: 0.4rem 0.3rem;
  font-size: clamp(0.68rem, 2vw, 0.85rem);
  line-height: 1.25;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  text-align: center;
}

figure.card .shot {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 172 / 384;
  max-width: 100%;
  object-fit: contain;
  background: linear-gradient(145deg, #1a222c 0%, #0f172a 100%);
}

figure.card .shot[data-missing] {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
}

.links-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.links-list a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  font-weight: 500;
}

.links-list .url {
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.links-sidebar h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--accent);
  margin: 0 0 0.65rem;
}

.topics-sidebar h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(0.84rem, 1.6vw, 0.96rem);
  color: var(--accent);
  margin: 0 0 0.52rem;
}

.links-sidebar .links-list a {
  color: var(--accent);
}

.links-sidebar .links-list a:hover {
  color: var(--accent-hover);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tags span {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}

.topics-sidebar .tags {
  gap: 0.4rem;
}

.topics-sidebar .tags span {
  padding: 0.28rem 0.6rem;
  font-size: 0.68rem;
  border-radius: 5px;
  color: var(--accent);
  border: 1px solid var(--accent-border);
}

footer.site-footer {
  display: grid;
  grid-template-columns: var(--grid-cols);
  column-gap: var(--grid-gap-col);
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--accent);
}

footer.site-footer p {
  grid-column: 1;
  margin: 0;
  text-align: center;
}

@media (max-width: 720px) {
  footer.site-footer {
    grid-template-columns: 1fr;
  }

  footer.site-footer p {
    grid-column: 1;
  }
}

footer.site-footer a {
  color: var(--accent);
  text-decoration-thickness: 1px;
}

footer.site-footer a:hover {
  color: var(--accent-hover);
}
