/* =============================================================================
 * YEARBOOK STYLESHEET
 * =============================================================================
 *
 *                  👇 START HERE IF YOU WANT TO CUSTOMIZE 👇
 *
 * All the knobs you'd reasonably want to turn are in the :root block below.
 * Change a color, a font, or a border thickness and it cascades through the
 * whole site. Everything below :root is the machinery — you can edit it too,
 * but you probably won't need to.
 *
 * Tip: look for the  🎨 THEME  marker below for the main color palette.
 * ============================================================================= */

:root {
  /* ──────────────────────────────────────────────────────────────────────────
   * 🎨 THEME — colors
   *
   *   The defaults are a classic "cream paper + dark ink + burgundy accent"
   *   palette. Change `--color-accent` to your school color. If your school
   *   colors don't look right on cream, also swap `--color-bg` and
   *   `--color-surface` to white (#ffffff and #fafafa) for a cleaner look.
   *
   *   Common accent swaps:
   *     Burgundy  (default):  #7b2d1e
   *     Forest:               #2f5236
   *     Navy:                 #1f3a5f
   *     Royal blue:           #2849a8
   *     Goldenrod:            #b07d1d
   * ────────────────────────────────────────────────────────────────────────── */
  --color-bg:         #f4efe5;  /* page background — the "paper" */
  --color-surface:    #fbf7ed;  /* card / photo-frame fill */
  --color-ink:        #1c1a17;  /* body text, near-black with warm undertone */
  --color-ink-soft:   #5b544a;  /* secondary text, meta info */
  --color-accent:     #7b2d1e;  /* school color — change me! */
  --color-border:     #cdbfa5;  /* thin tan borders around photos, dividers */
  --color-border-soft:#e6dcc7;  /* lighter dividers */

  /* ──────────────────────────────────────────────────────────────────────────
   * 🔤 TYPOGRAPHY
   *
   *   Fonts are loaded in _includes/head.html. If you change them here, also
   *   update the Google Fonts <link> tag there.
   *
   *   `--font-display` is used for big titles and the site header.
   *   `--font-body`    is used for running text, names, everything else.
   *
   *   Classic alternatives:
   *     Display: "Playfair Display", "EB Garamond", "DM Serif Display"
   *     Body:    "Source Serif 4", "Lora", "Instrument Sans"
   * ────────────────────────────────────────────────────────────────────────── */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* ──────────────────────────────────────────────────────────────────────────
   * 📐 LAYOUT & RHYTHM
   * ────────────────────────────────────────────────────────────────────────── */
  --max-width:         1120px;  /* content width; bump to 1280 for wider */
  --radius-photo:      2px;     /* photo corner radius — keep small for classic feel */
  --radius-card:       4px;
  --border-width:      1px;
  --photo-border:      6px;     /* cream "matte" border around portraits */

  --shadow-soft: 0 1px 2px rgba(28, 26, 23, 0.06),
                 0 2px 8px rgba(28, 26, 23, 0.04);
  --shadow-lift: 0 4px 12px rgba(28, 26, 23, 0.10),
                 0 12px 32px rgba(28, 26, 23, 0.06);
}

/* =============================================================================
 * Below this line is the site machinery. Edit freely, but you can probably
 * do everything you want from the :root block above.
 * ============================================================================= */

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--color-ink);
  background: var(--color-bg);
  /* Paper grain (dots) + subtle large-grid lines */
  background-image:
    radial-gradient(rgba(155, 128, 80, 0.06) 1px, transparent 1px),
    radial-gradient(rgba(155, 128, 80, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(155, 128, 80, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155, 128, 80, 0.025) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px, 60px 60px, 60px 60px;
  background-position: 0 0, 1px 2px, 0 0, 0 0;
}

a { color: var(--color-accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

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

/* ---------------- Site header ---------------- */
.site-header {
  border-bottom: var(--border-width) solid var(--color-border);
  background: var(--color-bg);
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: saturate(1.2);
}
.site-header .wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.brand {
  color: var(--color-ink); text-decoration: none;
  display: flex; flex-direction: column; line-height: 1.1;
}
.brand__year {
  font-family: var(--font-body);
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--color-ink-soft);
}
.brand__name {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 500;
  font-variation-settings: "SOFT" 50, "opsz" 14;
}

.site-nav { display: flex; gap: 1.5rem; justify-content: center; }
.site-nav a {
  color: var(--color-ink); text-decoration: none;
  font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.3rem 0; border-bottom: 2px solid transparent;
  transition: border-color 150ms ease;
}
.site-nav a:hover { border-bottom-color: var(--color-accent); }

/* Search */
.site-search { position: relative; }
.site-search input {
  width: min(260px, 40vw);
  padding: 0.5rem 0.8rem;
  font-family: var(--font-body); font-size: 0.9rem;
  background: var(--color-surface);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-card);
  color: var(--color-ink);
}
.site-search input:focus { outline: 2px solid var(--color-accent); outline-offset: 1px; }
.site-search__results {
  position: absolute; top: calc(100% + 0.4rem); right: 0;
  min-width: 280px;
  list-style: none; margin: 0; padding: 0.3rem;
  background: var(--color-surface);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lift);
}
.site-search__results li { margin: 0; }
.site-search__results a {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.5rem 0.7rem; text-decoration: none; color: var(--color-ink);
  border-radius: 3px;
}
.site-search__results a:hover { background: var(--color-border-soft); }
.site-search__results .r-meta { color: var(--color-ink-soft); font-size: 0.8rem; }

