/* Save Princeton OA
   Palette borrowed from a USGS topo sheet: map paper, contour brown,
   water blue, and Princeton orange (#E77500, PMS 158) for blazes and buttons. */

:root {
  --paper: #f1f3ec;
  --paper-2: #e6eadf;
  --surface: #fbfcf8;
  --ink: #1d231d;
  --ink-2: #4a5348;
  --contour: #a9825a;
  --rule: #cfd5c6;
  --water: #275f8c;
  --water-dark: #1b4769;
  --blaze: #e77500;        /* Princeton orange, per princeton.edu (PMS 158) */
  --blaze-dark: #a35300;   /* darker orange for small text on light backgrounds */
  --blaze-on-dark: #f58025; /* Princeton's orange for use on black */
  --error: #a3261b;

  --display: "Overpass", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Serif 4", Georgia, "Times New Roman", serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.75rem;
  --step-3: clamp(2rem, 4.2vw, 2.75rem);
  --step-4: clamp(2.6rem, 7.5vw, 5.6rem);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--display); line-height: 1.1; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h2 { font-size: var(--step-3); font-weight: 800; }
h3 { font-size: var(--step-1); font-weight: 700; }
h4 { font-size: 1.125rem; font-weight: 700; line-height: 1.25; }
p { margin: 0 0 1em; }
cite { font-style: italic; }
h2 cite, h4 cite { font-style: normal; }
a { color: var(--water); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--water-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blaze); outline-offset: 2px; border-radius: 2px; }
code { font-size: 0.9em; background: var(--paper-2); padding: 0.05em 0.3em; border-radius: 3px; }
.muted { color: var(--ink-2); }

.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .wrap { padding: 0 2rem; } }
.narrow > * { max-width: 46rem; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 0.5rem 1rem; z-index: 100; }
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* Blazes: the painted rectangles that mark a trail */
.blaze { display: inline-block; width: 0.55em; height: 1.05em; background: var(--blaze); border-radius: 1.5px; vertical-align: -0.12em; }
.double-blaze { display: inline-block; position: relative; width: 0.5em; height: 1em; margin-right: 0.55em; vertical-align: -0.1em; }
.double-blaze::before, .double-blaze::after { content: ""; position: absolute; left: 0; width: 100%; height: 0.42em; background: var(--blaze); border-radius: 1px; }
.double-blaze::before { top: 0; }
.double-blaze::after { bottom: 0; }

/* Buttons */
.btn {
  display: inline-block; font-family: var(--display); font-weight: 700; font-size: 1rem; line-height: 1;
  padding: 0.95em 1.3em 0.85em; border-radius: 4px; border: 2px solid var(--ink);
  background: var(--blaze); color: var(--ink); text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; text-decoration: none; }
::selection { background: var(--blaze); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-small { font-size: 0.9375rem; padding: 0.7em 1em 0.6em; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.button-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(241, 243, 236, 0.94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--rule); }
.topbar-inner { display: flex; align-items: center; gap: 1.5rem; height: 3.75rem; }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 1.0625rem; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 0.5rem; white-space: nowrap; }
.wordmark:hover { color: var(--ink); }
.site-nav { font-family: var(--display); font-weight: 600; }
.site-nav a { color: var(--ink-2); text-decoration: none; }
.site-nav a:hover { color: var(--ink); }

/* Phones and tablets: sections live behind a menu button */
.topbar-cta { display: none; }
.menu-toggle {
  margin-left: auto; display: flex; align-items: center; gap: 0.55rem;
  background: none; border: 2px solid var(--ink); border-radius: 4px; color: var(--ink);
  font-family: var(--display); font-weight: 700; font-size: 0.9375rem; line-height: 1;
  padding: 0.55rem 0.8rem 0.5rem; cursor: pointer;
}
.menu-bars { position: relative; width: 1.1rem; height: 0.8rem; display: inline-block; }
.menu-bars span { position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; border-radius: 1px; transition: transform 0.18s ease, opacity 0.18s ease; }
.menu-bars span:nth-child(1) { top: 0; }
.menu-bars span:nth-child(2) { top: calc(50% - 1px); }
.menu-bars span:nth-child(3) { bottom: 0; }
.menu-toggle[aria-expanded="true"] .menu-bars span:nth-child(1) { transform: translateY(0.35rem) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-bars span:nth-child(3) { transform: translateY(-0.35rem) rotate(-45deg); }
@media (prefers-reduced-motion: reduce) { .menu-bars span { transition: none; } }

.site-nav {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  flex-direction: column; padding: 0.25rem 1rem 1rem;
  background: var(--paper); border-bottom: 1px solid var(--rule); box-shadow: 0 12px 24px rgba(29, 35, 29, 0.12);
  max-height: calc(100vh - 3.75rem); overflow-y: auto;
}
.site-nav.open { display: flex; }
.site-nav a { display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--rule); font-size: 1.125rem; color: var(--ink); }
.site-nav a:last-child { border-bottom: 0; }
@media (min-width: 640px) { .site-nav { padding-left: 2rem; padding-right: 2rem; } }

