/* ─── Chudschools — classical academy theme ─── */
/* Look & feel: parchment, deep wine + gold accents, serif headlines,
   subtle ledger-rule textures, sticker-style nav. Distinct from
   Clawschools (dark glassmorphism) and the arcade (neon).        */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Crimson+Pro:wght@400;500;600&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  /* parchment palette */
  --paper:        #f4ecd8;
  --paper-2:      #ece2c6;
  --paper-3:      #e2d6b3;
  --ink:          #2a1a10;       /* deep brown */
  --ink-2:        #4a3424;
  --ink-mute:     #6e5a48;
  --rule:         rgba(42, 26, 16, 0.18);

  /* accents */
  --wine:         #7b1f2c;       /* school burgundy */
  --wine-2:       #5a1620;
  --gold:         #c8962a;       /* aged brass */
  --gold-2:       #a87916;
  --ivy:          #2e5b3d;       /* ivy-league green */
  --chalk:        #fffaf0;

  /* sizes */
  --max-w:        1140px;
  --r-sm:         6px;
  --r:            10px;
  --r-lg:         16px;

  /* motion */
  --ease:         cubic-bezier(.2,.7,.2,1);
  --t-fast:       .18s;
  --t-med:        .28s;

  --shadow-1:     0 4px 0 var(--ink), 0 6px 18px rgba(42,26,16,0.18);
  --shadow-2:     0 6px 0 var(--ink), 0 14px 30px rgba(42,26,16,0.25);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: "Crimson Pro", "Iowan Old Style", Georgia, "Times New Roman", serif;
  color: var(--ink);
  background-color: var(--paper);
  /* ledger ruling + subtle paper grain */
  background-image:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 31px,
      rgba(42, 26, 16, 0.05) 31px,
      rgba(42, 26, 16, 0.05) 32px
    ),
    radial-gradient(circle at 30% 20%, rgba(123, 31, 44, 0.06), transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(200, 150, 42, 0.08), transparent 50%);
  background-attachment: fixed;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* small-caps utility */
.smallcaps {
  font-variant: small-caps;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* ─── TOP BANNER (date / motto strip) ─── */
.top-strip {
  background: var(--ink);
  color: var(--paper);
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 0.75rem;
  text-align: center;
  padding: 6px 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.top-strip strong { color: var(--gold); font-weight: 600; }

/* ─── HEADER ─── */
.site-header {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 26px 24px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 3px double var(--ink);
}

.crest {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
}
.crest-mark {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: var(--wine);
  border: 3px solid var(--ink);
  border-radius: 50%;
  color: var(--gold);
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -0.04em;
  box-shadow: 3px 3px 0 var(--ink);
}
.crest-words { line-height: 1.05; }
.crest-words .est { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-mute); font-family: "Space Grotesk", sans-serif; }
.crest-words .name {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
  gap: 4px;
}
.site-nav a {
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: var(--ink-2);
  text-decoration: none;
  padding: 8px 14px;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 3px solid transparent;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--wine);
  border-bottom-color: var(--gold);
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 4px;
  border: 2px solid var(--ink);
  text-decoration: none;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  background: var(--paper);
  color: var(--ink);
  transition: transform var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease),
              background var(--t-med) var(--ease),
              color var(--t-med) var(--ease);
  box-shadow: 4px 4px 0 var(--ink);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

.btn-primary {
  background: var(--wine);
  color: var(--chalk);
  border-color: var(--ink);
}
.btn-primary:hover { background: var(--wine-2); color: var(--gold); }

.btn-gold {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--ink);
}
.btn-gold:hover { background: var(--gold-2); color: var(--chalk); }

/* ─── HERO ─── */
.hero {
  max-width: var(--max-w);
  margin: 40px auto 30px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.hero-text .kicker {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--wine);
  display: inline-block;
  padding: 4px 10px;
  border: 1.5px solid var(--wine);
  margin-bottom: 18px;
  background: rgba(255,255,255,0.4);
}

.hero-text h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.6rem, 5.2vw, 4.2rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
  color: var(--ink);
}
.hero-text h1 .accent {
  font-style: italic;
  color: var(--wine);
  border-bottom: 4px solid var(--gold);
  padding-bottom: 2px;
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-2);
  margin: 0 0 26px;
  max-width: 540px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.lat-motto {
  font-style: italic;
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;
  color: var(--ink-mute);
}
.lat-motto::before { content: "❦  "; color: var(--wine); }

