/* ==========================================================================
   Aleams Barra — Bauhaus Academic Editorial Design System
   Palette harmonised with Setahun Bermatematika Modul 1 & 2 covers
   ========================================================================== */

:root {
  --cream: #f6efe0;
  --cream-soft: #fbf7ee;
  --cream-deep: #ede2cc;
  --white: #ffffff;

  --ink: #123a3e;
  --ink-dark: #0c282b;
  --ink-muted: #435f63;
  --ink-subtle: #667e81;

  --terracotta: #e06a32;
  --terracotta-dark: #c55521;
  --terracotta-soft: rgba(224, 106, 50, 0.12);

  --teal: #1d8380;
  --teal-mint: #78b8b1;
  --teal-soft: rgba(29, 131, 128, 0.12);

  --navy: #182940;
  --ochre: #d68327;
  --ochre-soft: rgba(214, 131, 39, 0.14);

  --border: rgba(18, 58, 62, 0.14);
  --border-strong: rgba(18, 58, 62, 0.28);
  --shadow-sm: 0 2px 10px rgba(18, 58, 62, 0.06);
  --shadow-md: 0 12px 32px rgba(18, 58, 62, 0.1);
  --shadow-book: 0 22px 45px rgba(18, 58, 62, 0.2), 0 4px 12px rgba(18, 58, 62, 0.1);

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --max-w: 1080px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  border-top: 6px solid var(--terracotta);
}

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

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

a:hover {
  color: var(--terracotta);
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 239, 224, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: var(--ink);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.brand-mark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--teal-mint) 0% 50%, var(--teal) 50% 100%);
}

.brand-mark::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--terracotta);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: var(--ink-muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ink);
  color: var(--cream-soft) !important;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.86rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
}

.nav-cta:hover {
  background: var(--terracotta);
  color: var(--white) !important;
  transform: translateY(-1px);
}

.nav-cta-terracotta {
  background: var(--terracotta);
  color: var(--white) !important;
}

.nav-cta-terracotta:hover {
  background: var(--terracotta-dark);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.94rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-primary {
  background: var(--terracotta);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(224, 106, 50, 0.24);
}

.btn-primary:hover {
  background: var(--terracotta-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(224, 106, 50, 0.3);
}

.btn-dark {
  background: var(--ink);
  color: var(--cream-soft);
}

.btn-dark:hover {
  background: var(--ink-dark);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--ink);
  background: rgba(18, 58, 62, 0.06);
  color: var(--ink);
}

.btn-sm {
  padding: 8px 15px;
  font-size: 0.84rem;
}

/* ---------- Section Heading (echoing CV horizontal bar) ---------- */
.section {
  padding: 68px 0;
}

.section-bordered {
  border-top: 1px solid var(--border);
}

.section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.section-bar {
  width: 36px;
  height: 5px;
  background: var(--terracotta);
  border-radius: 2px;
  flex-shrink: 0;
}

.section-bar-teal {
  background: var(--teal);
}

.section-head h2 {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.section-subtitle {
  color: var(--ink-muted);
  font-size: 1.02rem;
  max-width: 660px;
  margin-top: -16px;
  margin-bottom: 32px;
}

/* ---------- Profile Hero (aleamsbarra.com) ---------- */
.profile-hero {
  padding: 64px 0 56px;
}

.profile-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 44px;
  align-items: start;
}

.portrait-frame {
  position: relative;
  width: 210px;
}

.portrait-frame::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 12px;
  right: -12px;
  bottom: -12px;
  background: var(--teal-mint);
  border-radius: var(--radius-md);
  z-index: 0;
  opacity: 0.55;
}

.portrait-frame::after {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  width: 32px;
  height: 32px;
  border-top: 4px solid var(--terracotta);
  border-left: 4px solid var(--terracotta);
  border-radius: 3px 0 0 0;
  z-index: 2;
}

.portrait-img {
  position: relative;
  z-index: 1;
  width: 210px;
  height: 210px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 2px solid var(--ink);
  background: var(--cream-soft);
  box-shadow: var(--shadow-md);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 10px;
}

.profile-name {
  font-size: clamp(2.15rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 8px;
}

.profile-role {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--ink-muted);
  margin-bottom: 18px;
}

