/* AMDA: the beat before the cue. Two UI colours only (oxblood ground, pale-rose ink). Sora ships at 400 only: never bold. */

/* Tokens: colours, type scale, measure, radii, tape sizes, timing. Use these custom properties, never raw values. */
:root {
  --ox: #6a0c17;
  --rose: #ffe2e6;
  --rose-line: rgba(255, 226, 230, .3);
  --ox-line: rgba(106, 12, 23, .22);
  --display: 'Yellowtail', 'Brush Script MT', cursive;
  --text: 'Sora', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --fs-h1: 1.8125rem;
  --fs-h2: 1.625rem;
  --fs-h3: 1.375rem;
  --fs-cue: 1.1875rem;
  --fs-lead: 1.1875rem;
  --fs-body: 1.0625rem;
  --fs-small: .9375rem;
  --measure: 40rem;
  --gutter: 1.5rem;
  --stretch: clamp(2.5rem, 9vh, 6.5rem);
  --r-photo: 2.25rem;
  --r-panel: 2.25rem;
  --r-pill: 99rem;
  --tape-w: 2.25rem;
  --tape-h: .5625rem;
  --tape-grow: 1rem;
  --quick: .14s;
}
@media (min-width: 48rem) {
  :root {
    --fs-h1: 2.25rem;
    --fs-h2: 1.875rem;
    --fs-h3: 1.5rem;
    --fs-cue: 1.375rem;
    --fs-lead: 1.25rem;
    --fs-body: 1.125rem;
    --r-photo: 3rem;
    --r-panel: 3.25rem;
    --tape-w: 3rem;
    --tape-h: .625rem;
    --tape-grow: 2.5rem;
  }
}

/* Base: oxblood on every screen, Sora for reading, native scroll. Words are never broken mid-word by default; headings and running text may break only when a word cannot fit */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ox); color: var(--rose); -webkit-text-size-adjust: 100%; scroll-padding-top: 1.5rem; scroll-padding-bottom: 4.5rem; }
body { margin: 0; font: 400 var(--fs-body)/1.65 var(--text); font-synthesis: none; }
h1, h2, h3, .lead, .prose, .said, .cue-text, .cue-note, .facts dd { overflow-wrap: break-word; }
img, video, svg { display: block; max-width: 100%; height: auto; }
p, ul, ol, dl, figure, blockquote { margin: 0 0 1.15em; }
::selection { background: var(--rose); color: var(--ox); }

/* Headlines: every h1, h2, h3 is Yellowtail 400, sentence case, never bolded or skewed (h1 36/29, h2 30/26) */
h1, h2, h3 {
  margin: 0 0 .55em;
  font: 400 var(--fs-h2)/1.3 var(--display);
  letter-spacing: .005em;
}
h1 { font-size: var(--fs-h1); }
h2, h3 { text-wrap: balance; }
h3 { font-size: var(--fs-h3); }

/* Emphasis: strong and b are never bold; they get a strip of tape laid under the words */
strong, b { font-weight: 400; box-shadow: inset 0 -.42em 0 var(--rose-line); }

/* Links: underlined always; the underline thickens briefly on hover. Focus rings are rounded and sit outside the control */
a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: .0625em;
  text-underline-offset: .22em;
  transition: text-decoration-thickness var(--quick) ease-out;
}
a:hover { text-decoration-thickness: .17em; }
:focus-visible { outline: .1875rem solid var(--rose); outline-offset: .25rem; }
a:not([class]):focus-visible { border-radius: .5rem; }

/* Helpers: .vh hides text from the eye only; .skip is the skip link */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip {
  position: absolute; left: 1rem; top: -6rem; z-index: 60;
  padding: .7rem 1.25rem;
  border-radius: var(--r-pill);
  background: var(--rose); color: var(--ox);
}
.skip:focus { top: 1rem; }

/* Column: .wrap is the one centred 40rem reading column with phone gutters; .section gives a block its stretch of oxblood */
.wrap {
  width: 100%;
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--stretch); }
.section + .section { padding-top: 0; }

/* Top of every page: .site-head holds .brand (.mark + .brand-name, the college name in reading-size Sora). There is no bar. */
.site-head { padding-block: clamp(1.25rem, 4vh, 2.5rem) clamp(.5rem, 1.5vh, 1rem); }
.brand {
  display: inline-flex; align-items: center; gap: .8rem;
  min-height: 2.75rem;
  font-size: var(--fs-body); line-height: 1.3;
  text-decoration: none;
  border-radius: 1rem;
}
.brand:hover .brand-name { text-decoration: underline; text-decoration-thickness: .1em; text-underline-offset: .22em; }
.mark { flex: none; width: 2.75rem; height: 1.375rem; fill: currentColor; }

