:root,
[data-theme="dark"] {
  --bg: 14 11 9;
  --bg-deep: 8 6 5;
  --bg-surface: 22 17 14;
  --bg-elevated: 30 23 19;
  --text: 244 234 219;
  --text-soft: 211 197 175;
  --text-muted: 156 142 120;
  --text-faint: 110 98 82;
  --brass: 212 162 92;
  --brass-bright: 230 184 116;
  --brass-deep: 168 122 56;
  --indigo: 122 145 184;
  --indigo-deep: 73 99 142;
  --rust: 184 88 56;
  --border: 58 46 36;
  --border-soft: 36 28 22;
  --shadow-strong: rgba(0,0,0,0.4);
  --shadow-soft: rgba(0,0,0,0.55);
}

[data-theme="light"] {
  --bg: 245 239 225;
  --bg-deep: 235 226 207;
  --bg-surface: 250 244 232;
  --bg-elevated: 252 247 236;
  --text: 26 22 18;
  --text-soft: 74 63 48;
  --text-muted: 122 102 76;
  --text-faint: 168 148 120;
  --brass: 138 95 36;
  --brass-bright: 110 75 28;
  --brass-deep: 188 148 84;
  --indigo: 73 99 142;
  --indigo-deep: 52 76 116;
  --rust: 168 72 40;
  --border: 218 198 162;
  --border-soft: 232 218 188;
  --shadow-strong: rgba(60,40,20,0.18);
  --shadow-soft: rgba(60,40,20,0.22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: rgb(var(--bg));
  color: rgb(var(--text));
  font-family: var(--f-serif);
  font-size: 19px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-image:
    radial-gradient(ellipse 1200px 800px at 20% -10%, rgb(var(--brass) / 0.06), transparent 60%),
    radial-gradient(ellipse 1000px 700px at 90% 110%, rgb(var(--indigo-deep) / 0.05), transparent 60%);
  background-attachment: fixed;
  transition: background-color .25s ease, color .25s ease;
}

::selection { background: rgb(var(--brass) / 0.35); color: rgb(var(--text)); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgb(var(--bg) / 0.82);
  border-bottom: 1px solid rgb(var(--border-soft));
}
.topbar-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--f-label);
  font-size: 13px;
  letter-spacing: 0.02em;
}
.topbar a { color: rgb(var(--text-muted)); text-decoration: none; transition: color .2s; }
.topbar a:hover { color: rgb(var(--brass-bright)); }
.topbar .mark {
  color: rgb(var(--brass));
  font-family: var(--f-serif);
  font-weight: 600;
  font-style: italic;
  font-size: 15px;
  flex-shrink: 0;
}
.topbar .right { display: flex; align-items: center; gap: 18px; }
.topbar nav { display: flex; gap: 22px; }

