/* Built by build-sample.py from looks.json, styles/looks.css and styles/fonts.css. Do not edit. */
/* Self-hosted fonts of the looks (SIL Open Font License), latin subset (it holds ñ and Ñ). Only the files a look loads (lib/looks/font-files.json); each is fetched only when that look is on the page. */
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/caveat-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'DM Serif Display'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/dm-serif-display-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/inter-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/inter-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Lora'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/lora-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Lora'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/lora-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/nunito-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/nunito-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/oswald-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Playfair Display'; font-style: italic; font-weight: 400; font-display: swap; src: url('fonts/playfair-display-latin-400-italic.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/playfair-display-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/source-sans-3-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/source-sans-3-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/*
 * The looks (design.preset): the cover, the heading style and the portrait shape of Scrapbook, Varsity, Night gala and Editorial, and the motion.
 * Every colour comes from a variable (the look's palette, set on html by lib/viewer/design.ts from looks.json), so nothing here is a colour of its own
 * except the Night gala print palette at the foot, which is looks.json's `print_palette` (a unit test keeps them equal). Heritage and Preschool have no
 * rules here: they look exactly as they did. A person without consent keeps the same card, the same place and the same size in every look.
 */

/* ---- motion: transform and opacity only, at most 500 ms, nothing loops. `data-motion='off'` and the viewer's reduced-motion setting switch it all off. ---- */
@keyframes look-reveal { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
@keyframes look-rise { from { opacity: 0; transform: translateY(var(--mo-dist, 8px)); } to { opacity: 1; transform: none; } }
@keyframes look-slide { from { opacity: 0; transform: translateX(var(--mo-dist, 8px)); } to { opacity: 1; transform: none; } }
@keyframes look-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes look-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
/* the page change of the Book view, by look (looks.json motion.page_change): a soft slide, a snap, or a fade */
html[data-motion='on'] .book-page[data-change='slide'], html[data-motion='on'] .book-page[data-change='snap_slide'] { animation: look-slide var(--mo-ms, 300ms) var(--mo-ease, ease) backwards; }
html[data-motion='on'] .book-page[data-change='fade'] { animation: look-fade var(--mo-ms, 300ms) var(--mo-ease, ease) backwards; }
html.seen-cover .hero { animation: none !important; } /* the reveal plays once for each visit: later pages skip it */
html[data-motion='on'] .hero { animation: look-reveal var(--mo-ms, 300ms) var(--mo-ease, ease) backwards; }
html[data-motion='on'] .kid:nth-child(-n+12), html[data-motion='on'] .item:nth-child(-n+12) { animation: look-rise var(--mo-ms, 300ms) var(--mo-ease, ease) backwards; }

html[data-motion='on'] .kid:nth-child(2), html[data-motion='on'] .item:nth-child(2) { animation-delay: 40ms; }
html[data-motion='on'] .kid:nth-child(3), html[data-motion='on'] .item:nth-child(3) { animation-delay: 80ms; }
html[data-motion='on'] .kid:nth-child(4), html[data-motion='on'] .item:nth-child(4) { animation-delay: 120ms; }
html[data-motion='on'] .kid:nth-child(5), html[data-motion='on'] .item:nth-child(5) { animation-delay: 160ms; }
html[data-motion='on'] .kid:nth-child(6), html[data-motion='on'] .item:nth-child(6) { animation-delay: 200ms; }
html[data-motion='on'] .kid:nth-child(7), html[data-motion='on'] .item:nth-child(7) { animation-delay: 240ms; }
html[data-motion='on'] .kid:nth-child(8), html[data-motion='on'] .item:nth-child(8) { animation-delay: 280ms; }
html[data-motion='on'] .kid:nth-child(9), html[data-motion='on'] .item:nth-child(9) { animation-delay: 320ms; }
html[data-motion='on'] .kid:nth-child(10), html[data-motion='on'] .item:nth-child(10) { animation-delay: 360ms; }
html[data-motion='on'] .kid:nth-child(11), html[data-motion='on'] .item:nth-child(11) { animation-delay: 400ms; }
html[data-motion='on'] .kid:nth-child(12), html[data-motion='on'] .item:nth-child(12) { animation-delay: 440ms; }

html[data-motion='on'] .kid, html[data-motion='on'] .item { transition: transform var(--mo-ms, 300ms) var(--mo-ease, ease); }
html[data-motion='on'] .kid:hover, html[data-motion='on'] .item:hover { transform: translateY(-2px); }
html[data-motion='on'] .ph img { transition: transform var(--mo-ms, 300ms) var(--mo-ease, ease); }
html[data-motion='on'] .kid:hover .ph img { transform: scale(1.03); }
html[data-motion='on'] .pg h2::after { animation: look-draw var(--mo-ms, 300ms) var(--mo-ease, ease) backwards; }
@media (prefers-reduced-motion: reduce) { html *, html *::before, html *::after { animation: none !important; transition: none !important; } }
html[data-motion='off'] *, html[data-motion='off'] *::before, html[data-motion='off'] *::after { animation: none !important; transition: none !important; }

/* ---- Scrapbook: a taped polaroid cover, a handwritten heading with a squiggle, polaroids with a small tilt ---- */
html[data-look='scrapbook'] .hero { background: var(--page); color: var(--ink); overflow: hidden; }
html[data-look='scrapbook'] .hero-text { position: relative; margin: 32px auto; max-width: 40rem; background: var(--card); color: var(--ink); padding: 40px 28px 32px; transform: rotate(calc(var(--mo-tilt) * -0.75)); filter: drop-shadow(0 3px 5px color-mix(in srgb, var(--ink) 30%, transparent)); }
html[data-look='scrapbook'] .hero-text::before { content: ''; position: absolute; top: -14px; left: 50%; width: 96px; height: 28px; background: var(--sticky); opacity: .9; transform: translateX(-50%) rotate(-3deg); }
html[data-look='scrapbook'] .pg h2, html[data-look='scrapbook'] .hero-text h1 { font-size: clamp(32px, 6vw, 44px); font-weight: 700; }
html[data-look='scrapbook'] .pg h2 { display: inline-block; }
html[data-look='scrapbook'] .pg h2::after { content: ''; display: block; height: 6px; margin-top: 2px; background: repeating-linear-gradient(135deg, var(--accent) 0 6px, transparent 6px 10px); transform-origin: left; }
html[data-look='scrapbook'] .kid { border: 0; border-radius: 3px; padding: 10px 10px 16px; transform: rotate(calc(var(--mo-tilt) * -1)); filter: drop-shadow(0 2px 4px color-mix(in srgb, var(--ink) 25%, transparent)); }
html[data-look='scrapbook'] .kid:nth-child(even) { transform: rotate(var(--mo-tilt)); }
html[data-look='scrapbook'] .ph { border-radius: 2px; }

/* ---- Varsity: big numerals and a band on the cover, a ribbon heading, numbered tiles ---- */
html[data-look='varsity'] .hero { position: relative; overflow: hidden; }
html[data-look='varsity'] .hero::after { content: attr(data-year) / ''; position: absolute; right: 12px; bottom: -.18em; font-family: var(--serif); font-weight: 700; font-size: clamp(120px, 26vw, 320px); line-height: 1; color: var(--on-fill); pointer-events: none; }
html[data-look='varsity'] .hero-text { position: relative; z-index: 1; border-bottom: 8px solid var(--gold); text-transform: uppercase; letter-spacing: .02em; }
html[data-look='varsity'] .pg h2 { display: inline-block; background: var(--accent); color: var(--on-accent); padding: 4px 26px 4px 16px; text-transform: uppercase; letter-spacing: .03em; clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 50%, 100% 100%, 0 100%); }
html[data-look='varsity'] .pg h2::after { display: none; }
html[data-look='varsity'] .kids { counter-reset: tile; }
html[data-look='varsity'] .kid { counter-increment: tile; position: relative; border-radius: 4px; border-top: 6px solid var(--accent); }
html[data-look='varsity'] .kid::before { content: counter(tile); position: absolute; top: 8px; left: 10px; font-family: var(--serif); font-size: 15px; color: var(--muted); }
html[data-look='varsity'] .ph { border-radius: 4px; }