/* ---------------- Home hero ---------------- */
/*
 * The hero section combines plain HTML text with a decorative inline SVG layer
 * (`.hero__art`) defined in `_layouts/home.html`.  The SVG automatically picks
 * up your accent colour because it uses CSS custom properties.
 *
 * To increase or decrease the intensity of the decorative art, change the
 * `opacity` attributes directly on the SVG elements in home.html.
 * To remove the art entirely, delete the <svg class="hero__art"> block.
 */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 3.5rem);
  border-bottom: var(--border-width) solid var(--color-border);
}
/* The SVG decorative layer sits behind all hero text */
.hero__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
}
/* The text container sits above the SVG layer */
.hero__content {
  position: relative;
  z-index: 1;
}
.hero__eyebrow {
  font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--color-ink-soft); margin: 0 0 1.5rem;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 400; line-height: 1.05; margin: 0;
  font-variation-settings: "SOFT" 30, "opsz" 144, "WONK" 1;
  letter-spacing: -0.01em;
}
.hero__mascot {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-accent);
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin: 1rem 0 0;
}

/* ---------------- Ornamental section dividers (home) ----------------
 *
 * Each index section gets a centred ornament (✦) on a hairline rule
 * instead of a plain dashed border. Uses ::after on every section
 * except the last one.
 *
 * To revert to a simple dashed line, remove the .index-section::after
 * rule and restore:
 *   .index-section { border-bottom: 1px dashed var(--color-border-soft); }
 */
.index-section { padding: 3rem 0; }
.index-section:not(:last-child)::after {
  content: '✦';
  display: block;
  text-align: center;
  color: var(--color-accent);
  opacity: 0.38;
  font-size: 0.95rem;
  padding: 1.25rem 0;
  /* Hairline rule drawn through the ornament via background gradient */
  background:
    linear-gradient(var(--color-border-soft), var(--color-border-soft))
    no-repeat center / 75% 1px;
}

/* ---------------- Corner tick marks on index cards ----------------
 *
 * Small L-shaped corner marks appear on the top-left and bottom-right
 * corners of each home-page card when hovered. They evoke classic
 * photo-album corner tabs without obscuring content.
 *
 * To show the marks at all times (not just on hover), remove the
 * `opacity: 0` default and the :hover override below.
 * To disable them entirely, remove this whole block.
 */
.index-list a {
  position: relative;
}
.index-list a::before,
.index-list a::after {
  content: '';
  position: absolute;
  width: 9px;
  height: 9px;
  border-color: var(--color-accent);
  border-style: solid;
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
}
/* Top-left bracket */
.index-list a::before {
  top: 5px;
  left: 5px;
  border-width: 1.5px 0 0 1.5px;
}
/* Bottom-right bracket */
.index-list a::after {
  bottom: 5px;
  right: 5px;
  border-width: 0 1.5px 1.5px 0;
}
.index-list a:hover::before,
.index-list a:hover::after {
  opacity: 0.55;
}


.index-section__heading {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400; margin: 0 0 1.5rem;
  font-variation-settings: "SOFT" 50;
}
.index-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.index-list a {
  display: block; padding: 1.2rem 1.4rem;
  background: var(--color-surface);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-card);
  text-decoration: none; color: var(--color-ink);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.index-list a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
  border-color: var(--color-accent);
}
.index-list__eyebrow {
  display: block;
  font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--color-ink-soft); margin-bottom: 0.4rem;
}
.index-list__title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-variation-settings: "SOFT" 50;
}
.index-list__thumbnail {
  display: block;
  /* Extends the image to the card edges, overcoming the link's padding */
  width: calc(100% + 2.8rem);
  margin: -1.2rem -1.4rem 0.8rem;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  border-bottom: var(--border-width) solid var(--color-border);
}

