@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@800;900&family=Instrument+Serif:ital@1&family=Inter+Tight:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --paper: #EFE6D6; --ink: #17140F; --lilac: #8E6BD6; --orange: #FF5A1F;
  --marker: #FFD43B; --blue: #3467BA; --moss: #A0B37C;
  --paper-deep: #E2D7C3; --muted: #625C52; --rule: #B8AE9E;
  --display: 'Big Shoulders Display', Impact, 'Arial Narrow', sans-serif;
  --voice: 'Instrument Serif', Georgia, serif;
  --mono: 'JetBrains Mono', monospace;
  --body: 'Inter Tight', Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html, body, .reveal-viewport { margin: 0; background: var(--paper); color: var(--ink); }
body { font-family: var(--body); }
::selection { background: var(--marker); color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 6px; }
.reveal { font: 400 30px/1.3 var(--body); color: var(--ink); }
.reveal .slides { text-align: left; }
.reveal .slides > section {
  width: 1920px; height: 1080px; padding: 52px 120px 64px;
  background: var(--paper); overflow: hidden;
}
.reveal .slides > section.present { display: flex !important; flex-direction: column; }
.folio {
  display: flex; justify-content: space-between; flex: none;
  padding: 0 0 18px; border-bottom: 2px solid var(--ink);
  font: 500 19px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase;
}
.folio span:first-child::before { content: ''; display: inline-block; width: 12px; height: 12px; background: var(--lilac); margin-right: 13px; }
.slide-head { margin: 38px 0 28px; flex: none; }
.reveal h1, .reveal h2, .reveal h3 { margin: 0; color: inherit; font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: -.025em; }
.reveal h2 { font-size: 104px; line-height: .98; }
.reveal h3 { font-size: 48px; line-height: 1.05; }
.reveal p { margin: 0; }
.reveal .voice { font: italic 400 42px/1.12 var(--voice); }
.reveal .lede { margin-top: 18px; }
.reveal .small { font-size: 24px; line-height: 1.35; }
.reveal .quiet { color: var(--muted); }
.reveal .mono, .reveal figcaption { font: 400 17px/1.4 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.hl { position: relative; isolation: isolate; white-space: nowrap; }
.hl::before { content: ''; position: absolute; z-index: -1; inset: 55% -6px 1%; background: var(--marker); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 28px; min-height: 0; }
.slide-body { flex: 1; min-height: 0; }
.reveal figure { margin: 0; min-width: 0; }
.reveal figcaption { margin-top: 12px; }
.reveal img { display: block; max-width: none; max-height: none; margin: 0; border: 0; }
.frame { padding: 0; display: block; width: 100%; color: var(--ink); background: var(--paper-deep); border: 2px solid var(--ink); overflow: hidden; text-align: left; }
button.frame { cursor: zoom-in; font: inherit; }
.browser::before {
  content: '●  ●  ●'; display: block; height: 29px; padding: 3px 12px;
  border-bottom: 1px solid var(--ink); background: var(--paper);
  font: 12px/22px var(--mono); letter-spacing: 2px;
}
.image-box { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; }
.image-box img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.phone { border: 3px solid var(--ink); border-radius: 28px; padding: 8px; background: var(--ink); }
.phone .image-box { aspect-ratio: 390 / 844; border-radius: 18px; background: var(--paper-deep); }
.placeholder { display: none; padding: 24px; text-align: center; max-width: 100%; }
.placeholder span { display: block; font: 400 13px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.placeholder code { font: 400 20px/1.4 var(--mono); overflow-wrap: anywhere; }
.image-box.is-missing img { display: none; }
.image-box.is-missing .placeholder { display: block; }
.frame:disabled { cursor: default; opacity: 1; }
.photo .image-box { aspect-ratio: 1; }
.photo img { object-fit: cover; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px 36px; align-items: center; flex: none; padding-top: 22px; margin-top: 20px; border-top: 1px solid var(--rule); }
.reveal a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 7px; }
.reveal a[data-link] { font: 500 22px/1.4 var(--body); }
.reveal a[data-link]::after { content: ' ↗'; font-size: .9em; }
.reveal a:hover { color: #5E43A6; }
.reveal a.link-pending { text-decoration-style: dotted; }
.reveal a:not([href]) { color: var(--muted); cursor: default; }
.footer-links .hint { margin-left: auto; font: 400 16px/1.4 var(--mono); color: var(--muted); }
.reveal .progress { height: 4px; color: var(--lilac); background: transparent; }
.reveal .progress span { transition: none; }

/* Opening and closing pages keep the typography in charge. */
.title-layout { display: grid; grid-template-columns: repeat(12, 1fr); gap: 28px; flex: 1; padding-top: 86px; }
.title-copy { grid-column: 1 / 12; }
.reveal .title-copy h1 { font-size: 218px; line-height: .86; letter-spacing: -.035em; }
.title-copy h1 span { display: block; }
.title-copy .voice { margin-top: 48px; font-size: 48px; }
.title-bottom { display: flex; justify-content: space-between; align-items: end; margin-top: auto; border-top: 2px solid var(--ink); padding-top: 24px; }
.title-bottom .name { font-size: 28px; }
.title-bottom .mono { font-size: 16px; color: var(--muted); }
.me-copy { grid-column: span 5; display: flex; flex-direction: column; gap: 24px; padding-right: 26px; }
.me-copy .voice { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 38px; }
.me-photos { grid-column: span 7; display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.me-photos .puzzles { grid-row: span 2; }
.me-photos .puzzles .image-box { height: 552px; aspect-ratio: auto; }
.me-photos .delta .image-box { height: 302px; aspect-ratio: auto; }
.me-photos .delta img { object-fit: cover; object-position: center 30%; }
.me-photos .wedding .image-box { height: 188px; aspect-ratio: auto; }
.me-photos figcaption { font-size: 15px; }
.stats { display: flex; gap: 36px; padding-top: 10px; }
.stats strong { display: block; font: 800 76px/1 var(--display); }
.stats span { display: block; margin-top: 8px; font-size: 22px; }
.pair { align-content: center; }
.pair > figure { grid-column: span 6; }
.pair figcaption { display: flex; justify-content: space-between; }
#embed .pair > figure { width: 770px; max-width: 100%; justify-self: center; }
.home-gallery { align-items: start; }
.home-gallery .hero-shot { grid-column: span 7; }
.home-gallery .course-shot { grid-column: span 3; align-self: end; padding-bottom: 40px; }
.home-gallery .phone-shot { grid-column: span 2; }
.home-gallery .course-shot figcaption { font-size: 15px; }
.app-gallery { align-items: start; }
.app-gallery .phone-shot { grid-column: span 2; width: 220px; }
.app-gallery .stage { display: block; margin-bottom: 12px; font: 500 17px/1.3 var(--mono); text-transform: uppercase; }
.app-gallery figcaption { font: 400 22px/1.25 var(--body); letter-spacing: 0; text-transform: none; }
.app-gallery .phone .image-box { aspect-ratio: 680 / 1362; }
.booth-gallery { align-items: start; }
.booth-gallery .board-shot { grid-column: span 8; }
.booth-gallery .board-shot .frame { max-width: 860px; }
.booth-gallery .phone-shot { grid-column: span 3; width: 250px; justify-self: start; }
.board-shot .small { margin-top: 20px; }
.build-gallery { align-items: center; }
.build-gallery > figure { grid-column: span 7; width: 720px; justify-self: center; }
.build-gallery > figure .image-box { aspect-ratio: 1992 / 1759; }
.build-gallery > .build-note { grid-column: span 5; max-width: 500px; padding-left: 10px; }
.build-note .voice { font-size: 46px; margin-bottom: 26px; }
.build-note .mono { margin-bottom: 20px; color: #5E43A6; }
#end .slide-head { margin-bottom: 48px; }
#end h2 { font-size: 130px; }
.link-index { display: grid; grid-template-columns: repeat(6, 1fr); column-gap: 42px; row-gap: 38px; align-content: start; }
.link-group { grid-column: span 2; border-top: 2px solid var(--ink); padding-top: 14px; }
.link-group h3 { font-size: 40px; margin-bottom: 18px; }
.link-group a { display: table; margin-top: 10px; }
.link-group.maker-links { border-top-color: var(--lilac); }
.link-group.maker-links h3 { font-family: var(--voice); font-style: italic; font-size: 35px; font-weight: 400; text-transform: lowercase; letter-spacing: 0; }
.end-name { margin-top: auto; padding-top: 24px; font-size: 27px; }

/* The overlay changes opacity only; its image never animates or scales in. */
.zoom { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; border: 0; margin: 0; padding: 64px; background: var(--paper); color: var(--ink); opacity: 0; transition: opacity 140ms linear; }
.zoom[open] { display: flex; align-items: center; justify-content: center; }
.zoom.is-visible { opacity: 1; }
.zoom::backdrop { background: var(--paper); }
.zoom img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.zoom-close { position: absolute; right: 24px; top: 20px; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); padding: 10px 16px; font: 500 14px var(--mono); cursor: pointer; }
.zoom-caption { position: absolute; left: 24px; bottom: 18px; margin: 0; font: 13px var(--mono); }
.status { position: fixed; bottom: 16px; left: 16px; z-index: 50; padding: 10px 16px; background: var(--paper); border: 1px solid var(--ink); font: 14px/1.4 var(--body); }
.status[hidden] { display: none; }

/* Reveal's overview normally moves slides in 3D. Here it changes instantly. */
.reveal.overview .slides, .reveal.overview .slides section,
.reveal.overview-deactivating .slides, .reveal.overview-deactivating .slides section { transition: none !important; }
.reveal.overview .slides > section { display: flex !important; flex-direction: column; }
.reveal .slides section { transition-property: opacity !important; }
.reveal .pause-overlay { transition: opacity 140ms !important; }

/* ?print is a plain, vertically stacked document; Reveal is not initialized. */
html.print-mode, .print-mode body { height: auto; overflow: auto; }
.print-mode .reveal { height: auto; overflow: visible; }
.print-mode .reveal .slides { position: static; width: 1920px; height: auto; margin: 0 auto; perspective: none; transform: none; zoom: var(--print-scale, 1); }
.print-mode .reveal .slides > section { position: relative; inset: auto; display: flex !important; flex-direction: column; opacity: 1 !important; visibility: visible !important; transform: none !important; pointer-events: auto !important; margin-bottom: 24px; border-bottom: 2px solid var(--ink); }
.print-mode .reveal .slides aside.notes { display: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@page { size: 20in 11.25in; margin: 0; }
@media print {
  html, body, .reveal { height: auto !important; overflow: visible !important; }
  .reveal .slides { position: static !important; width: 1920px !important; height: auto !important; margin: 0 !important; transform: none !important; zoom: 1 !important; }
  .reveal .slides > section { position: relative !important; inset: auto !important; display: flex !important; flex-direction: column; opacity: 1 !important; visibility: visible !important; transform: none !important; margin: 0 !important; border: 0 !important; break-after: page; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .reveal .slides > section:last-child { break-after: auto; }
  .reveal .slides aside.notes, .reveal .progress, .reveal .backgrounds, .reveal .slide-number, .zoom, .status { display: none !important; }
}

/* booth: the board alone */
.booth-solo { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.booth-solo figure { width: 960px; margin: 0; }
.booth-solo .image-box { aspect-ratio: 912 / 478; }

/* booth build: three options, no screenshot */
.build-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; align-content: center; }
.build-opt { border-top: 4px solid var(--ink); padding-top: 28px; }
.build-opt.pick { border-top-color: var(--lilac); }
.build-opt .mono { font: 500 22px/1 var(--mono, "JetBrains Mono", monospace); letter-spacing: .1em; text-transform: uppercase; margin: 0 0 22px; }
.build-opt.pick .mono { color: var(--lilac); }
.build-opt h3 { font: 900 84px/.92 var(--display, "Big Shoulders Display", sans-serif); text-transform: uppercase; margin: 0 0 24px; }
.build-opt p:last-child { font-size: 30px; line-height: 1.35; margin: 0; max-width: 15em; }

/* sign-up: one direction per slide */
.reveal .kicker { margin-bottom: 14px; color: #5E43A6; }
.signup-pair { display: flex; justify-content: center; align-items: center; gap: 40px; }
.signup-pair > figure { width: 820px; margin: 0; }
#signup-b .signup-pair > figure { width: 880px; }
#signup-b .signup-pair > figure.square { width: 495px; }
#signup-b .square .image-box { aspect-ratio: 1035 / 1032; }

/* app: phones, then one card from before the race and one from after */
.app-gallery > .app-cards { grid-column: 8 / 13; justify-self: end; }
.card-pair { display: flex; gap: 32px; }
.card-pair > figure { width: 268px; margin: 0; }
.card-pair .image-box { aspect-ratio: 9 / 16; }
.app-gallery .card-pair figcaption { font: 400 17px/1.4 var(--mono); text-transform: uppercase; }

/* bibs: one design per slide; the images are crops of the designs */
.bib-solo { display: flex; justify-content: center; align-items: center; }
.bib-solo > figure { width: 700px; margin: 0; }
.bib-solo .image-box { aspect-ratio: 1116 / 880; }
.bib-solo.runner .image-box { aspect-ratio: 1280 / 1010; }

/* map: next steps on the left, the phone overlapping the desktop on the right */
.map-layout { align-items: center; }
.map-points { grid-column: 1 / 5; list-style: none; margin: 0; padding: 0; }
.map-points li { display: grid; grid-template-columns: 52px 1fr; gap: 0 12px; padding: 18px 0 20px; border-top: 1px solid var(--rule); }
.map-points li:first-child { border-top: 2px solid var(--ink); }
.map-points li > .mono { padding-top: 7px; color: #5E43A6; }
.map-points h3 { font-size: 40px; line-height: 1; }
.map-points p { margin: 6px 0 0; font-size: 23px; line-height: 1.3; }
.map-points li.next h3::after { content: '  →'; color: var(--lilac); }
.map-media { grid-column: 5 / 13; position: relative; height: 600px; }
.map-media .desktop-shot { position: absolute; left: 20px; top: 0; width: 900px; }
.map-media .phone-shot { position: absolute; right: 0; top: 70px; width: 246px; }
.map-media .phone { outline: 10px solid var(--paper); }
