/* Cyanotyped — stylesheet (v2: "ink & dread"). Replaces the current template stylesheet.
   Fonts (add to <head>): IM Fell English SC + IM Fell English (display/captions), EB Garamond (text). */

/* Gorey by Dame Hex (emeraldrain.com), CC BY-NC-ND 2.0. Place the file at fonts/Gorey.ttf (a .woff2 conversion is preferred). */
@font-face {
  font-family: "Gorey";
  src: url("fonts/Gorey.ttf") format("truetype");
  font-display: swap;
}

:root {
  --paper: #eee9dd;
  --paper-hi: #f7f3ea;
  --paper-2: #ddd6c6;
  --ink: #17140f;
  --ink-2: #4a443a;
  --blue: #1d3160;          /* cyanotype ink, used sparingly */
  --blue-deep: #14234a;
  --wash: #d8d1c2;          /* grey ink wash */
  --mid: #a9a292;
  --rust: #6f2019;          /* dried oxblood */
  --line: rgba(23, 20, 15, .22);
  --f-display: "Gorey", "IM Fell English SC", "IM Fell English", Georgia, serif;
  --f-fell: "IM Fell English", Georgia, serif;
  --f-text: "EB Garamond", Garamond, Georgia, serif;
  --f-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --side: 300px;
  --bar: 64px;
  --hatch: repeating-linear-gradient(-45deg, rgba(23,20,15,.62) 0 1px, transparent 1px 3.6px);
  --hatch-x: repeating-linear-gradient(45deg, rgba(23,20,15,.35) 0 1px, transparent 1px 4px), repeating-linear-gradient(-45deg, rgba(23,20,15,.35) 0 1px, transparent 1px 4px);

  --strip-pale: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 52' preserveAspectRatio='none'><filter id='b' x='-3%25' y='-30%25' width='106%25' height='160%25'><feTurbulence type='fractalNoise' baseFrequency='.03 .35' numOctaves='3' seed='6'/><feDisplacementMap in='SourceGraphic' scale='11' xChannelSelector='R' yChannelSelector='G'/></filter><rect x='5' y='8' width='310' height='30' fill='%23d8d1c2' filter='url(%23b)'/></svg>");
  --strip-deep: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 52' preserveAspectRatio='none'><filter id='b' x='-3%25' y='-30%25' width='106%25' height='160%25'><feTurbulence type='fractalNoise' baseFrequency='.03 .35' numOctaves='3' seed='13'/><feDisplacementMap in='SourceGraphic' scale='12' xChannelSelector='R' yChannelSelector='G'/></filter><g fill='%231d3160' filter='url(%23b)'><rect x='4' y='7' width='312' height='31'/><rect x='38' y='30' width='4' height='14' rx='2'/><ellipse cx='40' cy='45' rx='3.2' ry='3.6'/><rect x='121' y='30' width='3' height='9' rx='1.5'/><rect x='203' y='30' width='5' height='17' rx='2.5'/><ellipse cx='205.5' cy='47' rx='3.8' ry='4'/><rect x='272' y='30' width='2.5' height='7' rx='1.2'/></g></svg>");
  --drip-rule: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 22' preserveAspectRatio='none'><filter id='b'><feTurbulence type='fractalNoise' baseFrequency='.05 .3' numOctaves='2' seed='2'/><feDisplacementMap in='SourceGraphic' scale='4'/></filter><g fill='%2317140f' filter='url(%23b)'><rect x='2' y='3' width='296' height='3'/><rect x='46' y='4' width='2.4' height='9' rx='1.2'/><circle cx='47.2' cy='13.5' r='2'/><rect x='150' y='4' width='2' height='5' rx='1'/><rect x='231' y='4' width='3' height='13' rx='1.5'/><circle cx='232.5' cy='17.5' r='2.4'/></g></svg>");
  --noise: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .25  0 0 0 0 .2  0 0 0 0 .12  0 0 0 .12 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  --foxing: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='900' height='900'><filter id='f'><feTurbulence type='fractalNoise' baseFrequency='.04' numOctaves='3' seed='21'/><feColorMatrix values='0 0 0 0 .45  0 0 0 0 .32  0 0 0 0 .16  0 0 0 -30 8.4'/></filter><rect width='100%25' height='100%25' filter='url(%23f)' opacity='.08'/></svg>");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); }
body {
  margin: 0;
  background:
    radial-gradient(ellipse 120% 90% at 50% 40%, transparent 55%, rgba(40,30,18,.22) 100%) fixed,
    var(--foxing), var(--noise), var(--paper);
  color: var(--ink);
  font: 400 19px/1.6 var(--f-text);
  text-rendering: optimizeLegibility;
  font-variant-ligatures: common-ligatures;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--rust); }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 4px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; color: var(--ink); line-height: 1.02; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