.profile-bio {
  font-size: 1.02rem;
  color: var(--ink-muted);
  max-width: 680px;
  margin-bottom: 22px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.tag {
  display: inline-block;
  padding: 5px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 999px;
  background: var(--cream-soft);
  border: 1px solid var(--border);
  color: var(--ink);
}

.tag-accent {
  background: var(--teal-soft);
  border-color: rgba(29, 131, 128, 0.25);
  color: var(--ink);
}

.tag-terracotta {
  background: var(--terracotta-soft);
  border-color: rgba(224, 106, 50, 0.25);
  color: var(--terracotta-dark);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ---------- Book Spotlight Banner on Profile ---------- */
.spotlight-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 32px;
  align-items: center;
  background: var(--ink);
  color: var(--cream-soft);
  border-radius: var(--radius-lg);
  padding: 28px 34px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.spotlight-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  background: var(--terracotta);
}

.spotlight-cover {
  border-radius: 6px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease;
}

.spotlight-card:hover .spotlight-cover {
  transform: translateY(-4px) rotate(-1deg);
}

.spotlight-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(224, 106, 50, 0.22);
  color: #ffb18a;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.spotlight-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 8px;
}

.spotlight-card p {
  color: rgba(246, 239, 224, 0.84);
  font-size: 0.96rem;
  margin-bottom: 18px;
  max-width: 620px;
}

/* ---------- Cards & Grids ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

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

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

.card {
  background: var(--cream-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.card h3 {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 10px;
}

.card p {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* ---------- Timeline Lists ---------- */
.timeline {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--border);
}

.timeline-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.timeline-year {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--terracotta-dark);
  padding-top: 2px;
}

.timeline-title {
  font-weight: 700;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.4;
}

.timeline-org {
  font-style: italic;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.timeline-desc {
  color: var(--ink-subtle);
  font-size: 0.88rem;
  margin-top: 3px;
}

/* ---------- Outreach Feature ---------- */
.outreach-hero {
  background: var(--cream-soft);
  border: 1px solid var(--border);
  border-left: 5px solid var(--teal);
  border-radius: var(--radius-md);
  padding: 26px 28px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.stat-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--ink);
  color: var(--cream-soft);
  padding: 14px 22px;
  border-radius: var(--radius-md);
  min-width: 190px;
}

.stat-num {
  font-size: 1.65rem;
  font-weight: 800;
  color: #ffb18a;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(246, 239, 224, 0.8);
  margin-top: 4px;
}

/* ---------- Publications ---------- */
.pub-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pub-item {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  background: var(--cream-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.pub-item:hover {
  border-color: var(--teal);
}

.pub-num {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--terracotta);
  padding-top: 2px;
}

.pub-title {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 4px;
}

.pub-authors {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

.pub-venue {
  font-size: 0.88rem;
  color: var(--ink-subtle);
  margin-bottom: 10px;
}

.pub-venue em {
  color: var(--ink);
}

.pub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pub-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--cream);
  border: 1px solid var(--border);
  color: var(--ink);
}

.pub-link:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

/* ==========================================================================
   Book Page (/buku/) Specific Styles
   ========================================================================== */

.book-hero {
  padding: 56px 0 64px;
}

.book-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 52px;
  align-items: center;
}

.book-hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.1rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 16px;
}

.book-hero h1 span {
  color: var(--terracotta);
}

.book-lead {
  font-size: 1.06rem;
  color: var(--ink-muted);
  margin-bottom: 24px;
  max-width: 560px;
}

.donation-callout {
  background: var(--cream-soft);
  border: 1.5px solid var(--border-strong);
  border-left: 5px solid var(--terracotta);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 26px;
}

.donation-amount {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.donation-price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.donation-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--terracotta-soft);
  color: var(--terracotta-dark);
  padding: 3px 10px;
  border-radius: 999px;
}

.donation-note {
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.book-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.book-stage-bg {
  position: relative;
  padding: 20px;
}

.book-stage-bg::before {
  content: '';
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: var(--teal-mint);
  opacity: 0.24;
  top: 0;
  right: 0;
  z-index: 0;
}

.book-stage-bg::after {
  content: '';
  position: absolute;
  width: 140px;
  height: 140px;
  background: var(--terracotta);
  opacity: 0.14;
  bottom: 6px;
  left: 4px;
  border-radius: 12px;
  z-index: 0;
}

.book-cover-hero {
  position: relative;
  z-index: 1;
  width: 310px;
  border-radius: 4px 12px 12px 4px;
  box-shadow: var(--shadow-book);
  border: 1px solid rgba(18, 58, 62, 0.12);
  transition: transform 0.3s ease;
}

.book-cover-hero:hover {
  transform: translateY(-6px) rotate(-1deg);
}

.book-meta-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.book-meta-strip span {
  background: var(--cream-soft);
  border: 1px solid var(--border);
  padding: 5px 11px;
  border-radius: 999px;
}

/* Week cards */
.week-card {
  background: var(--cream-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.week-num {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--terracotta);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.week-card h3 {
  font-size: 1.04rem;
  font-weight: 800;
  line-height: 1.35;
}

.week-card p {
  font-size: 0.9rem;
  color: var(--ink-muted);
  flex: 1;
}

.week-video-link {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.week-video-link:hover {
  color: var(--terracotta);
}

/* Preview Box */
.preview-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: start;
}

.preview-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tab-btn {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--cream-soft);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  border-color: var(--ink);
}

.tab-btn.active {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.preview-page-frame {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  box-shadow: var(--shadow-md);
}

.preview-page-frame img {
  width: 100%;
  border-radius: 6px;
  border: 1px solid rgba(18, 58, 62, 0.08);
}

.video-card {
  background: var(--cream-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
}

.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--ink-dark);
  margin: 14px 0 16px;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* 3-Step Support Flow */
.support-panel {
  background: var(--ink);
  color: var(--cream-soft);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
}

.support-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--terracotta), var(--teal-mint), var(--ochre));
}

