/* asublimeway.com, "Threshold" design (chosen 24 Nov 2026). Square corners only. */

:root {
  --paper: #f6f2e9; /* the paper tone; change here only */
  --ink: #141414;
  --ink-2: #555555;
  --hair: #d4d4d4;
  --clay: #a34b2a;
  --clay-deep: #83391f;

  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", "Markazi Text", "Amiri", Georgia, "Times New Roman", serif;
  --arabic: "Markazi Text", "Amiri", "Geeza Pro", serif;

  --m: 16px; /* outer margin */
  --g: 16px; /* gutter */
}
@media (min-width: 720px) { :root { --m: 32px; --g: 24px; } }
@media (min-width: 1200px) { :root { --m: 40px; } }

/* Base */
*, *::before, *::after { box-sizing: border-box; border-radius: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.55 var(--serif);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ol, ul, figure, blockquote { margin: 0; }
ol, ul { padding: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }
[lang="ar"] { font-family: var(--arabic); font-style: normal; letter-spacing: 0; text-transform: none; }
.saw { font-family: "Amiri", "Geeza Pro", serif; font-size: 1.05em; line-height: 1; } /* Markazi Text has no ﷺ */

.wrap { width: min(1440px - 2 * var(--m), 100% - 2 * var(--m)); margin-inline: auto; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--g); }
.grid > * { grid-column: 1 / -1; }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); } }

.label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  font-stretch: 92%;
  letter-spacing: 0.07em;
  line-height: 1.35;
  text-transform: uppercase;
}
.muted { color: var(--ink-2); }

.skip {
  position: absolute; left: var(--m); top: -80px; z-index: 50;
  padding: 10px 14px; background: var(--ink); color: var(--paper);
}
.skip:focus { top: 8px; }

