/* ============================================================
   Tratados do Cravo — Design System
   Inspirado na estética barroca: pergaminho, dourado e tinta sépia
   ============================================================ */

:root {
  /* Paleta clara — pergaminho */
  --bg: #f7f1e3;
  --bg-alt: #efe6d2;
  --bg-card: #fdfaf2;
  --ink: #2c1810;
  --ink-soft: #5b4636;
  --ink-mute: #8a7560;
  --gold: #b8860b;
  --gold-soft: #d4a73d;
  --burgundy: #6b1d2c;
  --sepia: #6b4423;
  --rule: #d4c4a8;
  --rule-strong: #a08562;
  --shadow: 0 8px 24px rgba(60, 40, 20, 0.12);
  --shadow-lg: 0 18px 40px rgba(60, 40, 20, 0.18);
  --tooltip-bg: #2c1810;
  --tooltip-fg: #f7f1e3;
}

[data-theme="dark"] {
  --bg: #1a1410;
  --bg-alt: #221a14;
  --bg-card: #2a2018;
  --ink: #f0e6d2;
  --ink-soft: #c9b896;
  --ink-mute: #9a8a72;
  --gold: #d4a73d;
  --gold-soft: #e8c870;
  --burgundy: #c9667a;
  --sepia: #d4a373;
  --rule: #3d2f24;
  --rule-strong: #5c4636;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.6);
  --tooltip-bg: #f0e6d2;
  --tooltip-fg: #1a1410;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'EB Garamond', 'Cardo', Georgia, 'Times New Roman', serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(circle at 10% 0%, rgba(184, 134, 11, 0.04), transparent 40%),
    radial-gradient(circle at 90% 100%, rgba(107, 29, 44, 0.04), transparent 40%);
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-weight: 600;
  color: var(--ink);
  margin-top: 1.4em;
  margin-bottom: 0.5em;
  letter-spacing: 0.01em;
}

h1 { font-size: 2.4rem; line-height: 1.15; }
h2 { font-size: 1.8rem; border-bottom: 2px solid var(--rule); padding-bottom: 0.3em; }
h3 { font-size: 1.35rem; color: var(--sepia); }
h4 { font-size: 1.1rem; color: var(--gold); text-transform: uppercase; letter-spacing: 0.08em; }

p { margin: 0.8em 0; }

a {
  color: var(--burgundy);
  text-decoration: none;
  border-bottom: 1px dotted var(--rule-strong);
  transition: color 0.2s, border-color 0.2s;
}
a:hover { color: var(--gold); border-bottom-color: var(--gold); }

/* ============================================================
   Layout — Header / Nav / Footer
   ============================================================ */
.site-header {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background: rgba(247, 241, 227, 0.92);
}
[data-theme="dark"] .site-header { background: rgba(26, 20, 16, 0.92); }

.nav-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
}

.brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  border-bottom: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.brand-mark {
  display: inline-block;
  width: 28px; height: 28px;
  background: var(--gold);
  color: var(--bg);
  text-align: center;
  line-height: 28px;
  border-radius: 4px;
  font-weight: 700;
  font-family: serif;
  font-size: 1rem;
}

.nav-links {
  display: flex;
  gap: 0.9rem;
  margin-left: auto;
  flex-wrap: nowrap;
  align-items: center;
}
.nav-links a {
  color: var(--ink-soft);
  font-size: 0.9rem;
  border-bottom: none;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--ink);
  border-bottom-color: var(--gold);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--rule-strong);
  color: var(--ink-soft);
  border-radius: 4px;
  padding: 0.4rem 0.7rem;
  font-size: 1rem;
  cursor: pointer;
  font-family: inherit;
  margin-left: auto;
}
.nav-toggle:hover {
  background: var(--bg-card);
  color: var(--ink);
}

@media (max-width: 1280px) {
  .nav-links { gap: 0.7rem; }
  .nav-links a { font-size: 0.85rem; }
  .nav-wrap { padding: 0.7rem 1rem; gap: 0.6rem; }
}