/* ---------------- Page header (class/club/sport/person) ---------------- */
.page-header {
  text-align: center;
  padding: clamp(2rem, 6vw, 4rem) 0 clamp(1.5rem, 4vw, 2.5rem);
  border-bottom: var(--border-width) solid var(--color-border-soft);
  margin-bottom: 2.5rem;
}
.page-header__eyebrow {
  font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--color-ink-soft); margin: 0 0 1rem;
}
.page-header__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400; margin: 0;
  font-variation-settings: "SOFT" 40, "opsz" 144;
  letter-spacing: -0.01em;
}
.page-header__meta {
  font-family: var(--font-display); font-style: italic;
  color: var(--color-ink-soft); margin: 1rem 0 0;
}

/* ---------------- Roster (shared by class/club/sport) ---------------- */
.roster { margin-bottom: 3rem; }
.roster__heading {
  font-family: var(--font-body);
  font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--color-ink-soft); font-weight: 600;
  margin: 0 0 1.5rem;
  padding-bottom: 0.5rem; border-bottom: var(--border-width) solid var(--color-border);
}
.roster__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.8rem);
}
.roster__grid--lg { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

/* ---------------- Person card ---------------- */
.person-card {
  display: flex; flex-direction: column; align-items: stretch;
  text-decoration: none; color: var(--color-ink);
  transition: transform 180ms ease;
}
.person-card:hover { transform: translateY(-2px); }
.person-card:hover .person-card__frame { box-shadow: var(--shadow-lift); }

.person-card__frame {
  aspect-ratio: 3 / 4;
  background: var(--color-surface);
  padding: var(--photo-border);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-photo);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  margin: 0;
  transition: box-shadow 180ms ease;
}
.person-card__frame img,
.person-card__fallback {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 1px;
}
.person-card__fallback {
  display: grid; place-items: center;
  background: var(--color-border-soft);
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 400;
  letter-spacing: 0.02em;
}
.person-card__caption {
  margin-top: 0.7rem;
  text-align: center;
  line-height: 1.3;
}
.person-card__name {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-variation-settings: "SOFT" 50;
}
.person-card__meta {
  display: block;
  font-size: 0.75rem; color: var(--color-ink-soft);
  letter-spacing: 0.05em;
  margin-top: 0.15rem;
}
.person-card--lg .person-card__name { font-size: 1.15rem; }
.person-card--missing {
  padding: 1rem; color: #a33;
  border: 1px dashed #a33; border-radius: var(--radius-card);
  font-family: monospace; font-size: 0.85rem;
}
.person-card__quote {
  display: block;
  font-size: 0.68rem;
  font-style: italic;
  color: var(--color-ink-soft);
  margin-top: 0.25rem;
  line-height: 1.35;
}

/* ---------------- Person profile (hero) ---------------- */
.person-hero {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  padding: clamp(2rem, 6vw, 4rem) 0;
}
@media (max-width: 640px) {
  .person-hero { grid-template-columns: 1fr; }
}
.person-hero__portrait {
  aspect-ratio: 3 / 4;
  background: var(--color-surface);
  padding: 10px;
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-photo);
  box-shadow: var(--shadow-lift);
  margin: 0;
  overflow: hidden;
}
.person-hero__portrait img,
.person-hero__fallback {
  width: 100%; height: 100%;
  object-fit: cover; border-radius: 1px;
}
.person-hero__fallback {
  display: grid; place-items: center;
  background: var(--color-border-soft); color: var(--color-accent);
  font-family: var(--font-display); font-size: 4rem;
}
.person-hero__eyebrow {
  font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--color-ink-soft); margin: 0 0 0.8rem;
}
.person-hero__name {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 400; line-height: 1.05; margin: 0;
  font-variation-settings: "SOFT" 40, "opsz" 144, "WONK" 1;
  letter-spacing: -0.01em;
}
.person-hero__detail { color: var(--color-ink-soft); margin: 0.5rem 0 0; }
.person-hero__quote {
  margin: 2rem 0 0; padding: 1rem 0 0;
  border-top: var(--border-width) solid var(--color-border-soft);
}
.person-hero__quote p {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--color-ink); margin: 0;
  font-variation-settings: "SOFT" 80;
}

/* ---------------- Memberships list ---------------- */
.memberships {
  border-top: var(--border-width) solid var(--color-border-soft);
  padding: 2rem 0 4rem;
}
.memberships__heading {
  font-family: var(--font-body);
  font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--color-ink-soft); font-weight: 600;
  margin: 0 0 1rem;
}
.memberships__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.memberships__list li {
  display: flex; align-items: baseline; gap: 1rem;
  padding: 0.6rem 0.8rem;
  background: var(--color-surface);
  border: var(--border-width) solid var(--color-border-soft);
  border-radius: var(--radius-card);
}
.memberships__tag {
  font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--color-ink-soft);
  min-width: 3.5rem;
}
.memberships__list a {
  font-family: var(--font-display);
  font-size: 1.05rem; color: var(--color-ink);
  text-decoration: none;
  font-variation-settings: "SOFT" 50;
}
.memberships__list a:hover { color: var(--color-accent); }

