:root {
  --bg: #0f0e0c;
  --bg-elev: #18161240;
  --bg-card: #1a1815;
  --border: rgba(201, 169, 97, 0.14);
  --border-strong: rgba(201, 169, 97, 0.32);
  --text: #ede4d3;
  --text-muted: #8a8275;
  --text-dim: #5c574d;
  --gold: #c9a961;
  --gold-soft: #d8bd7f;
  --green: #7fb069;
  --amber: #d4a64a;
  --neutral: #4a463e;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-image:
    radial-gradient(ellipse at top, rgba(201, 169, 97, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(201, 169, 97, 0.03) 0%, transparent 50%);
  min-height: 100vh;
}

.container { max-width: 1100px; margin: 0 auto; padding: 60px 32px 80px; }

/* Top nav (shared across pages) */
.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  padding-bottom: 22px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.nav .brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  color: var(--gold);
  margin-right: auto;
  letter-spacing: 0.01em;
}
.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease;
}
.nav a:hover { color: var(--text); }
.nav a.active { color: var(--text); border-bottom-color: var(--gold); }

/* Header */
.header { padding-bottom: 48px; border-bottom: 1px solid var(--border); margin-bottom: 56px; }
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 18px;
}
h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: clamp(38px, 5vw, 56px);
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 16px;
}
h1 .accent { color: var(--gold); font-style: italic; font-weight: 400; }
.subtitle {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.6;
}

/* Status bar */
.status-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text);
}
.status-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.status-pill .dot.amber { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.status-pill .dot.neutral { background: var(--neutral); box-shadow: none; }

/* Section */
section { margin-bottom: 72px; }
h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 32px;
  letter-spacing: -0.005em;
  color: var(--text);
  margin-bottom: 8px;
}
.section-eyebrow {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 10px;
}
.section-intro {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 720px;
  margin-bottom: 36px;
}

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.stat-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.stat-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
  font-weight: 500;
}
.stat-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.005em;
}
.stat-value.gold { color: var(--gold); }
.stat-sub { font-size: 13px; color: var(--text-muted); margin-top: 6px; }

/* Milestone cards */
.milestone {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
  margin-bottom: 20px;
  transition: border-color 0.2s ease;
}
.milestone:hover { border-color: var(--border-strong); }
.milestone-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 4px;
}
.milestone-title-block { flex: 1; min-width: 260px; }
.milestone-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--text);
  margin-bottom: 6px;
}
.milestone-desc { color: var(--text-muted); font-size: 14.5px; max-width: 540px; }

.progress-block { text-align: right; min-width: 140px; }
.progress-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
  font-weight: 500;
}
.progress-bar {
  width: 140px;
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
  margin-left: auto;
}
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-soft)); border-radius: 2px; transition: width 0.4s ease; }
.progress-fill.green { background: linear-gradient(90deg, var(--green), #a3c989); }
.progress-text { font-size: 12px; color: var(--text-muted); margin-top: 8px; }

/* Task list */
.task-list { margin-top: 24px; border-top: 1px solid var(--border); padding-top: 22px; }
.task {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 0;
  font-size: 15px;
}
.task .check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid var(--text-dim);
  margin-top: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}
.task.done .check {
  border-color: var(--green);
  background: var(--green);
}
.task.done .check::after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--bg);
  border-bottom: 2px solid var(--bg);
  transform: rotate(-45deg) translate(1px, -1px);
}
.task.active .check {
  border-color: var(--amber);
  background: transparent;
  position: relative;
}
.task.active .check::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 6px var(--amber);
}
.task .label { color: var(--text); flex: 1; }
.task.done .label { color: var(--text-muted); }
.task .meta {
  font-size: 12px;
  color: var(--text-dim);
  margin-left: 8px;
  flex-shrink: 0;
  font-style: italic;
}
.task.active .meta { color: var(--amber); font-style: normal; font-weight: 500; }

