/* ==========================================================================
   Campus on Tap: site styles
   Cream paper and one campus's colours. The values below are Cornell's; every page sets its own
   campus's palette over them (see lib/palette.js), and the drawings recolour themselves.
   ========================================================================== */

:root {
  --paper: #fbf8f2;
  --paper-2: #f4ede3;
  --card: #f1e7dd;
  --white: #fffdf9;
  --line: #e6dad1;
  --line-strong: #d6c4b6;
  --ink: #33221e;
  --ink-2: #5c4a44;
  --muted: #75645e;
  /* Headings, buttons and line work */
  --accent: #9b101b;
  --accent-deep: #7c0c16;
  /* The logo's second colour (its brain, cherry and "ON TAP"): emphasis and the bright bits of drawings */
  --pop: #9b101b;
  --pop-deep: #7c0c16;
  --pop-mid: #e9b8ae;
  --pop-tint: #f6dcd2;
  /* Whatever's in the glass */
  --liquid: #9b101b;
  /* The black hole drawing */
  --glow: #fff4e6;
  --flare: #d98b80;
  --halo: #e9a596;
  --night: #4a2620;
  --night-2: #2a1612;
  --night-3: #160c0a;
  --void: #0b0605;
  --cream-soft: color-mix(in srgb, var(--paper) 82%, transparent);

  --serif: "Cormorant Garamond", Garamond, Baskerville, "Times New Roman", serif;
  --sans: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;

  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1: clamp(1.125rem, 1.07rem + 0.3vw, 1.3rem);
  --step-2: clamp(1.5rem, 1.33rem + 0.8vw, 2rem);
  --step-3: clamp(2rem, 1.6rem + 1.8vw, 3rem);
  --step-4: clamp(2.6rem, 1.85rem + 3.4vw, 4.6rem);
  --step-5: clamp(3.1rem, 1.9rem + 5.6vw, 6.75rem);

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --max: 1200px;
  --radius: 2px;
  --header-h: 4.5rem;
  --shadow-card: 0 1px 0 color-mix(in srgb, var(--ink) 4%, transparent), 0 28px 50px -28px color-mix(in srgb, var(--ink) 30%, transparent);

  color-scheme: light;
}

/* Base ------------------------------------------------------------------ */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-0) / 1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

a,
button,
summary,
.chip {
  -webkit-tap-highlight-color: color-mix(in srgb, var(--accent) 12%, transparent);
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

@media (hover: hover) {
  a:hover {
    color: var(--accent);
  }
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--accent);
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 em,
h2 em {
  color: var(--pop);
  font-weight: 500;
}

p {
  margin: 0 0 1.1em;
  text-wrap: pretty;
}

::selection {
  background: var(--accent);
  color: var(--paper);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
  color: var(--paper);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Shared type ----------------------------------------------------------- */

/* Section label with a rule, echoing the "— ON TAP —" line in the logo */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 1.25rem;
  color: var(--accent);
  font: 700 0.92rem / 1.3 var(--serif);
  font-variant-numeric: lining-nums;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.eyebrow::before,
.eyebrow--center::after {
  content: "";
  flex: none;
  width: 2.25rem;
  height: 1px;
  background: var(--pop);
}

.eyebrow--center {
  justify-content: center;
}

.lead {
  color: var(--ink);
  font: 500 var(--step-2) / 1.32 var(--serif);
}

.kicker {
  margin: 0;
  color: var(--muted);
  font: 600 0.72rem / 1.3 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Buttons & links ------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 3.5rem;
  padding: 0 1.6rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--paper);
  font: 600 0.8rem / 1 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}

@media (hover: hover) {
  .button:hover {
    border-color: var(--accent-deep);
    background: var(--accent-deep);
    color: var(--paper);
  }

  .button--ghost:hover {
    background: var(--accent);
    color: var(--paper);
  }
}

.button:active {
  transform: translateY(1px);
}

.button--small {
  min-height: 2.6rem;
  padding: 0 1.1rem;
  font-size: 0.72rem;
}

.button--ghost {
  background: transparent;
  color: var(--accent);
}

.link-arrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.55rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid currentColor;
  color: var(--accent);
  font: 600 0.8rem / 1 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}

.link-arrow::after {
  content: "→";
  transition: transform 0.2s;
}

/* Stretches the tap area to about 44px tall without moving anything */
.link-arrow::before {
  content: "";
  position: absolute;
  inset: -0.75rem -0.25rem;
}

.link-arrow:hover::after {
  transform: translateX(4px);
}

/* Header ---------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-top: 4px solid var(--accent);
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  -webkit-backdrop-filter: saturate(1.3) blur(10px);
  backdrop-filter: saturate(1.3) blur(10px);
  transition: border-color 0.25s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

/* Campus on Tap pages: every campus's colours across the top */
.site-header--hub::before {
  content: "";
  position: absolute;
  inset: -4px 0 auto;
  height: 4px;
  background: var(--stripe);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--accent);
  text-decoration: none;
}

.brand:hover {
  color: var(--accent);
}

.brand__mark {
  width: 34px;
}

/* HTML version of the logo's wordmark: the campus name over — ON TAP — */
.brand__word {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 5.6rem;
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

.brand__name {
  padding-left: 0.16em;
  font-size: 1.32rem;
  letter-spacing: 0.16em;
  text-align: center;
}

.brand__ontap {
  display: flex;
  align-items: center;
  gap: 0.45em;
  color: var(--pop);
  margin-top: 0.3rem;
  font-size: 0.6rem;
  letter-spacing: 0.4em;
}

.brand__ontap::before,
.brand__ontap::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
}

.brand__ontap span {
  margin-right: -0.4em;
}

.site-nav {
  display: none;
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
}

.site-nav a {
  padding: 0.5rem 0;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-size 0.25s, color 0.2s;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background-size: 100% 1px;
  color: var(--accent);
}

@media (min-width: 1024px) {
  .site-nav {
    display: flex;
  }
}

/* Hero ------------------------------------------------------------------ */

.hero {
  position: relative;
  padding: clamp(2rem, 5vw, 4.5rem) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}