/* ---------------- Prose (free-text content below pages) ---------------- */
.prose {
  max-width: 640px; margin: 2rem auto 4rem;
  font-family: var(--font-body); font-size: 1.05rem; line-height: 1.7;
  color: var(--color-ink);
}
.prose p { margin: 0 0 1.2em; }

/* ---------------- Page thumbnail (class, club, sport) ---------------- */
/*
 * Shown at the top of every class, club, and sport page, between the page
 * header and the roster sections. Uses `thumbnail:` from the page front-matter
 * when set, otherwise falls back to the appropriate `*_thumbnail_default`
 * path in _config.yml (class_thumbnail_default, club_thumbnail_default,
 * sport_thumbnail_default).
 *
 * To use a custom photo, add to that page's .md:
 *   thumbnail: "/assets/images/groups/my-group.jpg"
 *
 * To hide the thumbnail for a specific page, set:
 *   thumbnail: ""
 *
 * Recommended image dimensions: 800 × 300 px (landscape, 8:3 ratio).
 */
.page-thumbnail {
  margin: 0 0 2.5rem;
}
.page-thumbnail__img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-photo);
  box-shadow: var(--shadow-soft);
  display: block;
}

/* ---------------- Group Photo ---------------- */
/*
 * Displayed on club and sport pages when `group_photo:` is set in the
 * page's front-matter. Replace the placeholder SVG with a real photo at
 * the same path to customise this page for your school.
 *
 * To hide this section entirely, remove `group_photo:` from the .md file.
 */
.group-photo {
  border-top: var(--border-width) solid var(--color-border-soft);
  padding: 2.5rem 0;
  max-width: 800px;
  margin: 0 auto;
}
.group-photo__heading {
  font-family: var(--font-body);
  font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--color-ink-soft); font-weight: 600;
  margin: 0 0 1.2rem;
}
.group-photo__figure { margin: 0; }
.group-photo__img {
  width: 100%;
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-photo);
  box-shadow: var(--shadow-soft);
  display: block;
}
.group-photo__caption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--color-ink-soft);
  line-height: 1.5;
}
.group-photo__label {
  font-weight: 600;
  color: var(--color-ink);
}

/* ---------------- Photo Gallery (photo-page layout) ---------------- */
/*
 * Used by _layouts/photo-page.html (the `_photos/` collection).
 * The gallery is a responsive grid of photo cards. Each card contains:
 *   - the photo itself (displayed at 3:2 landscape ratio)
 *   - an optional text description
 *   - an optional list of labeled people, each linked to their profile page
 *
 * To control the minimum card width (i.e., how many cards per row) tweak the
 * `minmax()` argument below — e.g. `minmax(300px, 1fr)` for wider cards.
 *
 * CSS custom properties used here inherit from the :root block at the top of
 * this file, so the gallery automatically picks up the site accent color,
 * border style, font, and so on.
 */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(1.2rem, 3vw, 2rem);
  margin: 2rem 0 3rem;
}

/* Individual photo card */
.photo-card {
  margin: 0;
  background: var(--color-surface);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.photo-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

/* Photo wrapper — locks the image to a 3:2 ratio */
.photo-card__frame {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--color-border-soft);
}
.photo-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Caption area (description + person labels) */
.photo-card__caption {
  padding: 0.8rem 1rem 1rem;
}
.photo-card__description {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  color: var(--color-ink);
  line-height: 1.5;
}
.photo-card__description:last-child { margin-bottom: 0; }

/* Person labels list */
.photo-card__labels {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.photo-card__label-link {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  background: var(--color-border-soft);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-card);
  color: var(--color-ink-soft);
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}
.photo-card__label-link:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

/* Small meta line (date) on the home page index cards */
.index-list__meta {
  display: block;
  font-size: 0.72rem;
  color: var(--color-ink-soft);
  letter-spacing: 0.06em;
  margin-top: 0.2rem;
}

/* ---------------- Footer ---------------- */
.site-footer {
  border-top: var(--border-width) solid var(--color-border);
  padding: 2.5rem 0; margin-top: 4rem;
  text-align: center;
  color: var(--color-ink-soft);
  font-size: 0.85rem;
}
.site-footer__mascot {
  font-family: var(--font-display); font-style: italic;
  margin-top: 0.3rem;
}
.site-footer__credit {
  margin-top: 0.8rem;
  font-size: 0.75rem;
  color: var(--color-ink-soft);
  opacity: 0.7;
}
.site-footer__credit a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------------- Print PDF nav button ---------------- */
.site-nav__print-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.75rem;
  background: var(--color-accent);
  color: #fff !important;
  border-radius: var(--radius-card);
  text-decoration: none !important;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: opacity 150ms ease;
  border-bottom: none !important;
}
.site-nav__print-btn:hover { opacity: 0.88; }

