:root {
  color-scheme: light;
  --ink: #262822;
  --accent: #914029;
  --rule: #c9c6ba;
  --paper: #faf9f4;
  --muted-ink: #59564e;
  --masthead-height: 4.75rem;
  --section-padding: clamp(2.35rem, 5vw, 4.25rem);
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  scroll-padding-top: calc(var(--masthead-height) + .75rem);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { width: min(90%, 75rem); margin: auto; }
.skip-link {
  position: fixed;
  z-index: 3;
  top: .75rem;
  left: 5%;
  transform: translateY(calc(-100% - 1.5rem));
  background: var(--paper);
  color: var(--accent);
  padding: .7rem 1rem;
  border-radius: .5rem;
}
.skip-link:focus { transform: none; }
.masthead, nav { display: flex; align-items: center; }
.masthead {
  justify-content: space-between;
  position: sticky;
  z-index: 2;
  top: 0;
  min-height: var(--masthead-height);
  gap: 1rem;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.wordmark { font: 1.75rem Georgia, serif; letter-spacing: -.05em; white-space: nowrap; }
.wordmark i { color: var(--accent); }
nav { gap: clamp(.85rem, 2.5vw, 1.85rem); }
nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  font-size: .9375rem;
  text-decoration: none;
  text-underline-offset: .3em;
}
nav a:hover { color: var(--accent); text-decoration: underline; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.intro {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
  padding: clamp(2rem, 5svh, 3.5rem) 0;
}
h1, h2, dd { font-family: Georgia, "Times New Roman", serif; font-weight: normal; }
h1, h2, p, dl, dd { margin: 0; }
h1 {
  font-size: clamp(2.5rem, 4.35vw, 3.9rem);
  letter-spacing: -.05em;
  line-height: 1.03;
  text-wrap: balance;
}
h1 i { color: var(--accent); }
.intro p {
  max-width: 42ch;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  margin-top: clamp(.95rem, 2vw, 1.4rem);
  color: var(--muted-ink);
}
.button {
  display: inline-block;
  margin-top: 1.5rem;
  padding: .85rem 1.5rem;
  background: var(--accent);
  border-radius: 1.5rem;
  color: white;
  font-weight: 600;
  text-decoration: none;
}
.button:hover { background: #74301e; }
.intro-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem clamp(.75rem, 2vw, 1.25rem);
  margin-top: 1.35rem;
}
.intro-actions .button { margin: 0; padding-inline: 1rem; }
.intro-actions .text-link, .channel-copy .text-link {
  display: inline-flex;
  align-items: center;
  gap: .35em;
  min-height: 44px;
}
@media (prefers-reduced-motion: no-preference) {
  .intro-scroll.is-animated::after {
    content: "";
    display: block;
    height: 150svh;
  }
  .is-animated .intro {
    position: sticky;
    top: var(--pin-top, var(--masthead-height));
    min-height: calc(100svh - var(--masthead-height) - 1.75rem);
  }
}
.knowledge-fold { margin: 0; }
.knowledge-fold svg { display: block; width: 100%; height: auto; overflow: visible; }
.knowledge-fold figcaption { margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--rule); font: italic 1.125rem Georgia, serif; }
.pleat { --dx: -8px; --dy: 8px; --tilt: -5deg; fill: #dddcd1; }
.pleat:nth-of-type(2n) { --dx: 9px; --dy: -11px; --tilt: 4deg; }
.pleat:nth-of-type(3n) { --dx: 15px; --dy: 4px; --tilt: -2deg; }
.pleat polygon { fill: #545b60; stroke: #969c9c; stroke-width: .8; }
.pleat:nth-of-type(even) polygon { fill: #242b30; }
.pleat .mesh { fill: none; stroke: #b1b5b0; stroke-width: .7; }
.pleat .crease { fill: none; stroke: var(--accent); stroke-width: 2.6; }
.about-portrait img { display: block; width: min(100%,11.25rem); height: auto; margin-top: 1.25rem; filter: grayscale(1); border-radius: .3rem; }
.channel, .about, .newsletter {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: clamp(1.4rem, 4vw, 3rem);
  padding: var(--section-padding) 0;
  border-top: 1px solid var(--rule);
}
h2 { font-size: clamp(2rem, 3.4vw, 3.25rem); letter-spacing: -.045em; line-height: 1.1; }
.channel-copy p, .about p { color: var(--muted-ink); font-size: 1.125rem; line-height: 1.65; }
.channel-copy p { margin-top: .65rem; max-width: 34ch; }
.channel-copy .text-link { margin-top: .3rem; }
.topic-list { display: grid; gap: .65rem; }
.topic-list > div {
  border: 1px solid var(--rule);
  border-radius: .85rem;
  padding: .95rem clamp(1rem, 2vw, 1.4rem);
  background: #fcf8f0;
}
.topic-list dt { font-size: .875rem; color: var(--accent); font-weight: 700; margin-bottom: .25rem; }
.topic-list dd { font-size: clamp(1.18rem, 1.7vw, 1.5rem); line-height: 1.35; }
.about { margin-top: clamp(1.75rem, 4vw, 3.25rem); padding-bottom: var(--section-padding); }
.about p { max-width: 55ch; }
.channel-videos { grid-column: 1 / -1; }
.featured-video { max-width: 44rem; width: 100%; }
.channel-videos h3 {
  margin: 0 0 1rem;
  font: normal clamp(1.6rem, 2.7vw, 2.4rem)/1.1 Georgia, serif;
  letter-spacing: -.035em;
}
.text-link, .video-action { color: var(--accent); text-underline-offset: .23em; }
.text-link:hover { text-decoration-thickness: 2px; }
.intro-actions .about-signature {
  gap: .38em;
  align-items: baseline;
  justify-content: center;
  padding-block: .45rem;
  text-decoration: none;
  white-space: nowrap;
}
.about-signature bdi {
  font: 400 1.65em/1 "Lalezar", "Arabic Typesetting", "Geeza Pro", Tahoma, serif;
}
.signature-dot { opacity: .75; }
.about-signature:is(:hover, :focus-visible) { box-shadow: inset 0 -1px currentColor; }
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.video-card {
  display: block;
  height: 100%;
  border: 1px solid var(--rule);
  border-radius: .55rem;
  background: #fffaf0;
  color: inherit;
  text-decoration: none;
}
.video-card:hover { border-color: var(--accent); }
.video-card:hover .video-title { text-decoration: underline; text-underline-offset: .18em; }
.video-poster {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: .49rem .49rem 0 0;
  background: #e8ded0;
}
.video-poster img { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-play {
  position: absolute;
  display: grid;
  place-items: center;
  bottom: .65rem;
  left: .65rem;
  width: 2.4rem;
  height: 2.1rem;
  border-radius: .35rem;
  background: var(--accent);
  color: white;
}
.video-play::after {
  content: "";
  border-block: .38rem solid transparent;
  border-left: .57rem solid currentColor;
}
.video-title {
  font: normal 1.25rem/1.22 Georgia, serif;
  overflow-wrap: anywhere;
  margin: .85rem .9rem .35rem;
}
.video-action { display: block; margin: 0 .9rem .85rem; font-size: .875rem; }
.newsletter {
  align-items: center;
  padding: clamp(1.45rem, 3.5vw, 2.5rem);
  border: 1px solid var(--rule);
  border-radius: 1.1rem;
  background: #f3eee6;
}
.newsletter h2 + p { margin-top: .55rem; color: var(--muted-ink); font-size: 1.125rem; line-height: 1.6; }
.newsletter-action p { color: var(--muted-ink); }
.newsletter-action { justify-self: end; }
.newsletter-action .button { margin-top: 0; }
.site-editor { max-width: 52rem; margin: 2.5rem auto 5rem; }
.site-editor section { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.site-editor p:not(:empty) { margin: .65rem 0; line-height: 1.55; }
.editor-form { display: grid; gap: .85rem; max-width: 34rem; margin: 1rem 0; }
.editor-form label { display: grid; gap: .3rem; }
.editor-form :is(input, select) {
  min-width: 0;
  padding: .65rem;
  border: 1px solid #81796c;
  border-radius: .35rem;
  background: white;
  color: var(--ink);
  font: inherit;
}
.site-editor button { font: inherit; cursor: pointer; }
.site-editor :is(button, input, select):focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.site-editor .button { margin: 0; border: 1px solid transparent; font-weight: 600; }
.site-editor .secondary-button { border-color: var(--rule); background: transparent; color: var(--ink); }
.editor-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.site-editor .video-grid li { display: flex; flex-direction: column; gap: .5rem; }
.site-editor .video-grid button { padding: .35rem .6rem; }
/* Public identity; the local editor retains its own light theme. */
:root:has(.homepage) {
  color-scheme: dark;
  --paper: #090c10;
  --ink: #f5f5f7;
  --muted-ink: #b7bac2;
  --accent: #ff7900;
  --rule: #383c43;
  --surface: #171b22;
}
.homepage .wordmark, .colophon > span {
  font: 650 1.45rem/1.1 "Segoe UI", sans-serif;
  letter-spacing: -.06em;
}
.homepage .wordmark::after, .colophon > span::after { content: "."; color: var(--accent); }
.homepage .wordmark i { font-style: normal; color: inherit; }
.header-brand { display: flex; align-items: baseline; gap: .55rem; white-space: nowrap; }
.pronunciation { color: #979ba4; font-size: .5625rem; font-weight: 400; line-height: 1; }
@media (max-width: 30rem) {
  .pronunciation { display: none; }
}
.tagline {
  color: var(--accent);
  font: 600 .78rem/1.5 "Courier New", monospace;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 1.2rem;
}
.homepage h1 {
  font: 600 clamp(2.5rem, 4.05vw, 3.65rem)/1.07 "Segoe UI", Arial, sans-serif;
  letter-spacing: -.045em;
}
.homepage h1 i { font: italic 1.04em/1 Georgia, serif; color: var(--ink); }
.homepage .button { background: var(--accent); color: var(--paper); border-radius: .4rem; }
.homepage .button:hover { background: #ff973c; }
.homepage .topic-list { gap: 0; }
.homepage .topic-list > div { background: none; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; padding: 1.25rem 0; }
.homepage .topic-list > div:first-child { padding-top: 0; }
.homepage .topic-list dt { font-family: "Courier New", monospace; }
.homepage .newsletter { background: var(--surface); border-radius: .35rem; border-left: 3px solid var(--accent); }
.homepage .video-card, .homepage .video-poster { background: var(--surface); }
.homepage .video-play { color: var(--paper); }
.colophon { display: flex; align-items: center; justify-content: space-between; padding: 1.6rem 0; border-top: 1px solid var(--rule); }
.colophon a { color: var(--muted-ink); padding-block: .75rem; text-underline-offset: .25em; }
@media (min-width: 46.01rem) {
  .homepage .intro { max-width: 70rem; margin-inline: auto; grid-template-columns: 1fr 1fr; gap: 2rem; }
  .homepage .featured-video { max-width: none; }
  .featured-video .video-card { display: grid; grid-template-columns: 1fr 1fr; align-items: end; }
  .featured-video .video-poster { grid-row: span 2; }
  .featured-video .video-action { align-self: start; }
}
.homepage .newsletter:has(#newsletter-signup[hidden]) {
  padding: 1rem 1.35rem;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .75rem;
}
.newsletter:has(#newsletter-signup[hidden]) h2 { font: 600 1.25rem/1.3 "Segoe UI", sans-serif; letter-spacing: -.025em; }
.newsletter:has(#newsletter-signup[hidden]) h2 + p { margin-top: .15rem; font-size: 1rem; }
.homepage .about { margin-top: 0; border-top: 0; }
.bio p:first-child { font: normal clamp(1.45rem, 2vw, 1.9rem)/1.32 Georgia, serif; color: var(--ink); }
.bio p + p { margin-top: .85rem; }
@media (max-width: 46rem) {
  .homepage .newsletter:has(#newsletter-signup[hidden]) { grid-template-columns: 1fr; gap: .4rem; }
}
@media (min-width: 46.01rem) and (max-width: 60rem) and (orientation: portrait) {
  .homepage .is-animated .intro { min-height: min(65svh, 44rem); }
}
@media (max-width: 46rem) {
  .homepage .intro h1 { font-size: clamp(2.3rem, 8vw, 3.2rem); }
}
@media (max-width: 60rem) { .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 46rem) {
  :root { --masthead-height: 4rem; }
  .wordmark { font-size: 1.5rem; }
  nav { gap: clamp(.65rem, 3vw, 1rem); }
  .intro { grid-template-columns: 1fr; gap: .8rem; padding: 1.75rem 0 1.15rem; }
  .intro-scroll .intro { align-content: center; }
  .intro h1 { font-size: clamp(2.25rem, 8.8vw, 3.25rem); }
  .channel, .about, .newsletter { grid-template-columns: 1fr; gap: 1.3rem; }
  .newsletter-action { justify-self: start; }
  .about { gap: 1.15rem; }
  .about-portrait img { width: 8rem; }
  .intro-scroll.is-animated::after { height: 48svh; }
}
@media (max-width: 32rem) { .video-grid { grid-template-columns: 1fr; } }
@media (max-width: 22.75rem) {
  :root:has(.masthead nav a[href="#newsletter"]) { --masthead-height: 5.25rem; }
  .masthead:has(nav a[href="#newsletter"]) { flex-wrap: wrap; align-content: center; gap: 0; }
  .masthead:has(nav a[href="#newsletter"]) nav { width: 100%; gap: 1.1rem; }
}

.fold-stage { float: right; color: var(--muted-ink); font: .85rem/1.5 "Segoe UI", sans-serif; }

.error-page main { max-width: 42rem; margin-block: clamp(4rem, 15vh, 10rem); }
.error-page h1 { margin-bottom: 1rem; }