@media (max-width: 1080px) {
  .brand { font-size: 1.15rem; }
  .nav-links { gap: 0.55rem; }
  .nav-links a { font-size: 0.82rem; }
  .theme-toggle { font-size: 0.78rem; padding: 0.25rem 0.6rem; }
}

@media (max-width: 950px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 0.4rem; margin-left: auto; }
  .nav-links {
    display: none;
    width: 100%;
    margin: 0.8rem 0 0.4rem;
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
    border-top: 1px solid var(--rule);
    padding-top: 0.6rem;
    order: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    width: 100%;
    padding: 0.6rem 0.4rem;
    border-bottom: 1px solid var(--rule);
    border-left: 3px solid transparent;
    box-sizing: border-box;
    font-size: 0.95rem;
  }
  .nav-links a:hover, .nav-links a.active {
    background: var(--bg-card);
    border-bottom-color: var(--rule);
    border-left-color: var(--gold);
    padding-left: 0.8rem;
  }
  .nav-wrap { flex-wrap: wrap; }
  .theme-toggle { margin-left: 0; font-size: 0.85rem; padding: 0.3rem 0.7rem; }
}

.theme-toggle {
  background: transparent;
  border: 1px solid var(--rule-strong);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
}
.theme-toggle:hover { background: var(--bg-card); color: var(--ink); }

main { max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }

.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--rule);
  padding: 2rem 1.5rem;
  margin-top: 4rem;
  text-align: center;
  color: var(--ink-mute);
  font-size: 0.9rem;
}
.site-footer .credits { font-size: 0.85rem; margin-top: 0.5rem; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  text-align: center;
  padding: 4rem 1rem 3rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2rem;
  position: relative;
}
.hero h1 {
  font-size: 3.2rem;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}
.hero .subtitle {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--sepia);
  margin: 0.5rem 0 1rem;
}
.hero .lede {
  max-width: 720px;
  margin: 1.5rem auto;
  font-size: 1.05rem;
  color: var(--ink-soft);
}
.hero-ornament {
  font-size: 1.6rem;
  color: var(--gold);
  letter-spacing: 1rem;
  margin: 1rem 0;
}

/* ============================================================
   Cards (Treatises Grid)
   ============================================================ */
.treatise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.treatise-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  box-shadow: var(--shadow);
}
.treatise-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
  color: var(--ink);
}

.treatise-card .year {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.1em;
}
.treatise-card .author {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0.4rem 0 0;
  color: var(--ink);
}
.treatise-card .work-title {
  font-style: italic;
  color: var(--sepia);
  margin: 0.2rem 0 0.8rem;
}
.treatise-card .blurb {
  font-size: 0.95rem;
  color: var(--ink-soft);
  flex-grow: 1;
}
.treatise-card .read-more {
  margin-top: 1rem;
  color: var(--burgundy);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================================
   Theme Cards (Topical Navigation)
   ============================================================ */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.theme-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--gold);
  border-radius: 4px;
  padding: 1.2rem;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  transition: all 0.2s;
}
.theme-card:hover {
  background: var(--bg-alt);
  border-left-color: var(--burgundy);
  color: var(--ink);
  transform: translateX(4px);
}
.theme-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  color: var(--ink);
}
.theme-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ============================================================
   Chapter / Treatise Page Layout
   ============================================================ */
.treatise-header {
  text-align: center;
  padding: 2rem 1rem 3rem;
  border-bottom: 2px double var(--rule-strong);
  margin-bottom: 3rem;
}
.treatise-header .roman {
  font-size: 1.4rem;
  color: var(--gold);
  letter-spacing: 0.5em;
  font-family: 'Cormorant Garamond', serif;
}
.treatise-header h1 { margin: 0.5rem 0; font-size: 2.6rem; }
.treatise-header .meta {
  font-style: italic;
  color: var(--sepia);
  font-size: 1.1rem;
}

.toc {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1.2rem 1.5rem;
  margin: 2rem 0;
}
.toc h3 {
  margin: 0 0 0.6rem;
  color: var(--gold);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: none;
}
.toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
  column-gap: 2rem;
}
.toc li {
  margin: 0.25rem 0;
  break-inside: avoid;
}
.toc a {
  border-bottom: none;
  color: var(--ink-soft);
}
.toc a:hover { color: var(--burgundy); }
.toc .chap-num {
  display: inline-block;
  width: 2.5em;
  color: var(--gold);
  font-weight: 700;
  font-family: 'Cormorant Garamond', serif;
}

