/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; }

/* TOKENS */
:root {
  --paper:   #f5f1e8;
  --paper-2: #ece6d9;
  --panel:   #fbf9f4;
  --ink:     #15191d;
  --body:    #3b3934;
  --mute:    #6f6a60;
  --rule:    #d9d1c1;
  --navy:    #1a2e3a;
  --navy-2:  #22394a;
  --brass:   #8a672d;   /* text-safe on paper */
  --gold:    #c9a467;   /* for use on navy */
  --on-navy: #e4e9ec;
  --on-navy-mute: #9fb2bd;

  --display: 'Marcellus', 'Trajan Pro', Georgia, serif;
  --serif: 'Source Serif 4', 'Iowan Old Style', Georgia, serif;
  --sans:  var(--serif);

  --gutter: clamp(20px, 5vw, 72px);
  --max: 1280px;
  --section: clamp(72px, 10vw, 136px);
}

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.num { font-variant-numeric: tabular-nums; }

.label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--brass);
}
.label .idx { color: var(--mute); margin-right: 10px; }

.h2 {
  font-family: var(--serif); font-weight: 400; color: var(--ink);
  font-size: clamp(38px, 5vw, 64px); line-height: 1.04; letter-spacing: -0.02em;
  font-variation-settings: "opsz" 72;
}
.h2 em { font-style: italic; color: var(--navy); }

/* Text links: underline draws in */
.tlink {
  color: var(--ink); font-weight: 500;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .25s ease;
  padding-bottom: 2px;
}
.tlink:hover, .tlink:focus-visible { background-size: 100% 1px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; font-size: 14px; font-weight: 600; letter-spacing: .03em;
  border: 1px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-line { border-color: var(--rule); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--ink); }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

/* HEADER */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245,241,232,.92); backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent; transition: border-color .25s;
}
.site-header.condensed { border-bottom-color: var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 88px; transition: height .25s ease; }
.site-header.condensed .wrap { height: 64px; }
.brand { display: flex; align-items: baseline; gap: 14px; }
.brand-name { font-family: var(--serif); font-size: 24px; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }
.brand-role { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); font-weight: 500; }
.nav { display: flex; gap: 34px; font-size: 14px; color: var(--ink); }
.nav a { position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 1px; background: var(--brass); transition: right .25s ease; }
.nav a:hover::after { right: 0; }

.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 9px; right: 9px; height: 1.5px; background: var(--ink); transition: transform .25s, opacity .2s; }
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 26px; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.drawer { display: none; position: fixed; inset: 64px 0 0; z-index: 49; background: var(--paper); padding: 24px var(--gutter); flex-direction: column; }
.drawer.open { display: flex; }
.drawer a { font-family: var(--serif); font-size: 34px; color: var(--ink); padding: 14px 0; border-bottom: 1px solid var(--rule); }

/* HERO */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 7vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 6vw, 96px); align-items: end; }
.hero-eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.hero-eyebrow::before { content: ""; width: 40px; height: 1px; background: var(--brass); }
.hero h1 {
  font-family: var(--serif); font-weight: 400; color: var(--ink);
  font-size: clamp(60px, 9vw, 128px); line-height: .94; letter-spacing: -0.035em;
  font-variation-settings: "opsz" 72;
}
.hero h1 em { display: block; font-style: italic; color: var(--navy); }
.hero-lede {
  margin-top: 36px; max-width: 34ch;
  font-family: var(--serif); font-size: clamp(21px, 2vw, 26px); line-height: 1.4; color: var(--body);
  font-variation-settings: "opsz" 24;
}
.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; font-size: 15px; }

.figure { position: relative; }
.figure-frame { position: relative; background: var(--navy); aspect-ratio: 4 / 5; overflow: hidden; }
.figure-frame::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(201,164,103,.35); pointer-events: none; }
.figure-frame svg { width: 100%; height: 100%; }
.figure figcaption { margin-top: 14px; font-size: 12px; color: var(--mute); letter-spacing: .02em; display: flex; justify-content: space-between; gap: 12px; }
.figure figcaption i { font-family: var(--serif); font-size: 15px; color: var(--body); }

