:root {
  --ink: #15110d;
  --ink-2: #221b15;
  --ivory: #f8f4ec;
  --paper: #fffdf8;
  --tint: #f1e9dc;
  --gold: #c89b52;
  --gold-2: #e2bd7c;
  --text: #2b241d;
  --muted: #6d6257;
  --muted-dark: #bdb1a1;
  --line: #e2d7c6;
  --line-dark: #3a3027;
  --radius: 14px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.6rem; }
h4 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 .6em; color: var(--muted); }
p { margin: 0 0 1em; }
em { font-style: italic; color: var(--gold-2); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 32px; } }
.narrow { max-width: 820px; }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .9em;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85em 1.6em; border-radius: 999px; border: 1.5px solid var(--gold);
  background: var(--gold); color: var(--ink); font-weight: 700; font-size: .95rem;
  text-decoration: none; cursor: pointer; font-family: inherit;
  transition: background .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--gold-2); border-color: var(--gold-2); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ivory); border-color: rgba(248,244,236,.55); }
.btn-ghost:hover { background: rgba(248,244,236,.1); color: var(--ivory); border-color: var(--ivory); }
.btn-outline { background: transparent; color: var(--text); }
.btn-outline:hover { background: var(--gold); color: var(--ink); }
.btn-small { padding: .55em 1.2em; font-size: .88rem; }
.text-link { color: var(--gold); font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(21,17,13,.92); backdrop-filter: blur(10px);
  color: var(--ivory); border-bottom: 1px solid transparent; transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line-dark); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { text-decoration: none; display: flex; flex-direction: column; gap: 4px; line-height: 1; }
.brand-mark { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; letter-spacing: .01em; color: var(--ivory); }
.brand-sub { font-size: .62rem; letter-spacing: .22em; line-height: 1; text-transform: uppercase; color: var(--gold); }
.site-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.site-nav a { white-space: nowrap; }
.brand { white-space: nowrap; }
.site-nav a:not(.btn) { text-decoration: none; font-size: .92rem; font-weight: 500; color: var(--muted-dark); transition: color .2s; }
.site-nav a:not(.btn):hover { color: var(--ivory); }
.nav-toggle { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: 22px; }
.lang { position: relative; }
.lang summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px;
  padding: 6px 10px 6px 8px; border: 1px solid var(--line-dark); border-radius: 999px;
  font-size: .8rem; font-weight: 700; letter-spacing: .06em; color: var(--ivory); user-select: none;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { border-color: var(--muted-dark); }
.lang .chev { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.lang[open] .chev { transform: rotate(180deg); }
.flag { width: 20px; height: 14px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255,255,255,.15); flex: none; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; margin: 0; padding: 6px; list-style: none;
  background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: 12px; box-shadow: 0 18px 40px -12px rgba(0,0,0,.6); z-index: 60;
}
.lang-menu a { text-decoration: none; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; font-size: .92rem; color: var(--muted-dark); border-bottom: 0; }
.lang-menu a:hover { background: rgba(248,244,236,.06); color: var(--ivory); }
.lang-menu a[aria-current="true"] { color: var(--ivory); background: rgba(200,155,82,.14); }

@media (max-width: 1200px) {
  .header-actions { margin-left: auto; }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: 10px; cursor: pointer;
  }
  .nav-toggle span:not(.sr) { width: 24px; height: 2px; background: var(--ivory); transition: transform .25s, opacity .25s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); padding: 8px 16px 20px; border-bottom: 1px solid var(--line-dark);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 13px 0; border-bottom: 1px solid var(--line-dark); font-size: 1rem; }
  .site-nav .btn { margin-top: 16px; }
}