@media (max-width: 600px) {
  .toc ol { columns: 1; }
}

/* Chapter sections */
.chapter {
  margin: 3rem 0;
  scroll-margin-top: 80px;
}
.chapter-num {
  font-family: 'Cormorant Garamond', serif;
  color: var(--gold);
  letter-spacing: 0.4em;
  font-size: 1.05rem;
  text-transform: uppercase;
}
.chapter h2 {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.4rem;
  margin-top: 0.4rem;
}

.lead {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--ink-soft);
  border-left: 3px solid var(--gold);
  padding-left: 1rem;
  margin: 1.5rem 0;
}

blockquote {
  background: var(--bg-card);
  border-left: 4px solid var(--burgundy);
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  font-style: italic;
  color: var(--ink-soft);
  border-radius: 0 4px 4px 0;
}
blockquote.original {
  background: var(--bg-alt);
  border-left-color: var(--gold);
}
blockquote cite {
  display: block;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--ink-mute);
  margin-top: 0.6rem;
  text-align: right;
}

/* ============================================================
   Glossary Tooltips
   ============================================================ */
.term {
  border-bottom: 1px dashed var(--gold);
  cursor: help;
  position: relative;
  color: var(--sepia);
  font-weight: 500;
}
.term:hover { color: var(--burgundy); border-bottom-style: solid; }

.tooltip {
  position: absolute;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 200;
  background: var(--tooltip-bg);
  color: var(--tooltip-fg);
  padding: 0.85rem 1rem;
  border-radius: 6px;
  width: 320px;
  font-size: 0.92rem;
  font-style: normal;
  font-weight: normal;
  line-height: 1.55;
  box-shadow: var(--shadow-lg);
  pointer-events: none;
  font-family: inherit;
}
.tooltip.visible { visibility: visible; opacity: 1; pointer-events: auto; }
.tooltip strong {
  display: block;
  color: var(--gold-soft);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  margin-bottom: 0.3rem;
}
.tooltip .original-term {
  display: block;
  font-style: italic;
  font-size: 0.82rem;
  color: var(--ink-mute);
  margin-bottom: 0.4rem;
}
[data-theme="dark"] .tooltip strong { color: var(--burgundy); }
[data-theme="dark"] .tooltip .original-term { color: var(--ink-mute); }

/* ============================================================
   Fingering tables — visual representation
   ============================================================ */
.fingering-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
  box-shadow: var(--shadow);
}
.fingering-card h4 {
  color: var(--burgundy);
  margin-top: 0;
  letter-spacing: 0.05em;
}
.fingering-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.8rem 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.95rem;
}
.fingering-table th {
  text-align: left;
  font-weight: 600;
  color: var(--ink);
  padding: 0.5rem 0.8rem;
  background: var(--bg-alt);
  border: 1px solid var(--rule);
}
.fingering-table td {
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--rule);
  color: var(--ink-soft);
}
.fingering-table .fingers {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  letter-spacing: 0.4em;
  color: var(--burgundy);
  font-weight: 700;
  font-size: 1.1rem;
}

.finger-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--burgundy);
  color: var(--bg);
  font-weight: 700;
  margin: 0 0.15rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  vertical-align: middle;
}
.finger-dot.thumb { background: var(--gold); color: var(--ink); }
.finger-dot.f5 { background: var(--sepia); }

.finger-sequence {
  margin: 0.5rem 0;
  line-height: 2.4;
}

/* ============================================================
   Resource boxes — videos and audio
   ============================================================ */
.resource-box {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-alt));
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.resource-box .icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
  background: var(--gold);
  color: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: serif;
}
.resource-box .icon.video { background: var(--burgundy); color: var(--bg); }
.resource-box .icon.audio { background: var(--sepia); color: var(--bg); }
.resource-box .body { flex-grow: 1; }
.resource-box h5 {
  margin: 0 0 0.3rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  color: var(--ink);
}
.resource-box p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }
.resource-box .links { margin-top: 0.6rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.resource-box .links a {
  display: inline-block;
  background: var(--bg);
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  padding: 0.3rem 0.7rem;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--rule-strong);
}
.resource-box .links a:hover {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}