/* The tape mark (the site's device): <span class="cue"><span class="tape"></span><span class="cue-num">01</span></span>, always just ahead of the text it cues; .cue-num may hold words ("Take one") */
.cue {
  display: inline-flex; align-items: center; gap: .7rem;
  font: 400 var(--fs-body)/1.2 var(--text);
  font-variant-numeric: tabular-nums;
}
.tape {
  display: block; flex: none;
  width: var(--tape-w); height: var(--tape-h);
  border-radius: var(--r-pill);
  background: currentColor;
  transform: rotate(-4deg);
}

/* The cue list: <ol class="cue-list"> of <li><a class="cue-link"><span class="tape"></span><span class="cue-num">01</span><span class="cue-text">…</span></a><p class="cue-note">preview</p></li>. Home builds its own with id="questions" tabindex="-1"; the layout prints one before the footer on every other page */
.cue-list { list-style: none; margin: 0; padding: 0; }
.cue-list li { margin: 0; }
.cue-link {
  display: flex; align-items: flex-start; gap: .6rem;
  padding-block: .7rem;
  font-size: var(--fs-cue); line-height: 1.3;
  text-decoration: none;
  border-radius: 1rem;
}
.cue-link .tape {
  margin-top: calc(.65em - var(--tape-h) / 2);
  margin-right: var(--tape-grow);
  transition: width var(--quick) ease-out, margin-right var(--quick) ease-out;
}
.cue-link .cue-num { flex: none; width: 2rem; font-variant-numeric: tabular-nums; }
.cue-link .cue-text { min-width: 0; }
.cue-link:hover .tape,
.cue-link:focus-visible .tape,
.cue-link[aria-current] .tape { width: calc(var(--tape-w) + var(--tape-grow)); margin-right: 0; }
.cue-link:hover .cue-text { text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .22em; }
.cue-note { margin: 0 0 .7rem; }
@media (min-width: 48rem) {
  .cue-note { padding-left: calc(var(--tape-w) + var(--tape-grow) + 3.2rem); }
}

/* Page opening: <header class="opening wrap"> with an optional .cue, the one h1 and one .lead sentence; put a .fig (use .fig--pano on a first screen) straight after it */
.opening { padding-block: clamp(.5rem, 2vh, 1.25rem) clamp(1rem, 3vh, 1.75rem); }
.opening .cue { display: flex; margin-bottom: .9rem; }
.opening h1 { margin-bottom: .5em; }
.lead { margin-bottom: 0; font-size: var(--fs-lead); line-height: 1.55; }

/* Photograph: <figure class="fig"><img><figcaption> with very large radii; .fig--pano is the shallow opening crop, .fig--tall a 4:5 inset. Captions sit under the picture, never on it */
.fig { margin: 0 0 1.5rem; }
.fig img, .fig video {
  width: 100%;
  aspect-ratio: 3 / 2; max-height: 70vh;
  object-fit: cover;
  border-radius: var(--r-photo);
  background: var(--rose-line);
}
.fig--pano img, .fig--pano video { aspect-ratio: 16 / 9; max-height: 38vh; }
.fig--tall img, .fig--tall video { aspect-ratio: 4 / 5; max-height: 80vh; }
.fig figcaption { margin-top: .65rem; padding-inline: 1.25rem; font-size: var(--fs-small); line-height: 1.5; }
@media (min-width: 48rem) {
  .fig--pano img, .fig--pano video { aspect-ratio: 21 / 8; }
}

/* Running text: .prose keeps paragraphs, lists and sub-heads on the reading rhythm inside a .wrap */
.prose > * + h2 { margin-top: 2.25rem; }
.prose > * + h3 { margin-top: 1.75rem; }
.prose ul, .prose ol { padding-left: 1.35rem; }
.prose li { margin-bottom: .45em; }
.prose > :last-child { margin-bottom: 0; }

/* The college speaking in the first person: <blockquote class="said">, lead size, with a strip of tape standing down its left side */
.said { position: relative; margin-inline: 0; padding-left: 1.75rem; font-size: var(--fs-lead); line-height: 1.55; }
.said::before {
  content: "";
  position: absolute; left: 0; top: .4em; bottom: .4em;
  width: var(--tape-h);
  border-radius: var(--r-pill);
  background: currentColor;
}
.said > :last-child { margin-bottom: 0; }

/* Rule: <hr class="rule"> is one strip of tape laid flat. Use it rarely, never between every block */
.rule { height: .25rem; margin: 2rem 0; border: 0; border-radius: var(--r-pill); background: var(--rose-line); }

