/* layout.css — Project Aurora */

/* ── Base ───────────────────────────────────── */
html { font-size: 16px; }

body {
  font-family: var(--f-body);
  font-weight: 300;
  color: var(--c-parchment);
  background-color: var(--c-void);
  cursor: none;
  overflow-x: hidden;
}

main { position: relative; z-index: var(--z-base); }

/* ── Grain overlay ──────────────────────────── */
#grain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: var(--z-grain);
  opacity: 0.04;
  mix-blend-mode: overlay;
}

/* ── Container ──────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--col-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ── Chapter base ───────────────────────────── */
.chapter {
  position: relative;
  padding-block: var(--chapter-pad);
  padding-inline: var(--gutter);
  max-width: var(--col-max);
  margin-inline: auto;
  overflow: hidden;
}

.chapter--hero {
  padding: 0;
  max-width: 100%;
  height: 100svh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.chapter--performance {
  max-width: 100%;
  padding: 0;
  min-height: 90vh;
}

.chapter--community {
  max-width: 100%;
  background: var(--c-charcoal);
}

/* ── Chapter marker ─────────────────────────── */
.chapter__marker {
  position: absolute;
  top: clamp(2rem, 4vh, 3.5rem);
  left: var(--gutter);
  font-size: var(--t-xs);
  letter-spacing: 0.2em;
  color: var(--c-amber);
  opacity: 0.7;
}

/* ── Typography globals ─────────────────────── */
.mono {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--f-display);
  font-size: clamp(var(--t-3xl), 7vw, var(--t-6xl));
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.section-title em {
  font-style: italic;
  color: var(--c-amber-light);
}

.section-title--light { color: var(--c-parchment); }
.section-title--center { text-align: center; }

/* ── Site footer ────────────────────────────── */
.site-footer {
  background: var(--c-void);
  border-top: 1px solid var(--c-graphite);
  padding: var(--s-12) var(--gutter);
}

.site-footer__inner {
  max-width: var(--col-max);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-6);
}

.site-footer__logo {
  font-family: var(--f-display);
  font-size: var(--t-xl);
  letter-spacing: 0.05em;
  color: var(--c-amber);
}

.site-footer__meta,
.site-footer__links {
  display: flex;
  gap: var(--s-6);
  flex-wrap: wrap;
  align-items: center;
  color: var(--c-smoke);
  font-size: var(--t-xs);
}

.footer-link {
  color: var(--c-silver);
  transition: color var(--dur-fast) var(--ease-out);
}
.footer-link:hover { color: var(--c-amber); }