/* Embedded video */
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: 1.5rem 0;
  border-radius: 6px;
  box-shadow: var(--shadow);
  background: var(--bg-card);
}
.video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ============================================================
   Cross-reference badges
   ============================================================ */
.xref {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  margin: 0 0.2rem;
}
.xref:hover {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}
.xref .author { font-weight: 600; color: var(--burgundy); }
.xref:hover .author { color: var(--bg); }

/* ============================================================
   Aside / Note
   ============================================================ */
.aside {
  background: var(--bg-alt);
  border-radius: 6px;
  padding: 1rem 1.4rem;
  margin: 1.5rem 0;
  border-left: 3px solid var(--ink-mute);
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.aside h4 {
  margin: 0 0 0.4rem;
  color: var(--ink);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

/* ============================================================
   Footnotes
   ============================================================ */
.footnote {
  font-size: 0.78rem;
  vertical-align: super;
  color: var(--burgundy);
  text-decoration: none;
  border-bottom: none;
  font-weight: 600;
  margin: 0 0.1rem;
}
.footnote:hover { color: var(--gold); }

/* ============================================================
   Search bar (themes)
   ============================================================ */
.search-row {
  display: flex;
  gap: 0.5rem;
  margin: 1.5rem 0;
}
.search-row input {
  flex-grow: 1;
  padding: 0.6rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--bg-card);
  color: var(--ink);
}
.search-row input:focus {
  outline: none;
  border-color: var(--gold);
}

/* ============================================================
   Themes Section on home
   ============================================================ */
.section-title {
  text-align: center;
  margin: 3rem 0 1.5rem;
}
.section-title h2 {
  display: inline-block;
  border-bottom: none;
  position: relative;
  padding: 0 2rem;
}
.section-title h2::before, .section-title h2::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 50px;
  height: 1px;
  background: var(--rule-strong);
}
.section-title h2::before { right: 100%; }
.section-title h2::after { left: 100%; }
.section-title .subtitle { color: var(--ink-mute); font-style: italic; }

/* ============================================================
   Glossary page
   ============================================================ */
.glossary-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.glossary-entry {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  padding: 1rem 1.2rem;
}
.glossary-entry dt {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  margin: 0;
}
.glossary-entry .original {
  font-style: italic;
  font-size: 0.9rem;
  color: var(--gold);
  display: block;
}
.glossary-entry dd {
  margin: 0.5rem 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.glossary-entry dd .source {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-mute);
  margin-top: 0.4rem;
  font-style: italic;
}

/* ============================================================
   Pillar list (Sancta Maria's eight conditions, etc.)
   ============================================================ */
.pillar-list {
  display: grid;
  gap: 0.8rem;
  margin: 1.5rem 0;
}
.pillar {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1rem 1.2rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.pillar .num {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--bg);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
}
.pillar .title { font-weight: 600; color: var(--ink); }
.pillar .desc { font-size: 0.92rem; color: var(--ink-soft); margin-top: 0.2rem; }

/* ============================================================
   Breadcrumbs
   ============================================================ */
.breadcrumbs {
  font-size: 0.88rem;
  color: var(--ink-mute);
  margin: 0 0 1.5rem;
}
.breadcrumbs a { color: var(--ink-mute); border-bottom: none; }
.breadcrumbs a:hover { color: var(--burgundy); }
.breadcrumbs .sep { margin: 0 0.4rem; color: var(--rule-strong); }

/* ============================================================
   Timeline histórica
   ============================================================ */
