/* Mereford Academy — a fictional Connecticut prep school for the ICE BREAKER game (docs/MEREFORD.md).
   Plum, parchment and old brass; Libre Caslon for display, Source Sans 3 for everything else. No real school's
   branding; everything here is invented. The site collects nothing: see app.js (every form fails in the browser). */

:root {
  --plum: #4A2545;
  --plum-2: #5E3458;
  --plum-3: #37192f;
  --paper: #F6F1E7;
  --paper-2: #EFE7D6;
  --white: #FFFDF8;
  --brass: #A88A4B;
  --brass-2: #C4A96A;
  --ink: #241019;
  --stone: #6E6A66;
  --line: #DDD3C0;
  --line-2: #C9BBA0;
  --ok: #2E7D5B;
  --bad: #9B2C2C;
  --maxw: 1180px;
  --radius: 3px;
  --display: "Libre Caslon Display", "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 1px 2px rgba(36, 16, 25, .06), 0 10px 28px rgba(36, 16, 25, .08);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--white); }
[hidden] { display: none !important; }
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; color: var(--plum); line-height: 1.12; margin: 0 0 .5rem; letter-spacing: .005em; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.2rem); }
h3 { font-size: 1.28rem; font-family: var(--serif); }
h4 { font-size: 1.05rem; font-family: var(--sans); font-weight: 700; color: var(--ink); }
p { margin: 0 0 1rem; }
a { color: var(--plum); text-decoration: underline; text-decoration-color: var(--brass-2); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--plum); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
ul, ol { padding-left: 1.3rem; }
code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .92em; background: var(--paper-2); padding: 0 .3em; border-radius: 2px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
strong { font-weight: 700; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--stone); }
.small { font-size: .9rem; }
.eyebrow { font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); margin: 0 0 .5rem; }
.lede { font-family: var(--serif); font-size: 1.22rem; line-height: 1.55; color: var(--ink); max-width: 46em; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--plum); color: #fff; padding: .5rem .9rem; z-index: 50; border-radius: var(--radius); }
.skip:focus { top: 8px; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: inherit; font-weight: 700; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; cursor: pointer; padding: .8rem 1.5rem; border-radius: var(--radius); border: 1px solid transparent; line-height: 1.2; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--plum); color: #fff; border-color: var(--plum); }
.btn-primary:hover { background: var(--plum-2); border-color: var(--plum-2); }
.btn-brass { background: var(--brass); color: var(--plum-3); border-color: var(--brass); }
.btn-brass:hover { background: var(--brass-2); border-color: var(--brass-2); }
.btn-ghost { background: transparent; color: var(--plum); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--paper); }
.btn-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-light:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4rem; }
.textlink { font: inherit; background: none; border: 0; padding: 0; color: var(--plum); text-decoration: underline; text-decoration-color: var(--brass-2); text-underline-offset: 3px; cursor: pointer; }
.textlink:hover { text-decoration-color: var(--plum); }
.more { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--plum); text-decoration: none; border-bottom: 2px solid var(--brass); padding-bottom: 2px; }

