:root { color-scheme: light; --paper: #fafaf8; --ink: #171918; --muted: #666b68; --accent: #446651; }
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; min-height: 100%; background: var(--paper); }
body { font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif; color: var(--ink); -webkit-font-smoothing: antialiased; }
body.presenting { overflow: hidden; }
p, h1, h2, figure { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
.slide { position: relative; isolation: isolate; overflow: hidden; min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 64px 6vw 106px; background: var(--paper); }
.presenting .slide { position: absolute; inset: 0; min-height: 0; height: 100vh; height: 100dvh; display: none; }
.presenting .slide.active { display: flex; }
.content { width: 100%; max-width: 1120px; display: flex; flex-direction: column; align-items: center; gap: clamp(32px, 5vh, 52px); }
.pair { width: 100%; }
.en { font-size: clamp(38px, 4.5vw, 66px); font-weight: 500; line-height: 1.12; letter-spacing: -.035em; text-wrap: balance; }
.zh { margin-top: 20px; font-size: clamp(23px, 2.1vw, 30px); font-weight: 400; line-height: 1.55; letter-spacing: .045em; color: var(--muted); text-wrap: balance; }
.pair + .pair .en { font-size: clamp(29px, 3.1vw, 43px); line-height: 1.2; letter-spacing: -.025em; }
.pair + .pair .zh { font-size: clamp(21px, 1.85vw, 26px); margin-top: 15px; }
.label { line-height: 1.4; color: var(--muted); }
.label p[lang=en] { font-size: 20px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.label p[lang=zh-Hant] { font-size: 15px; letter-spacing: .12em; margin-top: 7px; }
.cover .content { gap: 46px; }
.cover .pair-1 .en { font-size: clamp(38px, 4.55vw, 68px); line-height: 1.13; letter-spacing: -.04em; font-weight: 550; }
.cover .pair-1 .zh { font-size: clamp(22px, 2vw, 28px); margin-top: 30px; line-height: 1.6; }
.cover .pair-2::before { content: ""; display: block; width: 32px; height: 1px; margin: 0 auto 22px; background: #b9bdb5; }
.cover .pair-2 .en { font-size: 25px; font-weight: 500; letter-spacing: -.02em; }
.cover .pair-2 .zh { font-size: 17px; margin-top: 6px; letter-spacing: .12em; }
.dark { background: #171918; color: #fafaf8; --muted: #b7bfb8; }
.photo { background: #111412; --ink: #fafaf8; --muted: #d0d4ce; }
.slide-background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--photo-position, 50% 50%); z-index: 0; filter: saturate(.6); }
.photo::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.025) 38%, transparent 68%),
    linear-gradient(180deg,
      rgba(0,0,0,calc(var(--photo-shade,.74) - .16)) 0%,
      rgba(0,0,0,calc(var(--photo-shade,.74) - .07)) 42%,
      rgba(0,0,0,calc(var(--photo-shade,.74) - .05)) 65%,
      rgba(0,0,0,calc(var(--photo-shade,.74) + .04)) 100%);
}
.photo .content { position: relative; z-index: 2; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.photo .brand { filter: brightness(0) invert(1); mix-blend-mode: normal; }
.image-credit { position: absolute; z-index: 2; bottom: max(13px, env(safe-area-inset-bottom)); left: 24px; right: 24px; font-size: 11px; line-height: 1.5; color: #c3c9c2; text-align: center; text-wrap: balance; }
.image-credit a { color: inherit; text-decoration: none; }
.image-credit a:hover { text-decoration: underline; text-underline-offset: 3px; }
.statement .pair-1 .en { font-size: clamp(42px, 5vw, 74px); }
.impact .pair-1 .en { font-size: clamp(36px, 4.1vw, 60px); }
.impact .pair-2 .en { font-size: clamp(27px, 2.6vw, 38px); line-height: 1.25; }
.impact .pair-2 .zh { font-size: clamp(20px, 1.8vw, 25px); }
.thanks .en { font-size: clamp(76px, 10vw, 144px); font-weight: 450; letter-spacing: -.055em; }
.thanks .zh { font-size: clamp(24px, 2.7vw, 38px); margin-top: 28px; letter-spacing: .12em; }
.brand { width: 140px; height: auto; mix-blend-mode: multiply; margin-bottom: 4px; }
.allen .content { gap: 24px; }
.allen .label p[lang=en] { font-size: 23px; letter-spacing: -.01em; text-transform: none; color: var(--ink); }
.allen .label p[lang=zh-Hant] { font-size: 16px; letter-spacing: .04em; }
.allen .pair-1 .en { font-size: 54px; }
.allen .pair-1 .zh { font-size: 23px; margin-top: 8px; }
.allen .pair + .pair .en { font-size: 30px; line-height: 1.2; }
.allen .pair + .pair .zh { font-size: 20px; margin-top: 9px; }
.credits { max-width: 1050px; font-size: 12px; line-height: 1.5; letter-spacing: .015em; color: var(--muted); }
.print-number { display: none; }
.controls { position: fixed; z-index: 10; bottom: max(45px, calc(env(safe-area-inset-bottom) + 32px)); left: 50%; transform: translateX(-50%); display: flex; justify-content: center; align-items: center; gap: 7px; padding: 3px 8px; color: #cbd0ca; background: rgba(33,37,34,.92); border: 1px solid rgba(255,255,255,.12); border-radius: 6px; transition: opacity .2s; }
.controls a, .controls button { color: inherit; border: 0; background: transparent; padding: 0; width: 35px; height: 35px; display: grid; place-items: center; cursor: pointer; text-decoration: none; font-size: 24px; line-height: 1; }
.controls #counter { font-variant-numeric: tabular-nums; font-size: 13px; min-width: 64px; text-align: center; }
.controls button:disabled { opacity: .24; cursor: default; }
.controls :focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid #698e77; outline-offset: 3px; }
.controls a:hover, .controls button:hover { color: #fff; }
.idle .controls { opacity: 0; pointer-events: none; }
.idle .controls:focus-within, .idle .controls:hover { opacity: 1; pointer-events: auto; }
.progress { position: fixed; z-index: 12; bottom: 0; width: 100%; height: 3px; background: transparent; }
#progress-bar { width: 100%; height: 100%; background: #728c78; transform: scaleX(.055556); transform-origin: left center; }
dialog { width: min(760px, calc(100vw - 36px)); max-height: 85vh; border: 0; border-radius: 5px; padding: 44px 38px; background: var(--paper); color: var(--ink); text-align: center; }
dialog::backdrop { background: rgba(0,0,0,.5); }
dialog h2 { font-size: 25px; }
dialog h2 span { display: block; font-size: 18px; margin: 8px 0 20px; font-weight: 400; }
dialog h3 { margin: 42px 0 14px; font-size: 18px; }
dialog .source-intro { font-size: 13px; line-height: 1.6; color: var(--muted); }
dialog .close { position: absolute; top: 10px; right: 15px; border: 0; background: none; font-size: 28px; cursor: pointer; }
dialog article { margin-top: 26px; line-height: 1.6; font-size: 14px; }
dialog article p { margin-top: 9px; color: var(--muted); }
dialog a { color: #365b46; }
.reading .slide { min-height: 100vh; border-bottom: 1px solid #dedfda; }
.reading .controls { opacity: 1; pointer-events: auto; }
@media (max-width: 700px) {
  .slide { padding: 40px 26px 106px; }
  .content { gap: 32px; }
  .en { font-size: 36px; line-height: 1.15; }
  .zh { font-size: 20px; margin-top: 18px; }
  .pair + .pair .en { font-size: 28px; }
  .pair + .pair .zh { font-size: 18px; margin-top: 13px; }
  .label p[lang=en] { font-size: 17px; }
  .label p[lang=zh-Hant] { font-size: 13px; }
  .cover .content { gap: 32px; }
  .cover .pair-1 .en { font-size: 35px; line-height: 1.16; }
  .cover .pair-1 .zh { font-size: 19px; margin-top: 24px; }
  .cover .pair-2 .en { font-size: 23px; }
  .cover .pair-2 .zh { font-size: 16px; }
  .cover .pair-2::before { margin-bottom: 17px; }
  .statement .pair-1 .en { font-size: 39px; }
  .impact .pair-1 .en { font-size: 32px; }
  .impact .pair-2 .en { font-size: 25px; }
  .impact .pair-2 .zh { font-size: 18px; }
  .thanks .en { font-size: 76px; }
  .thanks .zh { font-size: 26px; }
  .brand { width: 115px; }
  .allen .content { gap: 18px; }
  .allen .label p[lang=en] { font-size: 19px; }
  .allen .label p[lang=zh-Hant] { font-size: 13px; }
  .allen .pair-1 .en { font-size: 37px; }
  .allen .pair-1 .zh { font-size: 19px; }
  .allen .pair + .pair .en { font-size: 23px; }
  .allen .pair + .pair .zh { font-size: 16px; margin-top: 8px; }
  .allen .en br { display: none; }
  .credits { font-size: 10px; }
  .controls { gap: 1px; }
  .controls a, .controls button { width: 32px; }
  .image-credit { font-size: 9px; left: 16px; right: 16px; bottom: max(10px, env(safe-area-inset-bottom)); }
}
@media (max-width: 360px) {
  .slide { padding-left: 21px; padding-right: 21px; }
  .content { gap: 25px; }
  .en { font-size: 31px; }
  .zh { font-size: 18px; margin-top: 14px; }
  .pair + .pair .en { font-size: 25px; }
  .pair + .pair .zh { font-size: 17px; }
  .cover .pair-1 .en { font-size: 30px; }
  .cover .pair-1 .zh { font-size: 17px; }
  .statement .pair-1 .en { font-size: 35px; }
  .impact .pair-1 .en { font-size: 28px; }
  .impact .pair-2 .en { font-size: 22px; }
  .impact .pair-2 .zh { font-size: 16px; }
  .allen .content { gap: 13px; }
  .allen .label p[lang=en] { font-size: 16px; }
  .allen .label p[lang=zh-Hant] { font-size: 12px; }
  .allen .pair-1 .en { font-size: 31px; }
  .allen .pair-1 .zh { font-size: 17px; margin-top: 5px; }
  .allen .pair + .pair .en { font-size: 20px; }
  .allen .pair + .pair .zh { font-size: 14px; margin-top: 6px; }
  .allen .credits { font-size: 9px; }
}
@media (max-height: 800px) and (min-width: 701px) {
  .allen .content { gap: 18px; }
}
@media (max-height: 600px) and (min-width: 701px) {
  .slide { padding-top: 24px; padding-bottom: 92px; }
  .content, .cover .content { gap: 22px; }
  .en, .cover .pair-1 .en, .statement .pair-1 .en { font-size: 41px; }
  .zh, .cover .pair-1 .zh { font-size: 22px; margin-top: 14px; }
  .pair + .pair .en { font-size: 29px; }
  .pair + .pair .zh { font-size: 19px; margin-top: 8px; }
  .cover .pair-2 .en { font-size: 22px; }
  .cover .pair-2 .zh { font-size: 16px; }
  .cover .pair-2::before { margin-bottom: 12px; }
  .label p[lang=en] { font-size: 17px; }
  .label p[lang=zh-Hant] { font-size: 12px; margin-top: 5px; }
  .brand { width: 90px; margin: 0; }
  .impact .pair-1 .en { font-size: 37px; }
  .impact .pair-2 .en { font-size: 27px; }
  .impact .pair-2 .zh { font-size: 19px; }
  .allen .content { gap: 12px; }
  .allen .label p[lang=en] { font-size: 18px; }
  .allen .label p[lang=zh-Hant] { font-size: 12px; }
  .allen .pair-1 .en { font-size: 33px; }
  .allen .pair-1 .zh { font-size: 17px; margin-top: 5px; }
  .allen .pair + .pair .en { font-size: 23px; }
  .allen .pair + .pair .zh { font-size: 16px; margin-top: 4px; }
  .credits { font-size: 10px; }
}
@media (max-height: 450px) and (min-width: 600px) {
  .slide { padding: 18px 5vw 92px; }
  .content, .cover .content { gap: 12px; }
  .en, .cover .pair-1 .en, .statement .pair-1 .en { font-size: 28px; }
  .zh, .cover .pair-1 .zh { font-size: 18px; margin-top: 9px; line-height: 1.45; }
  .pair + .pair .en { font-size: 22px; }
  .pair + .pair .zh { font-size: 14px; margin-top: 7px; }
  .cover .pair-1 .zh br { display: none; }
  .cover .pair-2 .en { font-size: 20px; }
  .cover .pair-2 .zh { font-size: 14px; margin-top: 3px; }
  .cover .pair-2::before { margin-bottom: 11px; }
  .label p[lang=en] { font-size: 14px; }
  .label p[lang=zh-Hant] { font-size: 11px; margin-top: 3px; }
  .brand { width: 65px; margin: 0; }
  .impact .pair-1 .en { font-size: 29px; }
  .impact .pair-2 .en { font-size: 22px; }
  .impact .pair-2 .zh { font-size: 16px; }
  .thanks .en { font-size: 80px; }
  .thanks .zh { font-size: 24px; }
  .allen .content { gap: 5px; }
  .allen .label p[lang=en] { font-size: 15px; }
  .allen .label p[lang=zh-Hant] { font-size: 11px; margin-top: 3px; }
  .allen .pair-1 .en { font-size: 24px; }
  .allen .pair-1 .zh { font-size: 14px; margin-top: 3px; }
  .allen .pair + .pair .en { font-size: 16px; }
  .allen .pair + .pair .zh { font-size: 12px; margin-top: 3px; }
  .allen .en br { display: none; }
  .allen .credits { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
@page { size: 16in 9in; margin: 0; }
@media print {
  html, body { width: 16in; height: auto; overflow: visible !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .slide, .presenting .slide, .presenting .slide.active { position: relative; inset: auto; display: flex !important; width: 16in; height: 9in; min-height: 9in; padding: 60px 80px; break-after: page; page-break-after: always; border: none; }
  .slide:last-child { break-after: auto; page-break-after: auto; }
  .motion { opacity: 1 !important; visibility: visible !important; transform: none !important; }
  .controls, .progress, dialog { display: none !important; }
  .content { gap: 32px; }
  .slide-background { filter: none; }
  .photo .content { text-shadow: none; }
  .image-credit { bottom: 32px; font-size: 11px; }
  .print-number { display: block; position: absolute; z-index: 2; bottom: 12px; left: 0; width: 100%; text-align: center; font-size: 12px; color: var(--muted); }
}
