@font-face {font-family:Silkscreen;src:url('./fonts/silkscreen-400.woff2') format('woff2');font-weight:400;font-display:swap;}
@font-face {font-family:Silkscreen;src:url('./fonts/silkscreen-700.woff2') format('woff2');font-weight:700;font-display:swap;}
:root {
  --ground: #f5f4ef;
  --surface: #ebece5;
  --ink: #20364f;
  --secondary: #576575;
  --accent: #244867;
  --accent-text: #fffdf5;
  --wall: #eeefe8;
  --wall-detail: #e3e6dd;
  --desk: #ddc4a0;
  --desk-light: #e7d2b4;
  --desk-dark: #b79c79;
  --window-edge: #738580;
  --window-wood: #bac5b2;
  --window-highlight: #e7e9d7;
  --sky: #cee1e8;
  --cloud: #f5f4e9;
  --mountain: #b5cad0;
  --city-windows: #dce8df;
  --paper: #faf7eb;
  --paper-secondary: #f1eddf;
  --paper-ink: #334358;
  --note: #f0dda4;
  --nav-height: 88px;
  color-scheme: light;
}

[data-theme='dark'] {
  --ground: #172331;
  --surface: #21303d;
  --ink: #e7ebdf;
  --secondary: #b7c3c8;
  --accent: #e9cc83;
  --accent-text: #20364f;
  --wall: #263745;
  --wall-detail: #304350;
  --desk: #47514f;
  --desk-light: #555e5a;
  --desk-dark: #333f40;
  --window-edge: #15202b;
  --window-wood: #52646b;
  --window-highlight: #82918c;
  --sky: #162b4b;
  --cloud: #293f59;
  --mountain: #2c455c;
  --city-windows: #f0d58a;
  --paper: #e3decc;
  --paper-secondary: #d7d2bf;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: Arial, 'PingFang TC', 'Microsoft JhengHei', sans-serif; font-size: 16px; line-height: 1.7; transition: background-color 400ms, color 400ms; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
button { border: 0; border-radius: 0; }
button:disabled { cursor: default; }
button:focus-visible, a:focus-visible, .contact-duck:focus-visible { outline: 3px solid #b17c27; outline-offset: 7px; }
button:active, .primary-button:active { translate: 0 2px; }
::selection { background: #e7cd88; color: #20364f; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; line-height: 1.3; }
p { text-wrap: pretty; }
svg { display: block; flex-shrink: 0; }
.page-width { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 20px; padding: 10px 20px; background: var(--ground); z-index: 100; }
.skip-link:focus { top: 10px; }
.pixel-duck { width: 44px; height: auto; image-rendering: pixelated; }

/* The book's quiet navigation stays outside the illustrated room. */
.site-header { height: var(--nav-height); padding-inline: max(48px, calc((100vw - 1200px) / 2)); display: flex; align-items: center; justify-content: space-between; background: var(--ground); position: relative; z-index: 30; }
.wordmark { display: inline-flex; gap: 11px; align-items: center; }
.wordmark > span { font-family: 'Silkscreen', sans-serif; font-size: 29px; letter-spacing: -2px; line-height: 1; }
.wordmark-dot { color: #b98e39; }
.site-header nav { display: flex; align-items: center; gap: 36px; }
.nav-link { position: relative; display: flex; align-items: center; gap: 10px; min-height: 44px; background: none; padding: 8px 36px 8px 0; font-size: 15px; font-weight: 600; }
.nav-link > span:first-child { position: relative; z-index: 1; }
.nav-link.current { color: var(--accent); }
.nav-duck { position: absolute; bottom: 5px; right: 2px; width: 26px; opacity: 0; transform: translateY(7px) rotate(-12deg); transition: transform 220ms steps(4), opacity 150ms; z-index: 0; }
.nav-link:hover .nav-duck, .nav-link:focus-visible .nav-duck { opacity: 1; transform: translateY(-4px) rotate(6deg); }
.nav-dropdown { position: relative; }
.dropdown-menu { position: absolute; top: calc(100% - 1px); right: -28px; width: 220px; padding: 12px; background: var(--ground); box-shadow: 5px 5px 0 var(--wall-detail); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 180ms, transform 180ms, visibility 180ms; } /* taste-skill-ignore: physical paper depth required by the supplied photo-stack and album reference; floating dropdown uses overlay depth. */
.dropdown-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px; font-size: 16px; }
.dropdown-menu a:hover, .dropdown-menu a:focus-visible { background: var(--surface); }
.dropdown-menu a span { color: var(--secondary); font-size: 13px; }
.theme-button { width: 44px; height: 44px; background: var(--surface); display: grid; place-items: center; transition: transform 180ms steps(3); }
.theme-button:hover { transform: rotate(-8deg); }
.moon-icon { display: none; }
[data-theme='dark'] .moon-icon { display: block; }
[data-theme='dark'] .sun-icon { display: none; }

/* A pixel study, with real prints on the desk. */
.study { position: relative; height: calc((100svh - var(--nav-height)) * .88); min-height: 650px; max-height: 900px; isolation: isolate; overflow: hidden; background: var(--wall); transition: background-color 400ms; }
.room-wall { position: absolute; inset: 0; z-index: -2; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cpath fill='%23838f82' fill-opacity='.045' d='M10 16h3v3h-3zM80 58h3v3h-3zM35 95h2v2h-2z'/%3E%3C/svg%3E"); }
.study-content { position: relative; width: min(1200px, calc(100% - 144px)); height: 100%; margin-inline: auto; display: grid; grid-template-columns: .95fr 1.05fr; gap: 50px; padding-top: 25px; padding-bottom: 45px; align-items: center; z-index: 3; pointer-events: none; }
.study-content a, .study-content button { pointer-events: auto; }
.study-intro { position: relative; align-self: stretch; display: flex; flex-direction: column; justify-content: flex-end; padding: 0; }
.study-window { position: absolute; top: -90px; left: calc(max(72px, (100vw - 1200px) / 2) + 336px - clamp(400px, 35vw, 520px)); width: clamp(400px, 35vw, 520px); background: none; padding: 0; text-align: left; z-index: 0; }
.study-window > svg { width: 100%; height: auto; transition: transform 220ms steps(4); }
.study-window:hover > svg { transform: translateY(-3px); }
.pigeon-eye { transform-box: fill-box; transform-origin: center; animation: pigeon-blink 5s steps(1) infinite; }
.pigeon-asleep { opacity: 0; transform: translateY(3px); }
.pigeon-awake, .pigeon-asleep { transition: opacity 250ms; }
[data-theme='dark'] .pigeon-awake { opacity: 0; }
[data-theme='dark'] .pigeon-asleep { opacity: 1; }
.pigeon-z { animation: pigeon-snore 2.8s ease-in-out infinite; }
.z-two { animation-delay: 450ms; }
.z-three { animation-delay: 900ms; }
.window-label { position: absolute; left: 57%; top: 35%; display: block; padding: 6px 12px; font-size: 13px; color: var(--ink); background: var(--ground); white-space: nowrap; }
.study-window:focus-visible .window-label { outline: 3px solid #b17c27; outline-offset: 4px; }
.window-label span { color: var(--ink); }
.window-label-compact { display: none; }
.window-moon { opacity: 0; }
.window-sun, .window-moon { transition: opacity 500ms, transform 500ms steps(6); }
[data-theme='dark'] .window-sun { opacity: 0; transform: translateY(20px); }
[data-theme='dark'] .window-moon { opacity: 1; }
.window-cloud { animation: cloud-drift 8s ease-in-out infinite alternate; }
.window-buildings { transition: opacity 400ms; }
[data-theme='dark'] .window-buildings { opacity: .5; }
.intro-copy { padding-top: 25px; pointer-events: auto; }
.hero-name { display: flex; gap: 22px; align-items: flex-end; }
.hero-name .name-duck { width: 52px; margin-bottom: 10px; animation: duck-idle 4s steps(2) infinite; }
.intro-copy h1 { font-family: 'Silkscreen', sans-serif; font-size: clamp(64px, 6.5vw, 92px); line-height: 1.05; letter-spacing: -7px; font-weight: 400; margin-left: -4px; animation: settle-in 500ms both; }
.intro-copy h1 span { color: #b58d45; }
.hero-statement { font-family: inherit; font-size: 30px; font-weight: 600; margin-top: 20px; letter-spacing: 2px; animation: settle-in 600ms 70ms both; }
.hero-description { margin-top: 19px; font-size: 18px; line-height: 1.9; color: var(--ink); animation: settle-in 600ms 120ms both; }
.mobile-break { display: none; }
.primary-button { display: inline-flex; align-items: center; gap: 27px; background: var(--accent); color: var(--accent-text); padding: 12px 21px; min-height: 48px; font-size: 15px; font-weight: 600; transition: transform 180ms, background-color 400ms; }
.primary-button:hover { transform: translateY(-3px); }
.intro-copy .primary-button { margin-top: 25px; animation: settle-in 600ms 180ms both; }
.photo-stack-area { --scatter-scale: 1; width: 90%; position: relative; align-self: end; justify-self: center; padding-top: 0; transform: translateY(-140px); }
.photo-stack { display: block; position: relative; width: 100%; aspect-ratio: 1.42; background: none; padding: 0; perspective: 1300px; transition: transform 240ms; }
.photo-stack:hover { transform: translateY(-6px) rotate(1deg); }
.stack-print { display: block; position: absolute; inset: 0; background: #fffef7; padding: 13px 13px 42px; transform: translate(calc(var(--print-x) * var(--scatter-scale)), calc(var(--print-y) * var(--scatter-scale))) rotate(var(--print-angle)); transform-origin: 50% 60%; box-shadow: 3px 5px 0 #21354e29; transition: transform 500ms cubic-bezier(.22,.7,.3,1); } /* taste-skill-ignore: the requested physical print stack needs paper depth. */
.stack-image { display: block; position: relative; width: 100%; height: 100%; overflow: hidden; background: #e9e7df; }
.stack-image img { object-fit: cover; }

.is-turning .front-print { animation: turn-print 350ms ease-out both; }
.stack-instruction { position: absolute; right: 90px; bottom: -48px; display: flex; gap: 8px; align-items: flex-end; font-family: inherit; font-size: 16px; color: var(--secondary); rotate: -3deg; pointer-events: none; }
.stack-instruction svg { transform: rotate(12deg); margin-bottom: 5px; }
.stack-hint-compact { display: none; }
.stack-pagination { display: flex; gap: 8px; margin: 28px 0 0 30px; }
.stack-pagination span { width: 6px; height: 6px; background: var(--ink); opacity: .25; transition: opacity 200ms, width 200ms; }
.stack-pagination span.active { opacity: 1; width: 19px; }
.desk { position: absolute; bottom: 0; width: 100%; height: 50%; z-index: 1; }
.desk-top { position: absolute; inset: 0 0 27px; background: var(--desk-light); border-top: 6px solid var(--desk); clip-path: none; transition: background-color 400ms; }
.desk-top::before { content: ''; position: absolute; width: 36%; height: 3px; bottom: 18%; left: -2%; background: var(--desk); transform: rotate(-4deg); }
.desk-top::after { content: ''; position: absolute; width: 30%; height: 3px; bottom: 70%; right: -1%; background: var(--desk); transform: rotate(4deg); }
.desk-front { position: absolute; inset: auto 0 0; height: 29px; background: var(--desk); border-bottom: 9px solid var(--desk-dark); transition: background-color 400ms; }
.desk-objects { position: absolute; bottom: 39px; left: calc(50% - 183px); width: 275px; height: 109px; }
.coffee-steam { animation: steam 3s steps(5) infinite; }
.desk-duck { position: absolute; width: 52px; bottom: 45px; right: max(8%, calc((100vw - 1150px) / 2)); transform-origin: center bottom; animation: duck-idle 4s steps(2) infinite; }
.desk-pencil { position: absolute; width: 91px; height: 5px; left: 18%; bottom: 48px; background: #b29051; transform: rotate(-9deg); border-right: 11px solid #385065; border-left: 8px solid #e5d5b1; }
.duck-follower { position: absolute; top: 0; left: 0; z-index: 20; pointer-events: none; opacity: 0; transition: transform 500ms cubic-bezier(.15,.7,.3,1), opacity 200ms; }
.duck-follower .pixel-duck { width: 28px; }
.scroll-invitation { height: max(85px, calc((100svh - var(--nav-height)) * .12)); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 11px; color: var(--secondary); font-size: 13px; }
.scroll-invitation svg { width: 17px; height: 17px; animation: scroll-nudge 2.5s steps(4) infinite; }

/* The two clothbound albums are the entry points to the work. */
.albums-section { padding-top: 78px; padding-bottom: 40px; scroll-margin-top: 35px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 60px; }
.section-heading h2, .about-copy h2 { font-size: 34px; font-family: inherit; font-weight: 600; letter-spacing: 2px; }
.section-heading p { color: var(--secondary); font-size: 16px; }
.album-covers { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; padding-inline: 50px; }
.album-cover-link { display: block; }
.album-cover { position: relative; aspect-ratio: .97; background: #314b63; color: #f0ebd9; padding: 31px 37px 27px 49px; transform: rotate(-3deg); box-shadow: 7px 7px 0 #c7c4b6; transition: transform 300ms, box-shadow 300ms; } /* taste-skill-ignore: physical paper depth required by the supplied photo-stack and album reference; floating dropdown uses overlay depth. */
.album-cover-link.events .album-cover { background: #b6ac91; color: #283c4b; transform: rotate(3deg); }
.album-cover::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .12; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Cpath fill='%23ffffff' d='M0 0h1v1H0zM2 2h1v1H2z'/%3E%3C/svg%3E"); }
.album-spine { position: absolute; inset: 0 auto 0 0; width: 18px; background: #172b4055; border-right: 4px solid #ffffff0f; }
.cover-label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 13px; }
.cover-label > span:first-child { font-family: 'Silkscreen', sans-serif; font-size: 18px; }
.cover-photo { position: relative; width: 81%; height: 57%; margin: 22px auto 0; border: 8px solid #f9f6e9; }
.cover-photo img { object-fit: cover; object-position: center 32%; }
.events .cover-photo img { object-position: center; }
.cover-title { display: block; text-align: center; margin-top: 23px; font-size: 23px; font-family: inherit; font-weight: 600; letter-spacing: 4px; }
.cover-corner { position: absolute; right: 15px; bottom: 15px; width: 13px; height: 13px; border-right: 3px solid currentColor; border-bottom: 3px solid currentColor; opacity: .45; }
.album-cover-link:hover .album-cover, .album-cover-link:focus-visible .album-cover { transform: translateY(-12px) rotate(0); box-shadow: 9px 13px 0 #c7c4b6; } /* taste-skill-ignore: physical paper depth required by the supplied photo-stack and album reference; floating dropdown uses overlay depth. */
.album-link-caption { display: flex; justify-content: space-between; align-items: center; margin-top: 36px; }
.album-link-caption h3 { font-size: 22px; font-weight: 500; }
.album-link-caption p { font-size: 15px; margin-top: 9px; color: var(--secondary); }
.album-open-arrow { display: grid; width: 42px; height: 42px; background: var(--surface); place-items: center; transition: translate 220ms; }
.album-cover-link:hover .album-open-arrow { translate: 5px 0; }
.about-section { padding-top: 135px; padding-bottom: 120px; scroll-margin-top: 0; }
.about-postcard { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; background: var(--surface); padding: 56px 65px 35px; column-gap: 70px; row-gap: 32px; position: relative; }
.about-postcard::before { content: ''; position: absolute; width: 70px; height: 20px; background: #c2b48d77; top: -10px; left: calc(50% - 35px); transform: rotate(-4deg); }
.about-portrait { position: relative; justify-self: center; width: min(235px, 100%); aspect-ratio: 4 / 5; padding: 12px; background: var(--window-edge); transform: rotate(-4deg); }
.portrait-mat { display: block; position: relative; width: 100%; height: 100%; padding: 20px; background: var(--paper); }
.portrait-mat img { object-fit: cover; object-position: 50% 30%; padding: 14px; }
.about-copy { padding-bottom: 20px; }
.contact-corner { grid-column: 2; display: flex; justify-content: flex-end; align-items: center; gap: 18px; }
.contact-details { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; font-size: 15px; font-style: normal; }
.contact-details a { display: flex; align-items: center; gap: 6px; min-height: 32px; }
.contact-icons { display: inline-flex; width: 20px; flex-shrink: 0; }
.contact-icon { width: 20px; height: 20px; }
.contact-details a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-duck { position: relative; background: none; padding: 5px; min-width: 85px; min-height: 78px; }
.contact-duck > .pixel-duck { width: 86px; }
.duck-phone { transform-origin: 16px 11px; transition: transform 250ms steps(4); }
.contact-bubble { position: absolute; bottom: calc(100% + 4px); right: -6px; padding: 9px 13px; background: var(--ground); color: var(--ink); font-size: 14px; white-space: nowrap; opacity: 0; visibility: hidden; translate: 0 6px; transition: opacity 180ms, translate 180ms, visibility 180ms; }
.contact-bubble::after { content: ''; position: absolute; bottom: -8px; right: 32px; width: 8px; height: 8px; background: var(--ground); }
.contact-duck:hover .duck-phone, .contact-duck:focus-visible .duck-phone { transform: translate(-2px, -6px); }
.contact-duck:hover .contact-bubble, .contact-duck:focus-visible .contact-bubble { opacity: 1; visibility: visible; translate: 0 0; }
.about-copy h2 { font-size: 28px; }
.about-copy p { margin-top: 21px; font-size: 16px; line-height: 1.9; }
.about-copy p + p { color: var(--secondary); margin-top: 12px; }
.text-link { display: inline-flex; gap: 16px; align-items: center; font-weight: 600; font-size: 15px; margin-top: 24px; }
.text-link svg { transition: translate 200ms; }
.text-link:hover svg { translate: 6px 0; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 25px 35px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: 'Silkscreen', sans-serif; font-size: 24px; }
.site-footer p { color: var(--secondary); font-size: 14px; }
.copyright { color: var(--secondary); font-size: 13px; }

/* An open, two-page album. Each print retains its full original crop. */
.album-main { min-height: calc(100svh - var(--nav-height) - 100px); padding: 26px 0 65px; background: var(--surface); }
.back-link { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--secondary); }
.back-link svg { width: 17px; }
.album-title-row { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 24px; gap: 20px; }
.album-title-row h1 { font-family: inherit; font-size: 40px; letter-spacing: 3px; }
.album-title-row p { color: var(--secondary); font-size: 16px; margin-top: 12px; }
.other-album { display: inline-flex; gap: 15px; align-items: center; font-size: 14px; padding-block: 8px; }
.other-album:hover { color: var(--accent); }
.topic-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.topic-tabs button { padding: 9px 17px; font-size: 14px; background: var(--ground); transition: background-color 180ms, color 180ms, translate 180ms; }
.topic-tabs button:hover { translate: 0 -3px; }
.topic-tabs button.selected { background: var(--ink); color: var(--ground); }
.album-stage { position: relative; width: min(1340px, calc(100% - 40px)); margin: 42px auto 0; padding-inline: 65px; }
.open-album { position: relative; display: grid; grid-template-columns: 1fr 1fr; background: #64716c; padding: 8px 7px 12px; box-shadow: 0 8px 0 #53615d; color: var(--paper-ink); } /* taste-skill-ignore: physical paper depth required by the supplied photo-stack and album reference; floating dropdown uses overlay depth. */
.open-album.turn-next { animation: book-next 450ms ease-out; }
.open-album.turn-previous { animation: book-previous 450ms ease-out; }
.album-paper { padding: 106px 28px 18px; position: relative; background: var(--paper); }
.left-paper { border-right: 6px solid #c5bfab; }
.right-paper { border-left: 6px solid #e6e0cb; background: var(--paper-secondary); }
.topic-note { position: absolute; left: 29px; top: 19px; padding: 12px 21px 10px; background: var(--note); transform: rotate(-3deg); min-width: 195px; z-index: 1; }
.topic-note h2 { font-size: 19px; font-family: inherit; font-weight: 500; }
.topic-note p { font-size: 13px; margin-top: 2px; color: #5c5748; }
.note-tape { position: absolute; width: 51px; height: 13px; background: #d3c49f9c; top: -7px; left: calc(50% - 25px); transform: rotate(4deg); }
.right-page-caption { position: absolute; inset: 42px 30px auto; display: flex; align-items: center; justify-content: space-between; color: #697264; font-family: inherit; font-style: italic; font-size: 16px; }
.right-page-caption .pixel-duck { width: 30px; transform: rotate(7deg); }
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 19px; }
.album-print, .empty-photo-space { aspect-ratio: 1.05; position: relative; display: block; min-width: 0; }
.album-print { background: #fffdf4; padding: 0; border: 7px solid #fffdf4; transition: transform 200ms, box-shadow 200ms; }
.album-print img { object-fit: contain; padding: 3px; }
.album-print:nth-child(2) { transform: rotate(1deg); }
.album-print:nth-child(3) { transform: rotate(-1deg); }
.album-print { animation: photo-in 480ms ease-out both; }
.album-print:nth-child(2) { animation-delay: 55ms; }
.album-print:nth-child(3) { animation-delay: 110ms; }
.album-print:nth-child(4) { animation-delay: 165ms; }
.album-print:hover, .album-print:focus-visible { transform: translateY(-4px) rotate(0); box-shadow: 3px 4px 0 #847b5a40; z-index: 2; } /* taste-skill-ignore: physical paper depth required by the supplied photo-stack and album reference; floating dropdown uses overlay depth. */
.photo-zoom { position: absolute; right: 3px; bottom: 3px; display: grid; place-items: center; width: 27px; height: 27px; background: #20364f; color: #fffdf4; font-size: 19px; opacity: 0; transition: opacity 180ms; }
.album-print:hover .photo-zoom, .album-print:focus-visible .photo-zoom { opacity: 1; }
.paper-footer { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: #676e63; margin-top: 20px; padding-inline: 2px; }
.page-arrow { display: grid; place-items: center; width: 44px; height: 52px; background: var(--ground); position: absolute; top: calc(50% - 26px); transition: translate 180ms; }
.page-arrow.previous { left: 0; }
.page-arrow.next { right: 0; }
.page-arrow.previous:hover { translate: -4px 0; }
.page-arrow.next:hover { translate: 4px 0; }
.album-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 32px; gap: 20px; }
.album-bottom > p { font-size: 15px; color: var(--secondary); }
.topic-counter { display: flex; gap: 16px; align-items: center; font-size: 14px; }
.topic-counter button { display: grid; place-items: center; width: 40px; height: 40px; background: var(--ground); }
.lightbox { position: fixed; width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; inset: 0; padding: 24px 40px; margin: 0; background: #142231f7; color: #f8f4e7; border: none; }
.lightbox::backdrop { background: #142231; }
.lightbox-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 48px; }
.lightbox-close { display: flex; align-items: center; gap: 16px; padding: 8px; background: none; min-height: 44px; }
.lightbox-close > span { font-size: 28px; line-height: 1; }
.lightbox-image { position: relative; height: calc(100% - 120px); width: min(1400px, 100%); margin: 10px auto; }
.lightbox-image img { object-fit: contain; }
.lightbox-controls { display: flex; justify-content: center; align-items: center; gap: 30px; height: 48px; font-variant-numeric: tabular-nums; }
.icon-button { display: grid; place-items: center; min-width: 44px; min-height: 44px; background: #ffffff12; }
.not-found { min-height: 65svh; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 28px; text-align: center; }
.not-found > .pixel-duck { width: 80px; }
.not-found h1 { font-size: 32px; }

@keyframes pigeon-blink { 0%, 90%, 95%, 100% { transform: scaleY(1); } 92%, 93% { transform: scaleY(.12); } }
@keyframes pigeon-snore { 0%, 100% { opacity: .5; transform: translateY(1px); } 50% { opacity: 1; transform: translateY(-2px); } }

@keyframes settle-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes photo-in { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
@keyframes turn-print { 0% { transform: rotate(var(--print-angle)); } 65% { transform: translate(27%, -9%) rotate(12deg); opacity: 1; } 100% { transform: translate(30%, 7%) rotate(15deg); opacity: 0; } }
@keyframes cloud-drift { from { transform: translateX(0); } to { transform: translateX(10px); } }
@keyframes steam { 0% { opacity: 0; transform: translateY(4px); } 30%, 60% { opacity: .7; } 100% { opacity: 0; transform: translateY(-7px); } }
@keyframes duck-idle { 0%, 75%, 100% { transform: rotate(0); } 80% { transform: rotate(-6deg); } 90% { transform: rotate(4deg); } }
@keyframes scroll-nudge { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(4px); } }
@keyframes book-next { from { opacity: .6; transform: translateX(10px) rotateY(-2deg); } to { opacity: 1; transform: none; } }
@keyframes book-previous { from { opacity: .6; transform: translateX(-10px) rotateY(2deg); } to { opacity: 1; transform: none; } }

@media (min-width: 1500px) {
  .study-content { gap: 85px; }
}

@media (max-width: 1100px) {
  .study-content { width: calc(100% - 100px); gap: 30px; }
  .study-window { left: calc(50px + 273px - clamp(400px, 35vw, 520px)); }
  .hero-statement { font-size: 25px; letter-spacing: 1px; }
  .hero-description { font-size: 15px; }
  .photo-stack-area { transform: translateY(-140px); }
  .stack-instruction { font-size: 14px; right: 0; bottom: -48px; }
  .album-covers { gap: 65px; padding-inline: 20px; }
  .album-cover { padding: 27px 26px 25px 38px; }
  .cover-label > span:first-child { font-size: 16px; }
  .cover-title { margin-top: 18px; font-size: 21px; }
  .album-stage { padding-inline: 45px; width: calc(100% - 32px); }
  .album-paper { padding-inline: 18px; }
  .photo-grid { gap: 12px; }
  .topic-note { left: 22px; }
  .page-arrow { width: 34px; }
  .about-postcard { padding: 45px; gap: 35px; }
}

@media (min-width: 701px) and (max-width: 900px) {
  :root { --nav-height: 80px; }
  .study { min-height: 720px; height: calc((100svh - 80px) * .88); }
  .study-content { width: calc(100% - 80px); grid-template-columns: 1fr 1fr; gap: 18px; padding-bottom: 110px; }
  .study-window { left: -70px; top: -75px; width: 430px; }
  .intro-copy h1 { font-size: 68px; }
  .hero-statement { font-size: 23px; }
  .hero-description { font-size: 14px; }
  .mobile-break { display: block; }
  .photo-stack-area { --scatter-scale: .65; width: 94%; padding-top: 0; transform: translateY(-90px); }
  .photo-stack { aspect-ratio: 1.05; width: 100%; }
  .stack-print { padding: 9px 9px 37px; }

  .stack-instruction { font-size: 13px; right: 90px; }
  .stack-instruction svg, .stack-hint-full { display: none; }
  .stack-hint-compact { display: inline; }
  .desk-objects { left: 35%; }
  .cover-title { font-size: 18px; margin-top: 14px; }
  .cover-photo { margin-top: 14px; }
  .cover-label > span:last-child { display: none; }
  .cover-label > span:first-child { font-size: 15px; }
  .album-title-row h1 { font-size: 34px; }
  .topic-note { min-width: 150px; padding-inline: 12px; left: 18px; }
  .topic-note h2 { font-size: 17px; }
  .album-paper { padding: 100px 12px 15px; }
  .album-print { border-width: 4px; }
  .right-page-caption { inset: 42px 15px auto; font-size: 13px; }
}

@media (max-width: 700px) {
  :root { --nav-height: 72px; }
  html { scroll-padding-top: 30px; }
  .page-width { width: calc(100% - 40px); }
  .site-header { padding-inline: 20px; }
  .site-header nav { gap: 8px; }
  .wordmark { gap: 6px; }
  .wordmark > span { font-size: 23px; }
  .home-nav { display: none; }
  .nav-link { font-size: 14px; gap: 6px; padding-right: 25px; }
  .nav-duck { width: 21px; right: 0; }
  .about-nav { font-size: 13px; }
  .theme-button { width: 34px; height: 40px; background: none; }
  .theme-button svg { width: 20px; }
  .dropdown-menu { right: -65px; width: 215px; }
  .study { height: calc((100svh - 72px) * .89); min-height: 650px; max-height: 850px; }
  .study-content { width: calc(100% - 48px); padding-top: 0; padding-bottom: 105px; display: block; }
  .study-intro { position: relative; padding: 28px 0 0; height: 45%; display: block; }
  .study-window { width: 300px; left: auto; right: -170px; top: -65px; }
  .window-pigeon { transform: translate(35px, 166px); }
  .window-label { left: 12px; top: 130px; padding: 4px 8px; font-size: 13px; }
  .window-label-full { display: none; }
  .window-label-compact { display: inline; }
  .intro-copy { padding-top: 15px; position: relative; z-index: 1; }
  .intro-copy h1 { font-size: 57px; letter-spacing: -5px; max-width: 58%; }
  .hero-name { gap: 10px; }
  .hero-name .name-duck { width: 28px; margin-bottom: 7px; }
  .hero-statement { font-size: 21px; letter-spacing: .8px; margin-top: 16px; max-width: 60%; }
  .hero-description { font-size: 13px; line-height: 1.85; margin-top: 15px; max-width: 90%; }
  .intro-copy .primary-button { margin-top: 16px; min-height: 41px; font-size: 13px; padding: 9px 15px; gap: 20px; }
  .intro-copy .primary-button svg { width: 18px; height: 18px; }
  .mobile-break { display: none; }
  .photo-stack-area { --scatter-scale: .5; position: absolute; width: 75%; right: 8%; bottom: 125px; padding-top: 0; transform: none; }
  .photo-stack { aspect-ratio: 1.4; }
  .stack-print { padding: 8px 8px 29px; }

  .stack-instruction { bottom: -18px; right: 0; font-size: 13px; gap: 1px; }
  .stack-instruction svg, .stack-hint-full { display: none; }
  .stack-hint-compact { display: inline; }
  .stack-pagination { margin: 23px 0 0 15px; gap: 6px; }
  .stack-pagination span { width: 4px; height: 4px; }
  .stack-pagination span.active { width: 13px; }
  .desk { height: 50%; }
  .desk-top { bottom: 22px; clip-path: none; }
  .desk-front { height: 24px; border-bottom-width: 7px; }
  .desk-objects { width: 150px; height: auto; left: 15px; bottom: 27px; }
  .desk-duck { width: 32px; right: 23px; bottom: 32px; }
  .desk-pencil { display: none; }
  .duck-follower { display: none; }
  .scroll-invitation { height: 82px; font-size: 13px; gap: 7px; }
  .albums-section { padding-top: 50px; padding-bottom: 0; }
  .section-heading { margin-bottom: 43px; align-items: flex-start; flex-direction: column; gap: 10px; }
  .section-heading h2 { font-size: 28px; letter-spacing: 1px; }
  .section-heading p { font-size: 15px; }
  .album-covers { grid-template-columns: 1fr; padding-inline: 22px; gap: 63px; }
  .album-cover { max-width: 380px; margin-inline: auto; padding: 25px 29px 25px 42px; aspect-ratio: 1.03; }
  .cover-label > span:first-child { font-size: 18px; }
  .cover-title { font-size: 23px; margin-top: 17px; }
  .cover-photo { margin-top: 18px; height: 56%; }
  .album-link-caption { margin-top: 28px; }
  .album-link-caption h3 { font-size: 21px; }
  .album-link-caption p { font-size: 14px; }
  .about-section { padding-block: 90px 65px; }
  .about-postcard { grid-template-columns: 1fr; padding: 35px 26px; gap: 33px; }
  .about-portrait { width: 180px; }
  .contact-corner { grid-column: 1; gap: 8px; justify-content: flex-start; padding-top: 16px; }
  .contact-details { font-size: 13px; }
  .contact-icons { width: 17px; }
  .contact-icon { width: 17px; height: 17px; }
  .contact-details a { gap: 5px; }
  .contact-duck { min-width: 60px; padding: 0; }
  .contact-duck > .pixel-duck { width: 60px; }
  .about-copy h2 { font-size: 25px; letter-spacing: 1px; }
  .about-copy p { font-size: 15px; margin-top: 16px; }
  .site-footer { flex-wrap: wrap; gap: 13px; padding-block: 10px 28px; }
  .site-footer p { display: none; }
  .copyright { font-size: 13px; }
  .footer-brand { font-size: 20px; }
  .album-main { padding-top: 20px; padding-bottom: 36px; }
  .album-title-row { align-items: flex-start; margin-top: 20px; }
  .album-title-row h1 { font-size: 32px; letter-spacing: 2px; }
  .album-title-row p { font-size: 14px; }
  .other-album { font-size: 13px; gap: 7px; margin-top: 4px; }
  .other-album svg { width: 17px; }
  .topic-tabs { gap: 7px; margin-top: 23px; }
  .topic-tabs button { font-size: 13px; padding: 9px 11px; min-height: 40px; }
  .album-stage { width: calc(100% - 32px); padding: 0; margin-top: 30px; }
  .open-album { grid-template-columns: 1fr; padding: 6px 6px 9px; }
  .album-paper { padding: 105px 17px 17px; }
  .left-paper { border-right: 0; border-bottom: 6px solid #c5bfab; }
  .right-paper { border-left: 0; border-top: 6px solid #e6e0cb; padding-top: 70px; }
  .topic-note { left: 22px; top: 19px; min-width: 195px; }
  .topic-note h2 { font-size: 19px; }
  .right-page-caption { inset: 20px 20px auto; font-size: 14px; }
  .right-page-caption .pixel-duck { width: 27px; }
  .photo-grid { gap: 14px; }
  .album-print { border-width: 5px; }
  .album-print img { padding: 1px; }
  .page-arrow { display: none; }
  .paper-footer { margin-top: 17px; font-size: 13px; }
  .album-bottom { flex-direction: column-reverse; gap: 20px; margin-top: 25px; }
  .topic-counter { gap: 23px; }
  .topic-counter button { width: 44px; height: 44px; }
  .album-bottom p { font-size: 14px; text-align: center; }
  .lightbox { padding: 12px 15px; }
  .lightbox-toolbar { font-size: 14px; }
  .lightbox-close { font-size: 13px; gap: 9px; }
  .lightbox-image { height: calc(100% - 130px); }
}

@media (max-width: 370px) {
  .intro-copy h1 { font-size: 48px; }
  .topic-note { max-width: calc(100% - 44px); min-width: 0; }
  .topic-note h2 { font-size: 17px; }
  .long-topic .left-paper { padding-top: 135px; }
  .site-header nav { gap: 14px; }
  .about-nav { display: none; }
  .hero-statement { font-size: 19px; }
  .hero-description { font-size: 13px; max-width: 100%; }
  .cover-label > span:first-child { font-size: 15px; }
}

@media (hover: none), (pointer: coarse) {
  .duck-follower { display: none; }
  .photo-zoom { opacity: 1; width: 22px; height: 22px; font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .duck-follower { display: none; }
}


/* WordPress block-theme integration. */
.wp-site-blocks {padding:0;}
.wp-site-blocks > * {margin-block:0;}
.wp-block-post-content > * {margin-block:0;}
.zero-page > .wp-block-post-title {display:none;}
.stack-image img, .cover-photo img, .album-print img, .portrait-mat img, .lightbox-image img {position:absolute;inset:0;width:100%;height:100%;max-width:none;}
.lightbox[open] {display:block;}
.album-collection-data {display:none;}
.zero-empty {padding:32px;text-align:center;}
body.admin-bar {--zero-admin-offset:32px;}
.zero-page-content {width:min(1200px,calc(100% - 40px));margin:60px auto;}
@media(max-width:782px){body.admin-bar{--zero-admin-offset:46px;}}
.zero-arrow { display:inline-flex; flex-shrink:0; }
.zero-arrow.left { rotate:180deg; }
.zero-arrow.down { rotate:90deg; }
.nav-duck > svg, .name-duck > svg { width:100%; height:auto; }