.support-panel h2 {
  color: var(--white);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.support-panel .support-intro {
  color: rgba(246, 239, 224, 0.85);
  max-width: 680px;
  margin-bottom: 28px;
}

.step-card {
  background: rgba(251, 247, 238, 0.07);
  border: 1px solid rgba(246, 239, 224, 0.16);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-badge {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--terracotta);
  color: var(--white);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.step-badge-teal {
  background: var(--teal);
}

.step-badge-ochre {
  background: var(--ochre);
}

.step-card h3 {
  color: var(--white);
  font-size: 1.08rem;
  font-weight: 800;
}

.step-card p {
  color: rgba(246, 239, 224, 0.82);
  font-size: 0.92rem;
  flex: 1;
}

.config-notice {
  margin-top: 22px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: rgba(214, 131, 39, 0.18);
  border: 1px solid rgba(214, 131, 39, 0.45);
  color: #ffe2bd;
  font-size: 0.86rem;
  display: none;
}

.config-notice.visible {
  display: block;
}

.config-notice code {
  background: rgba(0, 0, 0, 0.25);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.support-why {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(246, 239, 224, 0.16);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.support-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.04rem;
  color: rgba(246, 239, 224, 0.9);
  max-width: 640px;
}

/* Roadmap Showcase & 13-Module Grid */
.featured-modules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 28px;
}

.module-feature-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  align-items: center;
  background: var(--cream-soft);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.module-feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--teal);
  box-shadow: var(--shadow-md);
}

.module-feature-card.is-live {
  border-color: var(--terracotta);
}

.module-feature-card img {
  border-radius: 4px 8px 8px 4px;
  box-shadow: var(--shadow-sm);
}

.status-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.status-live {
  background: var(--teal-soft);
  color: var(--teal);
}

.status-wip {
  background: var(--ochre-soft);
  color: #9e5d10;
}

.status-planned {
  background: rgba(18, 58, 62, 0.08);
  color: var(--ink-muted);
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 14px;
}

.roadmap-card {
  background: var(--cream-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.roadmap-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.roadmap-card.is-live {
  border-left: 4px solid var(--terracotta);
}

.roadmap-card.is-wip {
  border-left: 4px solid var(--ochre);
}

.roadmap-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-subtle);
}

.roadmap-card h4 {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.35;
}

.roadmap-cat {
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.roadmap-hint {
  margin-top: auto;
  padding-top: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal);
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 780px;
}

.faq-item {
  background: var(--cream-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item summary {
  padding: 18px 22px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--terracotta);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-body {
  padding: 0 22px 18px;
  color: var(--ink-muted);
  font-size: 0.94rem;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(12, 40, 43, 0.65);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 200;
}

.modal-backdrop.open {
  display: flex;
}

.modal-box {
  background: var(--cream-soft);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  padding: 28px;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--cream);
  color: var(--ink);
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--ink);
  color: var(--white);
}

.modal-toc {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0 22px;
}

.modal-toc li {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.92rem;
  color: var(--ink);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 48px;
  margin-top: 24px;
  color: var(--ink-subtle);
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .profile-grid,
  .book-hero-grid,
  .preview-layout,
  .featured-modules {
    grid-template-columns: 1fr;
  }

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

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .book-stage {
    order: -1;
  }

  .book-cover-hero {
    width: 260px;
  }

  .spotlight-card {
    grid-template-columns: 110px 1fr;
    gap: 20px;
    padding: 22px;
  }
}

@media (max-width: 680px) {
  .grid-2,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--cream-soft);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 20px;
    gap: 14px;
    box-shadow: var(--shadow-md);
  }

  .nav-links.open {
    display: flex;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .spotlight-card {
    grid-template-columns: 1fr;
  }

  .spotlight-cover {
    width: 130px;
  }

  .support-panel {
    padding: 28px 22px;
  }

  .module-feature-card {
    grid-template-columns: 90px 1fr;
  }
}