/* ---- header: utility strip, masthead, mega menu ---- */
.site-head { position: relative; z-index: 20; }
.util { background: var(--plum-3); color: #e9dfe6; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.util ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0; justify-content: flex-end; height: 36px; align-items: stretch; }
.util li { display: flex; }
.util a { color: #e9dfe6; text-decoration: none; display: flex; align-items: center; padding: 0 11px; }
.util a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.mast { background: var(--plum); color: #fff; border-bottom: 3px solid var(--brass); }
.mast-inner { display: flex; align-items: center; gap: 20px; min-height: 88px; }
.brand { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; flex: none; }
.brand img { width: 44px; height: 52px; }
.wordmark { display: flex; flex-direction: column; line-height: 1.1; }
.wordmark .name { font-family: var(--display); font-size: 1.55rem; letter-spacing: .01em; }
.wordmark .est { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-2); margin-top: 4px; }
.menu-toggle { display: none; margin-left: auto; font: inherit; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .45); border-radius: var(--radius); padding: .5rem .9rem; cursor: pointer; }
.site-nav { margin-left: auto; }
.nav { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item > a { color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; padding: 28px 6px 28px 10px; display: block; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -3px; }
.nav-item > a:hover, .nav-item > a[aria-current] { border-bottom-color: var(--brass-2); }
.nav-more { background: none; border: 0; color: var(--brass-2); padding: 6px 6px 6px 0; cursor: pointer; display: flex; align-items: center; }
.nav-more svg { transition: transform .15s; }
.nav-item.is-open .nav-more svg, .nav-more[aria-expanded="true"] svg { transform: rotate(180deg); }
.mega { display: none; position: absolute; top: 100%; left: 0; min-width: 260px; background: var(--white); color: var(--ink); border-top: 3px solid var(--brass); box-shadow: var(--shadow); padding: 10px 0; z-index: 30; }
.nav-item:last-child .mega, .nav-item:nth-last-child(2) .mega { left: auto; right: 0; }
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega a { display: block; padding: 7px 20px; color: var(--ink); text-decoration: none; font-size: .95rem; }
.mega a:hover, .mega a:focus { background: var(--paper); color: var(--plum); }
.nav-item:hover .mega, .nav-item:focus-within .mega, .nav-item.is-open .mega { display: block; }
.js .nav-item:focus-within .mega { display: none; }
.js .nav-item:hover .mega, .js .nav-item.is-open .mega { display: block; }

/* ---- breadcrumbs ---- */
.crumbs { background: var(--paper); border-bottom: 1px solid var(--line); font-size: .84rem; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; min-height: 38px; align-items: center; }
.crumbs li + li::before { content: "/"; color: var(--line-2); margin-right: 6px; }
.crumbs a { color: var(--stone); text-decoration: none; }
.crumbs a:hover { color: var(--plum); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); }

/* ---- hero ---- */
.hero { position: relative; background: var(--plum-3); color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media .ph, .hero-media .ph.r169 { position: absolute; inset: 0; aspect-ratio: auto; width: 100%; height: 100%; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media .hero-shot { opacity: 0; animation: heroFade 18s infinite; }
.hero-media .hero-shot:nth-child(1) { animation-delay: 0s; }
.hero-media .hero-shot:nth-child(2) { animation-delay: 6s; }
.hero-media .hero-shot:nth-child(3) { animation-delay: 12s; }
.hero-media:not(.fade) .hero-shot { opacity: 1; animation: none; }
@keyframes heroFade { 0% { opacity: 0; } 8% { opacity: 1; } 33% { opacity: 1; } 41% { opacity: 0; } 100% { opacity: 0; } }
.hero-media.fade .hero-shot:nth-child(1) { animation-name: heroFadeFirst; }
@keyframes heroFadeFirst { 0% { opacity: 1; } 33% { opacity: 1; } 41% { opacity: 0; } 92% { opacity: 0; } 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero-media .hero-shot { animation: none; } .hero-media .hero-shot:nth-child(1) { opacity: 1; } }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(55, 25, 47, .88) 0%, rgba(55, 25, 47, .55) 55%, rgba(55, 25, 47, .25) 100%); }
.hero-inner { position: relative; min-height: 560px; display: flex; align-items: flex-end; padding-top: 80px; padding-bottom: 72px; }
.hero:not(.has-media) .hero-inner { min-height: 0; padding: 64px 24px; }
.hero-text { max-width: 640px; }
.hero h1, .hero h2 { color: #fff; }
.hero .eyebrow { color: var(--brass-2); }
.hero .lede { color: #f3ecf0; }
.hero.tall .hero-inner { min-height: 680px; }

/* ---- page head ---- */
.page-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 56px 0 32px; align-items: center; }
.page-head.has-media { grid-template-columns: 1.1fr .9fr; }
.page-head h1 { margin-bottom: .8rem; }
.page-head-media .ph { box-shadow: var(--shadow); }

/* ---- sections ---- */
.sec { padding: 64px 0; }
.sec.tight { padding: 36px 0; }
.sec.tint { background: var(--paper); }
.sec.plum { background: var(--plum); color: #fff; }
.sec.plum h2, .sec.plum h3, .sec.plum a { color: #fff; }
.sec.plum .eyebrow { color: var(--brass-2); }
.sec.plum .lede { color: #f3ecf0; }
.sec.line { border-top: 1px solid var(--line); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.sec-head h2 { margin-bottom: 0; }
.sec-head .lede { margin: .6rem 0 0; }
.sec-head .more { flex: none; }
.prose { max-width: 46em; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose li { margin-bottom: .35rem; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 56px; }
.col-aside { font-size: .95rem; }
.col-aside h2, .col-aside h3 { font-size: 1.05rem; font-family: var(--sans); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--stone); margin-top: 0; }
.col-aside .box { background: var(--paper); border-top: 3px solid var(--brass); padding: 22px 24px; margin-bottom: 24px; }
.col-aside .box :last-child { margin-bottom: 0; }

/* ---- stats, facts, quotes, cta ---- */
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; text-align: center; }
.stats li { padding: 8px 0; border-left: 1px solid var(--line-2); }
.stats li:first-child { border-left: 0; }
.stats strong { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 3.6vw, 2.9rem); color: var(--plum); line-height: 1; }
.stats span { display: block; margin-top: 10px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--stone); }
.plum .stats strong { color: var(--brass-2); }
.plum .stats span { color: #e9dfe6; }
.plum .stats li { border-color: rgba(255, 255, 255, .2); }
.stats.cols-4 { grid-template-columns: repeat(4, 1fr); }
.stats.cols-3 { grid-template-columns: repeat(3, 1fr); }
/* a dated figure that is over is hidden by site.js: the four-up band closes up to the three left */
@media (min-width: 601px) { .stats.cols-4:has(> li[hidden]) { grid-template-columns: repeat(3, 1fr); } }
.facts { margin: 0; }
.facts .fact { display: grid; grid-template-columns: 9em 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--stone); padding-top: 3px; }
.facts dd { margin: 0; }
.pull { margin: 0; padding: 0 0 0 28px; border-left: 4px solid var(--brass); }
.pull p { font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.45; font-style: italic; color: var(--plum); margin-bottom: .8rem; }
.pull .cite { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--stone); }
.plum .pull p { color: #fff; }
.plum .pull .cite { color: var(--brass-2); }
.cta .cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { margin-bottom: .3rem; }
.cta p { margin: 0; color: #f3ecf0; max-width: 40em; }
.cta .actions { margin-top: 0; }

/* ---- images ---- */
.ph { display: block; position: relative; overflow: hidden; background: linear-gradient(135deg, var(--paper-2), #e6dcc4 55%, #d9cdb0); border-radius: 2px; }
.ph::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 60%, rgba(74, 37, 69, .18), transparent 65%); }
.ph img { position: relative; width: 100%; height: 100%; object-fit: cover; }
.ph img.is-missing { visibility: hidden; }
.ph.r169 { aspect-ratio: 16 / 9; }
.ph.r11 { aspect-ratio: 1 / 1; }
.ph.r45 { aspect-ratio: 4 / 5; }
.ph.r43 { aspect-ratio: 4 / 3; }
.ph.r32 { aspect-ratio: 3 / 2; }
.ph.r21 { aspect-ratio: 2 / 1; }
.ph.head { border-radius: 2px; }
figure { margin: 0; }
figcaption { font-size: .85rem; color: var(--stone); margin-top: 8px; }

/* ---- cards ---- */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.cards.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cards.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; position: relative; }
.card-media:empty { display: none; }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { margin: 0; }
.card-body h3 a { text-decoration: none; }
.card-body h3 a::after { content: ""; position: absolute; inset: 0; }
.card-body h3 a:hover { text-decoration: underline; }
.card-body p { margin: 0; }
.card-body .meta { font-size: .82rem; color: var(--stone); letter-spacing: .04em; }
.card-body .meta .cat { color: var(--brass); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .74rem; }
.card-body .more { margin-top: auto; padding-top: 12px; align-self: flex-start; border-bottom-color: transparent; }
.card:hover .more { border-bottom-color: var(--brass); }
.tint .card { background: var(--white); }

/* ---- people ---- */
.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px 28px; }
.people.cols-2 { grid-template-columns: repeat(2, 1fr); }
.people.cols-3 { grid-template-columns: repeat(3, 1fr); }
.people.cols-4 { grid-template-columns: repeat(4, 1fr); }
.person { display: flex; flex-direction: column; gap: 12px; }
.person-body h3 { font-size: 1.12rem; margin: 0 0 .15rem; }
.person-body h3 a { text-decoration: none; }
.person-body h3 a:hover { text-decoration: underline; }
.person-body .title { margin: 0; font-size: .92rem; color: var(--ink); }
.person-body .line { margin: 2px 0 0; font-size: .86rem; color: var(--stone); }
.person-body .email { margin: 6px 0 0; font-size: .86rem; color: var(--plum); word-break: break-all; }
.person.wide { flex-direction: row; align-items: flex-start; gap: 24px; }
.person.wide .person-media { flex: none; width: 160px; }
.people.list { grid-template-columns: 1fr; gap: 20px; }
.people.list .person { flex-direction: row; align-items: center; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.people.list .person-media { flex: none; width: 96px; }

/* ---- directory search ---- */
.dir-search { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 14px; align-items: end; background: var(--paper); padding: 22px 24px; border-top: 3px solid var(--brass); margin-bottom: 32px; }
.dir-search label { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--stone); margin-bottom: 6px; }
.dir-search input, .dir-search select { width: 100%; font: inherit; padding: .55rem .7rem; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--white); color: var(--ink); }
.dir-count { font-size: .9rem; color: var(--stone); margin: -16px 0 24px; }
.dir-letter { font-family: var(--display); color: var(--brass); font-size: 1.6rem; border-bottom: 1px solid var(--line); margin: 36px 0 18px; padding-bottom: 4px; }
.dir-letter:first-child { margin-top: 0; }

/* ---- profile ---- */
.profile { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; padding: 56px 0 24px; }
.profile h1 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: .3rem; }
.profile .title { font-family: var(--serif); font-size: 1.12rem; color: var(--ink); margin-bottom: 1.4rem; }
.profile .facts { margin-top: 1.4rem; }

