:root {
  --charcoal: #1A1A1A;
  --charcoal-2: #222222;
  --gold: #C8962E;
  --gold-hover: #d4a037;
  --cream: #FAF7F2;
  --light-bg: #F5F1EA;
  --muted: #6B6257;
  --dark-text: #2E2A24;
  --gold-border: rgba(200, 150, 46, 0.18);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--light-bg);
  color: var(--dark-text);
  font-family: 'Work Sans', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  margin: 0;
  color: var(--charcoal);
  font-weight: 400;
}

a { color: inherit; }

.overline {
  font-family: 'Work Sans', sans-serif;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- GATE ---------- */
#gate {
  position: fixed;
  inset: 0;
  background: var(--charcoal);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 1.5rem;
  text-align: center;
}
#gate .gate-logo { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; margin-bottom: 1.5rem; color: var(--gold); }
#gate h2 { color: var(--cream); font-weight: 300; font-size: 1.8rem; margin-bottom: 0.5rem; }
#gate p { font-size: 0.85rem; color: rgba(250,247,242,0.55); margin: 0 0 2rem; letter-spacing: 0.03em; }
#gate input {
  background: transparent; border: 1px solid var(--gold-border); border-radius: 3px;
  padding: 0.9rem 1.25rem; width: 100%; max-width: 320px; color: var(--cream);
  font-family: inherit; font-size: 0.95rem; letter-spacing: 0.06em; text-align: center;
  margin-bottom: 1rem; outline: none;
}
#gate input:focus { border-color: var(--gold); }
#gate button {
  background: var(--gold); color: var(--charcoal); border: none; border-radius: 3px;
  padding: 0.9rem 2.5rem; font-family: inherit; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; width: 100%; max-width: 320px;
}
#gate button:hover { background: var(--gold-hover); }
#gate .gate-error { color: #d97b6c; font-size: 0.78rem; margin-top: 0.75rem; min-height: 1.2em; }

/* ---------- NAV ---------- */
.shell-nav { background: var(--charcoal); border-bottom: 1px solid var(--gold-border); position: sticky; top: 0; z-index: 50; }
.nav-inner { max-width: 900px; margin: 0 auto; padding: 0.9rem 1.5rem; display: flex; align-items: center; gap: 1rem; }
.nav-marks { display: flex; align-items: center; gap: 0.9rem; }
.nav-marks img { height: 32px; width: auto; display: block; }
.nav-org { font-family: 'Cormorant Garamond', serif; color: var(--cream); font-size: 1.05rem; }

/* ---------- RESUME BANNER ---------- */
#resume-banner { display: none; background: var(--charcoal-2); border-bottom: 1px solid var(--gold-border); padding: 1rem 1.5rem; }
#resume-banner .inner { max-width: 900px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
#resume-banner .label { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.25rem; }
#resume-banner .text { font-family: 'Cormorant Garamond', serif; color: var(--cream); font-size: 1.05rem; }
#resume-banner button { background: var(--gold); color: var(--charcoal); border: none; border-radius: 3px; padding: 0.6rem 1.25rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; white-space: nowrap; }

/* ---------- HERO ---------- */
.hero { background: var(--charcoal); color: var(--cream); padding: 3.5rem 1.5rem 3rem; text-align: center; }
.hero h1 { color: var(--cream); font-weight: 300; font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.15; margin-bottom: 0.75rem; }
.hero .subtitle { color: rgba(250,247,242,0.65); font-size: 1rem; max-width: 560px; margin: 0 auto; }

/* ---------- MAIN / MODULE GRID ---------- */
.main { max-width: 900px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }
.section-label { font-family: 'Work Sans', sans-serif; font-weight: 600; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 2rem 0 1rem; }
.module-list { display: flex; flex-direction: column; gap: 0.75rem; }
.module-row {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--gold-border); border-radius: 6px; padding: 1.1rem 1.4rem;
  background: #fff;
}
.module-row.pending { opacity: 0.75; cursor: default; }
.mod-top { display: flex; align-items: baseline; gap: 0.75rem; margin-bottom: 0.35rem; }
.mod-num { font-family: 'Cormorant Garamond', serif; color: var(--gold); font-size: 1.3rem; }
.mod-title { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; }
.mod-desc { font-size: 0.9rem; color: var(--muted); line-height: 1.5; }
.mod-status { display: inline-block; margin-top: 0.6rem; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); background: rgba(200,150,46,0.1); border-radius: 3px; padding: 0.25rem 0.6rem; }

.cta-block { text-align: center; margin: 2.5rem 0; }
.btn { display: inline-block; background: var(--gold); color: var(--charcoal); text-decoration: none; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.9rem 2rem; border-radius: 4px; }
.btn:hover { background: var(--gold-hover); }
.btn-secondary { background: transparent; color: var(--charcoal); border: 1px solid var(--gold-border); }

.reflect-note { font-size: 0.82rem; color: var(--muted); margin-top: 1.5rem; text-align: center; }
.reflect-note a { color: var(--gold); }

footer { text-align: center; padding: 2rem 1.5rem 3rem; font-size: 0.75rem; color: var(--muted); }