/* Two-col */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 720px) { .two-col { grid-template-columns: 1fr; } }

.panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
}
.panel.accent { border-left: 3px solid var(--gold); }
.panel-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 16px;
}
.panel ul { list-style: none; }
.panel li {
  padding: 8px 0;
  color: var(--text);
  font-size: 14.5px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.panel li::before {
  content: "—";
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 0px;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 28px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  padding-bottom: 24px;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--text-dim);
}
.timeline-item.done::before { border-color: var(--green); background: var(--green); }
.timeline-item.active::before { border-color: var(--amber); background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.timeline-date {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 4px;
  font-weight: 500;
}
.timeline-title { color: var(--text); font-size: 15px; font-weight: 500; margin-bottom: 3px; }
.timeline-desc { color: var(--text-muted); font-size: 13.5px; }

/* Links grid */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.link-card {
  display: block;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
a.link-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.link-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 14px;
}
.link-status .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px var(--green); }
.link-status .dot.amber { background: var(--amber); box-shadow: 0 0 6px var(--amber); }
.link-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
}
.link-url { font-size: 13px; color: var(--gold); margin-bottom: 10px; word-break: break-word; }
.link-desc { font-size: 13.5px; color: var(--text-muted); line-height: 1.5; }

/* ============================================================
   WEEKLY REPORT components
   ============================================================ */

/* Tab bar */
.tabbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.tab {
  appearance: none;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  color: var(--text-muted);
  padding: 12px 18px;
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  transition: color 0.2s ease;
}
.tab:hover { color: var(--text); }
.tab .tab-label { font-size: 14px; font-weight: 500; }
.tab .tab-sub { font-size: 11px; color: var(--text-dim); letter-spacing: 0.02em; }
.tab.active { color: var(--text); border-bottom-color: var(--gold); }
.tab.is-plan .tab-label { color: var(--gold); }
.tab.is-plan.active { border-bottom-color: var(--gold); }

/* Week panel */
.week-head { margin-bottom: 28px; }
.week-eyebrow {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 12px;
}
.week-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(26px, 3.5vw, 34px);
  font-weight: 500;
  line-height: 1.15;
  color: var(--text);
  max-width: 760px;
}

/* Accordion (recap highlights) */
.accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 12px;
  transition: border-color 0.2s ease;
}
.accordion-item:hover { border-color: var(--border-strong); }
.accordion-header {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  padding: 20px 24px;
  user-select: none;
}
.accordion-header .marker {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
}
.accordion-header .marker::after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--bg);
  border-bottom: 2px solid var(--bg);
  transform: rotate(-45deg) translate(0, -1px);
}
.accordion-header .htitle { flex: 1; color: var(--text); font-size: 15.5px; line-height: 1.4; }
.accordion-header .chev {
  flex-shrink: 0;
  color: var(--text-dim);
  font-size: 14px;
  transition: transform 0.25s ease;
}
.accordion-item.open .chev { transform: rotate(180deg); }
.accordion-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}
.accordion-item.open .accordion-detail { max-height: 600px; }
.accordion-detail-inner {
  padding: 0 24px 22px 58px;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.65;
}

