:root {
  --paper: #f6f7f8;
  --panel: #eceef1;
  --ink: #1d2229;
  --muted: #5b6470;
  --line: #d9dde2;
  --accent: #34495e;
  --accent-ink: #ffffff;
  --font: Calibri, Carlito, "Segoe UI", Helvetica, Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.1875rem;
  line-height: 1.55;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 0.5rem 2rem; padding-top: 1rem; padding-bottom: 1rem;
}
.brand {
  font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none;
}
.brand span { font-weight: 400; color: var(--muted); }
.site-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.site-nav a {
  color: var(--muted); text-decoration: none; padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

/* Type */
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.015em; margin: 0; }
h1 { font-size: clamp(2.25rem, 6vw, 4.25rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: 1.375rem; font-weight: 700; }
p { margin: 0 0 1rem; max-width: 62ch; }
.lead { font-size: clamp(1.25rem, 2.2vw, 1.5rem); color: var(--muted); max-width: 48ch; }

/* Layout */
main { display: block; }
.hero { padding: clamp(3.5rem, 10vw, 8rem) 0 clamp(3rem, 7vw, 6rem); }
.hero h1 { max-width: 22ch; margin-bottom: 1.75rem; }
.hero .lead { max-width: 84ch; margin-bottom: 2rem; }
.page-head { padding: clamp(2.5rem, 7vw, 5rem) 0 2rem; }
.page-head h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); margin-bottom: 1rem; }
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; border-top: 1px solid var(--line); }
.section > .wrap > h2 { margin-bottom: 1.75rem; }

/* Buttons */
.button {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  font: inherit; font-weight: 700; text-decoration: none;
  padding: 0.8rem 1.6rem; border: 0; border-radius: 4px; cursor: pointer;
}
.button:hover { background: var(--ink); color: var(--accent-ink); }

/* Home: admission outcomes */
.outcomes {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 0.75rem; grid-template-columns: repeat(2, minmax(0, 1fr));
}
.outcomes li {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 5rem; padding: 1rem 0.75rem;
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem); font-weight: 700; letter-spacing: -0.01em;
  color: var(--accent);
}
@media (min-width: 48rem) { .outcomes { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; } }
.note { color: var(--muted); font-size: 1rem; margin-top: 1.25rem; }

/* Ruled rows (services, programs) */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rows li {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.35rem 2rem;
  padding: 1.5rem 0; border-bottom: 1px solid var(--line);
}
.rows p { margin: 0; color: var(--muted); }
.rows a.row-link { color: inherit; text-decoration: none; }
.rows a.row-link:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.steps { counter-reset: step; }
.steps li { counter-increment: step; }
.steps h3::before {
  content: counter(step) ".";
  display: inline-block; min-width: 2rem; color: var(--muted); font-weight: 400;
}
@media (min-width: 46rem) {
  .rows li { grid-template-columns: 16rem minmax(0, 1fr); align-items: baseline; }
}

/* About */
.about-grid { display: grid; gap: 2rem; }
.founder { display: flex; align-items: center; gap: 1.25rem; }
.portrait {
  position: relative; width: 9rem; height: 9rem; flex: none;
  border-radius: 50%; background: var(--panel); overflow: hidden;
  display: grid; place-items: center; color: var(--muted); font-size: 2rem; font-weight: 700;
}
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.founder p { margin: 0; }
.founder .name { font-size: 1.375rem; font-weight: 700; }
.founder .role { color: var(--muted); }
@media (min-width: 52rem) {
  .about-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 4rem; }
}

/* Resources */
.link-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.link-list li { border-bottom: 1px solid var(--line); }
.link-list a {
  display: block; padding: 1rem 0; font-size: 1.3rem; font-weight: 700;
  text-decoration: none; color: var(--ink);
}
.link-list a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }

/* Form */
.form { display: grid; gap: 1.25rem; max-width: 40rem; }
.form .pair { display: grid; gap: 1.25rem; }
@media (min-width: 40rem) { .form .pair { grid-template-columns: 1fr 1fr; } }
label { display: block; font-weight: 700; margin-bottom: 0.35rem; }
input, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid #aab1ba; border-radius: 4px; padding: 0.7rem 0.8rem;
}
textarea { min-height: 9rem; resize: vertical; }
.hidden { position: absolute; left: -9999px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0 3rem; color: var(--muted); font-size: 1rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; }
.site-footer a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

.brand { display: inline-flex; align-items: center; gap: 0.75rem; }
.brand img { display: block; width: 2.75rem; height: 2.75rem; }

/* Mobile header: logo on its own line, nav as one evenly spaced row */
@media (max-width: 40rem) {
  .site-header .wrap { flex-direction: column; align-items: stretch; gap: 0.25rem; padding-top: 0.75rem; padding-bottom: 0; }
  .brand { font-size: 1.3rem; }
  .brand img { width: 2.25rem; height: 2.25rem; }
  .site-nav { flex-wrap: nowrap; justify-content: space-between; gap: 0; margin: 0 -0.25rem; }
  .site-nav a { font-size: 0.95rem; padding: 0.7rem 0.25rem; border-bottom-width: 3px; white-space: nowrap; }
}
@media (max-width: 22rem) {
  .site-nav a { font-size: 0.85rem; }
  .brand span { display: none; }
}

@media (max-width: 40rem) {
  .hero h1 { max-width: none; font-size: clamp(2rem, 9vw, 2.6rem); }
  .site-header { position: sticky; top: 0; z-index: 10; }
}