/* ---------------- Print layout (print.html) ---------------- */

/* Floating action bar shown on screen above the content */
.print-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--color-accent);
  color: #fff;
  padding: 0.6rem 1.5rem;
}
.print-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
.print-bar__info {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 0.9rem;
}
.print-bar__year {
  opacity: 0.7;
  font-size: 0.8rem;
}
.print-bar__actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.print-bar__help-link {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.8rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.print-bar__help-link:hover { color: #fff; }
.print-bar__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  background: #fff;
  color: var(--color-accent);
  border: none;
  border-radius: var(--radius-card);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: opacity 150ms ease;
}
.print-bar__btn:hover { opacity: 0.9; }

/* Main content area on the print page */
.print-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem clamp(1rem, 4vw, 2.5rem) 4rem;
}

/* Cover page */
.print-cover {
  text-align: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  margin-bottom: 0;
}
.print-cover__accent-bar {
  background: var(--color-accent);
  height: 2.5rem;
  flex-shrink: 0;
}
.print-cover__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
}
.print-cover__eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
  margin: 0 0 2.5rem;
}
.print-cover__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 400;
  line-height: 1.05;
  margin: 0;
  font-variation-settings: "SOFT" 30, "opsz" 144, "WONK" 1;
  letter-spacing: -0.01em;
}
.print-cover__rule {
  width: 4rem;
  height: 3px;
  background: var(--color-accent);
  margin: 2rem auto;
  border: none;
}
.print-cover__mascot {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-accent);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  margin: 0;
}
.print-cover__label {
  margin-top: 2.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
}

/* Table of contents */
.print-toc {
  padding: 3rem 0;
}
.print-toc__header {
  text-align: center;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--color-accent);
}
.print-toc__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  margin: 0;
  font-variation-settings: "SOFT" 40, "opsz" 72;
  letter-spacing: 0.05em;
}
.print-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
  column-gap: 3rem;
}
.print-toc__item {
  display: flex;
  gap: 0.75rem;
  padding: 0.45rem 0;
  border-bottom: 1px dotted var(--color-border-soft);
  align-items: baseline;
  break-inside: avoid;
}
.print-toc__label {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
  flex-shrink: 0;
  min-width: 4.5rem;
}
.print-toc__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-variation-settings: "SOFT" 40;
}

/* Section (class / club / sport / staff / photos) */
.print-section {
  padding: 2rem 0;
  border-bottom: 1px dashed var(--color-border-soft);
}
.print-section__header {
  text-align: center;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border-soft);
}
.print-section__eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
  margin: 0 0 0.5rem;
}
.print-section__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  margin: 0;
  font-variation-settings: "SOFT" 40, "opsz" 72;
}
.print-section__meta {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-ink-soft);
  margin: 0.5rem 0 0;
}

/* Thumbnail inside print sections */
.print-thumbnail { margin: 0 0 1.5rem; }
.print-thumbnail__img {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-photo);
  display: block;
}

/* Back cover */
.print-back-cover {
  text-align: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
}
.print-back-cover__accent-bar {
  background: var(--color-accent);
  height: 2.5rem;
  flex-shrink: 0;
}
.print-back-cover__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
}
.print-back-cover__year {
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
  margin: 0 0 1rem;
}
.print-back-cover__name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 400;
  margin: 0;
  font-variation-settings: "SOFT" 30, "opsz" 48;
  color: var(--color-ink);
}

/* Printing instructions panel (shown on screen, hidden in print) */
.print-instructions {
  margin-top: 4rem;
  padding: 2rem 2.5rem;
  background: var(--color-surface);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-card);
  border-left: 4px solid var(--color-accent);
}
.print-instructions__heading {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  margin: 0 0 1.5rem;
  font-variation-settings: "SOFT" 50;
}
.print-instructions h3 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.5rem;
}
.print-instructions ol,
.print-instructions ul {
  padding-left: 1.5rem;
  margin: 0.5rem 0 1rem;
  line-height: 1.7;
}
.print-instructions li { margin-bottom: 0.3rem; }
.print-instructions kbd {
  font-family: monospace;
  font-size: 0.85em;
  background: var(--color-border-soft);
  border: 1px solid var(--color-border);
  border-radius: 3px;
  padding: 0.1em 0.4em;
}

/* ---------------- Superlatives page ---------------- */