/* hero card (right column) — a "report card" / school document look */
.report-card {
  background: var(--chalk);
  border: 2px solid var(--ink);
  padding: 24px;
  position: relative;
  box-shadow: 8px 8px 0 var(--ink);
  transform: rotate(-1.2deg);
}
.report-card::before {
  content: "REPORT CARD";
  position: absolute;
  top: -12px; left: 16px;
  background: var(--wine);
  color: var(--chalk);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  padding: 2px 10px;
  border: 2px solid var(--ink);
}
.report-card h3 {
  font-family: "Cormorant Garamond", serif;
  margin: 0 0 4px;
  font-size: 1.4rem;
}
.report-card .term {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 14px;
}
.report-card table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.report-card td {
  padding: 6px 4px;
  border-bottom: 1px dashed var(--rule);
}
.report-card td:last-child {
  text-align: right;
  font-weight: 700;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
  color: var(--ivy);
}
.grade-A { color: var(--ivy); }
.grade-S { color: var(--gold-2); }

/* ─── DECORATIVE DIVIDER ─── */
.flourish {
  text-align: center;
  font-size: 1.4rem;
  color: var(--wine);
  letter-spacing: 0.4em;
  margin: 30px 0;
  user-select: none;
}

/* ─── SECTIONS ─── */
.section {
  max-width: var(--max-w);
  margin: 60px auto;
  padding: 0 24px;
}
.section-head {
  text-align: center;
  margin-bottom: 30px;
}
.section-head .smallcaps {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  color: var(--wine);
  letter-spacing: 0.3em;
}
.section-head h2 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  letter-spacing: -0.01em;
  margin: 6px 0 8px;
}
.section-head p {
  color: var(--ink-mute);
  max-width: 620px;
  margin-inline: auto;
  font-size: 1.05rem;
}

/* ─── DISCIPLINES (subject cards) ─── */
.disciplines {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.disc-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--chalk);
  border: 2px solid var(--ink);
  padding: 22px;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  position: relative;
}
.disc-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 var(--ink);
}
.disc-glyph {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.4rem;
  color: var(--wine);
  border: 2px solid var(--ink);
  width: 56px; height: 56px;
  display: grid; place-items: center;
  margin-bottom: 14px;
  background: var(--paper-2);
}
.disc-card h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  margin: 0 0 6px;
}
.disc-card p { margin: 0; color: var(--ink-mute); font-size: 0.98rem; }
.disc-card .meta {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ivy);
  margin-top: 12px;
}

/* ─── CURRICULUM (lecture list) ─── */
.lectures {
  background: var(--chalk);
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 30px 36px;
}
.lectures h2 {
  font-family: "Cormorant Garamond", serif;
  margin: 0 0 6px;
  font-size: 2rem;
}
.lectures .desc {
  color: var(--ink-mute);
  margin: 0 0 22px;
}
.lectures ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: lect;
}
.lectures li {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--rule);
  counter-increment: lect;
}
.lectures li::before {
  content: counter(lect, upper-roman) ".";
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  color: var(--wine);
  font-weight: 700;
  text-align: right;
}
.lectures li:last-child { border-bottom: none; }
.lect-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  display: block;
}
.lect-desc {
  color: var(--ink-mute);
  font-size: 0.98rem;
  display: block;
}
.lect-meta {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ivy);
  white-space: nowrap;
}

/* ─── PILLARS (3 quick stats / values) ─── */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  text-align: center;
}
.pillar {
  padding: 22px;
  border-top: 4px solid var(--gold);
  background: rgba(255,255,255,0.5);
}
.pillar .num {
  font-family: "Cormorant Garamond", serif;
  font-size: 3rem;
  color: var(--wine);
  font-weight: 700;
  line-height: 1;
}
.pillar h3 {
  font-family: "Cormorant Garamond", serif;
  margin: 8px 0 4px;
  font-size: 1.3rem;
}
.pillar p { margin: 0; color: var(--ink-mute); font-size: 0.95rem; }

