:root {
  --ink: #0a0a0a;
  --paper: #fafaf7;
  --warm: #f5f0e8;
  --accent: #d4572a;
  --accent-light: #e8734a;
  --accent-glow: rgba(212, 87, 42, 0.12);
  --muted: #6b6560;
  --border: #e0dbd3;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 2px 16px rgba(10, 10, 10, 0.05);
  --max: 1220px;
}

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

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

body {
  font-family: "DM Sans", "Segoe UI", Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }

.page-shell {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 32px 0 80px;
}

/* ─── HERO ─────────────────────────────── */

.hero {
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: 48px 52px 44px;
  position: relative;
  overflow: hidden;
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  top: -140px; right: -220px;
  width: 640px; height: 640px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(212, 87, 42, 0.20);
  color: var(--accent-light);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.1;
  margin: 20px 0 16px;
  letter-spacing: -0.02em;
}

.hero p {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ─── VIDEO INTRO ───────────────────────── */

.video-intro {
  margin-top: 24px;
  background: var(--warm);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 40px 36px;
}

.video-intro-label {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 6px;
}

.video-intro-desc {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}

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

/* ─── LAYOUT ────────────────────────────── */

.layout {
  display: grid;
  grid-template-columns: 278px minmax(0, 1fr);
  gap: 24px;
  margin-top: 24px;
}

/* ─── SIDEBAR ───────────────────────────── */

.sidebar {
  position: sticky;
  top: 20px;
  align-self: start;
  display: grid;
  gap: 16px;
}

.panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel-inner { padding: 20px; }

.panel h2 {
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  margin-bottom: 14px;
}

.toc { display: grid; gap: 3px; }

.toc a {
  display: block;
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.87rem;
  transition: background 0.15s, color 0.15s;
}

.toc a:hover {
  background: var(--warm);
  color: var(--accent);
}

.quick-list {
  padding-left: 18px;
}

.quick-list li {
  font-size: 0.87rem;
  color: var(--muted);
  margin-bottom: 9px;
  line-height: 1.5;
}

.quick-list li strong { color: var(--ink); }

/* ─── CONTENT ───────────────────────────── */

.content { display: grid; gap: 20px; }

.section {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 0.25s;
}

.section:hover {
  box-shadow: 0 6px 36px rgba(10, 10, 10, 0.07);
}

.section-header {
  padding: 28px 28px 22px;
  border-bottom: 1px solid var(--border);
  background: white;
}

.section-body { padding: 28px; }

/* section-label: line + uppercase label (same as LP) */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-label::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

.section-header h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.lead {
  color: var(--muted);
  margin-top: 10px;
  font-size: 0.97rem;
  line-height: 1.65;
}

.note {
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.55;
}

/* ─── UI TAGS ───────────────────────────── */

.ui-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.ui-tags span {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--warm);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--ink);
  font-weight: 500;
}

/* ─── BOXES ─────────────────────────────── */

.box {
  border: 1px solid var(--border);
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.2s;
}

.box:hover { border-color: #c9c1b9; }

.box h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

/* ─── GRIDS ─────────────────────────────── */

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

.mini-card {
  background: var(--warm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

.mini-card h3 { font-size: 0.95rem; margin-bottom: 8px; }
.mini-card p, .mini-card li { font-size: 0.91rem; }

.subgrid {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.subgrid-two {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 20px;
}

/* ─── LISTS ─────────────────────────────── */

.story-list, .step-list, .tip-list, .check-list {
  padding-left: 22px;
}

.step-list { list-style: decimal; }
.check-list { list-style: decimal; }
.tip-list { list-style: disc; }
.story-list { list-style: disc; }

.step-list li + li,
.story-list li + li,
.tip-list li + li,
.check-list li + li {
  margin-top: 8px;
}

/* ─── TABLE ─────────────────────────────── */

.table-wrap {
  overflow-x: auto;
  margin-top: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
  font-size: 0.91rem;
}

th, td {
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  background: var(--warm);
}

td strong { display: block; margin-bottom: 3px; }

/* ─── FOOTER ────────────────────────────── */

.footer {
  margin-top: 20px;
  padding: 18px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: white;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ─── RESPONSIVE ────────────────────────── */

@media (max-width: 1080px) {
  .layout,
  .subgrid-two,
  .card-grid {
    grid-template-columns: 1fr;
  }
  .sidebar { position: static; }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(calc(100% - 24px), var(--max));
    padding-top: 16px;
  }
  .hero { padding: 28px 20px 24px; }
  .section-header, .section-body { padding-left: 18px; padding-right: 18px; }
  .panel-inner { padding: 16px; }
}