.superlative-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.superlative-card {
  text-align: center;
  background: var(--color-surface);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 1.25rem 1rem 1rem;
}
.superlative-card__category {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 600;
  margin: 0 0 1rem;
}
.superlative-card__winner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.superlative-card__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--color-ink);
}
.superlative-card__link:hover .superlative-card__frame {
  box-shadow: var(--shadow-lift);
}
.superlative-card__frame {
  width: 90px;
  height: 120px;
  border-radius: var(--radius-photo);
  overflow: hidden;
  border: var(--border-width) solid var(--color-border);
  background: var(--color-border-soft);
  box-shadow: var(--shadow-soft);
  transition: box-shadow 180ms ease;
  margin-bottom: 0.5rem;
}
.superlative-card__frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.superlative-card__fallback {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--color-accent);
  background: var(--color-border-soft);
}
.superlative-card__name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  display: block;
  font-variation-settings: "SOFT" 40;
}
.superlative-card__runner-up {
  margin-top: 0.6rem;
}
.superlative-card__runner-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--color-ink-soft);
}
.superlative-card__runner-link:hover .superlative-card__runner-frame {
  box-shadow: var(--shadow-lift);
}
.superlative-card__runner-frame {
  width: 60px;
  height: 80px;
  border-radius: var(--radius-photo);
  overflow: hidden;
  border: var(--border-width) solid var(--color-border);
  background: var(--color-border-soft);
  box-shadow: var(--shadow-soft);
  transition: box-shadow 180ms ease;
  margin-bottom: 0.25rem;
}
.superlative-card__runner-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.superlative-card__runner-fallback {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-accent);
  background: var(--color-border-soft);
}
.superlative-card__runner-name {
  font-size: 0.65rem;
  color: var(--color-ink-soft);
  display: block;
  text-align: center;
}
.superlative-card__missing {
  font-size: 0.75rem;
  color: #a33;
  font-family: monospace;
}

/* ---------------- Year in Review page ---------------- */

.yir-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.yir-card {
  background: var(--color-surface);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-card);
  border-top: 3px solid var(--color-accent);
  padding: 1.4rem 1.2rem 1.2rem;
}
.yir-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  margin: 0 0 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-variation-settings: "SOFT" 40;
}
.yir-card__icon { font-size: 1.25rem; line-height: 1; }
.yir-card__list {
  margin: 0;
  padding-left: 1.1rem;
}
.yir-card__item {
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--color-ink);
}
.yir-card__attribution {
  color: var(--color-accent);
  text-decoration: none;
  font-style: italic;
}
.yir-card__attribution:hover {
  text-decoration: underline;
}

/* ---------------- Student Favorites page ---------------- */

.favorites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}
.favorites-card {
  display: flex;
  gap: 1rem;
  background: var(--color-surface);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 1rem;
  align-items: flex-start;
}
.favorites-card--missing {
  font-size: 0.8rem;
  color: #a33;
  font-family: monospace;
  padding: 1rem;
  border: 1px dashed #a33;
}
.favorites-card__photo-link { display: block; flex-shrink: 0; }
.favorites-card__frame {
  width: 3rem;
  height: 4rem;
  border-radius: var(--radius-photo);
  overflow: hidden;
  border: var(--border-width) solid var(--color-border);
  background: var(--color-border-soft);
  box-shadow: var(--shadow-soft);
  transition: box-shadow 180ms ease;
}
.favorites-card__photo-link:hover .favorites-card__frame { box-shadow: var(--shadow-lift); }
.favorites-card__frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.favorites-card__fallback {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--color-accent);
}
.favorites-card__body { flex: 1; min-width: 0; }
.favorites-card__name {
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0 0 0.45rem;
}
.favorites-card__name a {
  color: var(--color-ink);
  text-decoration: none;
}
.favorites-card__name a:hover { color: var(--color-accent); }
.favorites-card__list {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.1rem 0.5rem;
  font-size: 0.78rem;
}
.favorites-card__list dt {
  color: var(--color-ink-soft);
  font-size: 0.68rem;
  white-space: nowrap;
}
.favorites-card__list dd { margin: 0; color: var(--color-ink); }

/* ---------------- Autographs page ----------------
 *
 * Each autograph page gets a double-border frame with corner accent marks
 * — a classic scrapbook / yearbook look that looks great when printed.
 *
 * The outer border + inner shadow create a double-rule effect.
 * The ::before / ::after pseudo-elements add L-shaped corner accents.
 *
 * To remove the frame: delete the .autograph-page border, box-shadow,
 * and ::before/::after rules below.
 */

.autograph-screen-note {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--color-ink-soft);
  font-style: italic;
  border: var(--border-width) dashed var(--color-border);
  border-radius: var(--radius-card);
  margin: 2rem 0;
}
.autograph-page {
  margin: 2rem 0;
  position: relative;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 1.5rem 2rem;
  /* Inner second border via inset box-shadow */
  box-shadow: inset 0 0 0 4px var(--color-bg),
              inset 0 0 0 6px var(--color-border-soft);
}
/* Corner accent marks — top-left and bottom-right */
.autograph-page::before,
.autograph-page::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--color-accent);
  border-style: solid;
  opacity: 0.45;
  pointer-events: none;
}
.autograph-page::before {
  top: -1px;
  left: -1px;
  border-width: 2.5px 0 0 2.5px;
}
.autograph-page::after {
  bottom: -1px;
  right: -1px;
  border-width: 0 2.5px 2.5px 0;
}
.autograph-lines { margin-top: 1.5rem; }
.autograph-line {
  border-bottom: 1px solid var(--color-border);
  height: 2.5rem;
}