/* Controls: .pill (outlined) and .pill--solid (filled); a toggle or tab fills when aria-pressed or aria-selected is "true"; .pill-row sets them in one row that scrolls sideways on a phone */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 2.75rem;
  padding: .45rem 1.2rem;
  border: .125rem solid currentColor;
  border-radius: var(--r-pill);
  background: transparent; color: inherit;
  font: 400 var(--fs-small)/1.2 var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--quick) ease-out, color var(--quick) ease-out;
}
.pill:hover { text-decoration: underline; text-decoration-thickness: .1em; text-underline-offset: .2em; }
.pill--solid, .pill[aria-pressed="true"], .pill[aria-selected="true"] {
  border-color: var(--rose);
  background: var(--rose); color: var(--ox);
}
.pill-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
@media (max-width: 47.99rem) {
  .pill-row { flex-wrap: nowrap; overflow-x: auto; padding: .45rem .3rem; scrollbar-width: thin; }
  .pill-row .pill { flex: none; white-space: nowrap; }
}

/* Pale panel printed in oxblood: .plate (very large radius) or .plate--capsule (semicircular ends, for one-row plates). Links, pills, tape and focus rings inside turn oxblood by themselves */
.plate {
  padding: clamp(1.5rem, 4vw, 2.25rem) clamp(1.5rem, 5vw, 2.75rem);
  border-radius: var(--r-panel);
  background: var(--rose); color: var(--ox);
}
.plate--capsule { padding: .9rem 1.75rem; border-radius: var(--r-pill); }
.plate > :last-child { margin-bottom: 0; }
.plate :focus-visible { outline-color: var(--ox); }
.plate ::selection { background: var(--ox); color: var(--rose); }
.plate strong, .plate b { box-shadow: inset 0 -.42em 0 var(--ox-line); }
.plate .rule { background: var(--ox-line); }
.plate .pill--solid, .plate .pill[aria-pressed="true"], .plate .pill[aria-selected="true"] {
  border-color: var(--ox);
  background: var(--ox); color: var(--rose);
}

/* Facts: <dl class="facts"> of <div><dt>label</dt><dd>value</dd></div> rows in Sora; each label starts at a small heel dot (the circle of the logo) */
.facts { margin: 0 0 1.5rem; }
.facts > div { display: grid; gap: .1rem 1.25rem; padding-block: .55rem; }
.facts dt { font-size: var(--fs-small); }
.facts dt::before {
  content: "";
  display: inline-block;
  width: .5rem; height: .5rem; margin-right: .6rem;
  border-radius: 50%;
  background: currentColor;
}
.facts dd { margin: 0; min-width: 0; }
@media (min-width: 48rem) {
  .facts > div { grid-template-columns: 13rem 1fr; align-items: baseline; }
}

/* Hand-off before the footer: <nav class="next wrap"> with an h2 and the .cue-list, printed by the layout on every page but home */
.next { padding-block: var(--stretch) 0; }
.next h2 { margin-bottom: .4em; }

/* Footer: .foot is a flat oxblood screen; .foot-col is the tall narrow stack on the right edge of the measure (the reading column on a phone). Its bottom padding keeps the last line clear of the pinned Questions pill. The email (.foot-mail) and the city line (.foot-city) never break */
.foot { padding-block: var(--stretch) 6rem; font-size: 1rem; line-height: 1.5; }
.foot-col { display: grid; gap: 1.25rem; }
.foot-col > * { margin: 0; }
.foot-name { display: grid; gap: .75rem; }
.foot-addr { font-style: normal; text-transform: none; }
.foot-addr span { display: block; }
.foot-city { white-space: nowrap; }
.foot ul { list-style: none; padding: 0; }
.foot li a, .linkish { display: inline-block; padding-block: .625rem; }
.foot-mail {
  display: block;
  font-size: clamp(.8rem, 4vw, .9rem);
  white-space: nowrap;
  overflow-wrap: normal; word-break: normal;
}
.linkish {
  border: 0; padding-inline: 0;
  background: none; color: inherit;
  font: inherit; text-align: left;
  text-decoration: underline; text-decoration-thickness: .0625em; text-underline-offset: .22em;
  cursor: pointer;
}
.linkish:hover { text-decoration-thickness: .17em; }
.foot a:focus-visible, .linkish:focus-visible { border-radius: .5rem; }
@media (min-width: 48rem) {
  .foot { min-height: 100vh; }
  .foot-col { max-width: 22rem; margin-left: auto; }
}