/* ---- accordion ---- */
.acc { border-top: 1px solid var(--line); }
.acc:last-child { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 4px; font-family: var(--serif); font-size: 1.1rem; color: var(--plum); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary svg { flex: none; color: var(--brass); transition: transform .15s; }
.acc[open] summary svg { transform: rotate(180deg); }
.acc-body { padding: 0 4px 18px; }
.acc-body :last-child { margin-bottom: 0; }

/* ---- tables ---- */
.table-wrap { overflow-x: auto; margin: 0 0 1.4rem; }
table.data { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.data caption { text-align: left; font-family: var(--serif); font-size: 1.05rem; color: var(--plum); padding-bottom: 10px; }
table.data th, table.data td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data thead th { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--stone); border-bottom: 2px solid var(--line-2); }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; }
table.data tbody tr:hover { background: var(--paper); }

/* ---- forms and alerts ---- */
.form { max-width: 720px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.field.full { grid-column: 1 / -1; }
.field > label, .field > legend { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--stone); margin-bottom: 7px; }
.field .opt { font-weight: 400; text-transform: none; letter-spacing: 0; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="date"], .field input[type="number"], .field input[type="password"], .field input[type="search"], .field select, .field textarea { width: 100%; font: inherit; padding: .62rem .75rem; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--white); color: var(--ink); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid rgba(168, 138, 75, .45); outline-offset: 0; border-color: var(--plum); }
.field textarea { min-height: 150px; resize: vertical; }
.field .hint { font-size: .85rem; color: var(--stone); margin: 6px 0 0; }
.field.check label, .field .radio { display: flex; align-items: flex-start; gap: 10px; font-size: 1rem; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--ink); }
.field.check input, .field .radio input { margin-top: 5px; }
.field.radios { border: 0; padding: 0; margin: 0; min-width: 0; }
.field.radios .radio { margin-bottom: 6px; }
.form-actions { margin-top: 24px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form-intro { margin-bottom: 1.2rem; }
.form-foot { margin: 0; font-size: .9rem; color: var(--stone); }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: .85rem 1rem; border-radius: var(--radius); margin: 0 0 1.2rem; font-size: .95rem; border: 1px solid var(--line-2); border-left: 4px solid var(--brass); background: var(--paper); }
.alert svg { flex: none; margin-top: 2px; color: var(--stone); }
.alert p { margin: 0; }
.alert-bad { background: #fbeeec; border-color: #e8c7c3; border-left-color: var(--bad); color: #6f1d1d; }
.alert-bad svg { color: var(--bad); }
.alert-bad strong { color: #6f1d1d; }
.alert.note { margin-top: 1rem; }

/* ---- portal / sign-in card ---- */
.signin { max-width: 440px; margin: 56px auto 72px; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--brass); box-shadow: var(--shadow); padding: 36px 36px 30px; }
.signin .crest { width: 72px; height: 85px; margin: 0 auto 18px; }
.signin h1 { font-size: 1.9rem; text-align: center; margin-bottom: .3rem; }
.signin .sub { text-align: center; color: var(--stone); font-size: .95rem; margin-bottom: 1.6rem; }
.signin .form-grid { grid-template-columns: 1fr; }
.signin .form-actions .btn { width: 100%; }
.signin-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 18px; font-size: .92rem; }
.signin .fine { font-size: .8rem; color: var(--stone); text-align: center; margin: 22px 0 0; }
.page.tint { background: var(--paper); }

