:root {
  --ink: #11110f;
  --paper: #f8f5ee;
  --panel: #ffffff;
  --line: rgba(17, 17, 15, 0.14);
  --muted: #69645b;
  --gold: #a77a2f;
  --green: #0e6b5c;
  --blue: #183a59;
  --plum: #4b344f;
  --shadow: 0 24px 80px rgba(17, 17, 15, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

img,
svg {
  max-width: 100%;
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 62px);
  background: rgba(248, 245, 238, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

nav,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 0.94rem;
}

nav a,
.footer-links a {
  text-decoration: none;
}

.hero-shell {
  min-height: 760px;
  height: calc(100vh - 62px);
  max-height: 980px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.88fr);
  border-bottom: 1px solid var(--line);
  align-items: stretch;
  overflow: hidden;
}

.hero-copy {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: clamp(24px, 4vw, 58px);
}

.eyebrow,
.luna-kicker {
  margin: 0;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  max-width: 940px;
  margin: 0;
  font-size: clamp(2.5rem, 4.8vw, 5.35rem);
  line-height: 0.96;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.4rem);
  line-height: 1;
}

h3 {
  margin: 0;
  font-size: 1.16rem;
}

p {
  color: var(--muted);
  line-height: 1.68;
}

.hero-lede {
  max-width: 760px;
  margin: 0;
  font-size: 1.04rem;
}

.cta-grid,
.content-grid,
.journal-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.cta-grid a,
.content-grid a,
.journal-preview a,
.pillar-grid a {
  min-height: 52px;
  display: flex;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  text-decoration: none;
  font-weight: 850;
}

.cta-grid a:first-child {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.luna-inline {
  max-width: 780px;
  padding: 14px;
  border: 1px solid rgba(14, 107, 92, 0.32);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 42px rgba(17, 17, 15, 0.08);
}

.luna-inline h2 {
  margin-top: 4px;
  font-size: clamp(1.08rem, 1.55vw, 1.35rem);
  line-height: 1.08;
}

.luna-inline p {
  margin: 5px 0 9px;
  font-size: 0.92rem;
}

.luna-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.luna-form input,
.luna-form select,
.luna-form textarea,
.luna-form button {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  font: inherit;
  padding: 8px 10px;
}

.luna-form textarea {
  grid-column: 1 / -1;
  min-height: 54px;
  resize: vertical;
}

.luna-form button {
  grid-column: 1 / -1;
  background: var(--green);
  color: white;
  border-color: var(--green);
  cursor: pointer;
  font-weight: 900;
}

.form-status {
  min-height: 22px;
  font-size: 0.86rem;
}

.hero-photo-panel {
  min-width: 0;
  height: 100%;
  overflow: hidden;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  padding: clamp(18px, 3vw, 34px);
  background: #161412;
  border-left: 1px solid var(--line);
}

.photo-stage {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #050505;
  box-shadow: var(--shadow);
}

.photo-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity 240ms ease, transform 700ms ease;
}

.photo-stage.is-changing img {
  opacity: 0.22;
  transform: scale(1.015);
}

.photo-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
}

.photo-caption span {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.hero-thumbs button {
  aspect-ratio: 5 / 4;
  padding: 0;
  border: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
}

.hero-thumbs button.is-active {
  border-color: var(--gold);
}

.hero-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section {
  padding: clamp(46px, 7vw, 98px) clamp(18px, 4vw, 62px);
  border-bottom: 1px solid var(--line);
}

.band-light {
  background: #fffdf7;
}

.band-dark {
  background: var(--blue);
  color: white;
}

.band-dark p,
.band-dark .timeline span {
  color: rgba(255, 255, 255, 0.78);
}

.section-head {
  max-width: 900px;
  margin-bottom: 28px;
}

.section-head p {
  font-size: 1.05rem;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.pillar-grid a {
  min-height: 210px;
  align-items: flex-start;
  flex-direction: column;
  justify-content: space-between;
  color: var(--muted);
}

.pillar-grid span {
  color: var(--ink);
  font-size: 1.28rem;
  font-weight: 950;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.timeline span {
  min-height: 176px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  line-height: 1.62;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(260px, 0.9fr);
  gap: 18px 24px;
  padding: 30px clamp(18px, 4vw, 62px);
  background: #11110f;
  color: white;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.72);
}

.footer-topline,
.sponsor-line,
.sponsor-links {
  grid-column: 1 / -1;
}

.footer-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.evolution-link,
.endorsement {
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.evolution-link {
  color: white;
}

.endorsement {
  color: #d7b667;
}

.footer-main p {
  margin-bottom: 0;
}

.sponsor-line {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
}

.sponsor-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sponsor-links a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  text-decoration: none;
  font-weight: 850;
}

.legal {
  grid-column: 1 / -1;
  max-width: 1180px;
  font-size: 0.82rem;
}

.page-hero {
  padding: clamp(48px, 7vw, 104px) clamp(18px, 4vw, 62px);
  border-bottom: 1px solid var(--line);
}

.page-hero p {
  max-width: 840px;
  font-size: 1.1rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.journal-card,
.admin-card,
.luna-route-card {
  min-height: 240px;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.journal-card {
  display: grid;
  grid-template-rows: 96px auto auto 1fr;
  gap: 12px;
  text-decoration: none;
}

.journal-card img {
  width: 96px;
  height: 96px;
}

.article-shell {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(42px, 7vw, 92px) 20px;
}

.article-shell .article-icon {
  width: 112px;
  height: 112px;
  margin-bottom: 22px;
}

.article-shell p,
.article-shell li {
  font-size: 1.05rem;
  line-height: 1.78;
}

.article-shell ul {
  padding-left: 20px;
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 1060px) {
  .hero-shell {
    height: auto;
    max-height: none;
    grid-template-columns: 1fr;
  }

  .hero-photo-panel {
    min-height: 760px;
    border-left: 0;
  }

  .pillar-grid,
  .timeline,
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  h1 {
    font-size: clamp(2.35rem, 13vw, 4.1rem);
  }

  .cta-grid,
  .content-grid,
  .journal-preview,
  .pillar-grid,
  .timeline,
  .card-grid,
  .route-grid,
  .luna-form,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero-photo-panel {
    min-height: 600px;
  }

  .photo-caption {
    align-items: flex-start;
    flex-direction: column;
  }
}