/* ─── BELL TOWER (CTA) ─── */
.bell-tower {
  background: var(--ink);
  color: var(--paper);
  padding: 60px 24px;
  text-align: center;
  position: relative;
  border-top: 4px solid var(--gold);
  border-bottom: 4px solid var(--gold);
  margin: 60px 0;
}
.bell-tower h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--chalk);
  margin: 0 0 12px;
}
.bell-tower h2 em { color: var(--gold); font-style: italic; }
.bell-tower p { color: rgba(255, 250, 240, 0.78); max-width: 580px; margin: 0 auto 24px; }

/* ─── FACULTY ─── */
.faculty {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.prof-card {
  background: var(--chalk);
  border: 2px solid var(--ink);
  padding: 18px;
  text-align: center;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.prof-card:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.prof-photo {
  width: 90px; height: 90px;
  margin: 0 auto 10px;
  background: var(--paper-3);
  border: 2px solid var(--ink);
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--wine);
}
.prof-card h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2rem;
  margin: 0 0 2px;
}
.prof-card .title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 6px;
}
.prof-card .field { color: var(--ivy); font-style: italic; font-size: 0.95rem; }

/* ─── SECONDARY PAGES ─── */
.page-hero {
  max-width: var(--max-w);
  margin: 40px auto 12px;
  padding: 0 24px;
  text-align: center;
}
.page-hero .crest-line {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--wine);
}
.page-hero h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin: 6px 0 14px;
  letter-spacing: -0.01em;
}
.page-hero p {
  color: var(--ink-2);
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.prose {
  max-width: 760px;
  margin: 30px auto;
  padding: 0 24px;
  font-size: 1.08rem;
}
.prose h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.7rem;
  margin: 30px 0 8px;
  letter-spacing: -0.005em;
  color: var(--ink);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 6px;
  display: inline-block;
}
.prose p, .prose ul, .prose ol { color: var(--ink-2); }
.prose blockquote {
  border-left: 4px solid var(--wine);
  margin: 22px 0;
  padding: 4px 18px;
  font-style: italic;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  color: var(--ink);
  background: rgba(255, 250, 240, 0.5);
}

/* report-card variants for pages */
.gradebook {
  max-width: var(--max-w);
  margin: 30px auto 50px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* form (contact / enroll) */
.form-card {
  max-width: 560px;
  margin: 30px auto;
  padding: 28px;
  background: var(--chalk);
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
}
.form-card h2 {
  font-family: "Cormorant Garamond", serif;
  margin: 0 0 14px;
  font-size: 1.7rem;
}
.form-row { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.form-row label {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.form-row input,
.form-row textarea,
.form-row select {
  font: inherit;
  font-family: "Crimson Pro", serif;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 0;
  padding: 10px 12px;
  outline: none;
  transition: box-shadow var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  background: var(--chalk);
  box-shadow: 4px 4px 0 var(--wine);
}
.form-row textarea { min-height: 130px; resize: vertical; }

/* ─── FOOTER ─── */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 40px 24px 20px;
  margin-top: 0;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-cols {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 22px;
}
.footer-cols strong {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 8px;
}
.footer-cols p { color: rgba(244, 236, 216, 0.65); margin: 0; max-width: 280px; font-size: 0.95rem; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols ul li { margin: 4px 0; }
.footer-cols a {
  color: var(--paper);
  text-decoration: none;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  transition: color var(--t-fast) var(--ease);
}
.footer-cols a:hover { color: var(--gold); }
.footer-base {
  color: rgba(244, 236, 216, 0.55);
  font-size: 0.82rem;
  border-top: 1px solid rgba(244, 236, 216, 0.15);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.08em;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .report-card { transform: none; max-width: 460px; margin: 10px auto; }
  .disciplines { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: 1fr; }
  .faculty { grid-template-columns: repeat(2, 1fr); }
  .gradebook { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .site-header { flex-wrap: wrap; gap: 10px; padding: 18px 16px 10px; }
  .site-nav { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .disciplines, .faculty, .gradebook { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .lectures { padding: 22px; }
  .lectures li { grid-template-columns: 44px 1fr; }
  .lect-meta { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .hero-text h1, .report-card { transform: none !important; }
}