/* ---- events ---- */
.events { list-style: none; margin: 0; padding: 0; }
.event { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.event time { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--plum); color: #fff; border-radius: var(--radius); padding: 8px 0; line-height: 1; align-self: start; }
.event time .mon { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-2); }
.event time .day { font-family: var(--display); font-size: 1.7rem; margin-top: 4px; }
.event-body .eyebrow { margin-bottom: 2px; font-size: .7rem; }
.event-body h3 { font-size: 1.1rem; margin: 0 0 .2rem; }
.event-body h3 a { text-decoration: none; }
.event-body h3 a:hover { text-decoration: underline; }
.event-body .when { margin: 0; font-size: .9rem; color: var(--stone); }
.event-body .blurb { margin: 6px 0 0; font-size: .95rem; }
.events.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.events.strip .event { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; grid-template-columns: 56px 1fr; gap: 14px; background: var(--white); }

/* ---- filters (site.js) ---- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 28px; }
.filters .lbl { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--stone); margin-right: 6px; }
.chip { font: inherit; font-size: .86rem; font-weight: 600; padding: .4rem .9rem; border: 1px solid var(--line-2); border-radius: 999px; background: var(--white); color: var(--plum); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--plum); color: #fff; border-color: var(--plum); }
.chip:hover { border-color: var(--plum); }
.filter-empty { color: var(--stone); font-style: italic; }

/* ---- steps (site.js, the online application) ---- */
.steps-bar { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.steps-bar .track { flex: 1; height: 6px; background: var(--paper-2); border-radius: 3px; overflow: hidden; }
.steps-bar .track span { display: block; height: 100%; background: var(--brass); width: 20%; transition: width .2s; }
.steps-bar .count { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--stone); white-space: nowrap; }
.step[hidden] { display: none; }

