@charset "UTF-8";
:root {
  --home-nav-height: calc(98px + env(safe-area-inset-top, 0px));
  color-scheme: light;
  --paper: #f5f3ef;
  --ink: #292824;
  --muted: #504e49;
  --line: #29282426;
  --grid-line: #29282408;
  --grid-columns: 25%;
  /* The cover settles into this ink so the paper wall can rise out of it without a cut. */
  --seam-ink: #12130f;
  --seam-height: clamp(108px, 14vh, 160px);
  --cover-feather: clamp(56px, 8vh, 84px);
  --page-gutter: max(clamp(28px, 4.6vw, 88px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", serif;
  --radius: 5px;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
/* Keep navigation coordinates stable on both short and scrolling pages. */
html { scroll-behavior: smooth; overflow-y: scroll; scroll-padding-top: calc(var(--home-nav-height) + 16px); }
@supports (scrollbar-gutter: stable) {
  html { overflow-y: auto; scrollbar-gutter: stable; }
}
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; line-height: 1.65; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
input, textarea { caret-color: var(--ink); }
time, output { font-variant-numeric: tabular-nums; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
svg { flex-shrink: 0; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--muted); outline-offset: 6px; }
::selection { color: var(--ink); background: color-mix(in srgb, var(--ink) 18%, var(--paper)); }
.page-shell { padding: 0; }
/* Faint guides sit behind the free album composition. */
.directory-shell, .profile-shell, .editor-shell { position: relative; isolation: isolate; min-height: 100svh; }
.directory-shell::before, .profile-shell::before, .editor-shell::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 var(--page-gutter);
  border-inline: 1px solid var(--grid-line);
  background: linear-gradient(90deg, transparent calc(100% - 1px), var(--grid-line) 0) 0 0 / var(--grid-columns) 100%;
  pointer-events: none;
}
.site-header-shell { padding-inline: var(--page-gutter); }
.site-header-slot { height: var(--home-nav-height); }
.site-header { --nav-reveal: 0; --nav-panel-height: 0px; --nav-panel-width: min(280px, calc(100vw - 2 * var(--page-gutter))); position: fixed; inset: 0 0 auto; z-index: 30; padding-top: env(safe-area-inset-top, 0px); padding-inline: var(--page-gutter); background: var(--paper); height: var(--home-nav-height); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
@supports (backdrop-filter: blur(16px)) {
  .site-header { background: transparent; }
  /* One continuous glass surface spans the header and its right-hand extension. */
  .site-header::before { content: ""; position: absolute; inset: 0 0 auto; height: calc(var(--home-nav-height) + var(--nav-panel-height) * var(--nav-reveal)); z-index: -1; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(16px); clip-path: polygon(0 0, 100% 0, 100% var(--home-nav-height), calc(var(--nav-panel-left, var(--page-gutter)) + var(--nav-panel-width)) var(--home-nav-height), calc(var(--nav-panel-left, var(--page-gutter)) + var(--nav-panel-width)) 100%, var(--nav-panel-left, var(--page-gutter)) 100%, var(--nav-panel-left, var(--page-gutter)) var(--home-nav-height), 0 var(--home-nav-height)); pointer-events: none; }
}
.site-header::after { content: ""; position: absolute; bottom: 0; left: var(--page-gutter); width: clamp(80px, 16vw, 240px); height: 1px; background: var(--line); pointer-events: none; }
.brand { min-height: 44px; display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark { width: 30px; height: 30px; }
.brand-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 23px; font-weight: 550; letter-spacing: 5px; line-height: 1.2; margin-right: -.22em; }
.main-nav { flex-shrink: 0; display: flex; align-items: stretch; height: 100%; gap: 40px; font-size: 12px; }
.main-nav > a { padding-inline: 8px; margin-inline: -8px; }
.main-nav > a, .nav-dropdown > a { position: relative; display: flex; align-items: center; color: var(--muted); transition: color .2s; }
.main-nav > a:hover, .main-nav > .nav-current, .nav-dropdown > a:is(:hover, .nav-current) { color: var(--ink); }
.nav-current::after { content: ""; position: absolute; bottom: -1px; inset-inline: 0; height: 1px; background: var(--muted); }
.nav-dropdown { display: flex; align-items: stretch; }
.nav-dropdown-panel { position: absolute; top: 100%; left: var(--nav-panel-left, var(--page-gutter)); width: var(--nav-panel-width); padding: 12px 8px 20px; border: 0; border-left: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); border-bottom: 1px solid var(--line); background: var(--paper); box-shadow: -8px 10px 24px color-mix(in srgb, var(--ink) 4.31%, transparent); color: var(--ink); clip-path: inset(0 0 calc((1 - var(--nav-reveal)) * 100%) 0); }
.nav-dropdown-panel li { --row-order: 0; --row-reveal: clamp(0, calc(var(--nav-reveal) * 1.6 - .35 - var(--row-order) * .06), 1); opacity: var(--row-reveal); transform: translateY(calc((1 - var(--row-reveal)) * -6px)); }
.nav-dropdown-panel li:nth-child(2) { --row-order: 1; }
.nav-dropdown-panel li:nth-child(3) { --row-order: 2; }
.nav-dropdown-panel li:nth-child(4) { --row-order: 3; }
.nav-dropdown-panel li:nth-child(n+5) { --row-order: 4; }
.nav-dropdown-panel:focus-within li { opacity: 1; transform: none; }
.nav-dropdown-panel a { position: relative; display: flex; align-items: center; gap: 16px; min-height: 60px; padding: 10px 16px; transition: background .18s, color .18s; }
.nav-dropdown-panel a::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 2px; background: var(--muted); opacity: 0; transition: opacity .18s; }
.nav-dropdown-panel a:is(:hover, :focus-visible) { background: color-mix(in srgb, var(--ink) 7%, var(--paper)); }
.nav-dropdown-panel a:is(:hover, :focus-visible)::before { opacity: 1; }
.nav-dropdown-panel a:focus-visible { outline: 1px solid var(--muted); outline-offset: -1px; }
.nav-dropdown-panel ul { margin: 0; padding: 0; list-style: none; max-height: max(0px, min(calc(50svh - 33px), calc(100svh - var(--home-nav-height) - 48px))); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; mask-image: linear-gradient(to bottom, transparent, #000 var(--nav-fade-top, 0px), #000 calc(100% - var(--nav-fade-bottom, 0px)), transparent); }
.nav-dropdown-panel.has-scroll-above { --nav-fade-top: 40px; }
.nav-dropdown-panel.has-scroll-below { --nav-fade-bottom: 40px; }
.nav-dropdown-panel ul::-webkit-scrollbar { display: none; }
.nav-dropdown-panel::before, .nav-dropdown-panel::after { content: ""; position: absolute; z-index: 1; inset-inline: 8px; height: 40px; pointer-events: none; opacity: 0; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); transition: opacity .16s; }
.nav-dropdown-panel::before { top: 12px; mask-image: linear-gradient(to bottom, #000, transparent); }
.nav-dropdown-panel::after { bottom: 21px; mask-image: linear-gradient(to top, #000, transparent); }
.nav-dropdown-panel.has-scroll-above::before, .nav-dropdown-panel.has-scroll-below::after { opacity: var(--nav-reveal); }
.nav-member-avatar { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 2px; background: color-mix(in srgb, var(--ink) 4%, var(--paper)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 8%, transparent), 0 2px 4px color-mix(in srgb, var(--ink) 3.14%, transparent); overflow: hidden; }
.nav-member-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nav-member-id { min-width: 0; overflow-wrap: anywhere; font-size: 14px; line-height: 1.5; }
@supports (backdrop-filter: blur(16px)) {
  .nav-dropdown-panel { background: transparent; }
}
.site-header:has(.nav-dropdown-panel:not([hidden]))::after { opacity: 0; }
.nav-dropdown-panel[hidden] { display: none; }
h1 { margin: 0; font-family: var(--serif); font-size: clamp(52px, 5.8vw, 104px); font-weight: 400; line-height: 1.32; letter-spacing: 2px; }
h1:focus { outline: none; }
.title-period { margin-left: -.1em; color: var(--muted); }
.cover {
  --scrim: .5;
  --white-secondary: rgb(255 255 255 / .7);
  --white-line: rgb(255 255 255 / .4);
  --hero-bottom: max(28px, env(safe-area-inset-bottom));
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  padding: 0 max(var(--page-gutter), env(safe-area-inset-left)) 0 max(var(--page-gutter), env(safe-area-inset-right));
  overflow: hidden;
  background: #181a1b;
  color: #fff;
  text-shadow: 0 1px 3px rgb(0 0 0 / .2), 0 3px 18px rgb(0 0 0 / .16);
}
.cover-media, .cover-shade { position: absolute; inset: 0; pointer-events: none; }
.cover-media { z-index: 0; overflow: hidden; }
.cover-media img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--fx, 50%) var(--fy, 50%); opacity: 0; }
.cover-media img.is-current { opacity: 1; z-index: 1; }
.cover-media img.is-incoming { z-index: 2; }
.cover-media canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; opacity: 0; }
.cover-media canvas.is-ready { opacity: 1; }
.cover-shade {
  z-index: 1;
  background:
    linear-gradient(to top, rgb(0 0 0 / var(--scrim)) 0%, rgb(0 0 0 / calc(var(--scrim) * .45)) 35%, transparent 78%),
    linear-gradient(to right, rgb(0 0 0 / calc(var(--scrim) * .72)) 0%, transparent 78%),
    linear-gradient(to bottom, rgb(0 0 0 / calc(var(--scrim) * .8)) 0%, transparent 36%);
}
.cover-grid { display: none; }
/* Feather the photo into the seam ink so the wall below can pick it up without a step. */
.cover::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  height: var(--cover-feather);
  pointer-events: none;
  background: linear-gradient(to bottom, rgb(18 19 15 / 0) 0%, rgb(18 19 15 / .32) 34%, rgb(18 19 15 / .74) 68%, var(--seam-ink) 100%);
}
.cover .site-header, .cover-copy, .cover-bottom { position: relative; z-index: 2; }
.cover .site-header { flex-shrink: 0; height: 112px; padding-top: env(safe-area-inset-top); }
.cover .site-header::after { background: var(--white-line); width: 40px; }
.cover .brand { background: transparent; }
.cover .brand-name { font-weight: 400; font-size: 22px; letter-spacing: .2em; }
.cover .brand-mark { width: 27px; height: 27px; }
.cover .main-nav { gap: clamp(24px, 3.2vw, 56px); height: auto; font-size: 12px; letter-spacing: .12em; }
.cover .main-nav > a { color: var(--white-secondary); min-height: 44px; }
.cover .main-nav > a:hover, .cover .main-nav > .nav-current { color: #fff; }
.cover .nav-current::after { bottom: 0; background: var(--white-line); }
.cover :is(a, button):focus-visible { outline: 1px solid #fff; outline-offset: 7px; }
.cover-copy { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding-block: 44px clamp(42px, 7vh, 88px); pointer-events: none; }
.cover-copy :is(a, h1) { pointer-events: auto; }
#cover-title { max-width: 100%; font-family: 'Noto Serif SC', 'Songti SC', 'Source Han Serif SC', serif; font-size: clamp(48px, 5.1vw, 112px); font-weight: 300; line-height: 1.52; letter-spacing: .12em; overflow-wrap: anywhere; }
.cover .title-period { color: inherit; }
.cover-subtitle { margin: 20px 0 0; color: var(--white-secondary); font: 10px/1.8 'Helvetica Neue', Arial, sans-serif; letter-spacing: .32em; }
.cover-actions { margin-top: clamp(26px, 4vh, 48px); }
.primary-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 56px; min-height: 48px; padding: 14px 0; border-bottom: 1px solid var(--white-line); font-size: 12px; letter-spacing: .16em; }
.primary-link svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1; transition: transform .4s; }
.primary-link:is(:hover, :focus-visible) svg { transform: translateX(5px); }
.cover-bottom { flex-shrink: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; min-height: 80px; padding-bottom: var(--hero-bottom); }
.photo-information { min-width: 0; max-width: min(45%, 520px); }
.photo-name { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 14px; row-gap: 6px; color: var(--white-secondary); font-size: 10px; line-height: 1.8; letter-spacing: .12em; }
.photo-name h2 { margin: 0; font-size: inherit; line-height: inherit; font-weight: 400; overflow-wrap: anywhere; }
.photo-name > :not([hidden]) ~ :not([hidden]) { border-left: 1px solid var(--white-line); padding-left: 14px; }
.slideshow-controls { margin-left: auto; display: flex; align-items: center; gap: 32px; }
.slide-progress { display: flex; align-items: center; gap: 12px; font: 11px/1.4 'Courier New', monospace; }
.total-slides { color: var(--white-secondary); }
.progress-ticks { display: flex; gap: 4px; max-width: min(20vw, 180px); overflow: hidden; }
.progress-ticks i { display: block; flex-shrink: 1; width: 22px; height: 1px; background: var(--white-line); }
.progress-ticks i.is-active { background: #fff; }
.slide-buttons { display: flex; gap: 10px; }
.slide-buttons button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--white-line); border-radius: 0; background: transparent; color: #fff; cursor: pointer; transition: opacity .25s; }
.slide-buttons button:hover { opacity: .7; }
.slide-buttons button:is(:disabled, [aria-disabled='true']) { cursor: wait; opacity: .4; }
.slide-buttons svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1; }
#cover-title, .cover-subtitle, .cover-actions { animation: hero-reveal 1.1s both; }
.cover-subtitle { animation-delay: .16s; }
.cover-actions { animation-delay: .32s; }
@keyframes hero-reveal { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.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: 18px; left: 18px; transform: translateY(-200%); padding: 12px; border-radius: 4px; background: var(--paper); color: var(--ink); z-index: 20; }
.skip-link:focus { transform: translateY(0); }
.cover-bottom[hidden], .cover-media img[hidden], .slide-buttons[hidden], .photo-name > [hidden] { display: none; }
@media (max-width: 760px) {
  :root { --home-nav-height: calc(82px + env(safe-area-inset-top, 0px)); }
  :root { --page-gutter: max(24px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)); --grid-columns: 50%; }
  .site-header { height: var(--home-nav-height); gap: 12px; }
  .brand { gap: 9px; }
  .brand-mark { width: 25px; height: 25px; }
  .brand-name { font-size: 19px; letter-spacing: 4px; }
  .main-nav { gap: 20px; font-size: 12px; }
  .main-nav > a, .nav-dropdown > a { min-width: 44px; min-height: 44px; justify-content: center; }
  .cover { min-height: 560px; }
  .cover .site-header { height: 90px; gap: 16px; }
  .cover .brand-name { font-size: 18px; }
  .cover .brand-mark { width: 22px; height: 22px; }
  .cover .main-nav { gap: 22px; font-size: 10px; letter-spacing: .06em; }
  #cover-title { font-size: clamp(30px, 7.5vw, 54px); line-height: 1.65; }
  .cover-copy { padding-bottom: 44px; }
  .cover-subtitle { font-size: 9px; margin-top: 16px; letter-spacing: .25em; }
  .primary-link { font-size: 11px; gap: 44px; }
  .cover-bottom { gap: 24px; min-height: 106px; }
  .slideshow-controls { flex-direction: column; align-items: flex-end; gap: 18px; }
  .slide-progress { font-size: 10px; gap: 8px; }
  .progress-ticks i { width: 16px; }
  .slide-buttons { gap: 8px; }
  .photo-name { flex-direction: column; gap: 3px; font-size: 9px; }
  .photo-name > :not([hidden]) ~ :not([hidden]) { border: 0; padding: 0; }
}
@media (max-width: 360px) {
  :root { --page-gutter: max(18px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)); }
  .brand-name { font-size: 18px; letter-spacing: 4px; }
  .main-nav { gap: 12px; }
  .brand { gap: 6px; }
  .brand-mark { width: 20px; height: 20px; }
  .cover .main-nav { gap: 16px; }
}
@media (max-height: 650px) and (min-width: 761px) {
  .cover { min-height: 520px; }
  .cover .site-header { height: 84px; }
  #cover-title { font-size: clamp(42px, 4vw, 68px); }
  .cover-copy { padding-block: 26px; }
  .cover-actions { margin-top: 20px; }
}
/* A transparent snapshot carries the moving rule only during navigation. */
@supports (view-transition-name: page-rule) {
  body::after {
    content: "";
    position: fixed;
    inset: 0 0 auto;
    height: 2px;
    pointer-events: none;
    view-transition-name: page-rule;
  }
}
@view-transition { navigation: auto; }
/* Keep the browser's input shield while snapshots cover the live links. */
::view-transition { pointer-events: auto; }
::view-transition-group(root) {
  z-index: 0;
  animation: none;
}
::view-transition-image-pair(root) { isolation: isolate; }
::view-transition-old(root), ::view-transition-new(root) {
  mix-blend-mode: normal;
  backface-visibility: hidden;
}
::view-transition-old(root) {
  z-index: 0;
  animation: none;
}
::view-transition-new(root) {
  z-index: 1;
  animation: page-wipe-new 460ms cubic-bezier(.4, 0, .2, 1) both;
}
::view-transition-group(page-rule) {
  z-index: 1;
  width: 100%;
  height: 2px;
  background: var(--muted);
  transform-origin: top left;
  animation: page-wipe-rule 460ms cubic-bezier(.4, 0, .2, 1) both;
}
::view-transition-old(page-rule), ::view-transition-new(page-rule) { display: none; }
@keyframes page-wipe-new { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@keyframes page-wipe-rule { from { transform: translateY(-2px); } to { transform: translateY(100vh); transform: translateY(100dvh); } }
.page-entry-pending :is(#cover-title, .cover-subtitle, .cover-actions) { animation-play-state: paused; }
/* The incoming paper covers the old menu before its contents draw again. */
.header-entry.page-entry-pending .site-header { background: var(--paper); }
.header-entry .site-header :is(.brand, .main-nav > a, .nav-dropdown > a, .nav-dropdown-toggle) {
  animation: header-entry-text 420ms cubic-bezier(.16, 1, .3, 1) both;
  animation-delay: var(--header-entry-delay, 70ms);
}
.header-entry .site-header .main-nav > :nth-child(1) { --header-entry-delay: 110ms; }
.header-entry .site-header .main-nav > :nth-child(2) { --header-entry-delay: 160ms; }
.header-entry .site-header .main-nav > :nth-child(3) { --header-entry-delay: 210ms; }
.header-entry .site-header::after, .header-entry .site-header .nav-current::after {
  transform-origin: left;
  animation: header-entry-line 480ms cubic-bezier(.16, 1, .3, 1) both;
}
:is(.page-entry-pending, .about-transition:not(.about-revealed)).header-entry .site-header :is(.brand, .main-nav > a, .nav-dropdown > a, .nav-dropdown-toggle),
:is(.page-entry-pending, .about-transition:not(.about-revealed)).header-entry .site-header::after,
:is(.page-entry-pending, .about-transition:not(.about-revealed)).header-entry .site-header .nav-current::after { animation-play-state: paused; }
/* Keyboard access can reveal a link immediately without waiting for drawing. */
.header-entry .site-header :is(.brand, .main-nav > a, .nav-dropdown > a, .nav-dropdown-toggle):focus-visible,
.header-entry .site-header .nav-current:focus-visible::after { animation: none; }
@keyframes header-entry-text {
  from { opacity: 0; clip-path: inset(38% 0 38% 0); }
  45% { opacity: 1; }
  to { opacity: 1; clip-path: inset(0); }
}
@keyframes header-entry-line { from { transform: scaleX(0); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .header-entry .site-header :is(.brand, .main-nav > a, .nav-dropdown > a, .nav-dropdown-toggle),
  .header-entry .site-header::after, .header-entry .site-header .nav-current::after { animation: none; }
  .nav-dropdown-panel li { opacity: 1; transform: none; }
  @view-transition { navigation: none; }
  body::after { content: none; view-transition-name: none; }
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
  .cover-media img[data-ready] { animation: none; transform: none; }
  #cover-title, .cover-subtitle, .cover-actions { animation-name: hero-fade; }
  .primary-link:is(:hover, :focus-visible) svg { transform: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  ::view-transition-group(page-rule) { display: none; }
}
@keyframes hero-fade { from { opacity: 0; } to { opacity: 1; } }

/* A small ink response rewards intentional interaction without moving the page. */
@media(hover:hover) and (pointer:fine){
 .main-nav > a, .nav-dropdown > a { text-underline-offset: .5em; text-decoration-thickness: 1px; }
 .main-nav > a:hover, .nav-dropdown > a:hover { text-decoration-line: underline; }
}

/* Both pages stay still while the mask and its rule sweep upward. */
.welcome-reveal::view-transition-old(root) {
  z-index: 0;
  animation: none;
}
.welcome-reveal::view-transition-new(root) {
  z-index: 1;
  animation: welcome-rise 750ms cubic-bezier(.76, 0, .24, 1) both;
}
.welcome-reveal::view-transition-group(page-rule) {
  display: block;
  animation: welcome-rule-up 750ms cubic-bezier(.76, 0, .24, 1) both;
}
@keyframes welcome-rise {
  from { clip-path: inset(100% 0 0 0); }
  to { clip-path: inset(0); }
}
@keyframes welcome-rule-up {
  from { transform: translateY(100vh); transform: translateY(100dvh); }
  to { transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
  .welcome-reveal::view-transition-new(root) { animation: none; }
  .welcome-reveal::view-transition-group(page-rule) { display: none; }
}

/* Entry settings survive the shorter mask animation. Values are milliseconds. */
:root {
  --welcome-content-delay: 220ms;
  --welcome-wall-delay: 240ms;}
/* Welcome reveals the live home entrance instead of waiting to start it. */
.welcome-entry.header-entry .site-header :is(.brand, .main-nav > a, .nav-dropdown > a, .nav-dropdown-toggle),
.welcome-entry.header-entry .site-header::after,
.welcome-entry.header-entry .site-header .nav-current::after {
  animation-play-state: running;
}



/* Preserve layout measurements while the delayed entrance is still unarmed. */
.home-entry-wait :is(.home-header-shell, .home-title-space, .skip-link),
.wall-entry-wait [data-image-wall] {
  opacity: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .home-entry-wait :is(.home-header-shell, .home-title-space, .skip-link),
  .wall-entry-wait [data-image-wall] { opacity: 1; pointer-events: auto; }
}

@media (max-width: 600px) {
  :root { --home-nav-height: calc(112px + env(safe-area-inset-top, 0px)); }
  .site-header { flex-wrap: wrap; align-content: center; gap: 0; }
  .site-header .brand { flex-basis: 100%; min-height: 42px; }
  .site-header .main-nav { width: 100%; height: 44px; justify-content: space-between; gap: 12px; }
}

/* Compact chrome leaves room for the work on a phone held sideways. */
@media (max-height: 500px) and (min-width: 601px) {
  :root { --home-nav-height: calc(64px + env(safe-area-inset-top, 0px)); }
}
@media (max-width: 760px), (pointer: coarse) {
  .main-nav > button { min-width: 44px; min-height: 44px; }
  :is(button, a, input, select, textarea) { touch-action: manipulation; }
  :is(input, textarea, select) { scroll-margin-block: calc(var(--home-nav-height) + 24px) 100px; }
}