.timeline {
  position: relative;
  margin: 3rem 0;
  padding: 1rem 0;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--rule-strong), var(--rule-strong), transparent);
}
.timeline-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
  align-items: center;
}
.timeline-row.right .timeline-content { grid-column: 2; }
.timeline-row.left .timeline-content { grid-column: 1; text-align: right; }
.timeline-row.left .timeline-marker { left: 50%; }
.timeline-marker {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  top: 50%;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 0.85rem;
  z-index: 2;
  box-shadow: 0 0 0 6px var(--bg);
}
.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1rem 1.2rem;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  transition: transform 0.2s, box-shadow 0.2s;
}
.timeline-content:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow);
  color: var(--ink);
}
.timeline-content .year {
  font-family: 'Cormorant Garamond', serif;
  color: var(--gold);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.1em;
}
.timeline-content .author { font-weight: 600; margin: 0.2rem 0; }
.timeline-content .work { font-style: italic; color: var(--sepia); margin: 0; font-size: 0.95rem; }
.timeline-content .desc { font-size: 0.88rem; color: var(--ink-soft); margin-top: 0.5rem; }

@media (max-width: 700px) {
  .timeline::before { left: 1rem; }
  .timeline-row { grid-template-columns: 1fr; padding-left: 3rem; }
  .timeline-row.right .timeline-content,
  .timeline-row.left .timeline-content { grid-column: 1; text-align: left; }
  .timeline-marker, .timeline-row.left .timeline-marker { left: 1rem; transform: translate(-50%, -50%); }
}

/* ============================================================
   Teclado SVG interativo
   ============================================================ */
.keyboard-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  box-shadow: var(--shadow);
}
.keyboard-card h4 {
  margin-top: 0;
  color: var(--burgundy);
}
.keyboard-svg {
  display: block;
  margin: 1rem auto;
  max-width: 100%;
  height: auto;
}
.keyboard-svg .key-white {
  fill: var(--bg-alt);
  stroke: var(--ink);
  stroke-width: 1.5;
}
.keyboard-svg .key-black {
  fill: var(--ink);
  stroke: var(--ink);
}
[data-theme="dark"] .keyboard-svg .key-white {
  fill: #d8c8a0;
  stroke: #2a2018;
}
[data-theme="dark"] .keyboard-svg .key-black {
  fill: #1a1410;
  stroke: #d4a73d;
}
.keyboard-svg .finger-circle {
  fill: var(--burgundy);
  stroke: var(--bg-card);
  stroke-width: 1.5;
}
.keyboard-svg .finger-circle.thumb {
  fill: var(--gold);
}
.keyboard-svg .finger-num {
  fill: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-anchor: middle;
  pointer-events: none;
}
.keyboard-svg .thumb-num {
  fill: #2c1810;
}
.keyboard-legend {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.8rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  flex-wrap: wrap;
}
.keyboard-legend span { display: inline-flex; align-items: center; gap: 0.3rem; }
.keyboard-legend .swatch {
  width: 12px; height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.keyboard-legend .swatch.thumb { background: var(--gold); }
.keyboard-legend .swatch.regular { background: var(--burgundy); }

/* ============================================================
   TOC sticky
   ============================================================ */
.layout-with-toc {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
  align-items: start;
}
.toc-sticky {
  position: sticky;
  top: 80px;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1rem;
  font-size: 0.9rem;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}
.toc-sticky h4 {
  margin: 0 0 0.6rem;
  color: var(--gold);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.4rem;
}
.toc-sticky ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: section;
}
.toc-sticky li { margin: 0.4rem 0; }
.toc-sticky a {
  display: block;
  color: var(--ink-soft);
  border-bottom: none;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  border-left: 2px solid transparent;
  transition: all 0.15s;
}
.toc-sticky a:hover {
  background: var(--bg-alt);
  border-left-color: var(--gold);
  color: var(--ink);
}
.toc-sticky a.active {
  background: var(--bg-alt);
  border-left-color: var(--burgundy);
  color: var(--ink);
  font-weight: 600;
}

@media (max-width: 1000px) {
  .layout-with-toc {
    grid-template-columns: 1fr;
  }
  .toc-sticky {
    position: static;
    max-height: none;
    margin-bottom: 1.5rem;
  }
}

/* ============================================================
   Roadmap / Roteiro de estudo
   ============================================================ */