/* Hero */
.hero { position: relative; min-height: min(88vh, 760px); display: flex; align-items: flex-end; color: var(--ivory); background: var(--ink); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% center; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(21,17,13,.92) 0%, rgba(21,17,13,.7) 45%, rgba(21,17,13,.25) 100%), linear-gradient(0deg, rgba(21,17,13,.85) 0%, transparent 45%); }
.hero-content { position: relative; padding-top: 120px; padding-bottom: 72px; max-width: var(--wrap); width: 100%; }
.hero h1 { max-width: 20ch; }
.hero .lead { max-width: 56ch; font-size: 1.1rem; color: #e6ddd0; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 32px; }
.hero-where { font-size: .82rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-dark); margin: 0; }
.hero-where span { color: var(--gold); margin: 0 .4em; }

.strip { background: var(--gold); color: var(--ink); }
.strip-inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 22px; padding-top: 16px; padding-bottom: 16px; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; font-style: italic; }
.strip-inner i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); opacity: .5; }

/* Sections */
.section { padding: 96px 0; }
@media (max-width: 700px) { .section { padding: 68px 0; } }
.section-tint { background: var(--tint); }
.section-dark { background: var(--ink); color: #e6ddd0; }
.section-dark h2, .section-dark h3 { color: var(--ivory); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-lead { font-size: 1.08rem; color: var(--muted); }
.section-dark .section-lead { color: var(--muted-dark); }
.sub-h { font-size: 1.5rem; margin-bottom: 20px; }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.pillar { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px; }
.pillar-num { font-family: var(--serif); font-size: 1rem; color: var(--gold); font-weight: 600; }
.pillar h3 { font-size: 2rem; margin-top: 6px; }
.pillar p { color: var(--muted); margin: 0; }
.pillar strong { color: var(--text); }
.family { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; margin-top: 64px; }
.family p { color: var(--muted); }
.family blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.2; padding-left: 28px; border-left: 3px solid var(--gold); }
.family blockquote em { color: var(--gold); }
@media (max-width: 820px) { .family { grid-template-columns: 1fr; gap: 28px; } }

/* Lesson cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.card { background: var(--paper); border-radius: var(--radius); padding: 28px 24px; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px -18px rgba(60,40,15,.35); }
.card-icon { width: 44px; height: 44px; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 16px; }
.card-icon .fill { fill: var(--gold); stroke: none; }
.card h3 { font-size: 1.55rem; }
.card p { font-size: .92rem; color: var(--muted); margin: 0; }
.audiences { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-top: 44px; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: .4em 1em; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: .88rem; font-weight: 500; }
.chips-dark li { background: transparent; border-color: var(--line-dark); color: #e6ddd0; }

/* Trinity */
.trinity-top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; margin-bottom: 40px; }
.trinity-top .section-head { margin-bottom: 0; }
.trinity-badge { border-radius: var(--radius); width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #c992fb; }
@media (max-width: 860px) { .trinity-top { grid-template-columns: 1fr; gap: 28px; } .trinity-badge { max-width: 420px; } }
.pathway { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px; counter-reset: none; }
.pathway li { position: relative; padding: .55em 1.1em; border: 1px solid var(--line-dark); border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--ivory); background: linear-gradient(90deg, rgba(200,155,82,.08), rgba(200,155,82,.18)); }
.pathway li:last-child { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.diplomas { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 44px; }
.diplomas div { border: 1px solid var(--gold); border-radius: var(--radius); padding: 16px 20px; display: flex; flex-direction: column; }
.diplomas strong { font-family: var(--serif); font-size: 1.6rem; color: var(--gold-2); }
.diplomas span { font-size: .88rem; color: var(--muted-dark); }
.trinity-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.panel { background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 30px 28px; }
.panel h3 { font-size: 1.6rem; }
.panel-light { background: var(--paper); border-color: var(--line); }
.ticks { list-style: none; padding: 0; margin: 0 0 22px; }
.ticks li { position: relative; padding: 6px 0 6px 28px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 14px; width: 12px; height: 6px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }
.section-dark .ticks li { color: #e6ddd0; }
.motto { font-family: var(--serif); font-style: italic; font-size: 1.5rem; text-align: center; color: var(--gold-2); margin: 48px 0 0; }

/* Community */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.teachers { margin-top: 56px; }
.teacher-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.teacher-row div { padding: 20px 20px 20px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.teacher-row strong { font-family: var(--serif); font-size: 1.4rem; }
.teacher-row span { font-size: .9rem; color: var(--muted); }

/* Events */
.events-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.events-img img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.events p { color: #d8cdbd; }
.events .chips { margin-top: 24px; }
.events-insta { margin: 24px 0 0; }
@media (max-width: 860px) { .events-grid { grid-template-columns: 1fr; gap: 32px; } }

/* Founder */
.founder { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: start; max-width: 1000px; }
.founder-mono {
  aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 30%, #2f261d, var(--ink)); color: var(--gold-2);
  font-family: var(--serif); font-size: 5rem; font-style: italic; border: 1px solid var(--gold);
}
.founder p { color: var(--muted); }
@media (max-width: 760px) { .founder { grid-template-columns: 1fr; gap: 28px; } .founder-mono { width: 150px; font-size: 3rem; } }

/* Admissions */
.admissions { background: linear-gradient(120deg, var(--gold) 0%, var(--gold-2) 100%); color: var(--ink); padding: 56px 0; }
.admissions-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.admissions .eyebrow { color: var(--ink); opacity: .7; }
.admissions h2 { margin-bottom: .3em; }
.admissions p { margin: 0; }
.admissions .btn { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.admissions .btn:hover { background: var(--ink-2); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-family: var(--serif); font-size: 1.4rem; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--sans); font-size: 1.5rem; color: var(--gold); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 12px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
address { font-style: normal; color: #d8cdbd; margin-top: 24px; }
address strong { color: var(--ivory); }
address a { color: var(--gold-2); text-decoration: none; }
address a:hover { text-decoration: underline; }
.form { background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 32px 28px; display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: .86rem; font-weight: 600; color: var(--muted-dark); }
.form input, .form select, .form textarea {
  font: inherit; font-size: 1rem; color: var(--ivory); background: var(--ink); border: 1px solid var(--line-dark); border-radius: 10px; padding: 12px 14px; width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--gold); }
.form .invalid { border-color: #d9735e; }
.form .btn { align-self: flex-start; margin-top: 6px; }
.form-note { font-size: .9rem; margin: 0; color: var(--gold-2); min-height: 1.4em; }

/* Blog */
.blog-head { padding-bottom: 24px; }
.blog-list { padding-top: 24px; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.post-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: transform .25s, box-shadow .25s; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px -18px rgba(60,40,15,.35); }
.post-card img, .post-card-ph { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card-ph { display: grid; place-items: center; background: var(--tint); color: var(--gold); font-size: 3rem; font-family: var(--serif); }
.post-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.post-card h2 { font-size: 1.6rem; margin: 0; }
.post-card p { color: var(--muted); margin: 0; font-size: .95rem; }
.post-card .text-link { margin-top: auto; padding-top: 8px; }
.post-card time, .post-meta { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.blog-empty { color: var(--muted); font-size: 1.1rem; }
.post h1 { margin-top: 24px; font-size: clamp(2.2rem, 5vw, 3.4rem); }
.post-cover { width: 100%; border-radius: var(--radius); margin: 8px 0 32px; }
.prose { font-size: 1.08rem; }
.prose h2 { font-size: 2rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.5rem; margin-top: 1.4em; }
.prose img { border-radius: 10px; margin: 1.5em auto; }
.prose a { color: var(--gold); }
.prose blockquote { margin: 1.5em 0; padding-left: 20px; border-left: 3px solid var(--gold); font-family: var(--serif); font-size: 1.35rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.draft-banner { background: #d9735e; color: #fff; text-align: center; padding: 10px 16px; font-weight: 600; }

/* Footer */
.site-footer { background: #0e0b08; color: var(--muted-dark); padding: 40px 0; font-size: .88rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-end; }
.site-footer p { margin: 4px 0 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
