/* ============================================================
   THE SECRETARIAT — Design System
   Reference-driven: institutional, diplomatic, editorial
   ============================================================ */

:root {
  /* Palette (from brief) */
  --ivory: #F5F2EC;        /* primary background */
  --ivory-deep: #EFEAE0;   /* slightly darker ivory (intro band) */
  --white: #FBFAF7;        /* secondary white */
  --ink: #181716;          /* primary text — charcoal */
  --charcoal: #191919;     /* dark backgrounds */
  --charcoal-deep: #111111;
  --burgundy: #781C26;     /* accent — oxblood */
  --burgundy-deep: #5E151D;
  --line: #E3DED2;         /* hairlines on ivory */
  --line-dark: #2A2A2A;    /* hairlines on charcoal */
  --muted: #6B6560;        /* secondary text */

  /* Typography */
  --serif: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --sans: 'Inter', 'Manrope', -apple-system, 'Segoe UI', sans-serif;

  --maxw: 1280px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; color: var(--ink); line-height: 1.15; }
h1 { font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 400; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 400; }
h3 { font-size: 1.4rem; font-weight: 500; }

.eyebrow {
  display: inline-block; font-family: var(--sans); font-weight: 500;
  font-size: .72rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--burgundy); margin-bottom: 18px;
}

.lead { font-size: 1.1rem; color: var(--muted); line-height: 1.7; }

.italic-serif { font-family: var(--serif); font-style: italic; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--sans); font-weight: 500;
  font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: all .3s ease;
  padding: 15px 30px; border: 1px solid transparent;
}
.btn-burgundy { background: var(--burgundy); color: #fff; }
.btn-burgundy:hover { background: var(--burgundy-deep); }
.btn-outline-burgundy { border-color: var(--burgundy); color: var(--burgundy); background: transparent; }
.btn-outline-burgundy:hover { background: var(--burgundy); color: #fff; }
.btn-outline-light { border-color: rgba(255,255,255,.5); color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--charcoal); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.wordmark { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; letter-spacing: .02em; color: var(--ink); text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--ink); font-family: var(--sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--burgundy); }
.nav-cta { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.member-btn { padding: 11px 22px; font-size: .72rem; }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--ink); margin: 5px 0; }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.nav-open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 76px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 24px 40px; gap: 18px;
  }
}

/* ---------- Hero ---------- */
.hero { background: var(--ivory); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 78vh; }
.hero-content { display: flex; flex-direction: column; justify-content: center; padding: 80px 0 80px clamp(40px, 8vw, 120px); }
.hero-title { font-size: clamp(3.5rem, 8vw, 6.5rem); line-height: 0.95; font-weight: 400; letter-spacing: -0.01em; }
.hero-rule { width: 56px; height: 2px; background: var(--burgundy); margin: 28px 0; }
.hero-tagline { font-family: var(--sans); font-size: .78rem; letter-spacing: .3em; text-transform: uppercase; color: var(--burgundy); font-weight: 500; margin-bottom: 24px; }
.hero-intro { font-size: 1.15rem; color: var(--muted); max-width: 460px; margin-bottom: 24px; line-height: 1.7; }
.hero-italic { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--ink); margin-bottom: 32px; }
.hero-image { position: relative; overflow: hidden; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Intro statement ---------- */
.intro { background: var(--ivory-deep); padding: 100px 0; }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.intro-statement { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.2; font-weight: 400; }
.intro-statement .line { display: block; }
.intro-rule { width: 40px; height: 2px; background: var(--burgundy); margin-top: 28px; }
.intro-body { font-size: 1.1rem; color: var(--muted); line-height: 1.8; }
.intro-body p + p { margin-top: 18px; }

/* ---------- What we do ---------- */
.what { background: var(--white); padding: 100px 0; }
.what-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.what-col { padding: 40px 32px 40px 0; border-right: 1px solid var(--line); }
.what-col:last-child { border-right: none; }
.what-col:not(:first-child) { padding-left: 32px; }
.what-icon { width: 28px; height: 28px; margin-bottom: 20px; color: var(--burgundy); }
.what-col h3 { font-size: 1.3rem; line-height: 1.2; margin-bottom: 14px; }
.what-col p { font-size: .92rem; color: var(--muted); line-height: 1.7; }
@media (max-width: 900px) { .what-grid { grid-template-columns: 1fr; } .what-col { border-right: none; border-bottom: 1px solid var(--line); padding: 28px 0; } .what-col:not(:first-child) { padding-left: 0; } }

/* ---------- Split section (Network + Directive) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; }
.split-left { background: var(--ivory); padding: 100px 60px; }
.split-right { background: var(--charcoal); color: #fff; padding: 100px 60px; }
.split-right h2, .split-right h3 { color: #fff; }
.split-right .lead { color: rgba(255,255,255,.7); }
.network-table { margin: 30px 0; }
.network-row { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
.network-row .term { font-family: var(--sans); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; color: var(--ink); }
.network-row .def { font-size: .9rem; color: var(--muted); text-align: right; max-width: 60%; }
.network-note { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--ink); margin: 24px 0; }
.directive-brief { font-family: var(--sans); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--burgundy); margin-bottom: 16px; }
.directive-mockup { margin-top: 40px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split-left, .split-right { padding: 60px 32px; } }

/* ---------- Convocation ---------- */
.convocation { display: grid; grid-template-columns: 1fr 1fr; }
.convocation-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.convocation-content { background: var(--ivory); padding: 100px 60px; display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 900px) { .convocation { grid-template-columns: 1fr; } .convocation-content { padding: 60px 32px; } }

/* ---------- Closing statement ---------- */
.closing { background: var(--ivory); padding: 120px 0; text-align: center; }
.closing h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 400; line-height: 1.2; }
.closing .sub { font-size: 1.1rem; color: var(--muted); margin: 24px 0 32px; }
.closing .wordmark-lg { font-family: var(--serif); font-size: 1.2rem; letter-spacing: .3em; text-transform: uppercase; color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal-deep); color: rgba(255,255,255,.75); padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand { font-family: var(--serif); font-size: 1.4rem; color: #fff; }
.footer-italic { font-family: var(--serif); font-style: italic; color: rgba(255,255,255,.6); margin-top: 8px; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 18px; font-weight: 500; }
.site-footer a { color: rgba(255,255,255,.7); text-decoration: none; display: block; margin-bottom: 10px; font-size: .88rem; }
.site-footer a:hover { color: #fff; }
.footer-domain { color: rgba(255,255,255,.6); font-size: .88rem; margin-top: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; display: flex; justify-content: space-between; font-size: .8rem; color: rgba(255,255,255,.5); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Page hero (interior) ---------- */
.page-hero { background: var(--ivory); padding: 100px 0 60px; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 20px; }

/* ---------- Misc ---------- */
.section { padding: 100px 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 { margin-bottom: 18px; }
.rule { width: 48px; height: 2px; background: var(--burgundy); margin-bottom: 24px; }