.roadmap-step {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  padding: 1.5rem 1.8rem;
  margin: 1.2rem 0;
  position: relative;
}
.roadmap-step .stage {
  font-family: 'Cormorant Garamond', serif;
  color: var(--gold);
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  text-transform: uppercase;
}
.roadmap-step h3 {
  margin: 0.3rem 0 0.6rem;
  color: var(--ink);
}
.roadmap-step .duration {
  display: inline-block;
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--sepia);
  margin-left: 0.5rem;
  vertical-align: middle;
}
.roadmap-step .practice {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--rule);
}
.roadmap-step .practice strong {
  color: var(--burgundy);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.3rem;
}

/* ============================================================
   Comparador
   ============================================================ */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  margin: 1.5rem 0;
}
.compare-col {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--gold);
  border-radius: 4px;
  padding: 1.2rem;
}
.compare-col.sm { border-top-color: var(--burgundy); }
.compare-col.fb { border-top-color: var(--gold); }
.compare-col.fc { border-top-color: var(--sepia); }
.compare-col.jr { border-top-color: var(--rule-strong); }
.compare-col h4 {
  margin-top: 0;
  color: var(--ink);
  font-size: 1rem;
  letter-spacing: 0.05em;
}
.compare-col h4 .year {
  display: block;
  color: var(--gold);
  font-size: 0.85rem;
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.15em;
}
.compare-col p { font-size: 0.92rem; }

/* ============================================================
   Imagem clicável + lightbox
   ============================================================ */
.score-figure {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1rem;
  margin: 1.5rem 0;
  text-align: center;
  cursor: zoom-in;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.score-figure:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}
.score-figure img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  background: #fafafa;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
[data-theme="dark"] .score-figure img {
  filter: invert(0.92) hue-rotate(180deg);
}
.score-figure figcaption {
  margin-top: 0.6rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  font-style: italic;
}
.score-figure .source-tag {
  display: inline-block;
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.1rem 0.6rem;
  font-size: 0.75rem;
  color: var(--gold);
  font-style: normal;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-right: 0.4rem;
}
.score-figure .zoom-hint {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  color: var(--ink-mute);
}

.figure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.figure-grid .score-figure {
  margin: 0;
}
.figure-grid .score-figure img {
  height: 200px;
  width: 100%;
  object-fit: contain;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
  cursor: zoom-out;
}
.lightbox.open {
  display: flex;
}
.lightbox-content {
  position: relative;
  max-width: 95vw;
  max-height: 95vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: default;
}
.lightbox-img-wrap {
  position: relative;
  max-width: 95vw;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 16px 60px rgba(0,0,0,0.6);
}
.lightbox img {
  max-width: 95vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 0.15s ease-out;
  transform-origin: center center;
}
.lightbox img:active { transition: none; }
.lightbox-caption {
  color: #f7f1e3;
  margin-top: 1rem;
  font-style: italic;
  text-align: center;
  max-width: 700px;
  font-size: 0.95rem;
}
.lightbox-caption strong { color: #d4a73d; font-style: normal; }
.lightbox-close {
  position: absolute;
  top: -2.4rem;
  right: -0.5rem;
  background: transparent;
  border: 0;
  color: #f7f1e3;
  font-size: 2rem;
  cursor: pointer;
  font-family: serif;
  padding: 0;
  width: 2.4rem;
  height: 2.4rem;
  line-height: 1;
}
.lightbox-close:hover { color: #d4a73d; }
.lightbox-prev, .lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #f7f1e3;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  font-family: serif;
  z-index: 2;
}
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.2); border-color: var(--gold); color: var(--gold); }

.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  color: #f7f1e3;
  font-size: 1.6rem;
  cursor: pointer;
  font-family: serif;
  width: 2.6rem;
  height: 2.6rem;
  line-height: 1;
  border-radius: 50%;
  padding: 0;
  z-index: 2;
}
.lightbox-close:hover { background: rgba(255,255,255,0.15); color: var(--gold); border-color: var(--gold); }