/* ---------------- Dedications & Ads page ---------------- */

.dedications-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}
.dedication-card {
  background: var(--color-surface);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.dedication-card--half {
  grid-column: span 2;
  flex-direction: row;
  text-align: left;
  align-items: flex-start;
  gap: 1.5rem;
}
.dedication-card__portrait {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}
.dedication-card__portrait a { text-decoration: none; }
.dedication-card__frame {
  width: 80px;
  height: 107px;
  border-radius: var(--radius-photo);
  overflow: hidden;
  border: var(--border-width) solid var(--color-border);
  box-shadow: var(--shadow-soft);
  background: var(--color-border-soft);
  transition: box-shadow 180ms ease;
}
.dedication-card__portrait a:hover .dedication-card__frame { box-shadow: var(--shadow-lift); }
.dedication-card__frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.dedication-card__fallback {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-accent);
}
.dedication-card__honoree-name {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
  text-decoration: none;
}
.dedication-card__honoree-name:hover {
  color: var(--color-accent);
  text-decoration: underline;
}
.dedication-card__content { flex: 1; min-width: 0; }
.dedication-card__message {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.97rem;
  line-height: 1.65;
  margin: 0.75rem 0 0.6rem;
  color: var(--color-ink);
  font-variation-settings: "SOFT" 30, "opsz" 18;
}
.dedication-card--half .dedication-card__message { margin-top: 0; }
.dedication-card__from {
  font-size: 0.78rem;
  color: var(--color-ink-soft);
  letter-spacing: 0.06em;
  margin: 0;
}

/* ---------------- Print Index ---------------- */
.print-index { list-style: none; margin: 0; padding: 0; }
.print-index__entry {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 0.5rem;
  align-items: baseline;
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--color-border-soft);
}
.print-index__name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--color-ink);
}
.print-index__refs {
  font-size: 0.82rem;
  color: var(--color-ink-soft);
}
.print-index__refs a { color: var(--color-ink-soft); text-decoration: none; }
.print-index__refs a:hover { color: var(--color-accent); text-decoration: underline; }
.print-index__ref + .print-index__ref::before { content: " · "; color: var(--color-border); }

/* ---------------- Print media queries ---------------- */

/* @page: book-printing specifications
 *   Size    : US Letter 8.5 × 11 in (accepted by Lulu, Blurb, and most POD services)
 *   Margins : 0.75 in outer / 1 in inner (gutter) — within the safe zone for perfect-
 *             bound spines up to ~0.5 in thick.  Adjust margin-left / margin-right on
 *   :left / :right if your chosen service requires a wider gutter.
 */
@page {
  size: 8.5in 11in;
  margin: 0.75in;
  /* Page number centered in the bottom margin */
  @bottom-center {
    content: counter(page);
    font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 9pt;
    color: #5b544a;
  }
}
/* Suppress page number on the cover (first page) */
@page :first {
  @bottom-center { content: none; }
}
@page :left  { margin-right: 1in; }
@page :right { margin-left:  1in; }