/* Plan tab: needs by person */
.plan-focus { margin-bottom: 40px; }
.needs-person {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  padding: 22px 24px;
  margin-bottom: 14px;
}
.needs-who {
  font-family: 'Cormorant Garamond', serif;
  font-size: 21px;
  font-weight: 500;
  color: var(--text);
}
.needs-role {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin: 4px 0 14px;
}
.needs-asks { list-style: none; }
.needs-asks li {
  padding: 7px 0;
  color: var(--text);
  font-size: 14.5px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.needs-asks li::before { content: "→"; color: var(--gold); flex-shrink: 0; }

/* ============================================================
   HOMEPAGE — editorial hero + workstream board + needs band
   ============================================================ */

/* Editorial hero (homepage only) */
.home-hero {
  padding-bottom: 44px;
  margin-bottom: 64px;
  border-bottom: 1px solid var(--border);
}
.home-hero h1 {
  font-size: clamp(46px, 7vw, 78px);
  margin-bottom: 22px;
}
.hero-status {
  font-size: 18px;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  max-width: 640px;
}
.hero-ask {
  display: inline-block;
  margin-top: 28px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 4px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.hero-ask:hover { color: var(--gold-soft); border-color: var(--gold); }

/* Workstream board (the map) */
.board-head { margin-bottom: 36px; }
.ws-row { border-bottom: 1px solid var(--border); }
.ws-row:first-of-type { border-top: 1px solid var(--border); }
.ws-header {
  width: 100%;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 30px 8px;
  text-align: left;
  font-family: inherit;
  color: inherit;
}
.ws-header:hover .ws-name { color: var(--gold-soft); }
.ws-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 46px;
  font-weight: 500;
  line-height: 1;
  color: var(--gold);
  opacity: 0.5;
  min-width: 58px;
  flex-shrink: 0;
}
.ws-text { flex: 1; min-width: 0; }
.ws-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 25px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
  transition: color 0.2s ease;
}
.ws-desc { font-size: 14px; color: var(--text-muted); max-width: 520px; line-height: 1.55; }
.ws-meter { flex-shrink: 0; width: 180px; }
.ws-pct {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 500;
  color: var(--text);
  line-height: 1;
  text-align: right;
  margin-bottom: 12px;
}
.ws-pct.green { color: var(--green); }
.ws-bar {
  width: 180px;
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}
.ws-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-soft)); border-radius: 2px; }
.ws-fill.green { background: linear-gradient(90deg, var(--green), #a3c989); }
.ws-stage {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 9px;
  text-align: right;
}
.ws-chev {
  flex-shrink: 0;
  color: var(--text-dim);
  font-size: 14px;
  transition: transform 0.25s ease;
}
.ws-row.open .ws-chev { transform: rotate(180deg); }
.ws-tasks { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.ws-row.open .ws-tasks { max-height: 720px; }
.ws-tasks-inner { padding: 2px 8px 30px 86px; }
.ws-tasks-inner .task { font-size: 14.5px; padding: 8px 0; }

/* Needs band */
.needs-band {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  padding: 32px 36px;
}
.needs-band .section-eyebrow { margin-bottom: 20px; }
.needs-list { display: flex; flex-direction: column; gap: 18px; }
.need { display: flex; gap: 18px; align-items: baseline; }
.need-who {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  font-weight: 500;
  color: var(--gold);
  min-width: 120px;
  flex-shrink: 0;
}
.need-ask { color: var(--text); font-size: 14.5px; line-height: 1.55; }

@media (max-width: 640px) {
  .ws-header { flex-wrap: wrap; gap: 16px 20px; padding: 24px 4px; }
  .ws-num { font-size: 38px; min-width: 46px; }
  .ws-meter { width: 100%; }
  .ws-pct, .ws-stage { text-align: left; }
  .ws-bar { width: 100%; }
  .ws-chev { position: absolute; right: 4px; }
  .ws-row { position: relative; }
  .ws-tasks-inner { padding-left: 8px; }
  .needs-band { padding: 26px 22px; }
  .need { flex-direction: column; gap: 4px; }
  .need-who { min-width: 0; }
}

/* Footer */
footer {
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-dim);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
footer a { color: var(--gold); text-decoration: none; }
footer a:hover { text-decoration: underline; }

.signature {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--text-muted);
}

@media (max-width: 600px) {
  .container { padding: 40px 20px 60px; }
  h1 { font-size: 36px; }
  .milestone { padding: 24px; }
  .progress-block { text-align: left; min-width: 0; }
  .progress-bar { margin-left: 0; }
  .nav { gap: 18px; }
  .accordion-detail-inner { padding-left: 24px; }
}
