/* Our story (/story/). Colors, fonts and radius come from the design tokens in /assets/site.css. */


* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.7 'Inter', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--highlight); color: var(--text); }

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 4px;
}

.label-mono {
  font: 500 12px/1 'DM Mono', monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 640px) { .wrap { padding: 0 22px; } }

/* ---------- The comic ----------
   Six panels, the real photo, the invitation. Ink borders, captions on the soft highlight, white speech
   bubbles with one square corner toward the speaker. All words are text; nothing moves. */
.comic { max-width: 1200px; margin: 0 auto; padding: 40px 40px 72px; display: flex; flex-direction: column; gap: 24px; }
@media (max-width: 640px) { .comic { padding: 24px 16px 56px; gap: 20px; } }
.comic figcaption, .comic-lead, .real-us-words p, .your-turn p { line-height: 1.5; }
.comic-head { display: flex; flex-direction: column; gap: 14px; padding: 8px 0 12px; }
.comic-head h1 { font: 800 clamp(48px, 8vw, 104px)/0.95 var(--font-display); letter-spacing: -.045em; }
.comic-lead { font-size: 20px; max-width: 640px; }
.comic-mark { background: linear-gradient(transparent 58%, var(--highlight) 58%); }

.panels { list-style: none; display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (max-width: 640px) { .panels { gap: 20px; } }
.panel { border: 3px solid var(--text); border-radius: var(--radius-card); overflow: hidden; background: var(--highlight-soft); display: flex; }
.panel figure { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.panel img, .real-us img { display: block; width: 100%; height: auto; }
.panel figcaption { flex: 1; padding: 16px 20px; font-size: 17px; }
.panel figcaption p { margin: 0; }
.panel-pic { position: relative; border-bottom: 3px solid var(--text); }
.panel-pic img { aspect-ratio: 4 / 3; object-fit: cover; }
.pic-campus img { object-position: 50% 20%; }

.speech {
  background: var(--bg); color: var(--text);
  border: 3px solid var(--text); border-radius: 18px;
  padding: 10px 14px; font-size: 16px; font-weight: 600; line-height: 1.3;
}
.panel-pic .speech { position: absolute; max-width: 62%; }
.speech.at-bottom-left { left: 16px; bottom: 16px; border-bottom-left-radius: 4px; }
.speech.at-top-left { left: 16px; top: 16px; max-width: 42%; border-bottom-right-radius: 4px; }
.speech.at-top-right { right: 16px; top: 16px; max-width: 46%; border-bottom-left-radius: 4px; }
@media (max-width: 640px) {
  .panel-pic .speech { font-size: 14px; padding: 8px 11px; border-width: 2px; }
  .speech.at-bottom-left { left: 10px; bottom: 10px; }
  .speech.at-top-left { left: 10px; top: 10px; }
  .speech.at-top-right { right: 10px; top: 10px; max-width: 42%; }
}

.pills { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pills li, .badge {
  padding: 6px 12px; border-radius: var(--radius-pill); border: 2px solid var(--text);
  background: var(--bg); font-size: 14px; font-weight: 600; line-height: 1.3;
}

/* the two wide panels: picture and words side by side from 900px, the picture on top below that */
.panel-split .speech-big {
  margin: 24px 20px 0; align-self: flex-start;
  padding: 16px 20px; border-radius: 24px; border-bottom-left-radius: 4px;
  font: 800 clamp(22px, 2.6vw, 28px)/1.15 var(--font-display); letter-spacing: -.02em;
}
.panel-split figcaption { font-size: 18px; flex: none; padding-bottom: 24px; }
.panel-blue { background: var(--blue); color: var(--on-blue); }
.big-line { margin: 24px 20px 0; font: 800 clamp(34px, 4.6vw, 56px)/1 var(--font-display); letter-spacing: -.035em; }

@media (min-width: 900px) {
  .panels { grid-template-columns: 1fr 1fr; }
  .panel-wide { grid-column: 1 / -1; }
  .panel-split { display: grid !important; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto auto 1fr; column-gap: 0; }
  .panel-split picture { grid-column: 1; grid-row: 1 / -1; }
  .panel-split picture img { height: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
  .panel-split .speech-big, .panel-split .big-line { grid-column: 2; grid-row: 2; margin: 0 32px 18px; justify-self: start; }
  .panel-split figcaption { grid-column: 2; grid-row: 3; padding: 0 32px; }
  .panel-flip picture { grid-column: 2; }
  .panel-flip .big-line, .panel-flip figcaption { grid-column: 1; }
}

/* the real us */
.real-us { border: 3px solid var(--text); border-radius: var(--radius-card); overflow: hidden; display: flex; flex-direction: column; }
.real-us-words { padding: 24px 20px 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.real-us h2 { font: 800 clamp(32px, 4vw, 44px)/1 var(--font-display); letter-spacing: -.035em; }
.real-us-words p { font-size: 17px; }
.real-us-link { min-height: var(--target-min); display: inline-flex; align-items: center; font-size: 16px; font-weight: 600; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.real-us-link:hover { color: var(--blue-hover); }
.real-us .small-print { font-size: 13px; color: var(--text-muted); }
.real-us .small-print a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; display: inline-block; padding: 12px 0; margin: -12px 0; }
@media (min-width: 900px) {
  .real-us { flex-direction: row; }
  .real-us picture { flex: 3 1 0; min-width: 0; }
  .real-us img { height: 100%; object-fit: cover; }
  .real-us-words { flex: 2 1 0; min-width: 0; padding: 32px; justify-content: center; }
}

/* your turn */
.your-turn {
  border-radius: var(--radius-card); background: var(--text); color: var(--on-blue);
  padding: 40px 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px;
}
@media (max-width: 640px) { .your-turn { padding: 32px 20px; } }
.your-turn > div { flex: 1 1 380px; display: flex; flex-direction: column; gap: 8px; }
.your-turn h2 { font: 800 clamp(30px, 4vw, 40px)/1.05 var(--font-display); letter-spacing: -.03em; }
.your-turn p { font-size: 17px; color: var(--line2); }
.ask-btn {
  min-height: 56px; padding: 0 30px; border-radius: var(--radius-pill);
  background: var(--highlight); color: var(--text);
  font-size: 18px; font-weight: 600; display: inline-flex; align-items: center;
}
.ask-btn:hover { box-shadow: 0 0 0 3px var(--bg); }
.your-turn a:focus-visible { outline-color: var(--highlight); }

/* Paid forward by: the wall (support/wall.js draws it; its styles are support/support.css) */
.paid { padding: 24px 0 72px; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 64px;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 26px; flex-wrap: wrap;
}
.footer-inner .label-mono { color: var(--text-muted); }
footer a { color: var(--text-muted); font-size: 13.5px; transition: color 0.2s; }
footer a:hover { color: var(--text); }


/* ---------- Share ---------- */
.share-fab {
  position: fixed; right: 26px; bottom: 26px; z-index: 90;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--blue); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-pin);
  transition: background 0.2s, transform 0.2s;
}
.share-fab:hover { background: var(--blue-hover); transform: translateY(-2px); }
@media (max-width: 640px) { .share-fab { right: 18px; bottom: 18px; width: 50px; height: 50px; } }
.share-menu {
  position: fixed; right: 26px; bottom: 92px; z-index: 91;
  width: 252px;
  background: var(--bg-elevated);
  border: 1.5px solid var(--border); border-radius: var(--radius-card);
  padding: 10px;
  box-shadow: var(--shadow-paper);
  opacity: 0; transform: translateY(12px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.22s, transform 0.22s;
}
.share-menu.open { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 640px) { .share-menu { right: 18px; bottom: 80px; } }
.share-menu .share-title {
  font: 500 10.5px 'DM Mono', monospace; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-muted);
  padding: 8px 12px 10px;
}
.share-item {
  display: flex; align-items: center; gap: 12px;
  width: 100%; text-align: left;
  padding: 11px 12px; border-radius: 9px;
  background: transparent; border: none; cursor: pointer;
  font: 500 14px 'Inter'; color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
}
.share-item:hover { background: var(--bg-card); color: var(--text); }
.share-item svg { flex: none; }
.toast {
  position: fixed; left: 50%; bottom: 32px; z-index: 120;
  transform: translateX(-50%) translateY(20px);
  background: var(--text); border: 0;
  color: var(--on-blue); border-radius: var(--radius-pill);
  padding: 12px 22px; font: 500 14px 'Inter';
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