@media print {
  :root { --color-bg: #ffffff; --color-surface: #ffffff; }
  body { background: #fff !important; background-image: none !important; }
  .site-header, .site-footer, .site-search { display: none; }
  .person-card__frame, .person-hero__portrait { box-shadow: none; }
  a { color: var(--color-ink); text-decoration: none; }

  /* Hide screen-only elements */
  .no-print { display: none !important; }

  /* Force backgrounds (color fills, etc.) to print */
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  /* Remove extra padding from the print wrapper — @page margins provide the safe zone */
  .print-main { padding: 0; max-width: none; }

  /* Page-break helper: each yearbook section starts on a fresh page */
  .print-page-break { break-before: page; }

  /* The cover never needs a break before it; force a break after so TOC is page 2 */
  .print-cover.print-page-break { break-before: avoid; break-after: page; }

  /* Back cover fills the last page */
  .print-back-cover { min-height: calc(11in - 1.5in); }

  /* Avoid breaking inside a person card or roster grid */
  .person-card, .roster__grid { break-inside: avoid; }

  /* Keep section headings with the content that follows */
  .print-section__header, .roster__heading { break-after: avoid; }

  /* Fixed portrait grid — consistent column count regardless of container width.
   * Students / members : 6 columns — fits 20–30 students on one page.
   * Teachers / staff / coaches : 4 columns. */
  .roster__grid    { grid-template-columns: repeat(6, 1fr); }
  .roster__grid--lg { grid-template-columns: repeat(4, 1fr); }

  /* Compact portrait cards: fixed frame height instead of 3:4 aspect ratio
   * so that 5–6 rows of students fit in the space freed by the smaller thumbnail.
   * At 6 cols × 0.85 in frame + 0.25 in caption = ~1.1 in/row → 30 students
   * comfortably fit on a single letter-size page alongside 1–2 teachers. */
  .person-card__frame {
    aspect-ratio: auto;
    height: 0.85in;
  }
  .person-card__caption { margin-top: 0.2rem; }
  .roster { margin-bottom: 0.5rem; }

  /* Section header: full-width accent-color band */
  .print-section__header {
    background: var(--color-accent);
    padding: 1.25rem 1rem;
    margin-bottom: 1.5rem;
    border-bottom: none;
    text-align: center;
  }
  .print-section__eyebrow { color: rgba(255, 255, 255, 0.75); }
  .print-section__title   { color: #fff; }
  .print-section__meta    { color: rgba(255, 255, 255, 0.85); }

  /* Portrait name: uppercase condensed label, matching classic yearbook style */
  .person-card__name {
    font-family: var(--font-body);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-variation-settings: normal;
  }
  .person-card__meta  { font-size: 0.62rem; }
  .person-card__quote { font-size: 0.6rem; }

  /* Thumbnail: small banner in print — 0.8 in tall leaves room for the roster */
  .print-thumbnail__img { max-height: 0.8in; object-fit: contain; }

  /* Remove sticky positioning for the print bar (it hides anyway) */
  .print-bar { position: static; }

  /* ── Superlatives in print ───────────────────────────────────────────────── */
  .superlative-grid { grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
  .superlative-card { padding: 0.4rem 0.25rem; }
  .superlative-card__frame { width: 0.65in; height: 0.87in; margin-bottom: 0.2rem; }
  .superlative-card__category { font-size: 0.55rem; margin-bottom: 0.35rem; }
  .superlative-card__name { font-size: 0.58rem; }
  .superlative-card__runner-up { margin-top: 0.25rem; }
  .superlative-card__runner-frame { width: 0.42in; height: 0.56in; }
  .superlative-card__runner-name { font-size: 0.45rem; }
  .superlative-card__link { color: var(--color-ink); }
  .superlative-card__runner-link { color: var(--color-ink-soft); }

  /* ── Year in Review in print ─────────────────────────────────────────────── */
  .yir-grid { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .yir-card { padding: 0.5rem 0.6rem; }
  .yir-card__title { font-size: 0.75rem; margin-bottom: 0.3rem; gap: 0.25rem; }
  .yir-card__icon { font-size: 0.9rem; }
  .yir-card__list { padding-left: 0.8rem; }
  .yir-card__item { font-size: 0.65rem; margin-bottom: 0.15rem; }

  /* ── Student Favorites in print ──────────────────────────────────────────── */
  .favorites-grid { grid-template-columns: repeat(3, 1fr); gap: 0.35rem; }
  .favorites-card { padding: 0.35rem; gap: 0.35rem; }
  .favorites-card__frame { width: 0.55in; height: 0.73in; }
  .favorites-card__name { font-size: 0.58rem; margin-bottom: 0.15rem; }
  .favorites-card__name a { color: var(--color-ink); }
  .favorites-card__list { font-size: 0.5rem; gap: 0.05rem 0.25rem; }

  /* ── Dedications in print ────────────────────────────────────────────────── */
  .dedications-grid { gap: 0.5rem; }
  .dedication-card { padding: 0.6rem; }
  .dedication-card--half { gap: 0.75rem; }
  .dedication-card__frame { width: 0.65in; height: 0.87in; }
  .dedication-card__honoree-name { font-size: 0.5rem; }
  .dedication-card__message { font-size: 0.72rem; margin: 0.3rem 0 0.2rem; }
  .dedication-card__from { font-size: 0.6rem; }
  .dedication-card__portrait a { color: var(--color-ink); }

  /* ── Autographs in print ─────────────────────────────────────────────────── */
  .autograph-screen-note { display: none !important; }
  .autograph-page--break { break-before: page; }
  .autograph-line { height: 0.45in; border-bottom: 1px solid #ccc; }

  /* ── Print Index ─────────────────────────────────────────────────────────── */
  .print-index { columns: 2; column-gap: 0.4in; }
  .print-index__entry {
    grid-template-columns: 1.1in 1fr;
    gap: 0.2rem;
    padding: 0.12rem 0;
    break-inside: avoid;
    font-size: 0.6rem;
  }
  .print-index__name { font-size: 0.6rem; }
  .print-index__refs { font-size: 0.55rem; }
  .print-index__refs a { color: var(--color-ink-soft); }
}