/* Pinned control on its own solid pale ground: .pins (lower left) holds the one small .pin "Questions". On a phone .pins is a slim oxblood band along the bottom edge, the page keeps that much padding under its last line, and the band is gone while the cookie plate is open (.consent-open is set by the script) */
.pins { position: fixed; left: .75rem; bottom: .75rem; z-index: 40; display: flex; gap: .5rem; }
.pin {
  display: inline-flex; align-items: center;
  min-height: 2.75rem;
  padding: .4rem 1.15rem;
  border-radius: var(--r-pill);
  background: var(--rose); color: var(--ox);
  box-shadow: 0 0 0 .1875rem var(--ox);
  font: 400 var(--fs-small)/1 var(--text);
  text-decoration: none;
}
.pin:hover { text-decoration: underline; text-decoration-thickness: .1em; text-underline-offset: .2em; }
.pin:focus-visible { outline-offset: .3125rem; }
.pin[hidden] { display: none; }
@media (max-width: 47.99rem) {
  body { padding-bottom: 3.75rem; }
  .foot { padding-bottom: 2rem; }
  .pins {
    left: 0; right: 0; bottom: 0;
    padding: .5rem .75rem;
    background: var(--ox);
  }
  .pins:has(.pin[hidden]) { display: none; }
  html:has(#consent:not([hidden])) .pins { display: none; }
  .consent-open .pins { display: none; }
}

/* Cookie notice: #consent is a pale-rose oval plate at lower right (on a phone a 15rem corner plate, left-aligned, one sentence with the two .pill choices tight in one row under it) with two equal .pill choices in .consent-acts */
#consent {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 50;
  width: min(26rem, calc(100vw - 2.5rem));
  padding: 1.1rem 2rem 1.25rem;
  border-radius: 3.75rem;
  background: var(--rose); color: var(--ox);
  box-shadow: 0 0 0 .1875rem var(--ox);
  font-size: var(--fs-small); line-height: 1.4;
  text-align: center;
}
#consent[hidden] { display: none; }
#consent p { margin: 0; }
#consent p span { display: block; }
#consent :focus-visible { outline-color: var(--ox); }
.consent-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: .7rem; }
#consent .pill { flex: 1 1 auto; padding-inline: .75rem; font-size: .9rem; white-space: nowrap; }
@media (max-width: 47.99rem) {
  #consent {
    left: auto; right: .5rem; bottom: .5rem;
    width: 15rem;
    max-width: calc(100vw - 1rem);
    padding: .6rem .9rem .7rem;
    border-radius: 1.75rem;
    font-size: .9rem; line-height: 1.3;
    text-align: left;
  }
  #consent p span + span { display: none; }
  .consent-acts { flex-wrap: nowrap; justify-content: flex-start; gap: .25rem; margin-top: .4rem; }
  #consent .pill { flex: 1 1 auto; padding-inline: .5rem; }
}

/* Offer (only when site.promo is set): #promo is a pale-rose pill plate fixed at the top right, clear of the pinned pills and the cookie notice; .is-in is its arrived state */
#promo {
  position: fixed; top: .75rem; right: .75rem; z-index: 45;
  display: flex; align-items: center; gap: .5rem;
  max-width: min(20rem, calc(100vw - 1.5rem));
  padding: .5rem .5rem .5rem 1.4rem;
  border-radius: 2rem;
  background: var(--rose); color: var(--ox);
  box-shadow: 0 0 0 .1875rem var(--ox);
  font-size: var(--fs-small); line-height: 1.35;
  opacity: 0;
  transform: translateY(-140%);
  transition: transform .18s ease-out, opacity .18s ease-out;
}
#promo.is-in { opacity: 1; transform: none; }
#promo[hidden] { display: none; }
#promo p { margin: 0; }
#promo :focus-visible { outline-color: var(--ox); }
#promo button {
  flex: none;
  width: 2.75rem; height: 2.75rem;
  border: .125rem solid currentColor; border-radius: 50%;
  background: transparent; color: inherit;
  font: 400 1.25rem/1 var(--text);
  cursor: pointer;
}
@media (max-width: 63.99rem) {
  .has-promo .site-head { padding-top: 5.5rem; }
}
@media (max-width: 47.99rem) {
  #promo { left: .5rem; right: .5rem; max-width: none; }
}

/* Reveal-on-scroll: nothing enters on this site, so .reveal is always fully visible; the script adds .is-seen once it is on screen, for a page to hook a state change */
.reveal { opacity: 1; transform: none; }

/* Reduced motion: every hover and focus change is instant */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0s !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* Print: the pinned controls and notices stay off the paper */
@media print {
  .pins, #consent, #promo, .skip { display: none; }
}

/* A page never scrolls sideways. */
html, body { overflow-x: clip; }
/* Past a full-HD window the whole page grows with the window - type, gaps and pictures
   together - so a very wide screen (or a page zoomed far out) shows the same composition,
   not a small column of text lost in an enormous picture. */
@media (min-width: 1921px) { html { font-size: calc(100vw / 120); } }
/* What can be pressed in the chrome lies above the page: a huge headline's line box reaching
   into the navigation must not swallow the clicks meant for the links. */
header a, header button, nav a, nav button { position: relative; z-index: 2; }
/* A visitor who asked the system for less motion gets none, whatever a page forgot. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