.theme-toggle {
  appearance: none;
  background: transparent;
  border: 1px solid rgb(var(--border));
  color: rgb(var(--brass));
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  transition: border-color .2s, color .2s, background .2s, transform .2s;
}
.theme-toggle:hover {
  border-color: rgb(var(--brass));
  color: rgb(var(--brass-bright));
  background: rgb(var(--brass) / 0.08);
}
.theme-toggle:active { transform: scale(0.95); }
.theme-toggle svg { width: 16px; height: 16px; display: block; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.hero {
  padding: 96px 28px 80px;
  text-align: center;
  border-bottom: 1px solid rgb(var(--border-soft));
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 80px;
  height: 1px;
  background: rgb(var(--brass));
  transform: translateX(-50%);
}
.hero .kicker {
  display: inline-block;
  font-family: var(--f-label);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgb(var(--brass));
  padding: 6px 14px;
  border: 1px solid rgb(var(--brass) / 0.3);
  border-radius: 99px;
  margin-bottom: 28px;
}
.hero h1 {
  font-family: var(--f-serif);
  font-weight: 900;
  font-size: clamp(48px, 9vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
  color: rgb(var(--text));
  font-feature-settings: "ss01", "ss02";
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: rgb(var(--brass));
}
.hero .deck {
  max-width: 580px;
  margin: 0 auto;
  font-size: 21px;
  line-height: 1.55;
  color: rgb(var(--text-soft));
  font-style: italic;
  font-weight: 400;
}
.hero .byline {
  margin-top: 36px;
  font-family: var(--f-label);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgb(var(--text-faint));
}
.hero .byline strong { color: rgb(var(--text-muted)); font-weight: 500; }

article {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 28px 80px;
}
article p { margin: 0 0 1.4em; color: rgb(var(--text-soft)); }
article p strong, article li strong { color: rgb(var(--text)); font-weight: 600; }
article a {
  color: rgb(var(--brass-bright));
  text-decoration: none;
  border-bottom: 1px solid rgb(var(--brass) / 0.35);
  transition: border-color .2s, color .2s;
}
article a:hover { color: rgb(var(--brass)); border-bottom-color: rgb(var(--brass)); }

article h2 {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: 38px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 80px 0 8px;
  color: rgb(var(--text));
  position: relative;
  padding-top: 32px;
}
article h2::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 48px;
  height: 2px;
  background: rgb(var(--brass));
}
article h2 .h2-num {
  display: block;
  font-family: var(--f-label);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgb(var(--brass));
  margin-bottom: 12px;
}

article h3 {
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 56px 0 16px;
  color: rgb(var(--text));
}
article h4 {
  font-family: var(--f-serif);
  font-weight: 600;
  font-style: italic;
  font-size: 19px;
  margin: 40px 0 12px;
  color: rgb(var(--brass-bright));
}

article ul {
  padding-left: 0;
  list-style: none;
  margin: 0 0 1.6em;
}
article ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 0.8em;
  color: rgb(var(--text-soft));
}
article ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 14px;
  height: 1px;
  background: rgb(var(--brass-deep));
}

article a.listen {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  font-family: var(--f-label);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgb(var(--brass));
  background: transparent;
  border: 1px solid rgb(var(--brass) / 0.32);
  border-radius: 99px;
  padding: 5px 13px 5px 11px;
  text-decoration: none;
  transition: border-color .2s, background .2s, color .2s;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
article a.listen:hover {
  background: rgb(var(--brass) / 0.1);
  border-color: rgb(var(--brass));
  color: rgb(var(--brass-bright));
}
article a.listen svg {
  width: 9px;
  height: 9px;
  fill: currentColor;
  flex-shrink: 0;
}
article a.listen .track {
  font-style: italic;
  color: rgb(var(--text-soft));
}
article a.listen:hover .track {
  color: rgb(var(--text));
}

.disclose {
  background: rgb(var(--indigo-deep) / 0.08);
  border-left: 3px solid rgb(var(--indigo-deep));
  padding: 16px 22px;
  margin: 0 0 32px;
  font-size: 14px;
  color: rgb(var(--text-muted));
  font-family: var(--f-label);
  line-height: 1.55;
  border-radius: 0 4px 4px 0;
}
.disclose strong { color: rgb(var(--indigo)); font-weight: 600; }

.refs {
  font-family: var(--f-label);
  font-size: 13px;
  color: rgb(var(--text-faint));
  margin: 0 0 56px;
  line-height: 1.6;
}
.refs a { font-size: 13px; }
.refs-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgb(var(--brass-deep));
  margin-bottom: 8px;
}

blockquote {
  margin: 36px 0;
  padding: 0 0 0 32px;
  border-left: 2px solid rgb(var(--brass-deep));
  font-style: italic;
  font-size: 17px;
  color: rgb(var(--text-soft));
  line-height: 1.65;
}
blockquote cite {
  display: block;
  font-style: normal;
  font-family: var(--f-label);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(var(--text-faint));
  margin-top: 14px;
}
blockquote cite a { font-size: 12px; }