em, i { font-style: italic; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper-hi); padding: 10px 14px; font: 18px var(--f-fell); }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout ---------- */
@media (min-width: 960px) {
  body { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); grid-template-rows: 1fr auto; min-height: 100vh; }
  .site-header { grid-row: 1 / span 2; grid-column: 1; }
  main { grid-column: 2; }
  .site-footer { grid-column: 2; }
}
main { padding: clamp(28px, 5vw, 76px) clamp(20px, 5vw, 76px) 76px; max-width: 1240px; width: 100%; }

/* ---------- Header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 20; }
@media (min-width: 960px) {
  .site-header {
    height: 100vh; overflow-y: auto; padding: 38px 26px 32px 28px; display: flex; flex-direction: column; gap: 34px;
    border-right: 1px solid var(--ink);
    box-shadow: 5px 0 0 -4px var(--paper), 6px 0 0 -4px var(--ink);
  }
}
.brand { display: grid; justify-items: center; gap: 10px; text-decoration: none; color: var(--ink); width: fit-content; }
.brand-logo { width: 168px; height: auto; aspect-ratio: 1; clip-path: circle(49.4%); transition: transform .6s ease; }
.brand:hover .brand-logo { transform: rotate(-4deg); }
.brand::after { content: ""; display: block; width: 100%; min-width: 150px; height: 16px; background: var(--drip-rule) left top / 100% 100% no-repeat; }
.brand:hover { color: var(--ink); }
.brand-mark { font: 400 2.35rem/.9 var(--f-display); letter-spacing: -.01em; }
.brand-mark::after { content: ""; display: block; height: 16px; margin-top: 6px; background: var(--drip-rule) left top / 100% 100% no-repeat; }
.brand-name { font: italic 400 1.1rem/1.2 var(--f-fell); color: var(--ink-2); }

.nav-toggle { display: none; }
.menu, .submenu, .menu-links, .footer-links, .gallery, .cv-list { list-style: none; margin: 0; padding: 0; }
.menu { display: flex; flex-direction: column; gap: 26px; }
.menu-group { display: flex; flex-direction: column; gap: 8px; }

/* Engraved label: ruled, small caps */
.menu-label, .tape {
  display: flex; align-items: center; gap: 10px; width: 100%;
  font: 400 .98rem/1 var(--f-display); letter-spacing: .12em; color: var(--ink);
}
.menu-label::before, .menu-label::after { content: ""; height: 5px; flex: 1; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.menu-label::before { flex: 0 0 14px; }
.tape { width: fit-content; display: inline-flex; padding: 5px 12px 4px; border: 1px solid var(--ink); box-shadow: inset 0 0 0 2px var(--paper), inset 0 0 0 3px var(--ink); font-size: .85rem; background: var(--paper); }

/* SIGNATURE: ink-smear strips; the current page drips cyanotype blue */
.submenu { display: flex; flex-direction: column; gap: 0; }
.submenu a {
  position: relative; isolation: isolate;
  display: flex; align-items: center; min-height: 46px; padding: 6px 18px 12px 16px;
  font: 400 1.14rem/1.15 var(--f-display); color: var(--ink); text-decoration: none;
}
.submenu a::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--strip-pale) center / 100% 100% no-repeat;
  opacity: 0; transition: opacity .5s ease;
}
.submenu a:hover::before { opacity: 1; }
.submenu a[aria-current="page"] { color: var(--paper-hi); }
.submenu a[aria-current="page"]::before { background-image: var(--strip-deep); opacity: 1; animation: seep 1.6s ease-out both; }
.submenu a[aria-current="page"]::after { content: "✝"; margin-left: auto; padding-left: 10px; font-style: normal; font-size: .9rem; color: var(--wash); }
@keyframes seep { from { opacity: 0; clip-path: inset(0 0 100% 0); } 50% { opacity: 1; } to { opacity: 1; clip-path: inset(0 0 0 0); } }

