/* =============================================================
   index.css — The Made Self · Homepage
   Requires shared.css to be loaded first.
   ============================================================= */

:root {
  --pad:   clamp(24px, 5vw, 80px);
  --max-w: 1280px;
}

/* ── Site wrapper ────────────────────────────────────────────── */
.site-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  border-left:  1px solid var(--border);
  border-right: 1px solid var(--border);
}

/* Constrain nav to match site-wrap on wide screens */
nav {
  max-width: var(--max-w);
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0 var(--pad);
  padding-top: 72px;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px clamp(24px, 4vw, 60px) 80px 0;
  border-right: 1px solid var(--border);
}

.hero-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 0 80px clamp(24px, 4vw, 60px);
}

.hero-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(56px, 7vw, 112px);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--text);
  opacity: 0;
  animation: fadeUp 0.8s 0.35s forwards;
}
.hero-title em { font-style: italic; color: var(--accent); }

.hero-body {
  font-family: var(--serif);
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 300;
  line-height: 1.85;
  color: var(--muted);
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.8s 0.5s forwards;
}
.hero-body strong { color: var(--text); font-weight: 400; }

.hero-quote {
  font-family: var(--serif);
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s 0.6s forwards;
}
.hero-quote em { color: var(--accent); font-style: normal; }

.hero-quote-attr {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.8s 0.72s forwards;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent2);
  padding-bottom: 4px;
  width: fit-content;
  transition: gap 0.3s, color 0.3s;
  opacity: 0;
  animation: fadeUp 0.8s 0.65s forwards;
}
.hero-cta:hover { gap: 20px; color: var(--text); }
.hero-cta::after { content: '→'; }

/* ── Content bands ───────────────────────────────────────────── */
.band {
  width: 100%;
  border-top: 1px solid var(--border);
  padding: 100px var(--pad);
  display: grid;
  grid-template-columns: minmax(120px, 18%) 1fr;
  gap: 0 8vw;
  align-items: start;
}

.band-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 6px;
  position: sticky;
  top: 100px;
}

.band-content {
  font-family: var(--serif);
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 300;
  line-height: 1.9;
  color: var(--text);
}
.band-content p + p { margin-top: 1.5em; }
.band-content em     { font-style: italic; color: var(--accent); }

/* Prose lists (used inside .band-content) */
.band-content h4 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  font-weight: 600;
}
.band-content ul      { padding-left: 1.25rem; }
.band-content li      { margin-bottom: 0.4rem; }
.band-content li::marker { color: #888; font-size: 0.9em; }

/* ── Modules section ─────────────────────────────────────────── */
.modules-section {
  width: 100%;
  border-top: 1px solid var(--border);
  padding: 100px var(--pad);
}

.modules-header {
  display: grid;
  grid-template-columns: minmax(120px, 18%) 1fr;
  gap: 0 8vw;
  margin-bottom: 64px;
}

.modules-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 6px;
}

.modules-intro {
  font-family: var(--serif);
  font-size: clamp(16px, 1.4vw, 19px);
  font-weight: 300;
  line-height: 1.8;
  color: var(--muted);
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.module {
  background: var(--bg);
  padding: 36px 40px;
  transition: background var(--ease);
  cursor: default;
}
.module:hover { background: var(--bg2); }

.module-num {
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 300;
  color: var(--accent2);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.module-title {
  font-family: var(--serif);
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.2;
}

.module-desc {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.module-status {
  display: inline-block;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 2px 8px;
}
.module-status.live { color: var(--accent); border-color: var(--accent2); }

.module.final                { background: var(--bg2); }
.module.final .module-title  { font-style: italic; color: var(--accent); }
.module.final:hover          { background: var(--bg3); }

/* ── Footer ──────────────────────────────────────────────────── */
footer {
  width: 100%;
  border-top: 1px solid var(--border);
  padding: 40px var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-name {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 300;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.footer-note {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 300;
  color: var(--muted);
  letter-spacing: 0.08em;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 100px; }
  .hero-left { border-right: none; border-bottom: 1px solid var(--border); padding: 60px 0; }
  .hero-right { padding: 60px 0; }
  .band, .modules-header { grid-template-columns: 1fr; gap: 24px 0; }
  .band-label, .modules-label { position: static; }
}

@media (max-width: 560px) {
  .module-grid { grid-template-columns: 1fr; }
  .module { padding: 28px 24px; }
}