/* REGISTER (Schedule particulars) */
.register { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.register .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.reg-cell { padding: 26px 28px 28px; border-left: 1px solid var(--rule); }
.reg-cell:first-child { border-left: 0; padding-left: 0; }
.reg-cell .label { margin-bottom: 10px; display: block; }
.reg-val { font-family: var(--serif); font-size: 20px; line-height: 1.3; color: var(--ink); }
.reg-val small { display: block; font-family: var(--sans); font-size: 13px; color: var(--mute); margin-top: 4px; line-height: 1.5; }

/* PROFILE */
.profile { padding: var(--section) 0; }
.profile .wrap { display: grid; grid-template-columns: 260px 1fr; gap: clamp(32px, 6vw, 96px); }
.profile-statement {
  font-family: var(--serif); font-weight: 400; color: var(--ink);
  font-size: clamp(28px, 3.2vw, 42px); line-height: 1.22; letter-spacing: -0.015em; max-width: 26ch;
  font-variation-settings: "opsz" 48;
}
.profile-statement em { color: var(--navy); }
.profile-body { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 48px; max-width: 880px; }
.profile-body p { font-size: 16px; color: var(--body); }

/* PRACTICE */
.practice { padding: var(--section) 0; background: var(--panel); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section-head { display: grid; grid-template-columns: 260px 1fr; gap: clamp(32px, 6vw, 96px); margin-bottom: clamp(40px, 5vw, 72px); align-items: baseline; }
.section-head p { color: var(--mute); max-width: 46ch; font-size: 15px; justify-self: end; }
.practice-list { border-top: 1px solid var(--ink); }
.p-row {
  display: grid; grid-template-columns: 260px 1fr 1fr; gap: clamp(24px, 4vw, 64px);
  padding: 40px 0 44px; border-bottom: 1px solid var(--rule); align-items: start;
}
.p-num { font-family: var(--serif); font-style: italic; font-size: 64px; line-height: .9; color: var(--brass); font-variation-settings: "opsz" 72; }
.p-title { font-family: var(--serif); font-size: clamp(28px, 2.8vw, 36px); line-height: 1.1; color: var(--ink); letter-spacing: -0.015em; margin-bottom: 14px; }
.p-desc { font-size: 16px; max-width: 44ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; }
.tag { font-size: 12.5px; color: var(--ink); border: 1px solid var(--rule); background: var(--paper); padding: 6px 11px; letter-spacing: .01em; white-space: nowrap; }
.tag b { font-weight: 600; color: var(--brass); margin-right: 6px; font-variant-numeric: tabular-nums; }

/* FORA */
.fora { background: var(--navy); color: var(--on-navy); padding: clamp(64px, 8vw, 112px) 0; }
.fora .label { color: var(--gold); }
.fora-grid { display: grid; grid-template-columns: 260px 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.forum { border-top: 1px solid rgba(255,255,255,.18); padding-top: 22px; }
.forum-name { font-family: var(--serif); font-size: clamp(30px, 3.4vw, 46px); line-height: 1.05; letter-spacing: -0.02em; color: #fff; font-variation-settings: "opsz" 60; }
.forum-meta { margin-top: 14px; font-size: 14px; color: var(--on-navy-mute); }
.fora-note { margin-top: 18px; font-size: 14px; color: var(--on-navy-mute); max-width: 26ch; }

/* RECORD */
.record { padding: var(--section) 0; }
.ledger-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); }
.ledger h3 { margin-bottom: 8px; }
.ledger ol { border-top: 1px solid var(--ink); }
.entry { display: grid; grid-template-columns: 112px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.entry-yr { font-size: 13px; font-weight: 500; color: var(--mute); padding-top: 6px; font-variant-numeric: tabular-nums; }
.entry-org { font-family: var(--serif); font-size: 24px; line-height: 1.2; color: var(--ink); letter-spacing: -0.01em; }
.entry-role { font-size: 15px; color: var(--body); margin-top: 2px; }
.entry-role span { color: var(--mute); }
.now { display: inline-block; vertical-align: middle; margin-left: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 0 4px rgba(138,103,45,.15); }

.training { margin-top: 48px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.training summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 20px 0; font-size: 15px; color: var(--ink); }
.training summary::-webkit-details-marker { display: none; }
.training summary .plus { font-family: var(--serif); font-size: 26px; color: var(--brass); transition: transform .25s; line-height: 1; }
.training[open] summary .plus { transform: rotate(45deg); }
.training ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(32px, 5vw, 80px); padding-bottom: 12px; }
.training li { display: grid; grid-template-columns: 112px 1fr; gap: 24px; padding: 14px 0; border-top: 1px dashed var(--rule); font-size: 15px; }
.training li .entry-yr { padding-top: 1px; }

/* CORRESPONDENCE */
.contact { padding: 0 0 var(--section); }
.contact-card { background: var(--panel); border: 1px solid var(--rule); padding: clamp(32px, 5vw, 72px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); }
.contact-note { margin-top: 22px; color: var(--mute); max-width: 40ch; font-size: 15px; }
.c-rows { border-top: 1px solid var(--ink); }
.c-row { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.c-row .label { color: var(--mute); }
.c-val { font-family: var(--serif); font-size: 21px; color: var(--ink); word-break: break-word; }
.c-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

.contact-card { grid-template-columns: .9fr 1.1fr; }
.contact-card > * { min-width: 0; }
.channels { margin-top: 32px; border-top: 1px solid var(--ink); }
.channel { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.channel dt { margin-bottom: 4px; color: var(--mute); }
.channel dd, .channel .c-val { font-family: var(--serif); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.35; color: var(--ink); }
.channel dd .c-email { white-space: nowrap; font-size: clamp(15px, 4.4vw, 20px); }
.c-pending { color: var(--mute); font-style: italic; }
.c-vcf { display: inline-block; margin-top: 20px; font-size: 14px; }

.enquiry { align-self: start; }
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.f-field { display: flex; flex-direction: column; gap: 8px; }
.f-field .label { color: var(--mute); }
.f-field .label i { text-transform: none; letter-spacing: 0; font-style: normal; font-weight: 400; }
.f-wide { grid-column: 1 / -1; }
.enquiry input[type=text], .enquiry input[type=email], .enquiry input[type=tel], .enquiry select, .enquiry textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--rule); border-radius: 0;
  padding: 12px 14px; transition: border-color .2s, background .2s; -webkit-appearance: none; appearance: none;
}
.enquiry select { background-image: linear-gradient(45deg, transparent 50%, var(--mute) 50%), linear-gradient(135deg, var(--mute) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.enquiry textarea { resize: vertical; min-height: 132px; line-height: 1.55; }
.enquiry input:focus, .enquiry select:focus, .enquiry textarea:focus { outline: none; border-color: var(--navy); background: #fff; }
.enquiry textarea::placeholder { color: #9b958a; }
.f-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.f-ack { margin: 20px 0 16px; display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; line-height: 1.55; color: var(--body); cursor: pointer; }
.f-ack input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--navy); flex: none; }
.cf-turnstile { min-height: 65px; }
.f-foot { margin-top: 16px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.f-status { font-size: 14px; }
.f-status.ok { color: #3d6b45; }
.f-status.err { color: #a2412b; }

/* FOOTER */
footer { background: var(--ink); color: #a8a296; padding: 56px 0 28px; font-size: 13px; }
.foot-top { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.1); }
.foot-name { font-family: var(--serif); font-size: 26px; color: #fff; margin-bottom: 6px; }
.foot-decl { max-width: 52ch; line-height: 1.7; }
.foot-decl + .foot-decl { margin-top: 10px; }
.foot-links { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; justify-self: end; }
.foot-links a, .foot-links button { color: #ddd7cc; background: none; border: 0; cursor: pointer; font-size: 14px; padding: 0; }
.foot-links a:hover, .foot-links button:hover { color: #fff; }
.foot-bottom { padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: #7d786f; font-size: 12px; }

/* DISCLAIMER GATE */
.gate { position: fixed; inset: 0; z-index: 100; background: rgba(21,25,29,.78); display: none; align-items: center; justify-content: center; padding: 16px; }
.gate.open { display: flex; }
.gate-box { background: var(--paper); width: 100%; max-width: 640px; max-height: calc(100vh - 32px); overflow-y: auto; padding: clamp(28px, 5vw, 52px); border-top: 3px solid var(--brass); }
.gate-box h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4vw, 40px); line-height: 1.08; color: var(--ink); letter-spacing: -0.02em; margin: 12px 0 20px; }
.gate-box ol { counter-reset: g; border-top: 1px solid var(--rule); }
.gate-box li { counter-increment: g; display: grid; grid-template-columns: 28px 1fr; gap: 8px; padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: 14px; line-height: 1.6; }
.gate-box li::before { content: counter(g, lower-roman) "."; font-family: var(--serif); font-style: italic; color: var(--brass); }
.gate-intro { font-size: 14px; margin-bottom: 16px; }
.gate-check { margin-top: 22px; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink); cursor: pointer; }
.gate-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--navy); flex: none; }
.gate-actions { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }

/* REVEAL (only once JS confirms support) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; }
}

section[id] { scroll-margin-top: 72px; }

/* TYPE — Marcellus (inscriptional capitals) for display, labels and controls; Source Serif 4 for text */
.hero h1, .h2, .p-title, .forum-name, .brand-name, .foot-name, .gate-box h2, .drawer a, .p-num {
  font-family: var(--display); font-weight: 400; font-style: normal; text-transform: uppercase;
  font-variation-settings: normal;
}
.hero h1 { font-size: clamp(46px, 7vw, 100px); line-height: 1.02; letter-spacing: .03em; }
.hero h1 em, .h2 em { font-style: normal; color: var(--navy); }
.h2 { font-size: clamp(30px, 4.2vw, 54px); line-height: 1.08; letter-spacing: .03em; }
.p-title { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: .04em; line-height: 1.15; }
.p-num { font-size: 44px; line-height: 1; }
.forum-name { font-size: clamp(26px, 3vw, 40px); letter-spacing: .03em; line-height: 1.1; }
.brand-name { font-size: 19px; letter-spacing: .1em; }
.foot-name { font-size: 22px; letter-spacing: .1em; }
.gate-box h2 { font-size: clamp(26px, 3.4vw, 34px); letter-spacing: .04em; line-height: 1.1; }
.drawer a { font-size: 26px; letter-spacing: .06em; }

.label, .brand-role, .nav, .btn {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
}
.label { font-size: 12px; letter-spacing: .2em; }
.brand-role { font-size: 11px; letter-spacing: .24em; }
.nav { font-size: 13px; letter-spacing: .16em; }
.btn { font-size: 13px; letter-spacing: .16em; }
.f-field .label i { font-family: var(--serif); text-transform: none; letter-spacing: 0; font-size: 13px; }
.label .idx { font-family: var(--serif); letter-spacing: .04em; font-variant-numeric: lining-nums tabular-nums; }
.contact-card .h2 { font-size: clamp(26px, 2.9vw, 40px); overflow-wrap: anywhere; }

.entry-yr { font-size: 14px; font-weight: 400; }
.tag { font-size: 14px; }
.tag b { font-weight: 600; }
.reg-val small, .entry-role, .contact-note, .p-desc { font-size: 15.5px; }
.reg-val small { font-size: 14px; }

/* ≤1024 */
@media (max-width: 1024px) {
  .hero .wrap { grid-template-columns: 1fr 1fr; }
  .register .wrap { grid-template-columns: 1fr 1fr; }
  .reg-cell:nth-child(3) { border-left: 0; padding-left: 0; }
  .reg-cell:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .profile .wrap, .section-head { grid-template-columns: 1fr; gap: 20px; }
  .section-head p { justify-self: start; }
  .p-row { grid-template-columns: 90px 1fr; }
  .p-row .tags { grid-column: 2; }
  .fora-grid { grid-template-columns: 1fr 1fr; }
  .fora-grid > :first-child { grid-column: 1 / -1; }
  .ledger-grid { grid-template-columns: 1fr; }
  .contact-card { grid-template-columns: 1fr; }
}

/* ≤720 */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .nav-toggle { display: block; }
  .site-header .wrap, .site-header.condensed .wrap { height: 64px; }
  .brand-role { display: none; }
  .brand-name { font-size: 15px; letter-spacing: .08em; }
  .hero .wrap { grid-template-columns: 1fr; }
  .figure { max-width: 420px; }
  .register .wrap { grid-template-columns: 1fr; }
  .reg-cell, .reg-cell:nth-child(3) { border-left: 0; padding: 18px 0; }
  .reg-cell + .reg-cell { border-top: 1px solid var(--rule); }
  .profile-body { grid-template-columns: 1fr; }
  .p-row { grid-template-columns: 1fr; gap: 14px; padding: 32px 0; }
  .p-row .tags { grid-column: auto; }
  .tag { white-space: normal; }
  .p-num { font-size: 44px; }
  .fora-grid { grid-template-columns: 1fr; }
  .entry, .training li { grid-template-columns: 1fr; gap: 2px; }
  .entry-yr { padding-top: 0; }
  .training ul { grid-template-columns: 1fr; }
  .c-row { grid-template-columns: 1fr; gap: 4px; }
  .contact-card { padding: 28px 20px; }
  .f-grid { grid-template-columns: 1fr; }
  .f-foot .btn { width: 100%; justify-content: center; }
  .c-actions .btn, .gate-actions .btn { width: 100%; justify-content: center; }
  .foot-top { grid-template-columns: 1fr; }
  .foot-links { justify-self: start; }
}