.menu-links { display: flex; flex-wrap: wrap; gap: 4px 16px; font: italic 400 1rem/1.3 var(--f-fell); }
.menu-links a { color: var(--ink-2); display: inline-flex; min-height: 32px; align-items: center; }
@media (min-width: 960px) { .menu-links { margin-top: auto; padding-top: 8px; } .nav { display: flex; flex-direction: column; gap: 28px; flex: 1; } }

/* Mobile header + menu panel */
@media (max-width: 959.98px) {
  .site-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--bar); padding: 8px 12px 8px 18px; background: var(--noise), var(--paper); border-bottom: 1px solid var(--ink); box-shadow: 0 3px 0 -2px var(--paper), 0 4px 0 -2px var(--ink); }
  .brand { grid-auto-flow: column; align-items: center; gap: 10px; }
  .brand::after { display: none; }
  .brand-logo { width: 48px; }
  .brand-name { font-size: 1.05rem; }
  .nav { padding: 16px 0 8px; width: 100%; }
  .js .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px;
    border: 1px solid var(--ink); cursor: pointer; background: var(--paper); color: var(--ink);
    box-shadow: inset 0 0 0 2px var(--paper), inset 0 0 0 3px var(--ink);
    font: 400 1rem/1 var(--f-display); letter-spacing: .12em;
  }
  .nav-toggle-icon { display: grid; gap: 4px; width: 18px; }
  .nav-toggle-icon span { height: 2px; background: var(--ink); }
  .nav-toggle-icon span:nth-child(2) { width: 70%; justify-self: end; }
  .js .nav { display: none; position: fixed; top: var(--bar); left: 0; right: 0; bottom: 0; overflow-y: auto; padding: 28px 22px 40px; background: var(--foxing), var(--noise), var(--paper); }
  .js .site-header.is-open .nav { display: flex; flex-direction: column; gap: 32px; }
  .js .site-header.is-open .nav-toggle { background: var(--ink); color: var(--paper-hi); box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 0 3px var(--paper); }
  .js .site-header.is-open .nav-toggle-icon span { background: var(--paper-hi); }
  .menu { gap: 30px; }
  .submenu a { min-height: 56px; font-size: 1.3rem; padding-left: 18px; }
  .menu-links { gap: 4px 20px; font-size: 1.08rem; }
  .menu-links a { min-height: 44px; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Page chrome ---------- */
.crumbs { font: italic 400 1.02rem/1.3 var(--f-fell); color: var(--ink-2); margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--rust); text-decoration: underline; }
.page-title {
  font: 400 clamp(2.6rem, 5.6vw, 5rem)/.95 var(--f-display); letter-spacing: -.005em; color: var(--ink);
  width: fit-content; max-width: 100%; margin: 0 0 30px;
  animation: ink-in 1.8s ease-out both;
}
.page-title::after { content: ""; display: block; height: 22px; margin-top: 12px; width: min(100%, 6.5em); background: var(--drip-rule) left top / 100% 100% no-repeat; }
@keyframes ink-in { from { color: var(--mid); filter: blur(1.5px); } 55% { color: var(--ink-2); filter: blur(0); } to { color: var(--ink); } }
.page-head { margin-bottom: clamp(32px, 5vw, 60px); }
.prose { max-width: 64ch; }
.prose p { margin-bottom: 1.05em; }
.prose .lede { font-size: 1.28rem; line-height: 1.5; }
.prose .lede::first-letter { font-family: var(--f-display); float: left; font-size: 3.6em; line-height: .8; padding: .08em .08em 0 0; color: var(--ink); }
.prose h2 { font-size: 1.8rem; margin: 1.6em 0 .5em; }
.meta { font: italic 400 1rem/1.4 var(--f-fell); color: var(--ink-2); }