/* Header */
.site-header { position: relative; border-bottom: 1px solid var(--ink); background: var(--paper); }
.bar { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.wordmark {
  display: flex; flex: none; align-items: center; gap: 10px;
  min-height: 44px; margin-right: auto; text-decoration: none; line-height: 1; white-space: nowrap;
}
.wordmark img { display: block; height: 22px; width: auto; }
.wm-en {
  font-family: var(--sans); font-size: 10.5px; font-weight: 700; font-stretch: 92%;
  letter-spacing: 0.09em; text-transform: uppercase; white-space: nowrap;
}
@media (min-width: 720px) {
  .wordmark { gap: 12px; }
  .wordmark img { height: 26px; }
  .wm-en { font-size: 12px; line-height: 1.7; }
}

.nav-desktop { display: none; }
.nav-desktop ul { display: flex; gap: 20px; list-style: none; }
.nav-desktop a, .nav-mobile a { text-decoration: none; transition: color .15s; }
.nav-desktop a { display: inline-flex; align-items: center; gap: .45em; min-height: 32px; white-space: nowrap; }
.nav-desktop a:hover, .nav-mobile a:hover { color: var(--clay); }
.nav-desktop a[aria-current="page"] {
  text-decoration: underline; text-decoration-color: var(--clay);
  text-decoration-thickness: 2px; text-underline-offset: 7px;
}
.nav-ar { font-size: 19px; line-height: 1; font-weight: 500; }
.join-link {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 0;
  border-bottom: 1px solid var(--ink); text-decoration: none; white-space: nowrap;
  transition: color .15s, border-color .15s;
}
.join-link:hover { color: var(--clay); border-color: var(--clay); }
.nav-dot { color: var(--ink-2); }

.nav-mobile summary {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 2px;
  list-style: none; cursor: pointer;
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.burger { display: block; width: 16px; height: 9px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.nav-mobile[open] .burger { height: 1px; border-bottom: 0; }
.nav-mobile[open] .when-closed, .nav-mobile:not([open]) .when-open { display: none; }
.nav-mobile nav {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 20;
  background: var(--paper); border-bottom: 1px solid var(--ink);
}
.nav-mobile ul { list-style: none; }
.nav-mobile a { display: flex; align-items: center; min-height: 52px; padding-inline: var(--m); }
.nav-mobile a[aria-current="page"] { color: var(--clay); }
@media (min-width: 1020px) {
  .nav-desktop { display: block; }
  .nav-mobile { display: none; }
  .bar { min-height: 72px; gap: 28px; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: 48px; padding: 0 18px;
  border: 1px solid var(--ink); background: transparent; color: var(--ink);
  font-family: var(--sans); font-size: 13px; font-weight: 600; font-stretch: 92%;
  letter-spacing: 0.07em; line-height: 1; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--clay { background: var(--clay); border-color: var(--clay); color: #fff; }
.btn--clay:hover { background: var(--clay-deep); border-color: var(--clay-deep); color: #fff; }
.btn svg { flex: none; }

/* Home: hero */
.hero { padding-block: 22px 40px; row-gap: 24px; }
.hero-text { display: flex; flex-direction: column; gap: 18px; }
.lockup { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 16px; font-weight: 400; }
.lockup-ar { flex: none; display: block; height: clamp(52px, 14vw, 88px); width: auto; }
.lockup-en {
  max-width: 6.5em; margin-bottom: 0.4em;
  font-family: var(--sans); font-size: 12px; font-weight: 700; font-stretch: 92%;
  letter-spacing: 0.09em; line-height: 1.35; text-transform: uppercase;
}
.hero-line { font-size: 20px; line-height: 1.4; max-width: 24em; text-wrap: balance; }
.prose a:not(.fn-link), .text-body a {
  text-decoration-line: underline; text-decoration-color: var(--clay);
  text-decoration-thickness: 1px; text-underline-offset: 0.2em; transition: color .15s;
}
.hero-actions { display: grid; gap: 8px; }
.photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; filter: grayscale(1) contrast(1.06); background: #e6e1d6; }
.hero-photo img { aspect-ratio: 2 / 1; object-position: 50% 45%; }
@media (min-width: 720px) {
  .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
  .hero-line { font-size: 22px; }
}
@media (min-width: 960px) {
  .hero { padding-block: 40px 64px; align-items: start; }
  .hero-text { grid-column: 1 / span 8; gap: 24px; }
  .hero-photo { grid-column: 9 / -1; }
  .hero-photo img { aspect-ratio: 5 / 2; }
  .lockup-en { max-width: 9em; font-size: 13px; }
  .hero-line { font-size: 24px; line-height: 1.35; }
}

/* Sections with a label column */
.section { padding-block: 0 56px; }
.section > .grid { border-top: 1px solid var(--ink); padding-top: 14px; row-gap: 18px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.head-note { flex-basis: 100%; font-size: 16px; line-height: 1.45; color: var(--ink-2); max-width: 22em; }
@media (min-width: 960px) {
  .section { padding-bottom: 80px; }
  .section-head { grid-column: 1 / span 3; align-self: start; flex-direction: column; flex-wrap: nowrap; gap: 6px; }
  .head-note { flex-basis: auto; margin-top: 14px; }
  .section-body { grid-column: 4 / -1; }
}

/* Index lists with dotted leaders */
.index { list-style: none; }
.index > li + li { margin-top: 2px; }
.idx {
  display: grid; grid-template-columns: minmax(0, max-content) minmax(24px, 1fr) max-content;
  align-items: last baseline; column-gap: 10px;
  padding: 14px 0; color: var(--ink); text-decoration: none;
}
.idx-title { font-size: 19px; line-height: 1.3; font-weight: 400; text-wrap: pretty; transition: color .15s; }
.idx-num { display: inline-block; margin-right: 12px; color: var(--ink-2); }
.idx-num svg { display: inline-block; vertical-align: -1px; }
.play {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border: 1px solid var(--ink); vertical-align: -5px;
}
.play svg { margin-left: 2px; }
.idx-leader { height: 1px; background: linear-gradient(90deg, var(--ink) 1px, transparent 1px) 0 0 / 4px 1px repeat-x; }
.idx-meta {
  font-family: var(--sans); font-size: 12px; font-weight: 600; font-stretch: 92%;
  letter-spacing: 0.07em; text-transform: uppercase; white-space: nowrap; color: var(--ink-2);
}
.idx-meta svg { display: block; transition: transform .15s; }
.tag {
  display: inline-block; margin-left: .5em; padding: 2px 6px 1px; border: 1px solid var(--ink-2);
  font-family: var(--sans); font-size: 11px; font-weight: 600; font-stretch: 92%;
  letter-spacing: 0.08em; text-transform: uppercase; vertical-align: 3px; color: var(--ink-2);
}
a.idx:hover .idx-title { color: var(--clay); }
a.idx:hover .idx-meta { color: var(--clay); }
a.idx:hover .idx-meta svg { transform: translateX(3px); }
@media (min-width: 960px) {
  .idx { padding: 16px 0; }
  .idx-title { font-size: 22px; }
}

/* Home: Sacred Time */
.month { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 16px; }
.month-name { font-size: 40px; line-height: 1.1; font-weight: 400; letter-spacing: -0.01em; }
.month-ar { font-size: 40px; line-height: 1.3; font-weight: 500; }
.month-name .gloss { display: block; margin-top: 6px; font-size: 17px; font-style: italic; letter-spacing: 0; color: var(--ink-2); }
.month-title { margin: 6px 0 18px; font-size: 19px; font-style: italic; line-height: 1.4; }
.month-title a { text-decoration-color: var(--clay); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.month-title a:hover { color: var(--clay); }
@media (min-width: 960px) {
  .month-name { font-size: 64px; }
  .month-ar { font-size: 64px; }
  .month-title { font-size: 24px; margin: 4px 0 28px; }
}

/* Footer */
.site-footer .grid { border-top: 1px solid var(--ink); padding-block: 24px 48px; row-gap: 24px; }
.f-mark { display: flex; align-items: center; gap: 12px; }
.f-mark img { display: block; height: 34px; width: auto; }
.f-mark .wm-en { font-size: 12px; line-height: 1.7; }
.f-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.f-nav a { display: inline-flex; align-items: center; min-height: 32px; text-decoration: none; transition: color .15s; }
.f-nav a:hover { color: var(--clay); }
@media (min-width: 960px) {
  .site-footer .grid { padding-block: 28px 72px; }
  .f-mark { grid-column: 1 / span 3; align-self: start; }
  .f-nav { grid-column: 4 / span 3; }
  .f-nav ul { flex-direction: column; gap: 2px; }
}

/* Inner page heads */
.page-head { padding-block: 26px 22px; row-gap: 6px; }
.page-title { font-size: 46px; line-height: 1.02; font-weight: 400; letter-spacing: -0.015em; text-wrap: balance; }
@media (min-width: 960px) {
  .page-head { padding-block: 56px 40px; }
  .page-title { grid-column: 4 / -1; font-size: 96px; }
}

/* Classes */
.join { padding-bottom: 40px; }
.steps { list-style: none; }
.step { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); align-items: baseline; padding: 12px 0 14px; }
.step-num { font-size: 30px; line-height: 1; color: var(--clay); }
.step-text { font-size: 20px; line-height: 1.3; }
.step .btn { margin-top: -4px; }
.step-note { display: block; margin-top: 8px; font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.live {
  display: flex; align-items: baseline; gap: 12px;
  padding-top: 12px; font-size: 20px; line-height: 1.35; font-style: italic;
}
.live::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--clay); transform: translateY(-2px); }
.class-photo { margin-top: 8px; }
@media (min-width: 960px) {
  .join { padding-bottom: 72px; row-gap: 0; }
  .steps { grid-column: 4 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--g); }
  .step { grid-template-columns: 1fr; row-gap: 22px; padding: 4px 0 36px; border-top: 0; }
  .step-num { font-size: 80px; }
  .step-text { font-size: 26px; }
  .live { grid-column: 4 / -1; font-size: 26px; padding-top: 18px; }
  .class-photo { grid-column: 4 / -1; margin-top: 64px; }
}

/* Classes: one block per text, English title with its Arabic title */
.texts { list-style: none; }
.text { padding-bottom: 36px; }
.text-head { display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 2px; }
.text-title { font-size: 23px; font-weight: 400; line-height: 1.25; }
.text-ar { font-family: var(--arabic); font-size: 26px; line-height: 1.35; color: var(--clay); }
.text-author {
  margin-top: 6px; font-family: var(--sans); font-size: 12px; font-weight: 600; font-stretch: 92%;
  letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-2);
}
.text-body { margin-top: 14px; max-width: 36em; font-size: 17px; line-height: 1.6; }
.text-body p + p { margin-top: .8em; }
@media (max-width: 719px) {
  .idx--stack { grid-template-columns: minmax(0, 1fr); row-gap: 6px; }
  .idx--stack .idx-leader { display: none; }
  .idx--stack .idx-meta { white-space: normal; line-height: 1.45; }
}
@media (min-width: 720px) {
  .text-head { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 24px; }
}
@media (min-width: 960px) {
  .text-title { font-size: 30px; }
  .text-body { font-size: 18px; }
}

/* Essay */
.series-strip .grid { padding-block: 12px 13px; row-gap: 2px; align-items: baseline; }
.series-text { font-size: 16px; line-height: 1.4; }
@media (min-width: 960px) {
  .series-text { grid-column: 4 / -1; font-size: 18px; }
}
.essay-head { padding-block: 30px 28px; row-gap: 10px; }
.essay-title { font-size: 44px; line-height: 1.02; font-weight: 400; letter-spacing: -0.015em; text-wrap: balance; }
@media (min-width: 960px) {
  .essay-head { padding-block: 64px 56px; }
  .essay-title { grid-column: 4 / span 8; font-size: 100px; }
}

.essay-body { row-gap: 28px; padding-bottom: 24px; }
.toc ol { list-style: none; }
.toc a { display: block; padding: 7px 0; font-size: 15px; line-height: 1.35; text-decoration: none; transition: color .15s; }
.toc a:hover { color: var(--clay); }
.toc-mobile { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.toc-mobile summary { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding-block: 6px; list-style: none; cursor: pointer; }
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile summary::after { content: "+"; font-size: 18px; font-weight: 400; }
.toc-mobile[open] summary::after { content: "\2212"; }
.toc-desktop { display: none; }
@media (min-width: 960px) {
  .toc-mobile { display: none; }
  .toc-desktop { display: block; grid-column: 1 / span 3; position: sticky; top: 24px; align-self: start; padding-right: 24px; }
  .toc-desktop .label { padding-bottom: 12px; }
}

.prose { max-width: 29em; font-size: 18px; line-height: 1.66; overflow-wrap: break-word; }
.prose > * + *, .prose blockquote > * + * { margin-top: 1.05em; }
.prose .lede { font-size: 1.14em; line-height: 1.55; }
.prose h2 {
  margin-top: 2.4em;
  font-size: 25px; line-height: 1.22; font-weight: 500; letter-spacing: -0.005em;
}
.prose h2 + * { margin-top: 0.9em; }
.prose blockquote { padding-left: 1.1em; border-left: 1px solid var(--ink); }
.prose ul { list-style: none; }
.prose ul li { position: relative; padding-left: 1.2em; }
.prose ul li + li { margin-top: .5em; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .72em; width: 5px; height: 5px; background: var(--clay); }
.fn-ref { font-size: 0.62em; line-height: 0; vertical-align: 0.62em; }
.fn-link {
  display: inline-block; min-width: 24px; margin: -6px -7px; padding: 6px 0;
  font-family: var(--sans); font-weight: 600; line-height: 12px; text-align: center;
  color: var(--clay); text-decoration: none;
}
.fn-link:hover { text-decoration: underline; }
@media (min-width: 720px) {
  .prose { font-size: 20px; line-height: 1.7; }
  .prose h2 { font-size: 30px; }
}
@media (min-width: 960px) {
  .prose { grid-column: 4 / span 6; font-size: 21px; }
}

/* Essay glosses: each key term once, in Arabic with full vowels, its transliteration and meaning.
   Phones: a small line under the paragraph. Desktop: the empty right-hand column, level with the paragraph. */
.glossed { display: flex; flex-direction: column; }
.glossed > .gloss { order: 2; margin-top: 10px; }
.gloss { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; font-size: 15px; line-height: 1.4; }
.gloss-group {
  flex-basis: 100%; font-family: var(--sans); font-size: 11px; font-weight: 600; font-stretch: 92%;
  letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-2);
}
.gloss-entry { display: inline-flex; align-items: baseline; gap: 8px; }
.gloss-ar { font-family: var(--arabic); font-size: 24px; line-height: 1.3; color: var(--clay); }
.gloss-tr { color: var(--ink-2); }
@media (min-width: 960px) {
  .essay-body { container-type: inline-size; }
  .prose { --col: calc((100cqi - 11 * var(--g)) / 12); }
  .glossed { display: block; }
  .glossed > .gloss {
    display: block; float: right; clear: right;
    width: calc(3 * var(--col) + 2 * var(--g));
    margin: 0.3em calc(100% - 9 * var(--col) - 8 * var(--g)) 12px 0;
  }
  .gloss-group { margin: 14px 0 6px; }
  .gloss-group:first-child { margin-top: 0; }
  .gloss-entry { display: block; }
  .gloss-entry + .gloss-entry { margin-top: 12px; }
  .gloss-ar { display: block; font-size: 30px; line-height: 1.25; text-align: left; }
  .gloss-tr { display: block; }
  .gloss--rows .gloss-entry { display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: baseline; gap: 12px; }
  .gloss--rows .gloss-entry + .gloss-entry { margin-top: 2px; }
  .gloss--rows .gloss-ar { font-size: 24px; }
}

.notes { margin-top: 3.2em; padding-top: 14px; border-top: 1px solid var(--ink); font-size: 15.5px; line-height: 1.55; }
.notes h2 { margin: 0 0 14px; padding: 0; border: 0; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.notes ol { list-style: none; counter-reset: fn; }
.notes li { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); padding: 6px 0; scroll-margin-top: 16px; }
.notes li::before { counter-increment: fn; content: counter(fn); font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--clay); padding-top: 2px; }
.notes li:target { background: rgb(163 75 42 / 0.1); }
.fn-back {
  display: inline-block; margin: -6px 0 -6px .4em; padding: 6px 2px; line-height: 12px;
  font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .07em;
  text-transform: uppercase; color: var(--ink-2); text-decoration: none;
}
.fn-back:hover { color: var(--clay); }

.pager { padding-bottom: 56px; }
.pager .grid { row-gap: 0; }
.pager-link {
  display: flex; flex-direction: column; gap: 10px; padding: 16px 0 22px;
  text-decoration: none; transition: color .15s;
}
.pager-link:hover { color: var(--clay); }
.pager-title { font-size: 26px; line-height: 1.15; }
@media (min-width: 960px) {
  .pager { padding-bottom: 80px; }
  .pager-prev { grid-column: 4 / span 3; }
  .pager-next { grid-column: 7 / span 3; text-align: right; align-items: flex-end; }
  .pager-title { font-size: 34px; }
}

/* Inner pages: About, teachers, Start Here, Contact */
[hidden] { display: none !important; }
.page-lead { font-size: 18px; line-height: 1.45; color: var(--ink-2); max-width: 32em; }
.page-lead a, .more-link a, .path-line a, .path-links a, .prose-block a, .form a {
  text-decoration-line: underline; text-decoration-color: var(--clay);
  text-decoration-thickness: 1px; text-underline-offset: 0.2em; transition: color .15s;
}
.page-lead a:hover, .more-link a:hover, .path-line a:hover, .path-links a:hover, .prose-block a:hover, .form a:hover { color: var(--clay); }
.page-lead[lang="ar"] { justify-self: start; font-family: var(--arabic); font-size: 28px; color: var(--clay); }
.lead-text { font-size: 20px; line-height: 1.45; max-width: 30em; text-wrap: pretty; }
.prose-block { max-width: 34em; font-size: 18px; line-height: 1.66; }
.prose-block > * + * { margin-top: 1em; }
.prose-block blockquote { padding-left: 1.1em; border-left: 1px solid var(--ink); }
.pull { max-width: 30em; margin-bottom: 28px; font-size: 22px; line-height: 1.45; font-style: italic; }
.more-link { margin-top: 18px; font-family: var(--sans); font-size: 13px; font-weight: 600; font-stretch: 92%; letter-spacing: 0.07em; text-transform: uppercase; }
.more-link a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; }
.prose .more-link { margin-top: 2em; }
.about-photo { max-width: 46rem; margin-bottom: 36px; }
.teacher + .teacher { margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--hair); }
.teacher-name { margin-bottom: 14px; font-size: 30px; line-height: 1.15; font-weight: 400; }
.teacher-name:has(+ .teacher-dates) { margin-bottom: 0; }
.teacher-dates { margin: 6px 0 18px; font-size: 16px; line-height: 1.45; color: var(--ink-2); font-style: italic; }
.teacher-photo { max-width: 26rem; margin-bottom: 18px; }
.path-line, .path-links { font-size: 20px; line-height: 1.45; }
.path-links { margin-top: 18px; }
.path-links [lang="ar"] { font-family: var(--arabic); font-size: 24px; }
.bio { padding-bottom: 72px; row-gap: 28px; }
.bio-photo img { aspect-ratio: 3 / 2; }
.source-note, .author-note { font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.author-note { font-style: italic; }
@media (min-width: 960px) {
  .page-lead { grid-column: 4 / -1; font-size: 20px; }
  .lead-text, .path-line, .path-links { font-size: 24px; }
  .pull { font-size: 26px; margin-bottom: 40px; }
  .prose-block { font-size: 20px; }
  .teacher-name { font-size: 40px; }
  .bio { padding-bottom: 96px; align-items: start; }
  .bio-photo { grid-column: 1 / span 3; position: sticky; top: 24px; }
}

/* Start Here: ten words */
.words { list-style: none; }
.word { display: grid; grid-template-columns: minmax(0, 1fr); padding: 12px 0; border-top: 1px solid var(--rule); }
.word:first-child { border-top: 0; }
.word-ar { font-family: var(--arabic); font-size: 28px; line-height: 1.3; color: var(--clay); justify-self: start; }
.word-tr { font-size: 18px; font-style: italic; }
.word-en { font-size: 17px; line-height: 1.45; color: var(--ink-2); }
@media (min-width: 720px) {
  .word { grid-template-columns: 8rem 9rem minmax(0, 1fr); align-items: baseline; column-gap: var(--g); }
  .word-en { font-size: 18px; }
}

/* Contact form */
.contact { padding-bottom: 80px; }
.form { display: grid; gap: 22px; max-width: 36em; }
.routes { border: 0; padding: 0; margin: 0; min-width: 0; }
.routes legend { padding: 0; margin-bottom: 10px; }
.route-list { display: grid; gap: 8px; }
.route {
  display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 16px;
  border: 1px solid var(--ink); font-size: 18px; cursor: pointer;
}
.route input { accent-color: var(--clay); width: 18px; height: 18px; margin: 0; }
.route:has(input:checked) { border-color: var(--clay); box-shadow: inset 0 0 0 1px var(--clay); }
.route:has(input:focus-visible) { outline: 2px solid var(--clay); outline-offset: 2px; }
.route-note { font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--sans); font-size: 13px; font-weight: 600; font-stretch: 92%; letter-spacing: 0.07em; text-transform: uppercase; }
.optional { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--ink-2); }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--ink); border-radius: 0;
  background: #fff; color: var(--ink); font: inherit; font-size: 18px; line-height: 1.4;
}
.field textarea { resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--clay); outline-offset: 1px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-small { font-size: 15px; color: var(--ink-2); }
.form-status { padding: 12px 14px; border: 1px solid var(--clay); font-size: 16px; line-height: 1.5; }
@media (min-width: 720px) {
  .route-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .form { grid-column: 4 / span 6; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* ---------- Full site: posts, indexes, videos, months, forms ---------- */
.essay-meta { margin-top: 14px; color: var(--ink-2); }
.essay-meta a { text-decoration: none; }
.essay-meta a:hover { color: var(--clay); }
.essay-title--ar { font-family: var(--arabic); line-height: 1.3; }
@media (min-width: 960px) { .essay-meta { grid-column: 4 / span 8; } }
.series-text a { text-decoration-color: var(--clay); text-underline-offset: 0.2em; }
.essay-body { align-items: start; }
.prose:only-child { grid-column: 1 / -1; }
@media (min-width: 960px) { .essay-body > .prose:first-child { grid-column: 4 / span 6; } }

.prose h3 { margin-top: 1.8em; font-size: 21px; line-height: 1.3; font-weight: 600; }
.prose h4 { margin-top: 1.4em; font-size: 18px; font-weight: 600; }
.prose h3 + *, .prose h4 + * { margin-top: 0.6em; }
.prose hr { border: 0; border-top: 1px solid var(--hair); margin-block: 2em; }
.prose ol { padding-left: 1.4em; }
.prose ol li + li { margin-top: .5em; }
.prose figure img { width: 100%; height: auto; }
.prose figcaption { margin-top: 8px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.prose video { width: 100%; height: auto; background: #000; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose td, .prose th { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--hair); text-align: start; vertical-align: top; }
.prose :is(p, li, h2, h3, h4, blockquote)[dir="rtl"] { text-align: right; }
.prose p[lang="ar"], .prose li[lang="ar"], .prose blockquote[lang="ar"] { font-size: 1.2em; line-height: 1.75; }
.prose h2[lang="ar"] { font-size: 1.3em; }
.prose a { text-decoration-line: underline; text-decoration-color: var(--clay); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.prose a:hover { color: var(--clay); }

.share { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 3em !important; padding-top: 14px; border-top: 1px solid var(--ink); }
.share-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none;
  font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--ink); cursor: pointer;
  text-decoration: none !important;
}
.share-link:hover { color: var(--clay); }

/* YouTube facade: 16:9 space reserved before anything loads */
.yt { position: relative; aspect-ratio: 16 / 9; background: #1d1b18; overflow: hidden; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.yt-play img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); opacity: .9; transition: opacity .15s; }
.yt-play:hover img { opacity: 1; }
.yt-btn {
  position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 14px; background: var(--paper); color: var(--ink);
}
.yt-btn .play { border-color: var(--ink); }
.yt-play:focus-visible { outline: 3px solid var(--clay); outline-offset: -3px; }
.prose .yt { margin-block: 1.4em; }
.video-feature { max-width: 760px; }
.video-title { margin-top: 12px; font-size: 20px; line-height: 1.35; }

.vfilters { display: grid; gap: 14px; padding-bottom: 28px; border-bottom: 1px solid var(--ink); margin-bottom: 28px; }
.vfilter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; border: 0; padding: 0; margin: 0; min-width: 0; }
.vfilter legend { float: left; width: 100%; margin-bottom: 6px; }
.vfilter label {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px;
  border: 1px solid var(--ink); font-family: var(--serif); font-size: 16px; cursor: pointer;
}
.vfilter label:has(input:checked) { border-color: var(--clay); box-shadow: inset 0 0 0 1px var(--clay); }
.vfilter input { accent-color: var(--clay); margin: 0; }
.vcount { color: var(--ink-2); }
.vgrid { list-style: none; display: grid; gap: 40px var(--g); padding-bottom: 80px; }
.vcard-title { margin-top: 12px; font-size: 19px; line-height: 1.35; font-weight: 400; }
.vcard-title[lang="ar"] { font-size: 24px; line-height: 1.4; }
.vcard-meta { margin-top: 6px; color: var(--ink-2); }
.vcard-rel { margin-top: 6px; font-size: 15px; color: var(--ink-2); }
.vcard-rel a { text-decoration-color: var(--clay); text-underline-offset: 0.2em; }
@media (min-width: 720px) { .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .vgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.vfilters, .vgrid { grid-column: 1 / -1; }

/* Sacred Time */
.month-grid { grid-column: 1 / -1; list-style: none; display: grid; gap: var(--g); padding-bottom: 80px; }
.month-card a {
  display: grid; gap: 4px; min-height: 100%; padding: 18px 16px 16px; border: 1px solid var(--ink);
  text-decoration: none; transition: background-color .15s;
}
.month-card a:hover { background: #efe9dc; }
.month-card.is-now a { border-color: var(--clay); box-shadow: inset 0 0 0 1px var(--clay); }
.mc-ar { font-family: var(--arabic); font-size: 34px; line-height: 1.3; color: var(--clay); justify-self: start; }
.mc-en { font-size: 22px; line-height: 1.25; }
.mc-gloss { font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.mc-count { margin-top: 10px; color: var(--ink-2); }
.mc-now { color: var(--clay); }
@media (min-width: 560px) { .month-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .month-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.month-empty { font-size: 17px; color: var(--ink-2); padding: 10px 0; }
.month-prose { padding-bottom: 56px; }
.title-ar { font-family: var(--arabic); color: var(--clay); font-size: 0.7em; margin-inline-start: 0.2em; }
.crumb a { text-decoration: none; color: var(--ink-2); }
.crumb a:hover { color: var(--clay); }
@media (min-width: 960px) { .crumb { grid-column: 4 / -1; } }

/* Deen Discourses */
.topic-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.topic-chips a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px;
  border: 1px solid var(--ink); text-decoration: none; transition: background-color .15s, color .15s;
}
.topic-chips a:hover { background: var(--ink); color: var(--paper); }
.count { color: var(--clay); }
.topic-chips a:hover .count { color: inherit; }
.index--num { list-style: none; }

/* The Path */
.lang-switch { display: flex; gap: 10px; align-items: baseline; margin-top: 8px; }
.lang-switch a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.lang-switch a:hover { color: var(--clay); }
.lang-switch [lang="ar"] { font-size: 20px; }
.path-half { padding-bottom: 56px; scroll-margin-top: 16px; }
.path-half--ar { padding-top: 32px; border-top: 1px solid var(--ink); }
@media (min-width: 960px) { .page-head .lang-switch { grid-column: 4 / -1; } .path-half { grid-column: 4 / span 6; } }

/* FAQ */
.faq { grid-column: 1 / -1; padding-bottom: 80px; }
.faq-item { padding: 18px 0 20px; border-top: 1px solid var(--hair); }
.faq-item:first-child { border-top: 1px solid var(--ink); }
.faq dt { font-size: 22px; line-height: 1.3; }
.faq dd { margin: 8px 0 0; max-width: 36em; font-size: 18px; line-height: 1.6; color: var(--ink); }
.faq dd a { text-decoration-color: var(--clay); text-underline-offset: 0.2em; }
@media (min-width: 960px) { .faq { grid-column: 4 / span 7; } }

/* Search (Pagefind UI) */
.search-box { grid-column: 1 / -1; padding-bottom: 80px; --pagefind-ui-font: var(--serif); --pagefind-ui-primary: var(--clay); --pagefind-ui-text: var(--ink); --pagefind-ui-background: #fff; --pagefind-ui-border: var(--ink); --pagefind-ui-tag: #efe9dc; --pagefind-ui-border-radius: 0; --pagefind-ui-border-width: 1px; }
@media (min-width: 960px) { .search-box { grid-column: 4 / span 7; } }

.books-prose { padding-bottom: 72px; }
.books-prose figure { max-width: 360px; }
.page-lead .more-link, .page-lead p { margin: 0; }