.hero::before {
  content: "";
  display: none;
  position: absolute;
  top: 50%;
  right: -8%;
  width: min(64vw, 860px);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 7.5%, transparent), transparent);
  transform: translateY(-50%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(3rem, 1.6rem + 5vw, 6rem);
  line-height: 0.96;
  letter-spacing: -0.015em;
}

.hero__lead {
  max-width: 35rem;
  margin-bottom: 2.25rem;
  color: var(--ink-2);
  font-size: var(--step-1);
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
}

.hero__actions .link-arrow {
  align-self: center;
}

.hero__art {
  display: flex;
  justify-content: center;
  order: -1;
}

@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  }

  .hero__art {
    order: 0;
  }

  .hero::before {
    display: block;
  }
}

/* The coaster: logo mark on a round beer mat with a turning ring of text */
.coaster {
  position: relative;
  width: min(100%, 17rem);
  aspect-ratio: 1;
}

.coaster__disc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #fffefb, #f6efe4 72%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 34px 60px -26px color-mix(in srgb, var(--ink) 38%, transparent),
    0 10px 20px -10px color-mix(in srgb, var(--ink) 18%, transparent);
}

.coaster__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  animation: spin 120s linear infinite;
}

.coaster__ring text {
  fill: var(--accent);
  font: 700 15.5px var(--serif);
}

.coaster__line {
  fill: none;
  stroke: var(--accent);
}

.coaster__star {
  fill: var(--pop);
}

.coaster__mark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 49%;
  transform: translate(-50%, -51%);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 600px) {
  .coaster {
    width: min(100%, 22rem);
  }
}

@media (min-width: 960px) {
  .coaster {
    width: min(100%, 31rem);
  }
}

/* The Campus on Tap homepage: one coaster per campus, scattered like on a bar table */
.coasters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.5rem, 2.5vw, 1.5rem);
  width: min(100%, 25rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.coasters__item:nth-child(4n + 1) {
  transform: rotate(-7deg) translate(4%, 6%);
}

.coasters__item:nth-child(4n + 2) {
  transform: rotate(5deg) translate(-2%, -4%);
}

.coasters__item:nth-child(4n + 3) {
  transform: rotate(4deg) translate(6%, 2%);
}

.coasters__item:nth-child(4n) {
  transform: rotate(-4deg) translate(-4%, -6%);
}

.coasters .coaster {
  display: block;
  width: 100%;
  transition: transform 0.3s cubic-bezier(0.3, 1.4, 0.6, 1);
}

.coasters .coaster__ring text {
  font-size: 19px;
}

@media (hover: hover) {
  .coasters .coaster:hover {
    transform: scale(1.05) rotate(-4deg);
  }
}

@media (min-width: 960px) {
  .coasters {
    width: min(100%, 31rem);
  }
}

/* Signup form ----------------------------------------------------------- */

.signup {
  position: relative;
  max-width: 34rem;
}

.signup__row {
  display: flex;
  gap: 0.5rem;
}

.signup__input {
  flex: 1;
  min-width: 0;
  height: 3.5rem;
  padding: 0 1.1rem;
  border: 1px solid var(--muted);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: 400 1.05rem var(--sans);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.signup__input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.signup__input:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.signup__input[aria-invalid="true"] {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.signup__button[aria-disabled="true"] {
  cursor: progress;
  opacity: 0.8;
}

.signup__note {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.signup__status,
.form-status {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.signup__status:empty,
.form-status:empty {
  display: none;
}

.signup__status[data-tone="error"],
.form-status[data-tone="error"] {
  margin-top: 0.75rem;
  color: var(--accent);
  font-weight: 600;
}

.signup__status[data-tone="success"],
.form-status[data-tone="success"] {
  padding: 1.1rem 1.25rem;
  border-left: 3px solid var(--accent);
  background: var(--card);
  color: var(--ink);
  font-weight: 500;
}

.signup__status:focus,
.form-status:focus {
  outline: none;
}

.signup[data-state="success"] .signup__row,
.signup[data-state="success"] .signup__note {
  display: none;
}

/* Honeypot: hidden from people, tempting to bots */
.signup__trap,
.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 480px) {
  .signup__row {
    flex-direction: column;
  }

  .signup__input,
  .signup__button {
    flex: none;
    width: 100%;
  }
}

/* Variant for the coloured "last call" band */
.signup--on-accent .signup__input {
  border-color: color-mix(in srgb, var(--paper) 70%, transparent);
  background: color-mix(in srgb, var(--paper) 8%, transparent);
  color: var(--paper);
}

.signup--on-accent .signup__input::placeholder {
  color: var(--cream-soft);
}

.signup--on-accent .signup__input:focus {
  border-color: var(--paper);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--paper) 30%, transparent);
}

.signup--on-accent .signup__input[aria-invalid="true"] {
  border-color: var(--paper);
  box-shadow: 0 0 0 1px var(--paper);
}

.signup--on-accent .button {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--accent);
}

@media (hover: hover) {
  .signup--on-accent .button:hover {
    border-color: var(--white);
    background: var(--white);
    color: var(--accent-deep);
  }
}

.signup--on-accent .signup__note {
  color: var(--cream-soft);
}

.signup--on-accent .signup__status[data-tone="error"] {
  color: var(--paper);
}

.signup--on-accent .signup__status[data-tone="success"] {
  border-left-color: var(--paper);
  background: color-mix(in srgb, var(--paper) 12%, transparent);
  color: var(--paper);
}

.signup--on-accent :focus-visible {
  outline-color: var(--paper);
}

/* Sections -------------------------------------------------------------- */

.section {
  padding: clamp(4.5rem, 9vw, 8rem) 0;
}

/* Every other section gets the darker paper, so sections can be added or removed freely */
main > .section:nth-child(even of .section) {
  background: var(--paper-2);
}

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head h2 {
  font-size: var(--step-4);
}

.section-head > p:not(.eyebrow) {
  margin: 1.25rem 0 0;
  color: var(--ink-2);
  font-size: var(--step-1);
}

/* Different minds. Shared curiosity. */
.community__grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
}

.community h2 {
  margin-bottom: 1.75rem;
  font-size: var(--step-4);
}

.community__copy > p:not(.eyebrow, .lead) {
  max-width: 36rem;
  color: var(--ink-2);
}