/* ---- 404 / small pages ---- */
.notfound { padding: 96px 0; max-width: 40em; }
.notfound ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 20px; }

/* ---- sitemap ---- */
.sitemap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 40px; }
.sitemap h2 { font-size: 1.1rem; font-family: var(--sans); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--stone); }
.sitemap ul { list-style: none; padding: 0; margin: 0; }
.sitemap li { padding: 4px 0; }

/* ---- campus map ---- */
.map { background: var(--paper); border: 1px solid var(--line); padding: 16px; }
.map img { width: 100%; height: auto; }

/* ---- footer ---- */
.site-foot { background: var(--plum-3); color: #d8cbd3; margin-top: 48px; border-top: 4px solid var(--brass); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px; padding: 56px 0 40px; }
.foot-brand img { width: 56px; height: 66px; }
.foot-name { font-family: var(--display); font-size: 1.45rem; color: #fff; margin: 14px 0 2px; }
.foot-motto { font-family: var(--serif); font-style: italic; color: var(--brass-2); margin-bottom: 1rem; }
.foot-brand .addr { font-size: .9rem; line-height: 1.55; margin-bottom: .6rem; }
.foot-h { font-family: var(--sans); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-2); margin: 6px 0 12px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot nav li { margin-bottom: 6px; font-size: .92rem; }
.site-foot a { color: #e9dfe6; text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 22px 0 30px; }
.foot-small { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: .84rem; margin-bottom: 12px; }
.fine { font-size: .8rem; color: #a99aa4; margin: 0 0 .4rem; }
.fine.fiction { color: #b8aab3; }

/* ---- responsive ---- */
/* The full menu needs about 1150px beside the wordmark; below that the masthead switches to the Menu button. */
@media (max-width: 1160px) {
  .menu-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--plum); border-bottom: 3px solid var(--brass); margin: 0; padding: 8px 0 16px; box-shadow: var(--shadow); }
  .site-nav.is-open { display: block; }
  .nav { flex-direction: column; gap: 0; }
  .nav-item { flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .1); }
  .nav-item > a { padding: 12px 24px; flex: 1; border-bottom: 0; margin: 0; }
  .nav-more { padding: 12px 24px; }
  .mega { position: static; width: 100%; box-shadow: none; border-top: 0; background: var(--plum-3); padding: 6px 0 10px; }
  .mega a { color: #e9dfe6; padding: 7px 36px; }
  .mega a:hover, .mega a:focus { background: rgba(255, 255, 255, .06); color: #fff; }
  .nav-item:hover .mega, .js .nav-item:hover .mega { display: none; }
  .nav-item.is-open .mega, .js .nav-item.is-open .mega { display: block; }
}
@media (max-width: 1040px) {
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .stats li:nth-child(4) { border-left: 0; }
}
@media (max-width: 900px) {
  .util ul { justify-content: flex-start; overflow-x: auto; }
  .page-head.has-media, .two-col, .profile { grid-template-columns: minmax(0, 1fr); }
  .cards.cols-3, .cards.cols-4, .people.cols-3, .people.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .events.strip { grid-template-columns: repeat(2, 1fr); }
  .dir-search { grid-template-columns: 1fr 1fr; }
  .sitemap { grid-template-columns: 1fr 1fr; }
  .hero-inner { min-height: 440px; }
  .sec { padding: 48px 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .cards.cols-2, .cards.cols-3, .cards.cols-4, .people.cols-2, .people.cols-3, .people.cols-4, .events.strip { grid-template-columns: 1fr; }
  .stats, .stats.cols-4, .stats.cols-3 { grid-template-columns: 1fr 1fr; }
  .stats li { border-left: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .form-grid, .dir-search { grid-template-columns: 1fr; }
  .wordmark .name { font-size: 1.25rem; }
  .mast-inner { gap: 12px; }
  .brand { flex: 0 1 auto; min-width: 0; gap: 10px; }
  .wordmark { min-width: 0; }
  .wordmark .est { font-size: .6rem; letter-spacing: .08em; }
  .menu-toggle { flex: none; }
  .brand img { width: 36px; height: 43px; }
  .sitemap { grid-template-columns: 1fr; }
  .signin { padding: 28px 22px; margin: 32px auto 48px; }
  .hero-inner { min-height: 380px; padding-bottom: 48px; }
  .person.wide { flex-direction: column; }
  .facts .fact { grid-template-columns: 1fr; gap: 2px; }
}
