/* O'Block Community College — site styles */
:root {
  --ink: #1b1530;
  --plum: #3b1f5c;
  --plum-2: #52307c;
  --gold: #d8a93b;
  --gold-soft: #f3e3b8;
  --paper: #f7f4ee;
  --white: #ffffff;
  --text: #1d1b22;
  --muted: #5c5866;
  --line: #e3ddd2;
  --focus: #2f6fdb;
  --radius: 4px;
  --wrap: 1200px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 100px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--plum); text-underline-offset: 3px; }
a:hover { color: var(--plum-2); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: -9999px; top: 0; background: var(--gold); color: var(--ink); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- Utility bar ---------- */
.utility { background: var(--ink); color: #cfc8dc; font-size: .875rem; }
.utility .wrap { display: flex; justify-content: flex-end; gap: 20px; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }
.utility a { color: #e9e4f2; text-decoration: none; }
.utility a:hover { text-decoration: underline; color: var(--white); }

/* ---------- Header ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 44px; height: auto; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; line-height: 1.1; }
.brand-name small { display: block; font-family: var(--sans); font-weight: 400; font-size: .78rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; margin-top: 3px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav a { display: block; padding: 10px 14px; text-decoration: none; color: var(--ink); font-weight: 600; border-bottom: 3px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { border-bottom-color: var(--gold); color: var(--plum); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; font: 600 .95rem var(--sans); color: var(--ink); cursor: pointer; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,.08); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 8px 16px 16px; }
  .main-nav a { border-bottom: 1px solid var(--line); border-left: 3px solid transparent; }
  .main-nav a:hover, .main-nav a[aria-current="page"] { border-bottom-color: var(--line); border-left-color: var(--gold); }
  .header-actions .btn { display: none; }
}
@media (max-width: 420px) { .brand-name small { display: none; } .brand-name { font-size: 1.05rem; } }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 12px 22px; border-radius: var(--radius); font: 700 1rem var(--sans); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #e6bb55; color: var(--ink); }
.btn-plum { background: var(--plum); color: var(--white); }
.btn-plum:hover { background: var(--plum-2); color: var(--white); }
.btn-ghost { border-color: currentColor; color: var(--white); background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: var(--white); }
.btn-outline { border-color: var(--plum); color: var(--plum); background: transparent; }
.btn-outline:hover { background: var(--plum); color: var(--white); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(78vh, 680px); display: flex; align-items: flex-end; color: var(--white); background: var(--ink) center/cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27,21,48,.25) 0%, rgba(27,21,48,.5) 40%, rgba(27,21,48,.9) 100%); }
.hero .wrap { position: relative; width: 100%; padding-top: 80px; padding-bottom: 56px; }
.hero-card { max-width: 720px; }
.hero .eyebrow { color: var(--gold); }
.hero h1 { color: var(--white); }
.hero p { font-size: 1.2rem; max-width: 600px; color: #eee9f5; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero-short { min-height: 360px; }
.hero-credit { position: absolute; right: 12px; bottom: 8px; font-size: .72rem; color: rgba(255,255,255,.7); z-index: 1; }
.hero-credit a { color: inherit; }

.eyebrow { display: inline-block; font: 700 .8rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--plum); margin-bottom: 12px; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.bg-paper { background: var(--paper); }
.bg-ink { background: var(--ink); color: #e9e4f2; }
.bg-ink h2, .bg-ink h3 { color: var(--white); }
.bg-ink a { color: var(--gold); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.section-head h2 { margin: 0; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 760px; }
.bg-ink .lede { color: #cfc8dc; }

/* ---------- Question block ---------- */
.question { background: var(--plum); color: var(--white); padding: 72px 0; position: relative; overflow: hidden; }
.question::after { content: ""; position: absolute; right: -60px; top: 50%; width: 360px; height: 360px; transform: translateY(-50%); background: url("../img/logo.svg") center/contain no-repeat; opacity: .07; }
.question .wrap { position: relative; z-index: 1; }
.question .eyebrow { color: var(--gold); }
.question blockquote { margin: 0 0 24px; font-family: var(--serif); font-size: clamp(2rem, 5.5vw, 4rem); line-height: 1.1; color: var(--white); }
.question p { max-width: 640px; color: #e6dff0; font-size: 1.15rem; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s; }
a.card:hover { box-shadow: 0 10px 28px rgba(27,21,48,.12); transform: translateY(-2px); color: inherit; }
.card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.card-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: .35em; }
.card-body p { color: var(--muted); margin-bottom: 0; }
.card-meta { font-size: .85rem; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.card .more { margin-top: auto; padding-top: 14px; font-weight: 700; color: var(--plum); }

.tile { display: block; padding: 26px 24px; background: var(--white); border-top: 4px solid var(--gold); text-decoration: none; color: var(--ink); box-shadow: 0 1px 0 var(--line); transition: background .15s; }
.tile:hover { background: var(--gold-soft); color: var(--ink); }
.tile h3 { margin-bottom: 6px; }
.tile p { margin: 0; color: var(--muted); font-size: .98rem; }

/* ---------- Feature (split) ---------- */
.feature { display: grid; grid-template-columns: 1fr; gap: 0; background: var(--ink); color: #e9e4f2; border-radius: var(--radius); overflow: hidden; }
.feature img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.feature-body { padding: 40px 32px; }
.feature-body h2 { color: var(--white); }
.feature-body .eyebrow { color: var(--gold); }
@media (min-width: 860px) { .feature { grid-template-columns: 1.1fr 1fr; } .feature-body { padding: 56px 48px; } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }
.stat { border-left: 3px solid var(--gold); padding-left: 18px; }
.stat strong { display: block; font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--white); margin-bottom: 6px; }
.stat span { color: #cfc8dc; }

/* ---------- Breadcrumb & page header ---------- */
.page-head { background: var(--paper); border-bottom: 1px solid var(--line); padding: 40px 0 36px; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.crumbs span { margin: 0 6px; }

/* ---------- Prose ---------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.two-col { display: grid; gap: 48px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .two-col { grid-template-columns: 2fr 1fr; } }
.aside { background: var(--paper); border-top: 4px solid var(--plum); padding: 24px; align-self: start; }
.aside h3 { font-size: 1.1rem; }
.aside ul { list-style: none; padding: 0; margin: 0; }
.aside li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.aside li:last-child { border-bottom: 0; }

/* ---------- Von Studies ---------- */
.modules { display: grid; gap: 16px; }
.module { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.module code { font: 700 .95rem ui-monospace, "SF Mono", Menlo, monospace; color: var(--plum); }
.module h3 { font-size: 1.15rem; margin-bottom: 4px; }
.module p { margin: 0; color: var(--muted); }
.redacted { background: var(--ink); color: var(--ink); border-radius: 2px; padding: 0 4px; user-select: none; }
@media (max-width: 520px) { .module { grid-template-columns: 1fr; gap: 6px; } }

.pullquote { border-left: 4px solid var(--gold); padding: 8px 0 8px 24px; margin: 32px 0; font-family: var(--serif); font-size: 1.5rem; line-height: 1.35; color: var(--ink); }
.pullquote cite { display: block; font: 600 .95rem var(--sans); color: var(--muted); margin-top: 10px; font-style: normal; }

/* ---------- Faculty directory ---------- */
.filters { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.filters input, .filters select { font: 400 1rem var(--sans); padding: 12px 14px; border: 1px solid #c9c2b6; border-radius: var(--radius); background: var(--white); color: var(--text); }
.filters input { flex: 1 1 260px; }
.filters select { flex: 0 1 280px; }
.result-count { color: var(--muted); font-size: .95rem; margin-bottom: 16px; }
.dept-block { margin-bottom: 44px; }
.dept-block h2 { font-size: 1.5rem; padding-bottom: 10px; border-bottom: 2px solid var(--gold); margin-bottom: 18px; }
.people { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.person { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 22px 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.person .avatar { flex: 0 0 auto; width: 104px; height: 104px; font-size: 1.5rem; }
.avatar { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font: 700 1.1rem var(--sans); color: var(--white); background: var(--plum); }
img.avatar { object-fit: cover; background: var(--line); }
.person strong { display: block; color: var(--ink); line-height: 1.25; }
.person span { display: block; font-size: .88rem; color: var(--muted); margin-top: 2px; line-height: 1.35; }
.person .specialty { color: var(--plum); font-weight: 600; margin-top: 6px; }
.person .qual { font-size: .82rem; }
.leader { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; padding: 28px; background: var(--paper); border-left: 4px solid var(--gold); margin-bottom: 48px; }
.leader .avatar { width: 112px; height: 112px; flex-basis: 112px; font-size: 1.8rem; border: 3px solid var(--gold); }
.aside-portrait { width: 100%; max-width: 220px; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); margin-bottom: 14px; }
.leader h2 { margin: 0 0 4px; font-size: 1.6rem; }
.leader p { margin: 0; color: var(--muted); }
@media (max-width: 520px) { .leader { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 22px; max-width: 760px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.field .hint { display: block; font-weight: 400; font-size: .92rem; color: var(--muted); margin-top: 2px; }
.field input[type="text"], .field input[type="email"], .field textarea, .field select {
  width: 100%; font: 400 1.05rem var(--sans); padding: 12px 14px; border: 1px solid #c9c2b6; border-radius: var(--radius); background: var(--white); color: var(--text);
}
.field textarea { min-height: 260px; resize: vertical; line-height: 1.6; }
.field-row { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--plum); }
.counter { font-size: .9rem; color: var(--muted); text-align: right; margin-top: 6px; }
.counter.over { color: #b3261e; font-weight: 700; }
.the-question { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--plum); margin: 0 0 8px; line-height: 1.15; }
.hidden { display: none !important; }
.notice { padding: 16px 20px; background: var(--gold-soft); border-left: 4px solid var(--gold); border-radius: var(--radius); }

.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 18px; }
.steps li { counter-increment: step; position: relative; padding-left: 56px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 38px; height: 38px; border-radius: 50%; background: var(--plum); color: var(--white); display: grid; place-items: center; font: 700 1rem var(--sans); }
.steps strong { display: block; color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfc8dc; padding: 56px 0 28px; font-size: .95rem; }
.site-footer a { color: #e9e4f2; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--white); }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 40px; }
.site-footer h4 { color: var(--white); font-family: var(--sans); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.footer-brand img { width: 40px; }
.footer-brand span { font-family: var(--serif); color: var(--white); font-size: 1.15rem; }
.footer-base { border-top: 1px solid rgba(255,255,255,.14); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; }
.motto { font-style: italic; color: var(--gold); }

/* ---------- Tables ---------- */
.table-scroll { overflow-x: auto; }

/* ---------- News article ---------- */
.article-meta { color: var(--muted); font-size: .95rem; margin-bottom: 0; }
.students { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 32px 0; }
.student { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius); padding: 24px; text-align: center; }
.student img { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; border: 3px solid var(--gold); }
.student h3 { margin-bottom: 2px; }
.student .pairing { color: var(--muted); font-size: .92rem; margin-bottom: 14px; }
.student blockquote { margin: 0; font-family: var(--serif); font-size: 1.1rem; line-height: 1.4; color: var(--plum); }

/* ---------- Course directory ---------- */
.dept-block h2 a { color: inherit; text-decoration: none; }
.dept-block h2 a:hover { color: var(--plum); text-decoration: underline; }
.courses-table { width: 100%; border-collapse: collapse; font-size: .97rem; background: var(--white); }
.courses-table th { text-align: left; background: var(--ink); color: var(--white); font-weight: 600; padding: 12px 14px; white-space: nowrap; }
.courses-table td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.courses-table tbody tr:nth-child(even) td { background: #fbf9f5; }
.courses-table code { font: 700 .9rem ui-monospace, "SF Mono", Menlo, monospace; color: var(--plum); white-space: nowrap; }
.courses-table strong { color: var(--ink); display: block; }
.course-desc { display: block; color: var(--muted); font-size: .9rem; margin-top: 2px; }
.courses-table tr.withheld strong { background: var(--ink); color: var(--ink); border-radius: 2px; display: inline-block; padding: 0 4px; user-select: none; }
.c-count { color: var(--muted); font-size: .95rem; margin: 0 0 12px; }
@media (max-width: 760px) {
  .courses-table thead { display: none; }
  .courses-table, .courses-table tbody, .courses-table tr, .courses-table td { display: block; width: 100%; }
  .courses-table tr { border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius); margin-bottom: 14px; padding: 6px 0; background: var(--white); }
  .courses-table tbody tr:nth-child(even) td { background: transparent; }
  .courses-table td { border: 0; padding: 6px 16px; display: grid; grid-template-columns: 96px 1fr; gap: 10px; }
  .courses-table td::before { content: attr(data-label); font-weight: 700; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; padding-top: 2px; }
}
.degrees { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.degree { background: var(--white); border-left: 4px solid var(--gold); padding: 18px 20px; box-shadow: 0 1px 0 var(--line); }
.degree h3 { font-size: 1.15rem; margin-bottom: 4px; }
.degree p { margin: 0; color: var(--muted); font-size: .95rem; }