/* Desktop: inline links plus the call-to-action button */
@media (min-width: 960px) {
  .menu-toggle, .nav-mobile { display: none !important; }
  .topbar-cta { display: inline-block; margin-left: 0.5rem; }
  .site-nav, .site-nav.open {
    display: flex; position: static; flex-direction: row; gap: 1.25rem; margin-left: auto;
    padding: 0; background: none; border: 0; box-shadow: none; max-height: none; overflow: visible;
  }
  .site-nav a { padding: 0; border: 0; font-size: 0.9375rem; color: var(--ink-2); }
}

/* Hero */
.hero {
  position: relative;
  background-color: var(--paper);
  background-image: url("topo.svg");
  background-size: cover;
  background-position: 70% 40%;
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
.hero::before {
  /* fade the contours behind the headline so the text stays crisp */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(241,243,236,0.97) 0%, rgba(241,243,236,0.9) 45%, rgba(241,243,236,0.35) 100%);
}
.hero-inner { position: relative; padding-top: clamp(3rem, 9vw, 7rem); padding-bottom: clamp(3rem, 8vw, 6rem); }
.hero h1 {
  font-size: var(--step-4); font-weight: 900; line-height: 0.96; letter-spacing: -0.03em;
  max-width: 13ch; margin-bottom: 0.45em; text-wrap: balance;
}
.lede { font-size: 1.125rem; line-height: 1.55; max-width: 36rem; color: var(--ink); }
@media (min-width: 640px) { .lede { font-size: var(--step-1); line-height: 1.5; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.live-count { margin-top: 1.5rem; font-family: var(--display); font-weight: 600; color: var(--ink-2); }
.live-count strong { color: var(--ink); font-weight: 800; }

/* Independence notice */
.independence { background: var(--ink); color: #eef1ea; border-top: 5px solid var(--blaze); }
.independence p { margin: 0; padding: 1.1rem 0; font-size: 1rem; line-height: 1.5; max-width: 60rem; }
.independence strong { color: #fff; font-family: var(--display); font-weight: 700; }

/* Sections */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; border-bottom: 1px solid var(--rule); }
.section-lede { font-size: 1.125rem; color: var(--ink-2); }
.source-note { font-size: var(--step--1); color: var(--ink-2); }
.ask { border-left: 6px solid var(--blaze); background: var(--surface); padding: 1.25rem 1.5rem 0.4rem; margin: 2rem 0; }
.ask h3 { font-size: 1.125rem; }

/* Why Frosh Trip matters */
.section-why { background: var(--surface); }
.why-list { list-style: none; padding: 0; margin: 1.75rem 0 0; }
.why-list li { position: relative; padding: 0 0 1.4rem 1.75rem; }
.why-list li::before {
  content: ""; position: absolute; left: 0.1rem; top: 0.3rem;
  width: 0.55rem; height: 1.05rem; background: var(--blaze); border-radius: 1.5px;
}
.why-list strong { display: block; font-family: var(--display); font-weight: 700; font-size: 1.1875rem; line-height: 1.3; margin-bottom: 0.25rem; }

/* The trail of actions */
.section-act { background: var(--paper-2); }
.trail { margin-top: 2.5rem; }
.trail-leg { position: relative; padding-left: 2.25rem; padding-bottom: 1.5rem; }
.trail-leg::before {
  content: ""; position: absolute; left: 0.62rem; top: 2.2rem; bottom: 0;
  border-left: 3px dotted var(--contour);
}
.trail-leg:last-child::before { bottom: 2rem; }
.leg-title { margin-left: -2.25rem; font-size: var(--step-2); font-weight: 800; margin-bottom: 1.25rem; display: flex; align-items: center; }
.leg-title .double-blaze { width: 0.6em; height: 1.05em; margin-left: 0.32rem; margin-right: 0.85rem; }
.stop { position: relative; background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; padding: 1.25rem 1.25rem 0.5rem; margin-bottom: 1rem; }
.stop::before {
  content: ""; position: absolute; left: calc(-2.25rem + 0.42rem); top: 1.35rem;
  width: 0.7rem; height: 1.25rem; background: var(--blaze); border-radius: 1.5px;
}
.contact-line { font-family: var(--display); font-weight: 700; font-size: 1.125rem; }
.contact-line a { color: var(--ink); }
.script {
  margin: 0 0 1rem; padding: 0.9rem 1.1rem; background: var(--paper); border-left: 3px solid var(--contour);
  font-style: italic; line-height: 1.55;
}
.points { padding-left: 1.2rem; margin: 0 0 1rem; }
.points li { margin-bottom: 0.6rem; }
.points strong { font-weight: 600; }

/* Letter + form */
.section-letter { background: var(--paper); }
.letter-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .letter-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 4rem; align-items: start; } }
.letter-col { max-width: 40rem; }
.status { font-family: var(--display); font-weight: 700; font-size: 1.125rem; }
.letter-text { background: var(--surface); border: 1px solid var(--rule); padding: 1.75rem 1.75rem 0.75rem; line-height: 1.7; }

.sign-form, .sign-done { background: var(--surface); border: 2px solid var(--ink); border-radius: 4px; padding: 1.5rem; }
@media (min-width: 900px) { .sign-form, .sign-done { position: sticky; top: 5rem; } }
.sign-form h3, .sign-done h3 { font-size: var(--step-2); font-weight: 800; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-family: var(--display); font-weight: 700; font-size: 0.9375rem; margin-bottom: 0.3rem; }
.optional { font-weight: 400; color: var(--ink-2); }
.field input[type=text], .field input[type=email], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1.5px solid #9aa492; border-radius: 3px; padding: 0.6rem 0.7rem;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 1.1rem) 55%, calc(100% - 0.75rem) 55%; background-size: 0.35rem 0.35rem; background-repeat: no-repeat; padding-right: 2rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--blaze); outline-offset: 0; border-color: var(--ink); }
.field [aria-invalid=true] { border-color: var(--error); }
.hint { font-size: var(--step--1); color: var(--ink-2); margin: 0.35rem 0 0; line-height: 1.45; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; }
.check input { width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; accent-color: var(--ink); flex: none; }
.check label { font-family: var(--body); font-weight: 400; font-size: 0.9375rem; margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.public-note { margin: 0 0 1rem; }
.form-error { color: var(--error); font-family: var(--display); font-weight: 600; font-size: 0.9375rem; }
.demo-note { font-size: var(--step--1); background: #fff4e5; border: 1px solid #f0c48f; padding: 0.6rem 0.75rem; border-radius: 3px; }

.signers { margin-top: 4rem; }
.signers h3 { font-size: var(--step-2); font-weight: 800; }
.signer-group { margin-top: 1.75rem; }
.signer-group h4 { font-size: 1rem; color: var(--ink-2); border-bottom: 1px solid var(--rule); padding-bottom: 0.4rem; margin-bottom: 0.75rem; }
.signer-group h4 span { font-weight: 400; }
.signer-list { list-style: none; padding: 0; margin: 0; columns: 20rem auto; column-gap: 2.5rem; }
.signer-list li { break-inside: avoid; padding: 0.15rem 0; line-height: 1.4; }
.signer-list .yr { font-family: var(--display); font-weight: 600; color: var(--ink-2); }
.signer-list .role { font-size: var(--step--1); color: var(--blaze-dark); font-family: var(--display); font-weight: 700; margin-left: 0.25rem; }
.signer-list .msg { display: block; margin: 0.2rem 0 0.6rem; font-style: italic; font-size: 0.9375rem; color: var(--ink-2); line-height: 1.45; quotes: "\201C" "\201D"; }

/* Research */
.study { padding: 1.75rem 0 0.75rem; border-top: 1px solid var(--rule); }
.study:first-of-type { margin-top: 2rem; }
.study h3 { font-size: var(--step-1); }
.study h3 a { color: var(--ink); text-decoration-color: var(--contour); }
.study h3 a:hover { color: var(--water-dark); }
.study .cite { font-size: var(--step--1); color: var(--ink-2); line-height: 1.5; }
.caveat { font-size: 0.9375rem; color: var(--ink-2); font-style: italic; }

/* Further reading (inside Why Frosh Trip matters) */
.further-reading { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.further-reading h3 { font-size: var(--step-1); }
.further-reading ul { list-style: none; padding: 0; margin: 0; }
.further-reading li { padding: 0.6rem 0; font-size: 0.9375rem; line-height: 1.5; color: var(--ink-2); }
.further-reading a { color: var(--water); }

/* Coverage */
.section-coverage { background: var(--paper-2); }
.coverage { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.coverage li { padding: 1rem 0; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 0.25rem; }
.coverage a { font-family: var(--display); font-weight: 700; font-size: 1.125rem; line-height: 1.3; }
.coverage .meta { font-size: var(--step--1); color: var(--ink-2); }

/* FAQ */
details { border-top: 1px solid var(--rule); }
details:last-of-type { border-bottom: 1px solid var(--rule); }
summary {
  cursor: pointer; list-style: none; padding: 1.1rem 2rem 1.1rem 0; position: relative;
  font-family: var(--display); font-weight: 700; font-size: 1.125rem; line-height: 1.3;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.95rem; font-size: 1.5rem; font-weight: 400; color: var(--blaze-dark); }
details[open] summary::after { content: "–"; }
details p { padding-right: 1rem; }

/* Footer */
.footer { background: var(--ink); color: #d9ded3; padding: 2.5rem 0; font-size: 0.9375rem; border-top: 5px solid var(--blaze); }
.footer a { color: var(--blaze-on-dark); }
.footer strong { color: #fff; font-family: var(--display); }
.footer-inner p { max-width: 48rem; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); z-index: 50;
  background: var(--ink); color: #fff; font-family: var(--display); font-weight: 600;
  padding: 0.75rem 1.1rem; border-radius: 4px; box-shadow: 0 6px 24px rgba(0,0,0,0.2);
}
