:root {
  --ink: #18312c;
  --muted: #5e6d68;
  --paper: #fbfaf6;
  --panel: #f0eee5;
  --accent: #8d6a33;
  --accent-dark: #6d4f25;
  --line: #d8d7cf;
  --white: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
a { color: var(--accent-dark); }
a:hover { color: var(--accent); }
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 250, 246, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.1;
}
.brand-mark {
  width: 44px;
  height: 44px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
  font-weight: 700;
  letter-spacing: .04em;
}
.brand strong, .brand small { display: block; }
.brand small { margin-top: 4px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; font-size: .66rem; }
nav { display: flex; align-items: center; gap: 20px; }
nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .94rem; }
.nav-classroom { padding: 9px 14px; border: 1px solid var(--accent); border-radius: 6px; }
.hero {
  padding: 92px 0 80px;
  background:
    radial-gradient(circle at 80% 20%, rgba(141,106,51,.12), transparent 30%),
    linear-gradient(180deg, #fbfaf6 0%, #f3f0e7 100%);
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(250px, .7fr); gap: 70px; align-items: center; }
.eyebrow { color: var(--accent-dark); text-transform: uppercase; font-size: .76rem; font-weight: 800; letter-spacing: .14em; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.15; }
h1 { margin: .2em 0; font-size: clamp(2.7rem, 6vw, 5rem); font-weight: 500; }
h2 { margin-top: 2.1em; font-size: 2rem; }
h3 { margin-top: 1.7em; font-size: 1.35rem; }
.motto { margin: 0 0 22px; color: var(--accent-dark); font-family: Georgia, serif; font-size: 1.2rem; }
.lead { max-width: 700px; color: var(--muted); font-size: 1.18rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-block; padding: 12px 18px; background: var(--ink); color: var(--white); text-decoration: none; border-radius: 6px; font-weight: 700; }
.button:hover { color: var(--white); background: #24463e; }
.button-secondary { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.button-secondary:hover { background: var(--ink); }
.hero-card { min-height: 280px; padding: 36px; border: 1px solid var(--line); background: rgba(255,255,255,.62); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; box-shadow: 0 18px 50px rgba(24,49,44,.08); }
.crest { width: 110px; height: 110px; margin-bottom: 22px; border: 3px double var(--accent); border-radius: 50%; display: grid; place-items: center; font-family: Georgia, serif; font-size: 1.65rem; font-weight: 700; letter-spacing: .08em; }
.hero-card strong { font-family: Georgia, serif; font-size: 1.2rem; }
.hero-card span:last-child { margin-top: 8px; color: var(--muted); }
.content { font-size: 1.04rem; }
.home-content, .page-content { padding-top: 48px; padding-bottom: 70px; max-width: 850px; }
.content p, .content li { color: #334942; }
.content li { margin: 5px 0; }
.content a { font-weight: 700; }
.page-heading { padding: 54px 0 38px; background: var(--panel); border-bottom: 1px solid var(--line); }
.page-heading h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.site-footer { margin-top: 40px; padding: 42px 0 20px; background: var(--ink); color: #e9eee9; }
.site-footer p { color: #bac9c3; margin: 6px 0 0; }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: #e9eee9; text-decoration: none; }
.copyright { margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); color: #9eb0a9; font-size: .82rem; }

@media (max-width: 780px) {
  .nav-wrap { align-items: flex-start; flex-direction: column; padding: 14px 0; }
  nav { width: 100%; overflow-x: auto; padding-bottom: 4px; gap: 16px; }
  .hero { padding: 58px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-card { min-height: 220px; }
  .footer-grid { flex-direction: column; }
}