/* Plate frame: double rule around a hatched mount. Never touches the image. */
.mat {
  background: var(--hatch), var(--paper-hi);
  padding: 14px; border: 1px solid var(--ink);
  box-shadow: inset 0 0 0 4px var(--paper-hi), inset 0 0 0 5px var(--ink);
}
.mat img { box-shadow: 0 0 0 1px var(--ink), 0 0 0 5px var(--paper-hi), 0 0 0 6px var(--ink); }

/* ---------- Galleries ---------- */
.gallery { counter-reset: plate; }
.gallery > li { counter-increment: plate; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: clamp(22px, 3vw, 36px); }
.gallery-item { display: block; background: var(--paper-hi); padding: 9px; text-decoration: none; border: 1px solid var(--ink); box-shadow: inset 0 0 0 3px var(--paper-hi), inset 0 0 0 4px var(--ink); transition: transform .35s ease; }
.gallery-item:hover { transform: rotate(-.8deg); }
.gallery-item img { box-shadow: 0 0 0 1px var(--ink); }
.gallery-grid .gallery-item img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--paper-2); }
.gallery-item .thumb-title { display: block; padding: 10px 2px 2px; text-align: center; font: italic 400 1.02rem/1.25 var(--f-fell); color: var(--ink); }
.gallery-item .thumb-title::before { content: counter(plate, upper-roman) ". "; font-style: normal; font-family: var(--f-display); font-size: .85em; color: var(--ink-2); letter-spacing: .05em; }
.gallery-item .thumb-title::after { content: "."; }

.gallery-masonry { columns: 3 260px; column-gap: clamp(22px, 3vw, 36px); }
.gallery-masonry li { break-inside: avoid; margin-bottom: clamp(22px, 3vw, 36px); }
.gallery-masonry .gallery-item img { width: 100%; height: auto; background: var(--paper-2); }

.gallery-stack { display: flex; flex-direction: column; gap: clamp(80px, 11vw, 140px); }
.gallery-stack > li + li::before { content: "❦"; display: block; text-align: center; font: 1.8rem/1 var(--f-fell); color: var(--ink-2); margin: calc(-1 * clamp(40px, 5.5vw, 70px)) 0 clamp(40px, 5.5vw, 70px); }
.stack-item { margin: 0; display: grid; gap: 32px; }
.stack-item > .stack-image { display: block; width: fit-content; max-width: 100%; }
.stack-item > .stack-image img { max-height: 84vh; width: auto; }
.caption { font-size: 1.05rem; }
.caption h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0 0 .1em; }
.caption .object { font: italic 400 1.2rem/1.3 var(--f-fell); color: var(--rust); margin: 0 0 1.1em; }
.page-transitional-objects .caption .object::before { content: "being the tale of "; color: var(--ink-2); }
@media (min-width: 760px) {
  .stack-item .caption { display: grid; grid-template-columns: 200px minmax(0, 64ch); gap: 40px; align-items: start; }
  .caption-side { position: sticky; top: 28px; }
}
.caption-side { display: grid; gap: 10px; align-content: start; }
.caption-side .gallery-item img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.caption-side .meta { font-size: .95rem; text-align: center; }
@media (max-width: 759.98px) { .caption-side { grid-template-columns: 104px 1fr; align-items: center; margin-bottom: 18px; } .caption-side .meta { text-align: left; } }

.placeholder {
  display: grid; place-items: center; aspect-ratio: 1; padding: 14px; text-align: center;
  background: var(--hatch-x), var(--paper-2);
  font: 500 .74rem/1.4 var(--f-mono); color: var(--ink);
}
.placeholder { text-shadow: 0 0 3px var(--paper-2), 0 0 6px var(--paper-2), 0 0 8px var(--paper-2); }

/* Previous / next series */
.series-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: clamp(64px, 9vw, 110px); padding-top: 30px; border-top: 1px solid var(--ink); box-shadow: inset 0 3px 0 -2px var(--paper), inset 0 4px 0 -2px var(--ink); }
.series-nav a { display: grid; gap: 4px; padding: 12px 0; text-decoration: none; min-height: 44px; }
.series-nav .dir { font: italic 400 1rem/1 var(--f-fell); color: var(--ink-2); }
.series-nav .name { font: 400 clamp(1.4rem, 2.6vw, 2rem)/1.1 var(--f-display); color: var(--ink); }
.series-nav a:hover .name { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; }
.series-nav .next { text-align: right; justify-items: end; }

