/* ========================================================
   The Ascham Fellowship — shared stylesheet
   Palette:   ink #20281F · parchment #EFE7D8 · parchment-dark #E3D8C2
              gold #A9793A · azurite #3E5C6B · ink-soft #4A4436
   Type:      Fraunces (display) · Source Serif 4 (body) · IBM Plex Mono (labels)
   ======================================================== */

:root {
  --ink: #20281F;
  --ink-soft: #4A4436;
  --parchment: #EFE7D8;
  --parchment-dark: #E3D8C2;
  --gold: #A9793A;
  --azurite: #3E5C6B;
  --rule: rgba(32, 40, 31, 0.14);

  --display: "EB Garamond", serif;
  --body: "Source Serif 4", serif;
  --mono: "IBM Plex Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Illuminated initial: the signature element ---------- */
.illum {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 700;
  color: var(--gold);
}

.section-title .illum {
  font-size: 1.5em;
  line-height: 1;
}

.illum-standalone {
  font-size: 1.5em;
}

/* Boxed variant — the bordered letter treatment used earlier, kept for the
   nav mark specifically since a bordered icon reads better at small, fixed
   sizes than the plain inline capital used in running headings. */
.illum-boxed {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9em;
  height: 1.9em;
  font-size: 1.6rem;
  border: 1.5px solid var(--gold);
  border-radius: 2px;
}

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--parchment-dark);
  border-bottom: 1px solid var(--rule);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  color: var(--ink);
}

.brand .illum-boxed { align-self: center; }

.brand-mark { display: inline-flex; align-items: baseline; gap: 0.32em; white-space: nowrap; }

.brand-the {
  font-size: 0.72rem;
  font-weight: 500;
  font-style: italic;
  color: var(--ink-soft);
}

.brand-ascham {
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.brand-fellowship {
  font-size: 0.85rem;
  font-weight: 500;
  font-style: italic;
  color: var(--ink-soft);
}

@media (max-width: 480px) {
  .brand-the { display: none; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 4px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--gold);
}

.nav-cta {
  border: 1px solid var(--ink);
  padding: 9px 18px !important;
  border-radius: 2px;
}

.nav-cta:hover { background: var(--ink); color: var(--parchment) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 84px;
    left: 0; right: 0;
    background: var(--parchment-dark);
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    padding: 28px 32px 36px;
    border-bottom: 1px solid var(--rule);
    display: none;
  }
  .nav-links.open { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 80px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 460px; margin: 0 auto 12px; }
}

.hero-figure {
  margin: 0;
  position: relative;
}

.hero-figure img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--rule);
  border-radius: 2px;
  /* Thin gold keyline set just inside the frame, echoing the medallion borders */
  box-shadow: 0 0 0 1px var(--parchment), 0 0 0 2.5px var(--gold);
}

.hero-figure figcaption {
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  margin-top: 18px;
  max-width: 34ch;
}

.hero-figure figcaption em { font-style: italic; }

.hero-rule {
  width: 0;
  height: 2px;
  background: var(--gold);
  margin-bottom: 28px;
  animation: draw-rule 1.1s ease-out 0.15s forwards;
}

@keyframes draw-rule {
  to { width: 84px; }
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--azurite);
  margin: 0 0 18px;
}

.hero h1 {
  font-family: var(--display);
  font-optical-sizing: none;
  font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.12;
  max-width: 15ch;
  margin: 0 0 28px;
  color: var(--ink);
}

.hero-lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 0 0 36px;
}

.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 14px 26px;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--ink);
  color: var(--parchment);
  border: 1px solid var(--ink);
}

.btn-primary:hover { background: var(--azurite); border-color: var(--azurite); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule);
}

.btn-ghost:hover { border-color: var(--ink); }

/* ---------- Section scaffolding ---------- */
section { padding: 76px 0; }

.section-border-top { border-top: 1px solid var(--rule); }

.section-head { max-width: 62ch; margin-bottom: 48px; }

.section-head p.lede {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-top: 18px;
}

h2.section-title {
  font-family: var(--display);
  font-optical-sizing: none;
  font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 0;
}

/* Callout: a smaller, standalone statement mid-paragraph — distinct from a
   real section heading, with a highlighter-style gold swipe rather than
   sheer size to mark it out. */
.callout {
  font-family: var(--display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  line-height: 1.55;
  margin: 40px 0 0;
  color: var(--ink);
}

/* ---------- Curriculum grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 620px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 420px) {
  .grid { grid-template-columns: 1fr; }
}

.card {
  background: var(--parchment);
  padding: 32px 28px;
  transition: background 0.2s;
}

.card:hover { background: var(--parchment-dark); }

.card h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  margin: 0 0 10px;
}

.card p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  margin: 0;
}

/* ---------- Format / two-column ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
}

.split h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.25rem;
  margin: 0 0 12px;
}

.split p { color: var(--ink-soft); margin: 0; }

/* ---------- Quote / pull ---------- */
.pull {
  border-left: 2px solid var(--gold);
  padding-left: 28px;
  font-family: var(--display);
  font-weight: 400;
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--ink);
  max-width: 46ch;
}

.pull cite {
  display: block;
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 16px;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink);
  color: var(--parchment);
}

.cta-band h2 {
  color: var(--parchment);
  overflow: visible;
}

.cta-band .illum { color: var(--gold); }

.cta-band p { color: rgba(239, 231, 216, 0.72); }

.cta-band .btn-ghost { border-color: rgba(239, 231, 216, 0.35); color: var(--parchment); }
.cta-band .btn-ghost:hover { border-color: var(--parchment); }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--rule);
  padding: 40px 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

/* ---------- About page specifics ---------- */
.founders {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  margin-top: 12px;
}

.founder h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0 0 6px;
}

.founder-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  margin-bottom: 18px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  box-shadow: 0 0 0 1px var(--parchment), 0 0 0 2.5px var(--gold);
}

.founder .role {
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--azurite);
  margin: 0 0 12px;
}

.founder p.bio { color: var(--ink-soft); margin: 0; }

/* ---------- Contact page specifics ---------- */
.contact-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.contact-detail {
  background: var(--parchment);
  padding: 40px 36px;
}

.contact-detail .detail-icon {
  display: block;
  font-size: 1.9rem;
  line-height: 1;
  margin-bottom: 12px;
  color: var(--ink);
  font-family: "Segoe UI Symbol", "Noto Sans Symbols", sans-serif;
}

.contact-detail h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.2rem;
  margin: 0 0 10px;
}

.contact-detail p, .contact-detail a.detail-value {
  color: var(--ink-soft);
  text-decoration: none;
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.contact-detail a.detail-value {
  display: inline-block;
  font-family: var(--mono);
  font-size: 1.05rem;
  color: var(--ink);
}

.contact-detail a.detail-value:hover { color: var(--azurite); }

.contact-detail .detail-note {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-top: 4px;
}