.community__art {
  justify-self: center;
  width: min(100%, 36rem);
}

.community-art {
  width: 100%;
  height: auto;
}

@media (min-width: 960px) {
  .community__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
}

/* How an evening goes */
.rounds {
  display: grid;
  gap: 2.75rem 3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.round {
  display: flex;
  flex-direction: column;
}

.round-art {
  width: min(100%, 13rem);
  margin-bottom: 1.4rem;
}

.round__num {
  margin: 0 0 0.45rem;
  color: var(--accent);
}

.round h3 {
  margin-bottom: 0.6rem;
  color: var(--ink);
  font-size: clamp(1.6rem, 1.45rem + 0.5vw, 1.85rem);
  line-height: 1.1;
}

.round p:not(.kicker) {
  margin: 0;
  color: var(--ink-2);
}

@media (min-width: 720px) {
  .rounds {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .rounds {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2.25rem;
  }
}

/* Pull the tap: SVG beer tap that pours example topics */
.pour__grid {
  display: grid;
  grid-template-areas: "head" "art" "play";
  gap: clamp(1.75rem, 4vw, 2.5rem);
}

.pour__head {
  grid-area: head;
}

/* The pour button sits right under the tap, so the animation stays on screen on phones */
.pour__art {
  display: flex;
  flex-direction: column;
  grid-area: art;
  align-items: center;
  gap: 1.5rem;
}

.pour__play {
  grid-area: play;
}

.pour h2 {
  margin-bottom: 1.25rem;
  font-size: var(--step-4);
}

.pour__head > p:not(.eyebrow) {
  max-width: 34rem;
  margin: 0;
  color: var(--ink-2);
  font-size: var(--step-1);
}

@media (min-width: 900px) {
  .pour__grid {
    grid-template-areas: "art head" "art play";
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 2rem clamp(3rem, 7vw, 6rem);
  }

  .pour__head {
    align-self: end;
  }

  .pour__art {
    align-self: center;
  }
}

.tap {
  width: min(100%, 12.5rem);
  height: auto;
  overflow: visible;
  -webkit-tap-highlight-color: transparent;
}

.tap.is-ready {
  cursor: pointer;
}

/* Invisible grab area over the handle, so it can be dragged down like a real tap */
.tap__grip {
  fill: transparent;
  cursor: grab;
  touch-action: none;
}

.tap.is-dragging,
.tap.is-dragging .tap__grip {
  cursor: grabbing;
}

.tap__star {
  fill: var(--pop);
}

.tap__line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
}

.tap__part {
  fill: var(--white);
  stroke: var(--accent);
  stroke-width: 2;
}

.tap__grate {
  stroke: var(--accent);
  stroke-width: 1.25;
  stroke-linecap: round;
}

.tap__badge {
  fill: var(--paper);
  stroke: var(--accent);
  stroke-width: 1.25;
}

.tap__collar {
  fill: var(--accent);
}

.tap__handle-body {
  fill: var(--pop);
}

.tap__beer,
.tap__stream {
  fill: var(--liquid);
}

.tap__stream {
  transform: scaleY(0);
  transform-origin: 138px 157px;
}

.tap__glass-body {
  fill: rgba(255, 255, 255, 0.6);
}

.tap__glass-edge {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linejoin: round;
}

.tap__glass-shine {
  fill: none;
  stroke: rgba(255, 255, 255, 0.7);
  stroke-width: 3;
  stroke-linecap: round;
}

.tap__foam {
  fill: var(--white);
  stroke: var(--accent);
  stroke-width: 1;
}

.tap__bubble {
  fill: rgba(255, 253, 249, 0.8);
  animation: tap-bubble 2.8s ease-in infinite;
}

.tap__bubble:nth-of-type(2) {
  animation-delay: 0.7s;
}

.tap__bubble:nth-of-type(3) {
  animation-delay: 1.4s;
}

.tap__bubble:nth-of-type(4) {
  animation-delay: 2.1s;
}

.tap__medallion {
  fill: var(--white);
}

.tap__mark {
  fill: var(--pop);
  font: italic 700 15px var(--serif);
}

.tap__handle,
.tap__handle-hint {
  transform-origin: 118px 121px;
}

.tap__handle-hint {
  transition: transform 0.25s ease;
}

@media (hover: hover) {
  .tap.is-ready:hover .tap__handle-hint {
    transform: rotate(6deg);
  }
}

@keyframes tap-bubble {
  0% {
    opacity: 0;
    transform: translateY(0);
  }

  20% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(-72px);
  }
}

@media (min-width: 600px) {
  .tap {
    width: min(100%, 17rem);
  }
}

@media (min-width: 900px) {
  .tap {
    width: min(100%, 21rem);
  }
}

.pour-card {
  display: grid;
  gap: 1.1rem 1.75rem;
  align-items: center;
  min-height: 13rem;
  margin-bottom: 1.5rem;
  padding: clamp(1.4rem, 3.5vw, 2rem);
  border: 1px solid var(--line-strong);
  border-top: 4px solid var(--accent);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.pour-card__art {
  justify-self: center;
  width: clamp(7rem, 22vw, 8.75rem);
}

.pour-card__art .topic-art {
  width: 100%;
  height: auto;
}

.topic-art[hidden] {
  display: none;
}

@media (min-width: 560px) {
  .pour-card {
    grid-template-columns: auto minmax(0, 1fr);
  }
}

.pour-card__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
}

.pour-card .kicker {
  color: var(--accent);
}

.pour-card__count {
  margin: 0;
  color: var(--muted);
  font: italic 600 1.05rem / 1 var(--serif);
  font-variant-numeric: lining-nums;
  white-space: nowrap;
}

.pour-card__title {
  margin-bottom: 0.6rem;
  color: var(--ink);
  font-size: clamp(1.75rem, 1.5rem + 1.1vw, 2.4rem);
}

.pour-card__teaser {
  margin: 0;
  color: var(--ink-2);
}

.pour__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
}

.pour__actions .link-arrow {
  align-self: center;
}

.pour__art .button[aria-disabled="true"] {
  cursor: progress;
  opacity: 0.85;
}

/* Get involved cards */
.cards {
  display: grid;
  gap: 1.25rem;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--white);
}