/* ---------- Home ---------- */
.home-intro { display: grid; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (min-width: 1100px) { .home-intro { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); } .home-feature { position: sticky; top: 36px; } }
.home-feature { margin: 0; }
.home-feature figcaption { margin-top: 12px; text-align: center; }
.series-index { margin-top: clamp(72px, 10vw, 130px); display: grid; gap: clamp(56px, 7vw, 84px); }
.series-group-head { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; flex-wrap: wrap; }
.series-group-head h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.series-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: clamp(24px, 3vw, 38px); counter-reset: plate; }
.series-cards > li { counter-increment: plate; }
.series-card { display: grid; gap: 10px; text-decoration: none; color: var(--ink); text-align: center; }
.series-card .mat { display: block; padding: 11px; transition: transform .35s ease; }
.series-card img, .series-card .placeholder { width: 100%; aspect-ratio: 1; object-fit: cover; }
.series-card:hover .mat { transform: rotate(.8deg); }
.series-card-title { font: 400 1.45rem/1.1 var(--f-display); color: var(--ink); }
.series-card-title::before { content: counter(plate, upper-roman) ". "; font-size: .8em; color: var(--ink-2); }
.series-card:hover .series-card-title { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.series-card-note { font: italic 400 1.02rem/1.4 var(--f-fell); color: var(--ink-2); margin-top: -4px; }

/* ---------- About ---------- */
.about { display: grid; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (min-width: 900px) { .about { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } .about-portrait { position: sticky; top: 36px; } }
.about-portrait { margin: 0; }
.about-portrait figcaption, .about-second figcaption { text-align: center; }
.link-list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; max-width: 30rem; border-top: 1px solid var(--ink); }
.link-list a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 54px; padding: 10px 2px; border-bottom: 1px solid var(--line); font: 400 1.2rem/1.2 var(--f-fell); text-decoration: none; color: var(--ink); }
.link-list a span:last-child { color: var(--ink-2); font-style: normal; }
.link-list a:hover { color: var(--blue); font-style: italic; }
.about-second { margin: clamp(44px, 6vw, 76px) 0 0; max-width: 34rem; }

