/* ==========================================================================
   Cornell on Tap: site styles
   Palette is sampled from the logo: wine-red ink on cream paper.
   ========================================================================== */

:root {
  --paper: #fbf8f2;
  --paper-2: #f4ede3;
  --card: #f1e7dd;
  --white: #fffdf9;
  --ink: #33221e;
  --ink-2: #5c4a44;
  --muted: #75645e;
  --red: #9b101b;
  --red-deep: #7c0c16;
  --line: #e6dad1;
  --line-strong: #d6c4b6;
  --cream-soft: rgba(251, 248, 242, 0.82);

  --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 rgba(51, 34, 30, 0.04), 0 28px 50px -28px rgba(51, 34, 30, 0.3);

  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: rgba(155, 16, 27, 0.12);
}

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(--red);
  }
}

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

h1 em,
h2 em {
  font-weight: 500;
}

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

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

:focus-visible {
  outline: 2px solid var(--red);
  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(--red);
  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(--red);
  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: currentColor;
}

.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(--red);
  border-radius: var(--radius);
  background: var(--red);
  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(--red-deep);
    background: var(--red-deep);
    color: var(--paper);
  }

  .button--ghost:hover {
    background: var(--red);
    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(--red);
}

.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(--red);
  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(--red);
  border-bottom: 1px solid transparent;
  background: rgba(251, 248, 242, 0.9);
  -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);
}

.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(--red);
  text-decoration: none;
}

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

.brand__mark {
  width: 34px;
}

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

.brand__cornell {
  padding-left: 0.16em;
  font-size: 1.32rem;
  letter-spacing: 0.16em;
}

.brand__ontap {
  display: flex;
  align-items: center;
  gap: 0.45em;
  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(--red);
}

@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, rgba(155, 16, 27, 0.075), 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: var(--step-5);
  line-height: 0.96;
  letter-spacing: -0.015em;
}

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

.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 rgba(51, 34, 30, 0.38),
    0 10px 20px -10px rgba(51, 34, 30, 0.18);
}

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

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

.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);
  }
}

/* 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(--red);
  outline: none;
  box-shadow: 0 0 0 3px rgba(155, 16, 27, 0.18);
}

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

.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(--red);
  font-weight: 600;
}

.signup__status[data-tone="success"],
.form-status[data-tone="success"] {
  padding: 1.1rem 1.25rem;
  border-left: 3px solid var(--red);
  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 red "last call" band */
.signup--on-red .signup__input {
  border-color: rgba(251, 248, 242, 0.7);
  background: rgba(251, 248, 242, 0.08);
  color: var(--paper);
}

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

.signup--on-red .signup__input:focus {
  border-color: var(--paper);
  box-shadow: 0 0 0 3px rgba(251, 248, 242, 0.3);
}

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

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

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

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

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

.signup--on-red .signup__status[data-tone="success"] {
  border-left-color: var(--paper);
  background: rgba(251, 248, 242, 0.12);
  color: var(--paper);
}

.signup--on-red :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);
}

/* The idea */
.idea__grid {
  display: grid;
  gap: clamp(3rem, 6vw, 5.5rem);
  align-items: center;
}

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

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

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

/* Course listing card (COT 1000) */
.course-card {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 29rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-top: 5px solid var(--red);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transform: rotate(1.4deg);
}

.course-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.course-card__code {
  color: var(--red);
  font: 700 0.78rem / 1.6 var(--sans);
  letter-spacing: 0.18em;
}

.course-card__stamp {
  padding: 0.45rem 0.6rem;
  border: 2px solid currentColor;
  border-radius: 4px;
  color: var(--red);
  font: 700 0.7rem / 1 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transform: rotate(-9deg);
  opacity: 0.85;
}

.course-card__title {
  margin-bottom: 1.4rem;
  color: var(--ink);
  font-size: clamp(1.9rem, 1.6rem + 1.2vw, 2.4rem);
}

.course-card dl {
  margin: 0;
}