/* ---- Night gala: a gold frame, a gold rule under the heading, dark cards ---- */
html[data-look='night_gala'] .hero { padding: 16px; }
html[data-look='night_gala'] .hero-text { text-align: center; border: 2px solid var(--accent); outline: 1px solid var(--accent); outline-offset: 6px; margin: 16px auto; }
html[data-look='night_gala'] .pg h2 { display: inline-block; color: var(--accent); }
html[data-look='night_gala'] .pg h2::after { content: ''; display: block; height: 2px; margin-top: 6px; background: var(--accent); transform-origin: left; }
html[data-look='night_gala'] .kid { border: 1px solid var(--accent); border-radius: 4px; }
html[data-look='night_gala'] .ph { outline: 2px solid var(--accent); outline-offset: 2px; background: var(--photo); color: var(--ink); }

/* ---- Editorial: a masthead cover, a hairline and kicker heading, a list of rows ---- */
html[data-look='editorial'] .hero { background: var(--page); color: var(--ink); }
html[data-look='editorial'] .hero-text { text-align: center; border-top: 6px double var(--ink); border-bottom: 1px solid var(--ink); margin: 24px auto; }
html[data-look='editorial'] .hero-text h1 { font-size: clamp(36px, 8vw, 72px); font-weight: 700; }
html[data-look='editorial'] .eyebrow { letter-spacing: .18em; }
html[data-look='editorial'] .pg h2 { border-top: 1px solid var(--ink); padding-top: 10px; color: var(--ink); }
html[data-look='editorial'] .pg h2::after { display: none; }
html[data-look='editorial'] .kids { grid-template-columns: 1fr; gap: 0; }
html[data-look='editorial'] .kid { display: grid; grid-template-columns: 64px 1fr; column-gap: 14px; align-items: center; text-align: left; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; padding: 10px 0; }
html[data-look='editorial'] .kid > .ph { grid-row: 1 / span 5; width: 64px; height: 64px; border-radius: 4px; font-size: 20px; }