/* ---------- CV ---------- */
.cv-index { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0 0 clamp(40px, 5vw, 60px); padding: 0; list-style: none; }
.cv-index a { display: inline-flex; align-items: center; min-height: 44px; font: italic 400 1.12rem/1 var(--f-fell); color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); }
.cv-index a:hover { color: var(--blue); text-decoration-color: currentColor; }
.cv { display: grid; gap: clamp(48px, 6vw, 76px); max-width: 60rem; }
.cv-section { scroll-margin-top: 24px; }
.cv-section h2 { display: flex; align-items: baseline; gap: 14px; font-size: clamp(1.8rem, 3vw, 2.4rem); padding-bottom: 12px; border-bottom: 1px solid var(--ink); box-shadow: 0 3px 0 -2px var(--paper), 0 4px 0 -2px var(--ink); }
.cv-section h2 .count { font: italic 400 1rem/1 var(--f-fell); color: var(--ink-2); }
.cv-list li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 22px; padding: 14px 0; border-bottom: 1px dotted var(--mid); }
.cv-year { font: 400 1.12rem/1.45 var(--f-display); color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.cv-text { max-width: 64ch; }
.cv-text strong { font-weight: 600; }
.cv-text .where { color: var(--ink-2); }
@media (max-width: 559.98px) { .cv-list li { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- 404 ---------- */
.not-found { display: grid; gap: clamp(36px, 5vw, 64px); align-items: center; overflow-x: clip; }
@media (min-width: 1000px) { .not-found { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.blank-print {
  position: relative; aspect-ratio: 4 / 5; max-width: 420px; width: 100%;
  background: var(--hatch), var(--paper-hi); padding: 16px; border: 1px solid var(--ink);
  box-shadow: inset 0 0 0 5px var(--paper-hi), inset 0 0 0 6px var(--ink);
  transform: rotate(1.2deg); display: grid; place-items: center;
}
.blank-print::before {
  content: ""; position: absolute; inset: 22px; border: 1px solid var(--ink);
  background: radial-gradient(ellipse 60% 55% at 50% 45%, var(--paper-hi) 30%, #cfc7b5 70%, #8d8471 100%);
}
.blank-print .tape { position: absolute; top: -16px; left: 50%; transform: translateX(-50%) rotate(-1.5deg); z-index: 2; }
.blank-print .ghost { position: relative; font: italic 400 clamp(1.4rem, 3vw, 1.9rem)/1.25 var(--f-fell); color: var(--ink-2); text-align: center; max-width: 12em; opacity: .75; }
.stamp {
  display: inline-grid; place-items: center; text-align: center;
  width: 118px; aspect-ratio: 1; border-radius: 50%; padding: 12px;
  border: 2px solid var(--rust); box-shadow: inset 0 0 0 4px var(--paper-hi), inset 0 0 0 5.5px var(--rust);
  color: var(--rust); font: 400 .8rem/1.2 var(--f-display); letter-spacing: .08em;
  transform: rotate(-9deg); opacity: .9;
}
.blank-print .stamp { position: absolute; right: -18px; bottom: 22px; z-index: 2; background: rgba(247,243,234,.75); }
@media (max-width: 640px) { .blank-print .stamp { right: 8px; } }

/* ---------- Footer ---------- */
.site-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; padding: 38px clamp(20px, 5vw, 76px) 46px; border-top: 1px solid var(--ink); box-shadow: inset 0 3px 0 -2px var(--paper), inset 0 4px 0 -2px var(--ink); max-width: 1240px; }
.site-footer .stamp { width: 100px; font-size: .68rem; box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5.5px var(--rust); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 30px; font: 400 1.08rem/1.3 var(--f-fell); }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); }
.footer-links a:hover { color: var(--blue); }
.footer-links .label { font-style: italic; color: var(--ink-2); margin-right: 6px; }
.site-footer small { font: italic 400 .98rem/1.4 var(--f-fell); color: var(--ink-2); margin-left: auto; }

/* ---------- Lightbox ---------- */
.lb { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0f0d0a; color: #ece6d8; }
.lb::backdrop { background: #0f0d0a; }
.lb[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px 8px 20px; }
.lb-count { font: 400 1rem/1 var(--f-display); letter-spacing: .1em; color: #b8b09f; font-variant-numeric: lining-nums tabular-nums; }
.lb-stage { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 0 8px; min-height: 0; }
.lb-img { max-width: 100%; max-height: calc(100vh - 170px); width: auto; height: auto; margin: 0 auto; object-fit: contain; }
.lb button { appearance: none; border: 0; background: transparent; color: #ece6d8; cursor: pointer; min-width: 52px; min-height: 52px; font: 400 1.05rem/1 var(--f-fell); border-radius: 26px; }
.lb button:hover { background: rgba(236,230,216,.1); }
.lb :focus-visible { outline-color: #d9a08f; }
.lb-prev, .lb-next { font-size: 1.7rem !important; }
.lb-close { padding: 0 16px !important; font-style: italic !important; }
.lb-caption { margin: 0 auto; padding: 12px 20px 22px; max-width: 64ch; text-align: center; font: italic 400 1.15rem/1.45 var(--f-fell); color: #ece6d8; }
@media (max-width: 640px) {
  .lb-stage { grid-template-columns: minmax(0, 1fr); }
  .lb-prev, .lb-next { position: fixed; bottom: 12px; background: rgba(236,230,216,.1) !important; }
  .lb-prev { left: 12px; } .lb-next { right: 12px; }
  .lb-caption { padding-bottom: 76px; }
  .lb-img { max-height: calc(100vh - 210px); }
}

/* ---------- Motion ---------- */
main { animation: rise .8s ease-out both; }
@keyframes rise { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Plain theme (Studio → Settings → Look of the site) ---------- */
html:has(body.theme-plain) { background: #fff; }
body.theme-plain {
  --paper: #fff; --paper-hi: #fff; --paper-2: #f1f1f1; --ink: #111; --ink-2: #555; --line: rgba(0,0,0,.12); --mid: #bbb;
  --f-display: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-fell: var(--f-display); --f-text: var(--f-display);
  background: #fff; font-size: 18px; line-height: 1.6;
}
.theme-plain h1, .theme-plain h2, .theme-plain h3 { font-weight: 600; letter-spacing: -.01em; }
.theme-plain .page-title { font-weight: 600; letter-spacing: -.02em; animation: none; }
.theme-plain .page-title::after, .theme-plain .brand::after, .theme-plain .stamp,
.theme-plain .menu-label::before, .theme-plain .menu-label::after,
.theme-plain .submenu a::before, .theme-plain .submenu a[aria-current="page"]::after,
.theme-plain .gallery-stack > li + li::before { display: none; content: none; }
.theme-plain .gallery-item .thumb-title::before, .theme-plain .gallery-item .thumb-title::after,
.theme-plain .series-card-title::before, .theme-plain.page-transitional-objects .caption .object::before { content: none; }
.theme-plain .crumbs, .theme-plain .meta, .theme-plain .thumb-title, .theme-plain .series-card-note, .theme-plain .series-nav .dir,
.theme-plain .brand-name, .theme-plain .menu-links, .theme-plain .caption .object, .theme-plain .cv-index a, .theme-plain .lb-caption,
.theme-plain .footer-links .label, .theme-plain .site-footer small, .theme-plain .link-list a, .theme-plain .count, .theme-plain .lb-close { font-style: normal !important; }
.theme-plain .crumbs { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.theme-plain .prose .lede::first-letter { float: none; font: inherit; padding: 0; }
.theme-plain .site-header { border-right-color: var(--line); box-shadow: none; }
.theme-plain .menu-label { font: 600 .72rem/1 var(--f-text); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.theme-plain .submenu a { font: 400 1rem/1.25 var(--f-text); min-height: 40px; padding: 6px 0; color: var(--ink); }
.theme-plain .submenu a:hover { color: var(--blue); }
.theme-plain .submenu a[aria-current="page"] { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .35em; }
.theme-plain .mat, .theme-plain .gallery-item { background: none; padding: 0; border: 0; box-shadow: none; }
.theme-plain .mat img, .theme-plain .gallery-item img { box-shadow: none; }
.theme-plain .gallery-item:hover, .theme-plain .series-card:hover .mat { transform: none; opacity: .88; }
.theme-plain .gallery-item .thumb-title { text-align: left; font-size: .9rem; color: var(--ink-2); padding-top: 8px; }
.theme-plain .series-card { text-align: left; }
.theme-plain .series-card-title { font-size: 1.15rem; font-weight: 600; }
.theme-plain .tape { border: 0; box-shadow: none; background: none; padding: 0; font: 500 .8rem var(--f-text); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.theme-plain .series-nav, .theme-plain .site-footer, .theme-plain .cv-section h2 { box-shadow: none; border-color: var(--line); }
.theme-plain .cv-section h2 { border-bottom: 1px solid var(--ink); }
.theme-plain .cv-list li { border-bottom: 1px solid var(--line); }
.theme-plain .cv-year { font-weight: 600; }
.theme-plain .link-list { border-top-color: var(--line); }
.theme-plain .link-list a:hover { font-style: normal; }
.theme-plain .blank-print { background: #f4f4f4; box-shadow: none; border-color: var(--line); transform: none; }
@media (max-width: 959.98px) {
  .theme-plain .site-header { background: #fff; box-shadow: none; border-bottom-color: var(--line); }
  .js .theme-plain .nav { background: #fff; }
  .theme-plain.menu-open .nav, .js body.theme-plain .nav { background: #fff; }
  .js .theme-plain .nav-toggle { box-shadow: none; border-color: var(--line); font: 600 .85rem/1 var(--f-text); letter-spacing: .08em; text-transform: uppercase; }
  .theme-plain .submenu a { min-height: 48px; font-size: 1.1rem; }
}

/* ---------- Uncropped image walls (Studio → Settings → Image walls) ---------- */
.crop-off .series-cards { align-items: start; }
.crop-off .series-card img { aspect-ratio: auto; height: auto; object-fit: contain; }
