:root {
  color-scheme: light;
  --white: #fff;
  --paper: #f5f6f3;
  --ink: #191e20;
  --muted: #4e5857;
  --line: #d8ddda;
  --edge: #8b9590;
  --brand: #781c33;
  --brand-dark: #591125;
  --green: #0f4937;
  --width: 76rem;
  font-family: Arial, Helvetica, sans-serif;
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--white); color: var(--ink); }
a { color: inherit; text-underline-offset: .23em; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
.shell { width: min(var(--width), calc(100% - clamp(2.5rem, 9vw, 8rem))); margin-inline: auto; }

.masthead { border-bottom: 1px solid var(--line); background: var(--white); }
.masthead-inner { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand-group { display: flex; align-items: center; gap: 20px; min-width: 0; }
.university-brand { display: flex; align-items: center; flex: 0 0 auto; text-decoration: none; }
.university-brand img { display: block; width: 244px; height: auto; }
.brand { display: flex; align-items: center; min-height: 36px; padding-inline-start: 20px; border-inline-start: 1px solid var(--line); font-size: 1.0625rem; font-weight: 700; white-space: nowrap; text-decoration: none; }
.university-link { font-size: .875rem; color: var(--green); font-weight: 700; text-decoration: none; }
.university-link span { margin-left: .25rem; }
.university-link:hover, .brand:hover { text-decoration: underline; }

.spread { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); column-gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start; padding-block: clamp(3rem, 6.25vw, 5.5rem) 3.25rem; }
.intro h1 { margin: -.065em 0 1.25rem; font-size: clamp(3.125rem, 5.35vw, 5rem); line-height: .98; font-weight: 700; letter-spacing: -.065em; }
.intro-copy { max-width: 35ch; margin: 0 0 2rem; font-size: clamp(1.0625rem, 1.42vw, 1.25rem); color: var(--muted); line-height: 1.55; }
label { display: block; margin-bottom: .625rem; font-size: .875rem; font-weight: 700; }
.question-controls { display: flex; gap: .5rem; }
.question-controls input { flex: 1; min-width: 0; width: 100%; min-height: 56px; padding: .75rem 1rem; border: 1px solid var(--edge); border-radius: 0; background: var(--white); color: var(--ink); font-size: 1rem; }
.question-controls input::placeholder { color: var(--muted); opacity: 1; }
.ask { display: inline-flex; align-items: center; gap: .625rem; min-height: 56px; padding: .75rem 1.125rem; border: 1px solid transparent; border-radius: 0; background: var(--brand); color: var(--white); font-weight: 700; }
.ask:hover, .ask:active { background: var(--brand-dark); }

.examples { margin-top: 1.125rem; }
.examples > span { display: block; margin-bottom: .5rem; color: var(--muted); font-size: .8125rem; }
.example-buttons, .choices { display: flex; flex-wrap: wrap; gap: .375rem .5rem; }
.example-buttons button, .choices button { min-height: 40px; padding: .5rem .6875rem; border: 1px solid var(--line); border-radius: 0; background: var(--white); color: var(--green); font-size: .8125rem; font-weight: 700; }
.example-buttons button:hover, .choices button:hover { border-color: var(--green); background: var(--paper); }

.result { margin-top: 1.5rem; border-inline-start: 4px solid var(--green); padding: 1.125rem 1.125rem .875rem; background: var(--paper); }
.result h2 { margin: 0 0 .5rem; font-size: clamp(1.25rem, 2vw, 1.625rem); line-height: 1.2; font-weight: 700; letter-spacing: -.025em; }
.result p { margin: 0 0 .75rem; color: var(--ink); line-height: 1.5; overflow-wrap: anywhere; }
.source-link { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; gap: .625rem; padding: .75rem 0 .25rem; border-top: 1px solid var(--line); font-size: .8125rem; text-decoration: none; color: var(--green); }
.source-link > span:first-child { color: var(--muted); font-size: .75rem; }
.source-link strong { text-decoration: underline; text-underline-offset: .2em; overflow-wrap: anywhere; }
.choices:not(:empty) { padding-bottom: .25rem; }

.campus { margin: 0; }
.campus img { display: block; width: 100%; height: auto; aspect-ratio: 1.43; object-fit: cover; object-position: center; background: var(--paper); }
.campus figcaption { display: flex; flex-wrap: wrap; column-gap: .75rem; row-gap: .25rem; align-items: baseline; margin-top: .75rem; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.campus figcaption > span { color: var(--ink); font-weight: 700; }
.campus figcaption > a:first-of-type { margin-left: auto; }

.about { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about summary { padding: 1.125rem 0; cursor: pointer; width: fit-content; color: var(--green); font-weight: 700; }
.about p { max-width: 64ch; margin: 0 0 1.125rem; color: var(--muted); line-height: 1.55; }
.site-footer { padding-block: 1.25rem 3rem; color: var(--muted); font-size: .875rem; line-height: 1.5; }
.site-footer p { margin: 0; }
.load-error { color: var(--brand-dark); font-size: .875rem; }

@media (prefers-reduced-motion: no-preference) {
  .intro, .campus {
    animation: arrive 340ms cubic-bezier(.22, 1, .36, 1) backwards;
  }
  .campus { animation-delay: 55ms; }
  :is(.ask, .example-buttons button, .choices button) {
    transition: background-color 140ms ease, border-color 140ms ease, transform 120ms ease-out;
  }
  :is(.ask, .example-buttons button, .choices button):active { transform: translateY(2px); }
}

@keyframes arrive {
  from { opacity: .45; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 940px) {
  .spread { column-gap: clamp(1.5rem, 4vw, 3rem); }
  .campus figcaption > a:first-of-type { margin-left: 0; }
}
@media (max-width: 760px) {
  .shell { width: calc(100% - clamp(2rem, 8.8vw, 4rem)); }
  .masthead-inner { min-height: 68px; }
  .brand-group { gap: 12px; }
  .university-brand img { width: 182px; }
  .brand { padding-inline-start: 12px; min-height: 30px; font-size: .9375rem; }
  .spread { grid-template-columns: 1fr; row-gap: 2rem; padding-block: 2.25rem; }
  .intro h1 { font-size: clamp(2.65rem, 8.8vw, 4.125rem); line-height: 1.01; }
  .intro-copy { margin-bottom: 1.5rem; }
  .example-buttons button, .choices button { min-height: 44px; }
  .campus img { aspect-ratio: 1.54; }
}
@media (max-width: 520px) {
  .brand-group { width: 100%; justify-content: space-between; }
  .university-link { display: none; }
}
@media (max-width: 390px) {
  .university-brand img { width: 172px; }
  .ask { gap: .375rem; padding-inline: .75rem; }
  .question-controls input { padding-inline: .75rem; }
}
@media (forced-colors: active) {
  .ask { border-color: ButtonText; }
  :focus-visible { outline-color: Highlight; }
}