/* ---- no horizontal scroll at 320 px ---- */
@media (max-width: 360px) { html[data-look] .hero-text { padding-left: 16px; padding-right: 16px; } html[data-look='varsity'] .hero::after { font-size: 120px; } }

/* ---- print: Night gala prints in a light version (looks.json print_palette: a dark page wastes ink); nothing animates in a PDF ---- */
@media print {
  /* !important: the book's own colours sit on the element as inline variables, and the printed page must still be light */
  html[data-look='night_gala'] { --primary: #1f2333 !important; --accent: #8a6414 !important; --page: #ffffff !important; --card: #ffffff !important; --ink: #1f2333 !important; --muted: #4b5666 !important; --line: #cfcfcf !important; --photo: #ececec !important; --primary-ink: #1f2333 !important; --on-primary: #ffffff !important; --on-accent: #ffffff !important; }
  html *, html *::before, html *::after { animation: none !important; transition: none !important; }
}

/* the look switch (sample page only) */
.looks{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 14px;color:var(--ink)}
.looks-t{font-weight:700;margin-right:2px}
section.hero{scroll-margin-top:calc(var(--head-h,60px) + 8px)}
.look-btn{border:2px solid #1d2433;background:#fff;color:#1d2433;border-radius:99px;min-height:44px;padding:4px 16px;font:inherit;font-weight:600;cursor:pointer}
.look-btn[aria-pressed="true"]{background:#1d2433;color:#fff;box-shadow:0 0 0 3px #fff, 0 0 0 5px #1d2433}
.look-btn:focus-visible{outline:3px solid var(--primary-ink);outline-offset:2px}
/* where the look's text colour would sit on a white panel of the viewer (Night gala has light text), the panel keeps the dark text */
html[data-look='night_gala'] :is(.try,.banner,.card,.ybcard,.note){--ink:#1d2433;--muted:#4b5666;--line:#d5dbe0;--primary-ink:#1d2433;color:#1d2433}
html[data-look='night_gala'] :is(.btn.secondary,.try-fill){color:#1d2433;border-color:#1d2433}
html[data-look='night_gala'] :is(.pg .sub,.kid .cls,.kid .mt,.gal figcaption){color:var(--muted)}
/* a small line of text on the look's own cover: the look's text colour, not the accent */
html[data-look='scrapbook'] .hero .eyebrow, html[data-look='editorial'] .hero .eyebrow{color:var(--muted)}
/* Editorial's masthead cover is dark text on the page colour: no photo behind it */
html[data-look='editorial'] .hero{background-image:none !important}
html[data-look='scrapbook'] .hero .cta{background:var(--primary);color:var(--on-primary)}