.course-card dl div {
  display: grid;
  grid-template-columns: 8.25rem 1fr;
  gap: 1rem;
  padding: 0.7rem 0;
  border-top: 1px dashed var(--line-strong);
}

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

.course-card dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .course-card {
    transform: rotate(0.6deg);
  }
}

@media (max-width: 420px) {
  .course-card dl div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

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

.round {
  padding: 2rem 0;
  border-top: 1px solid var(--line-strong);
}

.round__num {
  display: block;
  margin-bottom: 0.9rem;
  color: var(--red);
  font: italic 500 3.4rem / 1 var(--serif);
}

.round h3 {
  margin-bottom: 0.6rem;
  color: var(--ink);
  font-size: 1.9rem;
}

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

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

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

  .round {
    padding: 0.5rem 2rem 0.5rem;
    border-top: 0;
    border-left: 1px solid var(--line-strong);
  }

  .round:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .round:last-child {
    padding-right: 0;
  }
}

/* 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;
}

.pour__art {
  display: flex;
  grid-area: art;
  justify-content: center;
}

.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%, 14rem);
  height: auto;
  overflow: visible;
  -webkit-tap-highlight-color: transparent;
}

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

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

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

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

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

.tap__collar,
.tap__handle-body,
.tap__beer,
.tap__stream {
  fill: var(--red);
}

.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(--red);
  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(--red);
  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(--red);
  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 {
  min-height: 12.5rem;
  margin-bottom: 1.5rem;
  padding: clamp(1.4rem, 3.5vw, 2rem);
  border: 1px solid var(--line-strong);
  border-top: 4px solid var(--red);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

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

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

.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__actions .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(--red);
  background: var(--red);
  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));
  }
}

/* The next round: copy + ticket */
.next__grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.next h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(2.5rem, 1.9rem + 2.6vw, 4rem);
}

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

.next__copy .link-arrow {
  margin-top: 0.75rem;
}

@media (min-width: 960px) {
  .next__grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  }
}

.ticket {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  border: 1px solid var(--red);
  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(--red);
  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__cta {
  margin-top: 1.75rem;
}

.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 rgba(155, 16, 27, 0.4);
  background: var(--card);
}

.ticket__admit,
.ticket__no {
  color: var(--red);
  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 rgba(155, 16, 27, 0.4);
    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(--red);
  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(--red);
  font: 300 1.75rem / 1 var(--sans);
  transition: transform 0.2s;
}

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

.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(--red);
}

@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);
  }
}

/* Last call: red signup band */
.last-call {
  position: relative;
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
  overflow: hidden;
  background: var(--red);
  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: 2.5rem;
  align-items: center;
}

.last-call__logo {
  justify-self: start;
  width: clamp(7rem, 22vw, 15rem);
}

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

.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);
}

@media (min-width: 900px) {
  .last-call__grid {
    grid-template-columns: auto minmax(0, 1fr);
    gap: clamp(3rem, 7vw, 6.5rem);
  }

  .last-call__logo {
    justify-self: center;
  }
}

/* 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 nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 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(--red);
  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, 1.2fr) minmax(0, 1fr);
  }
}

/* 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(--red);
  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(--red);
  font: 600 0.78rem / 1 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

@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(--red);
  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(--red);
  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(--red);
  font-weight: 600;
}

.signature {
  margin-top: 2.5rem;
}

.signature__names {
  display: block;
  margin-top: 0.25rem;
  color: var(--red);
  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(--red);
}

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

/* 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(--red);
  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(--red);
  outline: none;
  box-shadow: 0 0 0 3px rgba(155, 16, 27, 0.18);
}

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

/* "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(--red);
  background: var(--red);
  color: var(--paper);
}

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

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

  .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(--red);
  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(--red);
  border-radius: var(--radius);
  background: transparent;
  color: var(--red);
  font: 600 0.72rem / 1 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

@media (hover: hover) {
  .copy-button:hover {
    background: var(--red);
    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__cornell {
    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);
  }
}