.card h3 {
  font-size: clamp(2rem, 1.7rem + 1vw, 2.5rem);
}

.card p:not(.kicker) {
  margin: 0 0 0.75rem;
  color: var(--ink-2);
}

.card .link-arrow {
  margin-top: auto;
}

.card--feature {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--paper);
}

.card--feature h3,
.card--feature p:not(.kicker),
.card--feature .link-arrow,
.card--feature .link-arrow:hover {
  color: var(--paper);
}

.card--feature .kicker {
  color: var(--cream-soft);
}

.card--feature :focus-visible {
  outline-color: var(--paper);
}

@media (min-width: 900px) {
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Ticket for the next gathering (sits in the red band) */
.ticket {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  border: 1px solid var(--accent);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transform: rotate(-1.2deg);
}

.ticket__main {
  padding: clamp(1.5rem, 4vw, 2.25rem);
}

.ticket__title {
  margin: 0.6rem 0 1.5rem;
  color: var(--accent);
  font: 600 clamp(2rem, 1.6rem + 1.5vw, 2.75rem) / 1.02 var(--serif);
}

.ticket dl {
  margin: 0;
}

.ticket dl div {
  display: grid;
  grid-template-columns: 4.75rem 1fr;
  gap: 1rem;
  padding: 0.6rem 0;
  border-top: 1px dashed var(--line-strong);
}

.ticket dt {
  padding-top: 0.15rem;
  color: var(--muted);
  font: 600 0.72rem / 1.6 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ticket dd {
  margin: 0;
  line-height: 1.5;
}

.ticket__stub {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.75rem 1.1rem;
  border-left: 2px dashed color-mix(in srgb, var(--accent) 40%, transparent);
  background: var(--card);
}

.ticket__admit,
.ticket__no {
  color: var(--accent);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.ticket__admit {
  font: 700 0.95rem / 1 var(--serif);
  letter-spacing: 0.4em;
  text-transform: uppercase;
}

.ticket__no {
  font: italic 600 1.15rem / 1 var(--serif);
  font-variant-numeric: lining-nums;
}

@media (max-width: 560px) {
  .ticket {
    grid-template-columns: 1fr;
    transform: none;
  }

  .ticket__stub {
    flex-direction: row;
    padding: 1rem 1.5rem;
    border-top: 2px dashed color-mix(in srgb, var(--accent) 40%, transparent);
    border-left: 0;
  }

  .ticket__admit,
  .ticket__no {
    writing-mode: horizontal-tb;
    transform: none;
  }

  .ticket__admit {
    letter-spacing: 0.3em;
  }
}

/* FAQ */
.faq__grid {
  display: grid;
  gap: 2.5rem;
}

.faq .section-head {
  margin-bottom: 0;
}

.faq .section-head a {
  color: var(--accent);
  font-weight: 600;
}

.faq__list details {
  border-top: 1px solid var(--line-strong);
}

.faq__list details:last-child {
  border-bottom: 1px solid var(--line-strong);
}

.faq__list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0;
  color: var(--ink);
  font: 600 clamp(1.3rem, 1.2rem + 0.4vw, 1.55rem) / 1.25 var(--serif);
  list-style: none;
  cursor: pointer;
}

.faq__list summary::-webkit-details-marker {
  display: none;
}

.faq__list summary::after {
  content: "+";
  flex: none;
  color: var(--accent);
  font: 300 1.75rem / 1 var(--sans);
  transition: transform 0.2s;
}

@media (hover: hover) {
  .faq__list summary:hover {
    color: var(--accent);
  }
}

.faq__list details[open] summary::after {
  transform: rotate(45deg);
}

.faq__list details p {
  max-width: 40rem;
  margin: -0.25rem 0 1.5rem;
  color: var(--ink-2);
}

.faq__list details a {
  color: var(--accent);
}

@media (min-width: 960px) {
  .faq__grid {
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
    gap: 5rem;
    align-items: start;
  }

  .faq .section-head {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
}

/* Be part of what's next: red signup band with the ticket */
.last-call {
  position: relative;
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
  overflow: hidden;
  background: var(--accent);
  color: var(--paper);
}

.last-call::before {
  content: "";
  position: absolute;
  inset: auto auto -40% -15%;
  width: min(80vw, 760px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.08), transparent);
  pointer-events: none;
}

.last-call__grid {
  position: relative;
  display: grid;
  gap: clamp(3rem, 7vw, 5.5rem);
  align-items: center;
}

.last-call .eyebrow,
.last-call h2 {
  color: var(--paper);
}

.last-call .eyebrow::before {
  background: currentColor;
}

.last-call h2 {
  margin-bottom: 1.1rem;
  font-size: var(--step-4);
}

.last-call__copy > p:not(.eyebrow) {
  max-width: 34rem;
  margin-bottom: 2rem;
  color: var(--cream-soft);
  font-size: var(--step-1);
}

.last-call .link-arrow,
.last-call .link-arrow:hover {
  color: var(--paper);
}

.last-call__more {
  margin-top: 1.75rem;
}

.last-call .ticket {
  justify-self: center;
  width: 100%;
  max-width: 30rem;
  color: var(--ink);
  border-color: var(--white);
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.45);
}

@media (min-width: 960px) {
  .last-call__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
}

/* Illustrations: shared ink styles ----------------------------------------- */

.topic-art,
.community-art,
.round-art {
  display: block;
  overflow: visible;
}

.ill-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ill-thin {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ill-medallion {
  fill: var(--card);
}

.ill-rim {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
}

.ill-rim--soft {
  stroke-width: 1.25;
  opacity: 0.55;
}

/* Black hole */
.bh-star {
  fill: var(--glow);
  animation: twinkle 3.2s ease-in-out infinite;
}

.bh-disk {
  fill: none;
  stroke: url(#bh-disk);
  stroke-width: 7;
  stroke-linecap: round;
}

.bh-disk--back {
  opacity: 0.8;
}

.bh-lens {
  fill: none;
  stroke: url(#bh-disk);
  stroke-width: 3;
  opacity: 0.9;
}

.bh-horizon {
  fill: var(--void);
}

.bh-photon {
  fill: none;
  stroke: var(--glow);
  stroke-width: 1.2;
  opacity: 0.85;
}

.bh-swirl {
  fill: none;
  stroke: color-mix(in srgb, var(--glow) 65%, transparent);
  stroke-width: 2;
  stroke-dasharray: 3 9;
  stroke-linecap: round;
  animation: dash-flow 1.8s linear infinite;
}

.bh-traveler {
  fill: var(--glow);
}

.bh-stop-deep {
  stop-color: var(--pop-deep);
}

.bh-stop-mid {
  stop-color: var(--flare);
}

.bh-stop-glow {
  stop-color: var(--glow);
}

.bh-night-1 {
  stop-color: var(--night);
}

.bh-night-2 {
  stop-color: var(--night-2);
}

.bh-night-3 {
  stop-color: var(--night-3);
}

.bh-orbit {
  animation: bh-orbit 6s cubic-bezier(0.45, 0, 0.75, 0.6) infinite;
}

.bh-fall {
  opacity: 0;
  animation: bh-fall 6s cubic-bezier(0.45, 0, 0.75, 0.6) infinite;
}

@keyframes bh-orbit {
  0% {
    transform: rotate(-12deg);
  }

  72%,
  100% {
    transform: rotate(172deg);
  }
}

@keyframes bh-fall {
  0% {
    opacity: 0;
    transform: translateX(62px) scale(1, 1);
  }

  10%,
  58% {
    opacity: 1;
  }

  72%,
  100% {
    opacity: 0;
    transform: translateX(22px) scale(3, 0.4);
  }
}

/* Octopus */
.oct-skin {
  fill: var(--pop);
  stroke: var(--pop-deep);
  stroke-width: 0.8;
  stroke-linejoin: round;
}

.oct-sucker {
  fill: var(--pop-tint);
}

.oct-spot {
  fill: var(--pop-tint);
  opacity: 0.45;
}

.oct-eyeball {
  fill: var(--white);
}

.oct-pupil {
  fill: var(--ink);
}

.oct-lid-skin {
  fill: var(--pop);
  transform: scaleY(0);
  transform-box: fill-box;
  transform-origin: center top;
  animation: blink 6s ease-in-out infinite;
}

.oct-brow {
  fill: none;
  stroke: var(--pop-deep);
  stroke-width: 1.4;
  stroke-linecap: round;
}

.oct-arm {
  transform-origin: var(--ox) var(--oy);
  animation: sway 4.2s ease-in-out infinite alternate;
}

.oct-glass {
  fill: rgba(255, 255, 255, 0.7);
  stroke: var(--accent);
  stroke-width: 1.5;
}

.oct-lid {
  fill: var(--accent-deep);
}

.oct-crab {
  fill: var(--accent);
  opacity: 0.75;
}

.oct-bubble {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1;
  opacity: 0;
  animation: rise 4s ease-in infinite;
}

/* Mushroom robot */
.mr-chassis {
  fill: var(--white);
  stroke: var(--accent);
  stroke-width: 2;
}

.mr-sensor,
.mr-pad,
.mr-joint {
  fill: var(--white);
  stroke: var(--accent);
  stroke-width: 1.4;
}

.mr-sensor {
  fill: var(--accent);
}

.mr-limb,
.mr-foot {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mr-leg {
  transform-origin: var(--ox) var(--oy);
  animation: step 1.6s ease-in-out infinite alternate;
}

.mr-myc {
  fill: none;
  stroke: var(--accent);
  stroke-width: 0.9;
  stroke-linecap: round;
  opacity: 0.75;
}

.mr-trace {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.3;
  stroke-linejoin: round;
}

.mr-pulse {
  fill: none;
  stroke: var(--pop-deep);
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-dasharray: 0.1 34;
  animation: dash-flow-long 2.2s linear infinite;
}

.mr-stem {
  fill: var(--white);
  stroke: var(--accent);
  stroke-width: 1.6;
}

.mr-cap {
  fill: var(--pop);
  stroke: var(--pop-deep);
  stroke-width: 1;
}

.mr-spot {
  fill: var(--pop-tint);
}

.mr-spore {
  fill: var(--pop);
  opacity: 0;
  animation: rise 5s ease-out infinite;
}

/* AI and mathematics */
.am-ribbon-edge,
.am-ribbon,
.am-writing {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.am-ribbon-edge {
  stroke: var(--accent);
  stroke-width: 10;
}

.am-ribbon {
  stroke: var(--white);
  stroke-width: 7.4;
}

.am-writing {
  stroke: var(--accent);
  stroke-width: 1.1;
  stroke-dasharray: 2.4 1.6 1 1.6 3 2.2;
  animation: dash-flow-write 3s linear infinite;
}

.am-chip {
  fill: var(--white);
  stroke: var(--accent);
  stroke-width: 2;
}

.am-node {
  fill: var(--pop);
  animation: node-glow 2.4s ease-in-out infinite;
}

.am-sym {
  fill: var(--pop);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  text-anchor: middle;
  transform-box: fill-box;
  transform-origin: center;
  animation: drift 6s ease-in-out infinite alternate;
}

.am-glyph {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.2;
  stroke-linecap: round;
  opacity: 0.7;
}

/* Arrow of time */
.tm-glass {
  fill: rgba(255, 255, 255, 0.65);
  stroke: var(--accent);
  stroke-width: 1.6;
}

.tm-sand {
  fill: var(--pop);
}

.tm-grain {
  fill: var(--pop-tint);
}

.tm-stream {
  fill: none;
  stroke: var(--pop);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-dasharray: 1 3.2;
  animation: dash-fall 0.9s linear infinite;
}

.tm-plate {
  fill: var(--accent-deep);
}

.tm-white {
  fill: var(--white);
  stroke: var(--accent);
  stroke-width: 1.2;
}

.tm-yolk {
  fill: var(--pop);
}

.tm-shine {
  fill: var(--white);
}

.tm-shell {
  fill: var(--white);
  stroke: var(--accent);
  stroke-width: 1.4;
  stroke-linejoin: round;
}

/* Community network ("Different minds. Shared curiosity.") */
.pp-body,
.pp-head {
  fill: var(--white);
  stroke: var(--accent);
  stroke-width: 2;
}

.pp-hair,
.pp-band {
  fill: var(--accent);
}

.pp-band {
  fill: var(--accent-deep);
}

.pp-glasses {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
}

.net-link {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  opacity: 0.85;
  transition: stroke-dashoffset 1.1s ease var(--d, 0s);
}

.net-ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.3;
  stroke-dasharray: 1.5 6;
  stroke-linecap: round;
  opacity: 0.45;
  transition: opacity 1s ease 0.8s;
}

.net-ripple {
  fill: none;
  stroke: var(--pop);
  stroke-width: 1.2;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: ripple 3.9s ease-out infinite;
}

.net-pulse {
  fill: var(--pop);
}

.net-center__bubble {
  fill: var(--pop);
}

.net-center__q {
  fill: var(--paper);
  font: italic 700 60px var(--serif);
  text-anchor: middle;
}

.net-person,
.net-badge,
.net-chat {
  transition: opacity 0.6s ease var(--d, 0s), transform 0.6s cubic-bezier(0.3, 1.4, 0.6, 1) var(--d, 0s);
}

.net-badge__bg {
  fill: var(--white);
  stroke: var(--accent);
  stroke-width: 1.5;
}

.net-icon {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.net-icon .ic-fill {
  fill: var(--accent);
  stroke: none;
}

.net-chat__bg {
  fill: var(--white);
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linejoin: round;
}

.net-chat__text {
  fill: var(--pop);
  font: italic 700 20px var(--serif);
  text-anchor: middle;
}

/* Before the graphic scrolls into view (only when JavaScript can reveal it) */
.js .community:not(.is-visible) .net-link {
  stroke-dashoffset: 1;
}

.js .community:not(.is-visible) .net-ring,
.js .community:not(.is-visible) .net-person,
.js .community:not(.is-visible) .net-badge,
.js .community:not(.is-visible) .net-chat {
  opacity: 0;
}

/* Round vignettes */
.ra-paper {
  fill: var(--white);
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linejoin: round;
}

.ra-drink {
  fill: var(--liquid);
}

.ra-soda {
  fill: var(--pop-mid);
}

.ra-bubble {
  fill: var(--white);
}

.ra-foam {
  fill: var(--white);
  stroke: var(--accent);
  stroke-width: 1.6;
}

.ra-lemon {
  fill: var(--pop-tint);
  stroke: var(--pop);
  stroke-width: 1.4;
}

.ra-clink {
  fill: none;
  stroke: var(--pop);
  stroke-width: 1.8;
  stroke-linecap: round;
}

.ra-planet {
  fill: var(--pop);
}

.ra-planet-band {
  fill: none;
  stroke: var(--pop-tint);
  stroke-width: 1.4;
  stroke-linecap: round;
}

.ra-moon,
.ra-star {
  fill: var(--pop);
}

.ra-q {
  fill: var(--pop);
  font: italic 700 22px var(--serif);
  text-anchor: middle;
}

.ra-q--small {
  font-size: 17px;
}

.ra-q--light {
  fill: var(--paper);
  font-size: 18px;
}

.ra-reply {
  fill: var(--accent);
}

.ra-dot {
  fill: var(--accent);
}

.round:hover .ra-clink,
.round-art .ra-clink {
  animation: clink 2.6s ease-in-out infinite;
}

.ra-glass--left {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transform: rotate(8deg);
}

.ra-glass--right {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transform: rotate(-8deg);
}

.ra-ask {
  animation: bob 3.4s ease-in-out infinite;
}

.ra-ask--2 {
  animation-delay: -1.6s;
}

.ra-chat {
  animation: bob 4s ease-in-out infinite;
}

.ra-chat--2 {
  animation-delay: -2s;
}

.ra-say {
  animation: bob 5s ease-in-out infinite;
}

/* Shared keyframes */
@keyframes twinkle {
  50% {
    opacity: 0.25;
  }
}

@keyframes dash-flow {
  to {
    stroke-dashoffset: -24;
  }
}

@keyframes dash-flow-long {
  to {
    stroke-dashoffset: -68.2;
  }
}

@keyframes dash-flow-write {
  to {
    stroke-dashoffset: 23.6;
  }
}

@keyframes dash-fall {
  to {
    stroke-dashoffset: -4.2;
  }
}

@keyframes sway {
  from {
    transform: rotate(-3deg);
  }

  to {
    transform: rotate(3deg);
  }
}

@keyframes step {
  from {
    transform: rotate(-5deg);
  }

  to {
    transform: rotate(5deg);
  }
}

@keyframes blink {
  0%,
  90%,
  100% {
    transform: scaleY(0);
  }

  94% {
    transform: scaleY(1);
  }
}

@keyframes rise {
  0% {
    opacity: 0;
    transform: translateY(0);
  }

  20% {
    opacity: 0.8;
  }

  100% {
    opacity: 0;
    transform: translateY(-26px);
  }
}

@keyframes node-glow {
  50% {
    opacity: 0.35;
  }
}

@keyframes drift {
  from {
    transform: translateY(-2px) rotate(-3deg);
  }

  to {
    transform: translateY(3px) rotate(3deg);
  }
}

@keyframes ripple {
  0% {
    opacity: 0.5;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(1.9);
  }
}

@keyframes clink {
  0%,
  60%,
  100% {
    opacity: 0;
  }

  70%,
  85% {
    opacity: 1;
  }
}

@keyframes bob {
  50% {
    transform: translateY(-3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .net-pulses {
    display: none;
  }
}

/* refinements */
.bh-glow {
  fill: none;
  stroke: var(--halo);
  stroke-width: 10;
  opacity: 0.55;
}

.bh-lens--low {
  stroke-width: 1.6;
  opacity: 0.55;
}

.oct-glint {
  fill: var(--white);
}

.oct-fish {
  fill: var(--accent);
  opacity: 0.85;
}

.oct-glass-eye {
  fill: var(--white);
}

.oct-water {
  fill: none;
  stroke: var(--accent);
  stroke-width: 0.9;
  opacity: 0.45;
}

.net-person--pop .pp-body {
  fill: var(--pop);
  stroke: var(--pop);
}

.js .community:not(.is-visible) .net-pulses {
  opacity: 0;
}

.net-pulses {
  transition: opacity 0.8s ease 1.4s;
}

.sg-bubble {
  fill: var(--white);
  stroke: var(--accent);
  stroke-width: 2.4;
  stroke-linejoin: round;
}

.sg-q {
  fill: var(--pop);
  font: italic 700 56px var(--serif);
  text-anchor: middle;
}

.sg-spark {
  fill: var(--pop);
  transform-box: fill-box;
  transform-origin: center;
  animation: twinkle 2.6s ease-in-out infinite;
}

/* Campus on Tap homepage: the campuses */
.campus-grid {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.campus-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: clamp(1.5rem, 3vw, 2rem) clamp(1.25rem, 2.5vw, 1.5rem);
  border: 1px solid var(--line-strong);
  border-top: 4px solid var(--accent);
  background: var(--white);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.campus-card__mark {
  width: 6.5rem;
  margin-bottom: 0.6rem;
}

.campus-card__name {
  font-size: clamp(1.85rem, 1.6rem + 0.8vw, 2.25rem);
}

.campus-card__name span {
  color: var(--pop);
  font-style: italic;
  font-weight: 500;
}

.campus-card__name a {
  color: inherit;
  text-decoration: none;
}

/* The whole card is the link. It sits above everything else in the card, including the arrow
   (which is positioned, so it would otherwise cover the link and swallow clicks). */
.campus-card__name a::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
}

.campus-card__name a:focus-visible {
  outline: none;
}

.campus-card:has(a:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.campus-card__place,
.campus-card__next {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.5;
}

.campus-card__place span {
  display: block;
  color: var(--muted);
}

.campus-card__next .kicker {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--accent);
}

.campus-card .link-arrow {
  align-self: center;
  margin-top: auto;
  padding-top: 0.9rem;
}

.campus-card--next {
  border: 1px dashed var(--line-strong);
  background: transparent;
}

.campus-card--next .campus-card__mark {
  width: 5rem;
  margin-bottom: 0;
}

@media (hover: hover) {
  .campus-card:hover {
    box-shadow: var(--shadow-card);
    transform: translateY(-3px);
  }

  .campus-card:hover .link-arrow::after {
    transform: translateX(4px);
  }
}

@media (min-width: 640px) {
  .campus-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .campus-card--next {
    grid-column: 1 / -1;
    flex-direction: row;
    gap: 1.5rem;
    text-align: left;
  }

  .campus-card--next > div {
    flex: 1;
  }

  .campus-card--next .link-arrow {
    margin: 0;
    padding: 0 0 0.4rem;
  }
}

@media (min-width: 1100px) {
  .campus-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Campus on Tap homepage: bring it to your campus */
.start__grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.start h2 {
  margin-bottom: 1.5rem;
  font-size: var(--step-4);
}

.start .lead {
  margin-bottom: 1.25rem;
}

.start__copy > p:not(.eyebrow, .lead) {
  max-width: 34rem;
  color: var(--ink-2);
}

.start__perks {
  display: grid;
  gap: 0.9rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.start__perks li {
  position: relative;
  padding-left: 1.9rem;
  color: var(--ink-2);
}

.start__perks li::before {
  content: "✦";
  position: absolute;
  top: 0;
  left: 0;
  color: var(--pop);
}

.start__perks strong {
  color: var(--ink);
  font-weight: 600;
}

@media (min-width: 960px) {
  .start__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .start__copy {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
}

/* Footer ---------------------------------------------------------------- */

.site-footer {
  padding: clamp(3.5rem, 6vw, 4.5rem) 0 2rem;
  background: var(--paper);
}

.site-footer__grid {
  display: grid;
  gap: 2.5rem;
}

.site-footer__brand p {
  max-width: 22rem;
  margin: 1.25rem 0 0;
  color: var(--ink-2);
  font-size: 0.95rem;
}

.site-footer__brand p a {
  color: var(--accent);
  font-weight: 600;
}

.site-footer nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 1.75rem;
}

.site-footer ul {
  display: grid;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer nav .kicker {
  margin-bottom: 0.15rem;
}

.site-footer nav a {
  display: inline-block;
  padding: 0.45rem 0;
  color: var(--ink-2);
  text-decoration: none;
}

.site-footer nav a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer__base p {
  margin: 0;
}

@media (min-width: 820px) {
  .site-footer__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  }
}

/* Inner pages ----------------------------------------------------------- */

.page-hero {
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  margin-bottom: 1.25rem;
  font-size: var(--step-5);
  line-height: 0.98;
}

.page-hero__lead {
  max-width: 36rem;
  margin-bottom: 2rem;
  color: var(--ink-2);
  font-size: var(--step-1);
}

/* Newsletter archive */
.issues {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
  list-style: none;
}

.issue a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.5rem 2rem;
  align-items: center;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line-strong);
  color: inherit;
  text-decoration: none;
}

.issue__num {
  color: var(--accent);
  font: italic 500 clamp(2.75rem, 2.2rem + 2vw, 4rem) / 1 var(--serif);
  font-variant-numeric: lining-nums;
}

.issue .kicker {
  display: block;
}

.issue__title {
  display: block;
  margin: 0.35rem 0 0.4rem;
  color: var(--ink);
  font: 600 clamp(1.6rem, 1.4rem + 1vw, 2.2rem) / 1.1 var(--serif);
  transition: color 0.2s;
}

.issue__dek {
  display: block;
  color: var(--ink-2);
}

.issue__read {
  grid-column: 2;
  justify-self: start;
  color: var(--accent);
  font: 600 0.78rem / 1 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.issue a:hover .issue__title {
  color: var(--accent);
}

/* A campus with no issues yet */
.issues-empty {
  padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
  border: 1px dashed var(--line-strong);
  text-align: center;
}

.issues-empty__title {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font: 600 clamp(1.6rem, 1.4rem + 1vw, 2.2rem) / 1.15 var(--serif);
}

.issues-empty p:last-child {
  margin: 0;
  color: var(--ink-2);
}

@media (min-width: 760px) {
  .issue a {
    grid-template-columns: 7rem minmax(0, 1fr) auto;
  }

  .issue__read {
    grid-column: auto;
  }
}

/* Article (web version of a newsletter issue) */
.article {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(4rem, 8vw, 6rem);
}

.article__inner {
  width: min(100% - 2 * var(--gutter), 42rem);
  margin-inline: auto;
}

.article__back {
  display: inline-block;
  margin-bottom: 2rem;
  padding: 0.5rem 0;
  color: var(--muted);
  font-size: 0.85rem;
  text-decoration: none;
}

.article__masthead {
  display: flex;
  justify-content: center;
  margin-bottom: 2.75rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--line);
}

.article__masthead img {
  width: 8rem;
}

.article h1 {
  margin-bottom: 2.25rem;
  font-size: var(--step-4);
}

.article h2 {
  margin: 3rem 0 1rem;
  font-size: var(--step-3);
}

.article__body > p {
  font-size: 1.125rem;
  line-height: 1.8;
}

.callout {
  margin: 2.75rem 0;
  padding: 1.75rem 1.75rem 1.6rem;
  border-left: 3px solid var(--accent);
  background: var(--card);
}

.callout .eyebrow {
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
}

.callout .eyebrow::before {
  display: none;
}

.callout__question {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font: 600 clamp(1.5rem, 1.35rem + 0.6vw, 1.85rem) / 1.25 var(--serif);
}

.callout p:last-child {
  margin: 0;
}

.callout a {
  color: var(--accent);
  font-weight: 600;
}

.signature {
  margin-top: 2.5rem;
}

.signature__names {
  display: block;
  margin-top: 0.25rem;
  color: var(--accent);
  font: italic 600 2rem / 1.2 var(--serif);
}

.signature__org {
  color: var(--muted);
  font-size: 0.95rem;
}

.article__cta {
  margin-top: 4rem;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border: 1px solid var(--line-strong);
  background: var(--white);
}

.article__cta h2 {
  margin: 0 0 0.75rem;
  font-size: var(--step-3);
}

.article__cta > p:not(.eyebrow) {
  color: var(--ink-2);
}

/* Simple centered pages: subscribed, 404 */
.simple {
  display: grid;
  min-height: calc(100svh - var(--header-h) - 14rem);
  place-items: center;
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  text-align: center;
}

.simple__inner {
  width: min(100% - 2 * var(--gutter), 38rem);
}

.simple__mark {
  width: 6.5rem;
  margin: 0 auto 2rem;
}

.simple h1 {
  margin-bottom: 1.25rem;
  font-size: var(--step-5);
  line-height: 0.98;
}

.simple p:not(.eyebrow) {
  color: var(--ink-2);
  font-size: var(--step-1);
}

.simple p a {
  color: var(--accent);
}

.simple__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.simple .simple__more {
  margin: 1.75rem 0 0;
  font-size: 1rem;
}

/* Contact page ------------------------------------------------------------ */

.contact {
  padding-top: clamp(2.5rem, 5vw, 4rem);
}

.contact__grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.contact-form {
  position: relative;
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.4rem, 4vw, 2.5rem);
  border: 1px solid var(--line-strong);
  border-top: 4px solid var(--accent);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.contact-form[data-state="success"] > :not(.form-status) {
  display: none;
}

.contact-form .form-status[data-tone="error"] {
  margin-top: 0;
}

.field {
  display: grid;
  gap: 0.5rem;
}

.field__label {
  padding: 0;
  color: var(--ink);
  font: 600 0.78rem / 1.3 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.field__hint {
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
}

.field__input {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--muted);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: 400 1.05rem / 1.5 var(--sans);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field__input--area {
  min-height: 9.5rem;
  resize: vertical;
}

.field__input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.field__input:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.field__input[aria-invalid="true"] {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

/* "What's it about?" radio buttons, drawn as pills */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.chips legend {
  margin-bottom: 0.85rem;
}

.chip {
  position: relative;
  cursor: pointer;
}

.chip input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-2);
  font: 500 0.95rem / 1 var(--sans);
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.chip input:checked + span {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--paper);
}

.chip input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (hover: hover) {
  .chip:hover span {
    border-color: var(--accent);
    color: var(--accent);
  }

  .chip:hover input:checked + span {
    color: var(--paper);
  }
}

.contact-form__submit {
  justify-self: start;
}

.contact__aside {
  display: grid;
  gap: 2rem;
}

.contact__aside .kicker {
  margin-bottom: 0.5rem;
}

.contact__aside p:not(.kicker) {
  margin: 0;
  color: var(--ink-2);
}

.contact__aside a {
  color: var(--accent);
  font-weight: 600;
}

.contact__email {
  font-size: 1.15rem;
  overflow-wrap: anywhere;
}

.copy-button {
  min-height: 2.75rem;
  margin-top: 0.75rem;
  padding: 0 1.1rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: transparent;
  color: var(--accent);
  font: 600 0.72rem / 1 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

@media (hover: hover) {
  .copy-button:hover {
    background: var(--accent);
    color: var(--paper);
  }
}

@media (min-width: 900px) {
  .contact__grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  }

  .contact__aside {
    padding-top: 1rem;
  }
}

/* Small phones (iPhone SE 1st gen, Galaxy Fold folded) -------------------- */

@media (max-width: 400px) {
  .eyebrow {
    gap: 0.6rem;
    font-size: 0.84rem;
    letter-spacing: 0.17em;
  }

  .eyebrow::before,
  .eyebrow--center::after {
    width: 1.5rem;
  }
}

@media (max-width: 360px) {
  .site-header__inner {
    gap: 0.75rem;
  }

  .brand {
    gap: 0.5rem;
  }

  .brand__mark {
    width: 28px;
  }

  .brand__name {
    padding-left: 0.12em;
    font-size: 1.1rem;
    letter-spacing: 0.12em;
  }

  .brand__ontap {
    font-size: 0.52rem;
  }

  .site-header .button--small {
    padding: 0 0.8rem;
    letter-spacing: 0.1em;
  }
}

@media (max-width: 300px) {
  .site-header .brand__word {
    display: none;
  }
}

/* Phones held sideways: keep the headline near the top ------------------- */

@media (max-height: 500px) and (orientation: landscape) {
  :root {
    --header-h: 3.5rem;
  }

  .coaster {
    width: min(100%, 13rem);
  }

  .tap {
    width: min(100%, 11rem);
  }
}