.lightbox-zoom-controls {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  padding: 0.3rem;
  z-index: 2;
}
.lightbox-zoom-controls button {
  background: transparent;
  border: 0;
  color: #f7f1e3;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  min-width: 2.5rem;
}
.lightbox-zoom-controls button:hover { background: rgba(255,255,255,0.15); color: var(--gold); }
.lightbox-zoom-controls .lb-zoom-reset { font-variant-numeric: tabular-nums; min-width: 4rem; }

@media (max-width: 600px) {
  .lightbox-zoom-controls { top: auto; bottom: 1rem; }
  .lightbox-prev { left: 0.3rem; }
  .lightbox-next { right: 0.3rem; }
  .lightbox-close { top: 0.5rem; right: 0.5rem; }
}

/* ============================================================
   Posture / Image cards (mão de gato, etc.)
   ============================================================ */
.posture-card {
  display: flex;
  gap: 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--burgundy);
  border-radius: 6px;
  padding: 1rem 1.2rem;
  margin: 1rem 0;
  align-items: flex-start;
}
.posture-card .icon-circle {
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}
.posture-card .body { flex-grow: 1; }
.posture-card h5 {
  margin: 0 0 0.3rem;
  color: var(--ink);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
}
.posture-card .lang {
  font-style: italic;
  color: var(--gold);
  font-size: 0.85rem;
  display: block;
}
.posture-card p { margin: 0.3rem 0; font-size: 0.92rem; }
.posture-card .ext-links { margin-top: 0.6rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.posture-card .ext-links a {
  display: inline-block;
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.82rem;
  border-bottom: 1px solid var(--rule);
}
.posture-card .ext-links a:hover {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}

/* ============================================================
   Video Picker — combo + iframe inline
   ============================================================ */
.video-picker {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-alt));
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
}
.video-picker h5 {
  margin: 0 0 0.4rem;
  font-family: 'Cormorant Garamond', serif;
  color: var(--ink);
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.video-picker h5::before {
  content: '▶';
  color: var(--burgundy);
  font-size: 0.8rem;
}
.video-picker .picker-intro {
  margin: 0 0 0.8rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.video-picker select {
  width: 100%;
  padding: 0.6rem 0.8rem;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  cursor: pointer;
}
.video-picker select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.2);
}
.video-picker .picker-frame {
  margin-top: 1rem;
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 6px;
  overflow: hidden;
  background: var(--ink);
  display: none;
  box-shadow: var(--shadow-lg);
}
.video-picker .picker-frame.loaded {
  display: block;
}
.video-picker .picker-frame iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}
.video-picker .picker-meta {
  display: none;
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-style: italic;
}
.video-picker .picker-meta.loaded {
  display: block;
}
.video-picker .picker-meta strong { color: var(--gold); font-style: normal; }
.video-picker .picker-meta a {
  border-bottom-color: var(--rule);
  color: var(--ink-soft);
}
.video-picker .picker-close {
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink-soft);
  border-radius: 4px;
  padding: 0.2rem 0.6rem;
  font-size: 0.8rem;
  cursor: pointer;
  margin-left: 0.5rem;
  font-family: inherit;
  display: none;
}
.video-picker .picker-close.loaded {
  display: inline-block;
}
.video-picker .picker-close:hover { background: var(--bg-alt); color: var(--burgundy); border-color: var(--burgundy); }

/* ============================================================
   PDF Source Card — fonte canônica
   ============================================================ */
.pdf-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-alt) 100%);
  border: 2px solid var(--gold);
  border-radius: 8px;
  padding: 1.5rem 1.8rem;
  margin: 2rem 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
  box-shadow: var(--shadow);
}
.pdf-card .pdf-icon {
  width: 4rem; height: 5rem;
  background: var(--bg);
  border: 2px solid var(--burgundy);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  position: relative;
}
.pdf-card .pdf-icon::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 0.8rem; height: 0.8rem;
  background: var(--bg-alt);
  border-bottom: 2px solid var(--burgundy);
  border-left: 2px solid var(--burgundy);
}
.pdf-card .pdf-icon .ext {
  color: var(--burgundy);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}
