@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Source+Sans+3:wght@300;400;500;600&display=swap');

:root {
  --ink: #1a1a18;
  --paper: #f8f5f0;
  --warm-white: #fdfcfa;
  --accent: #2d5a3d;
  --accent-light: #4a7c5e;
  --muted: #6b6b62;
  --rule: #d8d4cc;
  --highlight: #e8f0eb;
  --serif: 'Lora', Georgia, serif;
  --sans: 'Source Sans 3', system-ui, sans-serif;
  --max: 860px;
  --wide: 1100px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 17px; scroll-behavior: smooth; }

body {
  font-family: var(--serif);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* MASTHEAD */
.masthead {
  border-bottom: 2px solid var(--ink);
  padding: 0;
  background: var(--warm-white);
}

.masthead-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
}

.masthead-brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.masthead-name {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.15;
}

.masthead-tagline {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* NAV */
nav {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  flex-wrap: wrap;
}

nav a {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
  padding: 0.35rem 0.7rem;
  border-radius: 2px;
  transition: background 0.15s, color 0.15s;
}

nav a:hover { background: var(--highlight); color: var(--accent); }
nav a.active { color: var(--accent); font-weight: 600; }

.nav-portal {
  margin-left: 0.5rem;
  background: var(--accent) !important;
  color: var(--warm-white) !important;
  padding: 0.35rem 0.9rem !important;
  border-radius: 2px;
}

.nav-portal:hover { background: var(--accent-light) !important; color: white !important; }

/* HERO */
.hero {
  border-bottom: 1px solid var(--rule);
  padding: 4rem 2rem 3.5rem;
  background: var(--warm-white);
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.hero-kicker {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 1.25rem;
  max-width: 620px;
}

.hero-lead {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 2rem;
  line-height: 1.65;
}

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 2px;
  transition: background 0.15s, color 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover { background: var(--accent-light); }

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  margin-left: 0.75rem;
}

.btn-secondary:hover { background: var(--highlight); }

/* MAIN CONTENT */
.content-wrap {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 2rem;
}

.page-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  padding: 3.5rem 0;
}

/* SECTIONS */
.section {
  padding: 3.5rem 2rem;
  border-bottom: 1px solid var(--rule);
}

.section:last-child { border-bottom: none; }

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-label {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.section h2 {
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.section p {
  font-family: var(--sans);
  font-size: 0.97rem;
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.section p:last-child { margin-bottom: 0; }

/* RULE DIVIDER */
hr.section-rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 2rem 0;
}

/* TWO-COL GRID */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 2rem;
}

/* INFO BOX */
.infobox {
  background: var(--highlight);
  border-left: 3px solid var(--accent);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 2px 2px 0;
}

.infobox p {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--ink);
  margin: 0;
}

/* SIDEBAR */
.sidebar {}

.sidebar-block {
  border: 1px solid var(--rule);
  padding: 1.5rem;
  margin-bottom: 2rem;
  background: var(--warm-white);
}

.sidebar-block h3 {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule);
}

.sidebar-block ul {
  list-style: none;
  padding: 0;
}

.sidebar-block ul li {
  border-bottom: 1px solid var(--rule);
  padding: 0.6rem 0;
}

.sidebar-block ul li:last-child { border-bottom: none; }

.sidebar-block ul li a {
  font-family: var(--sans);
  font-size: 0.87rem;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.4;
}

.sidebar-block ul li a:hover { color: var(--accent); }

.sidebar-block p {
  font-family: var(--sans);
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.6;
}

/* BLOG */
.blog-post-list {}

.blog-post-item {
  padding: 2rem 0;
  border-bottom: 1px solid var(--rule);
}

.blog-post-item:first-child { padding-top: 0; }

.blog-post-meta {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.blog-post-item h2 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.6rem;
}

.blog-post-item h2 a {
  color: var(--ink);
  text-decoration: none;
}

.blog-post-item h2 a:hover { color: var(--accent); }

.blog-post-item p {
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.read-more {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}

.read-more:hover { text-decoration: underline; }

/* SINGLE POST */
.post-header {
  padding: 3rem 2rem 2rem;
  border-bottom: 1px solid var(--rule);
  background: var(--warm-white);
}

.post-header-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.post-header h1 {
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.post-meta {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.post-body {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 2rem;
  font-family: var(--sans);
  font-size: 0.97rem;
  color: var(--ink);
  line-height: 1.75;
}

.post-body h2 {
  font-family: var(--serif);
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
  color: var(--ink);
}

.post-body p { margin-bottom: 1.1rem; }

.post-body ul, .post-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.1rem;
}

.post-body li { margin-bottom: 0.4rem; }

/* PAGE HEADER */
.page-header {
  padding: 3rem 2rem 2.5rem;
  border-bottom: 2px solid var(--ink);
  background: var(--warm-white);
}

.page-header-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.page-header h1 {
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.page-header p {
  font-family: var(--sans);
  font-size: 0.97rem;
  color: var(--muted);
  max-width: 520px;
}

/* ENROLLMENT STATUS BANNER */
.enrollment-banner {
  background: var(--accent);
  color: white;
  text-align: center;
  padding: 0.6rem 2rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.enrollment-banner a { color: white; text-decoration: underline; }

/* CONTACT FORM */
.form-group { margin-bottom: 1.25rem; }

label {
  display: block;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

input[type="text"],
input[type="email"],
textarea,
select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: var(--warm-white);
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
}

textarea { min-height: 120px; resize: vertical; }

/* FOOTER */
footer {
  border-top: 2px solid var(--ink);
  background: var(--warm-white);
  padding: 2.5rem 2rem;
  margin-top: 0;
}

.footer-inner {
  max-width: var(--wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.footer-col p, .footer-col a {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  line-height: 1.6;
  display: block;
  margin-bottom: 0.3rem;
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  max-width: var(--wide);
  margin: 1.5rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--muted);
}

/* MOBILE */
@media (max-width: 720px) {
  .masthead-inner {
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem 1.25rem;
  }

  nav { gap: 0; }
  nav a { padding: 0.3rem 0.5rem; font-size: 0.78rem; }

  .hero { padding: 2.5rem 1.25rem 2rem; }
  .hero h1 { font-size: 1.9rem; }

  .page-grid { grid-template-columns: 1fr; gap: 2rem; }
  .two-col { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }

  .section { padding: 2.5rem 1.25rem; }
  .content-wrap { padding: 0 1.25rem; }
  .post-body { padding: 2rem 1.25rem; }

  .btn-secondary { margin-left: 0; margin-top: 0.75rem; display: inline-block; }

  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}