.aside {
  margin: 32px 0;
  padding: 22px 28px;
  background: rgb(var(--brass) / 0.06);
  border: 1px solid rgb(var(--brass) / 0.22);
  border-radius: 4px;
  font-style: italic;
  font-size: 17px;
  color: rgb(var(--text-soft));
  position: relative;
}
.aside::before {
  content: "From the floor";
  position: absolute;
  top: -10px;
  left: 24px;
  background: rgb(var(--bg));
  padding: 0 10px;
  font-style: normal;
  font-family: var(--f-label);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgb(var(--brass));
}

.lede::first-letter {
  font-family: var(--f-serif);
  font-weight: 900;
  font-size: 5.2em;
  line-height: 0.85;
  float: left;
  padding: 6px 12px 0 0;
  color: rgb(var(--brass));
}

.ornament {
  text-align: center;
  margin: 56px 0;
  color: rgb(var(--brass-deep));
  font-size: 14px;
  letter-spacing: 1em;
  user-select: none;
}

.videos {
  display: grid;
  gap: 14px;
  margin: 24px 0 32px;
}
.videos.dual { grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) {
  .videos.dual { grid-template-columns: 1fr; }
}

.yt {
  position: relative;
  aspect-ratio: 16 / 9;
  background: rgb(var(--bg-elevated));
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgb(var(--border-soft));
  transition: border-color .2s, transform .2s;
}
.yt:hover { border-color: rgb(var(--brass-deep)); transform: translateY(-1px); }
.yt img.thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity .2s;
}
.yt:hover img.thumb { opacity: 1; }
.yt::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}
.yt .play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: rgb(var(--brass) / 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px var(--shadow-strong);
  transition: transform .2s, background .2s;
  z-index: 1;
}
.yt:hover .play { transform: translate(-50%, -50%) scale(1.08); background: rgb(var(--brass-bright)); }
.yt .play svg { width: 24px; height: 24px; fill: #ffffff; margin-left: 3px; }
.yt .label {
  position: absolute;
  bottom: 14px;
  left: 16px;
  right: 16px;
  z-index: 1;
  font-family: var(--f-label);
  font-size: 12px;
  color: #f4eadb;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}
.yt iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.idiom-meta {
  font-family: var(--f-label);
  font-size: 13px;
  color: rgb(var(--text-muted));
  margin: 12px 0 16px;
  padding-left: 16px;
  border-left: 2px solid rgb(var(--border));
  line-height: 1.6;
}
.idiom-meta .field { color: rgb(var(--brass)); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; font-size: 11px; }

footer {
  border-top: 1px solid rgb(var(--border-soft));
  padding: 56px 28px 80px;
  text-align: center;
  font-family: var(--f-label);
  font-size: 13px;
  color: rgb(var(--text-faint));
  line-height: 1.7;
}
footer a { color: rgb(var(--text-muted)); text-decoration: none; border-bottom: 1px solid rgb(var(--text-muted) / 0.3); }
footer a:hover { color: rgb(var(--brass)); border-bottom-color: rgb(var(--brass)); }
footer .sig {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 16px;
  color: rgb(var(--brass));
  margin-bottom: 8px;
}

@media (max-width: 600px) {
  body { font-size: 17px; }
  .hero { padding: 64px 24px 56px; }
  article { padding: 40px 24px 56px; }
  article h2 { font-size: 30px; margin-top: 64px; }
  article h3 { font-size: 21px; margin-top: 44px; }
  .topbar-inner { padding: 12px 20px; gap: 12px; }
  .topbar .right { gap: 12px; }
  .topbar nav { gap: 14px; }
  .topbar nav a:not(.always) { display: none; }
  blockquote { padding-left: 20px; }
  .aside { padding: 18px 22px; }
}
@media (max-width: 380px) {
  .topbar nav { display: none; }
}