.pdf-card .pdf-icon .pages {
  color: var(--ink-mute);
  font-size: 0.7rem;
  margin-top: 0.2rem;
}
.pdf-card .pdf-body h3 {
  margin: 0 0 0.3rem;
  color: var(--ink);
  font-size: 1.2rem;
  border-bottom: 0;
}
.pdf-card .pdf-body p {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.pdf-card .pdf-body .meta {
  font-size: 0.82rem;
  color: var(--ink-mute);
  font-style: italic;
}
.pdf-card .pdf-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.pdf-card .pdf-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  border-radius: 4px;
  border: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  background: var(--bg);
  color: var(--ink);
  transition: all 0.2s;
}
.pdf-card .pdf-actions .pdf-view {
  background: var(--burgundy);
  color: var(--bg);
  border-color: var(--burgundy);
}
.pdf-card .pdf-actions .pdf-view:hover {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}
.pdf-card .pdf-actions .pdf-download:hover {
  background: var(--bg-alt);
  border-color: var(--gold);
}

@media (max-width: 700px) {
  .pdf-card { grid-template-columns: 1fr; text-align: center; }
  .pdf-card .pdf-icon { margin: 0 auto; }
  .pdf-card .pdf-actions { flex-direction: row; justify-content: center; }
}

/* PDF viewer modal/page */
.pdf-viewer-frame {
  width: 100%;
  height: 85vh;
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  margin: 1rem 0;
  background: var(--bg-alt);
}

/* ============================================================
   Inline score figure — partitura recortada dentro do contexto
   ============================================================ */
.score-inline {
  display: block;
  margin: 1.2rem auto;
  max-width: 100%;
  padding: 0.8rem;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  cursor: zoom-in;
  text-align: center;
}
.score-inline img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  background: #fafafa;
  border-radius: 3px;
}
[data-theme="dark"] .score-inline img {
  filter: invert(0.92) hue-rotate(180deg);
}
.score-inline .score-label {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.82rem;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.score-inline figcaption {
  font-size: 0.82rem;
  color: var(--ink-mute);
  font-style: italic;
  margin-top: 0.4rem;
}
.score-inline:hover {
  border-left-color: var(--burgundy);
  box-shadow: var(--shadow);
}

/* ============================================================
   Score Selector — visualizador de obras com menu
   ============================================================ */
.score-selector {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
}
.score-selector h3 {
  margin-top: 0;
}
.score-selector .selector-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.score-selector .selector-row label {
  font-weight: 600;
  color: var(--ink);
}
.score-selector .selector-row select {
  flex-grow: 1;
  min-width: 240px;
  padding: 0.6rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
}
.score-selector .selector-row select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.2);
}
.score-selector .zoom-controls {
  display: flex;
  gap: 0.4rem;
}
.score-selector .zoom-controls button {
  background: var(--bg);
  border: 1px solid var(--rule-strong);
  color: var(--ink);
  border-radius: 4px;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
}
.score-selector .zoom-controls button:hover { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.score-display {
  background: #fafafa;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1rem;
  text-align: center;
  overflow: auto;
  max-height: 80vh;
  position: relative;
}
[data-theme="dark"] .score-display {
  background: var(--bg);
}
.score-display img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  transition: transform 0.25s;
  transform-origin: center top;
}
[data-theme="dark"] .score-display img {
  filter: invert(0.92) hue-rotate(180deg);
}
.score-display .score-meta {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.5rem;
  margin-bottom: 0.8rem;
  text-align: left;
}
.score-display .score-meta .perf-tip {
  display: inline-block;
  background: var(--bg-alt);
  color: var(--gold);
  font-family: inherit;
  font-size: 0.78rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-left: 0.6rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ============================================================
   Print
   ============================================================ */
@media print {
  .site-header, .site-footer, .theme-toggle, .video-embed { display: none; }
  body { background: white; color: black; }
  .tooltip { display: none !important; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 700px) {
  body { font-size: 16px; }
  .hero h1 { font-size: 2.2rem; }
  .nav-wrap { padding: 0.6rem 1rem; }
  .nav-links { gap: 0.8rem; }
  .nav-links a { font-size: 0.88rem; }
  main { padding: 1.5rem 1rem 3rem; }
  .tooltip { width: calc(100vw - 4rem); max-width: 320px; }
}
