/*!
 * johnbeckett.info
 * Copyright (c) 2026 John R. Beckett. All rights reserved.
 * Unauthorized copying, redistribution, or extraction of this code is
 * prohibited.
 * Legal: https://johnbeckett.info/legal.html
 */
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("../assets/fonts/newsreader-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 300 500;
  font-display: swap;
  src: url("../assets/fonts/newsreader-italic.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/ibm-plex-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/ibm-plex-sans-500.woff2") format("woff2");
}

:root {
  --paper: #f7f4ee;
  --paper-deep: #efeae0;
  --ink: #1c1b1a;
  --ink-soft: #5d5955;
  --ink-faint: #a39e97;
  --rule: rgba(28, 27, 26, 0.12);
  --ochre: #b97a3a;
  --blue: #2e4a6b;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "IBM Plex Sans", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --measure: 62ch;
  --wide: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --t-fast: 180ms;
  --t-slow: 600ms;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(17px, 1.05vw + 12px, 20px);
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
  font-feature-settings: "kern", "liga", "onum";
  scroll-behavior: smooth;
}
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(185, 122, 58, 0.28); }

h1, h2, h3, .display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 1.6vw, 1.55rem); }
p { margin: 0 0 1.1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }
em { font-style: italic; }
.label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.muted { color: var(--ink-soft); }
.small { font-size: 0.9rem; }

.prose a, .link {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: 0 100%;
  padding-bottom: 1px;
  transition: background-size var(--t-fast) var(--ease), color var(--t-fast);
}
.prose a:hover, .link:hover { color: var(--ochre); background-size: 100% 2px; }

.ph {
  color: var(--ink-soft);
  border-bottom: 1px dotted var(--ochre);
}

.wrap { width: min(100% - 2 * var(--gutter), var(--wide)); margin-inline: auto; }
.narrow { width: min(100% - 2 * var(--gutter), 46rem); margin-inline: auto; }

.wrap .narrow { margin-inline: auto; }
section { padding-block: clamp(3rem, 8vw, 6.5rem); position: relative; }
.eyebrow { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.6rem; }
.eyebrow .label { position: relative; padding-left: 0.2rem; }
.eyebrow .label::before {

  content: ""; position: absolute; left: -0.9rem; top: -0.55rem; width: 2.4rem; height: 2rem;
  background: url("../assets/art/wash_blue.webp") center / contain no-repeat;
  opacity: 0.55; z-index: -1; transform: rotate(-8deg);
}

.site-head {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast);
}
.site-head.scrolled { border-bottom-color: var(--rule); }
.site-head .wrap { display: flex; align-items: baseline; justify-content: space-between; height: 4.25rem; }
.brand { align-self: center; display: inline-flex; padding: 0.4rem 0; }
.brand .mark {

  display: block; transition: transform var(--t-fast) var(--ease);
}
.brand:hover .mark { transform: rotate(-10deg) scale(1.08); }
nav.primary { display: flex; gap: clamp(1rem, 2.4vw, 2rem); align-self: center; }
nav.primary a {
  font-family: var(--sans); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft); padding: 0.4rem 0; position: relative;
}
nav.primary a::after {
  content: ""; position: absolute; left: -0.15em; right: -0.15em; bottom: -0.32em; height: 0.5em;
  background-image: url("../assets/art/ink-underline.svg"); background-size: 100% 100%; background-repeat: no-repeat;
  opacity: 0; transform: scaleX(0.9); transform-origin: left center;
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
nav.primary a:hover::after, nav.primary a[aria-current]::after { opacity: 1; transform: scaleX(1); }
nav.primary a[aria-current] { color: var(--ink); }
.menu-btn { display: none; }

.hero { padding-block: clamp(2rem, 6vw, 5rem) clamp(2.5rem, 6vw, 5rem); overflow: clip; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.hero-art { position: relative; margin-inline: -6%; }
.hero-art img {
  width: 100%;

  -webkit-mask-image: radial-gradient(ellipse 78% 82% at 50% 50%, #000 58%, transparent 100%);
          mask-image: radial-gradient(ellipse 78% 82% at 50% 50%, #000 58%, transparent 100%);
}
.hero-copy { position: relative; }
.hero-copy .label { margin-bottom: 1.25rem; display: block; }
.hero-copy h1 { position: relative; display: inline; font-size: clamp(2.8rem, 6vw, 5.2rem); }
.hero-copy h1 .stroke {

  position: relative; white-space: nowrap; z-index: 0;
}
.hero-copy h1 .stroke::before {
  content: ""; position: absolute; left: -4%; right: -6%; bottom: -0.18em; height: 0.55em;
  background: url("../assets/art/stroke_ochre.webp") left center / 100% 100% no-repeat;
  opacity: 0.85; z-index: -1;
}
.hero-copy .intro { margin-top: 1.8rem; font-size: 1.06em; }
.hero-copy .intro p { max-width: 38ch; }
.hero-links { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 1.8rem; }
.splat {
  position: absolute; pointer-events: none; user-select: none;
  background: url("../assets/art/splatter_blue.webp") center / contain no-repeat;
}
.hero .splat { width: clamp(90px, 12vw, 180px); aspect-ratio: 657 / 740; right: -2%; top: -6%; opacity: 0.85; transform: rotate(14deg); }

.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--sans); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--paper); background: var(--ink); padding: 0.85rem 1.3rem; border-radius: 2px;
  transition: background var(--t-fast), transform var(--t-fast) var(--ease);
}
.btn:hover { background: var(--blue); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }

.recent .grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); }

.page-recipes .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); }
.card { display: block; transition: transform var(--t-fast) var(--ease); }
.card:hover { transform: translateY(-2px); }
.card .label { display: block; margin-bottom: 0.9rem; }
.card h3 { margin-bottom: 0.6rem; }
.card:hover h3 { color: var(--ochre); }
.card p { font-size: 0.95rem; color: var(--ink-soft); }
.card .meta { margin-top: 0.8rem; font-family: var(--sans); font-size: 0.72rem; color: var(--ink-faint); letter-spacing: 0.04em; }

.studio-strip { background: var(--paper-deep); }
.studio-strip .grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.6rem); align-items: stretch; }
.piece {
  display: flex; flex-direction: column; background: var(--paper);
  border-radius: 4px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(28,27,26,0.06), 0 10px 30px -18px rgba(28,27,26,0.35);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.piece:hover { transform: translateY(-3px); box-shadow: 0 1px 0 rgba(28,27,26,0.08), 0 18px 40px -18px rgba(28,27,26,0.45); }
.piece .frame { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--ink); }
.piece .frame img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease); }
.piece:hover .frame img { transform: scale(1.03); }
.piece-body { display: flex; flex-direction: column; gap: 0.35rem; padding: 1rem 1.1rem 1.25rem; flex: 1; }
.piece-body strong { font-family: var(--serif); font-weight: 400; font-size: 1.2rem; line-height: 1.2; letter-spacing: -0.01em; }
.piece:hover .piece-body strong { color: var(--ochre); }
.piece-body span { font-size: 0.92rem; line-height: 1.45; color: var(--ink-soft); }

.still { position: relative; display: block; overflow: hidden; border-radius: 4px; aspect-ratio: 3 / 2; background: var(--ink); box-shadow: 0 10px 30px -18px rgba(28,27,26,0.4); }
.still img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease); }
.still:hover img { transform: scale(1.03); }

.page-head { padding-block: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.5rem); position: relative; }
.page-head h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }

.page-head h1 { position: relative; }
.page-head h1::before {
  content: ""; position: absolute; left: -0.7rem; top: -0.5rem; width: 3.4rem; height: 2.8rem;
  background: url("../assets/art/wash_blue.webp") center / contain no-repeat;
  opacity: 0.5; z-index: -1; transform: rotate(-8deg);
}

.page-about h1::before { background-image: url("../assets/art/blot_ink.webp"); left: 42%; top: 62%; width: 3.3rem; height: 3.3rem; opacity: 0.4; transform: rotate(-11deg); }
.page-studio h1::before { background-image: url("../assets/art/dab_ochre.webp"); left: 68%; top: -55%; width: 3rem; height: 1.4rem; opacity: 0.45; transform: rotate(13deg) scaleX(-1); }
.page-contact h1::before { background-image: url("../assets/art/blot_blue.webp"); left: 84%; top: 48%; width: 2.6rem; height: 2.9rem; opacity: 0.45; transform: rotate(-7deg); }

.page-reading h1::before { background-image: url("../assets/art/blot_ochre.webp"); left: 58%; top: -50%; width: 2.1rem; height: 3.6rem; opacity: 0.4; transform: rotate(9deg); }
.page-recipes h1::before { background-image: url("../assets/art/dab_blue.webp"); left: 20%; top: 58%; width: 3.2rem; height: 1.4rem; opacity: 0.4; transform: rotate(-16deg) scaleX(-1); }
.page-gaming h1::before { background-image: url("../assets/art/spray_ink.webp"); left: 90%; top: -30%; width: 3.6rem; height: 3.2rem; opacity: 0.35; transform: rotate(21deg); }
.page-head .lede { margin-top: 1.2rem; font-size: 1.1em; color: var(--ink-soft); max-width: 50ch; }

.page-head .date { display: block; margin-bottom: 1rem; }

.page-head.with-art .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1rem, 3vw, 2.5rem); align-items: start; }
.page-head.with-art .head-copy { position: relative; z-index: 1; }

.page-reading .page-head.with-art .wrap { align-items: stretch; }
.head-copy.has-entry { display: flex; flex-direction: column; }
.head-copy.has-entry .entry-first { margin-top: auto; border-top: 0; padding-top: 2rem; }
.page-head.with-art .head-art { position: relative; margin-inline: -4% -10%; transform: rotate(-5deg); }
.page-head.with-art .head-art img { width: 100%; height: auto; display: block; filter: drop-shadow(0 18px 28px rgba(28, 27, 26, 0.25)); }
@media (max-width: 900px) {
  .page-head.with-art .wrap { grid-template-columns: 1fr; }

  .page-head.with-art .head-art { display: none; }
}
.page-head .splat { width: clamp(70px, 8vw, 120px); aspect-ratio: 657 / 740; right: 4%; top: 12%; opacity: 0.55; transform: rotate(-22deg) scaleX(-1); }

.entry { padding-block: 2rem; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1.5rem; }
.entry:last-child { border-bottom: 1px solid var(--rule); }
.entry:first-child { border-top: 0; padding-top: 0.5rem; }
.entry.entry-plain { grid-template-columns: minmax(0, 1fr); }
.entry .when { font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.08em; color: var(--ink-faint); padding-top: 0.45rem; text-transform: uppercase; }
.entry h3 { margin-bottom: 0.5rem; }
.entry h3 a:hover { color: var(--ochre); }
.entry .venue { color: var(--ink-soft); font-style: italic; margin-bottom: 0.7rem; }
.entry .actions { display: flex; gap: 1.5rem; margin-top: 0.9rem; }
.entry .actions a { font-family: var(--sans); font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }
.entry .actions a:hover { color: var(--ochre); }

.cover { display: block; width: 6rem; flex: none; }
.cover img {
  width: 100%; border-radius: 1px;
  box-shadow: 0 1px 2px rgba(28, 27, 26, 0.18), 0 8px 18px -8px rgba(28, 27, 26, 0.35);
  transition: transform var(--t-fast) var(--ease);
}
.card .cover {

  width: 7rem; aspect-ratio: 2 / 3; overflow: hidden; margin-bottom: 1.1rem;
}
.card .cover img { width: 100%; height: 100%; object-fit: cover; }
.card:hover .cover img, .entry h3 a:hover ~ .cover img { transform: translateY(-2px); }
.cover-link:hover .cover img { transform: translateY(-2px); }

.entry.entry-plain.has-cover { grid-template-columns: clamp(7rem, 16vw, 13rem) minmax(0, 1fr); gap: clamp(1.75rem, 3vw, 2.75rem); align-items: start; }
.entry.entry-plain.has-cover .cover { width: 100%; }
.entry .source { font-family: var(--sans); font-size: 0.74rem; color: var(--ink-faint); letter-spacing: 0.04em; margin-left: 0.6rem; }

.collage { position: relative; column-count: 3; column-gap: 2rem; padding-top: 0.5rem; }

.collage .tile { display: inline-block; width: 100%; break-inside: avoid; margin: 0 0 2.2rem; text-align: center; transition: transform 0.25s ease; will-change: transform; }
.collage .tile .cover { display: block; width: 100%; }
.collage .tile img { display: block; width: 100%; height: auto; border: 6px solid var(--paper); box-shadow: 0 8px 20px rgba(28, 27, 26, 0.22); }

.collage .tile:has(.tile-caption-below) > a {
  display: block; border: 6px solid var(--paper); box-shadow: 0 8px 20px rgba(28, 27, 26, 0.22);
}
.collage .tile:has(.tile-caption-below) img { border: 0; box-shadow: none; }
.collage .tile .tile-caption-below {
  display: block; font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.02em;
  color: var(--ink); background: #fff; margin: 0; padding: 0.5rem 0.7rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.collage .tile:nth-child(6n+4) { transform: rotate(-2.5deg); }
.collage .tile:nth-child(6n+5) { transform: rotate(1.8deg); }
.collage .tile:nth-child(6n+6) { transform: rotate(-1.2deg); }
.collage .tile:nth-child(6n+7) { transform: rotate(2.2deg); }
.collage .tile:nth-child(6n+8) { transform: rotate(-1.6deg); }
.collage .tile:nth-child(6n+9) { transform: rotate(1.2deg); }

.collage.collage-grid .tile { transform: rotate(var(--tilt, 0deg)); }
.collage .tile:hover { transform: rotate(0deg) scale(1.03); position: relative; z-index: 2; }

.collage .tile .blank {
  display: flex; align-items: center; justify-content: center; text-align: center;
  aspect-ratio: 4 / 3; padding: 1.5rem; background: var(--paper-deep);
  border: 6px solid var(--paper); box-shadow: 0 8px 20px rgba(28, 27, 26, 0.22);
  font-size: clamp(1.3rem, 1.8vw, 1.7rem); line-height: 1.15; color: var(--ink-soft);
}
.collage .tile:hover .blank { color: var(--ochre); }

.collage-grid {
  display: grid;
  grid-auto-flow: column;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(var(--rows), auto);
  column-gap: 2rem;
  row-gap: 2.2rem;
}
.collage-grid .tile { margin: 0; }
@media (max-width: 900px) {
  .collage { column-count: 2; }
  .collage-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(var(--rows-2col), auto);
  }

  .collage.collage-grid .tile { transform: rotate(var(--tilt-2col, 0deg)); }

  .collage .tile:hover { transform: rotate(0deg) scale(1.03); }
}
@media (max-width: 560px) {
  .collage { column-count: 1; }

  .collage-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(var(--rows-1col), auto);
  }

  .collage.collage-grid .tile { transform: rotate(var(--tilt-1col, 0deg)); }
  .collage .tile:hover { transform: none; }
}

.article .narrow { padding-block: clamp(1rem, 3vw, 2rem) clamp(3rem, 6vw, 5rem); }
.article .prose p { font-size: 1.04em; }
.article blockquote { margin: 2rem 0; padding-left: 1.4rem; border-left: 2px solid var(--ochre); color: var(--ink-soft); font-style: italic; }
.article .date { display: block; margin-bottom: 1rem; }

.recipe .wrap > .narrow { margin-inline: 0; }
.recipe h2 { font-size: clamp(1.25rem, 1.6vw, 1.55rem); margin-top: 2.6rem; margin-bottom: 0.8rem; }

.recipe .wrap > .narrow > h2:first-child { margin-top: 0; }

.page-head.recipe { padding-bottom: clamp(1rem, 2vw, 1.5rem); }
@media (max-width: 900px) {

  .page-head.recipe.has-photo { padding-bottom: clamp(1.75rem, 4vw, 2.5rem); }
}

.recipe ul.plain { list-style: none; margin: 0; padding: 0; }
.recipe ul.plain li + li { margin-top: 0.5rem; }
.recipe ul.plain li { padding-left: 1.1rem; position: relative; }
.recipe ul.plain li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 0.4rem; height: 2px; background: var(--ochre); }
.recipe ol.steps { margin: 0; padding-left: 1.6rem; }
.recipe ol.steps li { padding-left: 0.3rem; }
.recipe ol.steps li + li { margin-top: 1rem; }
.recipe ol.steps li::marker { font-family: var(--sans); font-size: 0.8em; color: var(--ochre); font-weight: 500; }
.recipe .label { display: block; margin-bottom: 1rem; }

.recipe .fig.postcard {
  position: relative; text-align: center;
}
.recipe .fig.postcard::before, .recipe .fig.postcard::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  background: center / contain no-repeat;
}
.recipe .fig.postcard::before {
  background-image: url("../assets/art/spray_blue.webp");
  width: 65%; aspect-ratio: 600 / 592; top: -1.6rem; left: -1.8rem;
  opacity: 0.5; transform: rotate(-14deg);
}
.recipe .fig.postcard::after {
  background-image: url("../assets/art/blot_ochre.webp");
  width: 28%; aspect-ratio: 235 / 600; bottom: -0.8rem; right: -1.2rem;
  opacity: 0.55; transform: rotate(20deg);
}
.recipe .fig.postcard img {
  display: inline-block; width: 100%; border: 8px solid var(--paper);
  box-shadow: 0 8px 20px rgba(28, 27, 26, 0.22); transform: rotate(-5deg);
}

.page-head.recipe .head-copy { width: min(100%, 46rem); }

body.page-recipes:has(.head-postcard) { overflow-x: clip; }
.head-postcard {
  float: right; width: min(46%, 20rem);
  margin: 0.4rem clamp(-10rem, -8vw, -2rem) 1.25rem clamp(1.5rem, 3vw, 2.5rem);
}
@media (max-width: 900px) {

  .page-head.recipe .head-copy { display: flex; flex-direction: column; }

  .head-postcard { float: none; order: 99; width: min(70%, 17rem); margin: 3rem auto 0; }
}

.recipe .print-byline { display: none; }
.entry .more { white-space: nowrap; }

@media print {
  .site-head, .menu-btn, .site-foot, .acc, .splat { display: none !important; }
  .rise, .rise-media, .reveal { opacity: 1 !important; transform: none !important; animation: none !important; }
  body { background: #fff; color: #000; }
  section { padding-block: 0.15in !important; }
  .article .narrow, .recipe .narrow { padding-block: 0 !important; }
  .recipe h1 { font-size: 20pt !important; margin-bottom: 0.08in !important; }
  .recipe .print-byline { display: block; font-style: italic; color: #444; font-size: 10pt; margin-bottom: 0.15in; }
  .recipe h2 { font-size: 13pt; margin-top: 0.2in; margin-bottom: 0.06in; }
  .recipe .lede p { font-size: 10.5pt; margin-bottom: 0.4em; }
  .recipe ul.plain, .recipe ol.steps { gap: 0.2rem; font-size: 10.5pt; }

  .page-head.recipe .head-copy { display: block; }
  .head-postcard { width: 2in; max-width: 2in; margin: 0 0 0.2in 0.25in; float: right; }
  .recipe .fig.postcard::before, .recipe .fig.postcard::after { display: none; }
  .recipe .fig.postcard img { border-width: 3px; box-shadow: none; transform: none; }
  a { color: inherit; text-decoration: none; }
}

.work { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; padding-block: clamp(2rem, 5vw, 4rem); border-top: 1px solid var(--rule); }
.work:nth-child(even) .still { order: 2; }
.work .still { aspect-ratio: 3 / 2; }
.work h2 { margin-bottom: 0.6rem; }
.work .line { font-size: 1.12em; margin-bottom: 0.9rem; }
.work .detail { color: var(--ink-soft); }
.work .btn { margin-top: 1.4rem; }

.essay { padding-top: clamp(2rem, 5vw, 4rem); padding-bottom: clamp(3rem, 7vw, 6rem); overflow: clip; }

.essay .prose p { font-size: 1.04em; max-width: var(--measure); }
.essay .flow { padding-top: 0.5rem; }
.essay .flow::after { content: ""; display: block; clear: both; }
.fig { margin: 0; }
.fig img { width: 100%; }

.fig.bleed { width: 100vw; margin-inline: calc(50% - 50vw); margin-block: clamp(1.5rem, 3.5vw, 3rem); display: flex; justify-content: center; }
.fig.bleed img {
  width: auto; max-width: 100%; max-height: 76vh; height: auto;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent), linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent), linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}

.fig.cut { width: min(46%, 24rem); margin-block: 0.3rem 1rem; }
.fig.cut.right { float: right; margin-left: clamp(1.2rem, 3vw, 2.5rem); margin-right: clamp(-9rem, -12vw, -2rem); }
.fig.cut.left { float: left; margin-right: clamp(1.2rem, 3vw, 2.5rem); margin-left: clamp(-9rem, -12vw, -2rem); }
.fig.cut img, .fig.side img { -webkit-mask-image: radial-gradient(ellipse 84% 88% at 50% 50%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 84% 88% at 50% 50%, #000 62%, transparent 100%); }

.closing { display: grid; grid-template-columns: 17rem minmax(0, 1fr); gap: clamp(1.5rem, 3.5vw, 3rem); align-items: start; margin-top: 0.5rem; }
.closing .fig.side { margin-left: clamp(-7rem, -9vw, -1rem); margin-top: -0.6rem; }
.closing .prose p:last-child { margin-top: 1.4rem; color: var(--ink-soft); }

.opening-flow .fig.cutout-float {
  float: right;
  width: clamp(6rem, 20vw, 9rem);
  margin: 0 0 0.8rem 1.6rem;
}
.opening-flow .fig.cutout-float img { display: block; width: 100%; height: auto; }

.contact .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.contact-art { display: flex; justify-content: center; }
.contact-art img { width: 100%; max-width: 22rem; filter: drop-shadow(0 20px 30px rgba(28, 27, 26, 0.28)); }
form.stationery { display: grid; gap: 1.4rem; max-width: 34rem; }
form.stationery label { display: grid; gap: 0.45rem; }
form.stationery label span { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
form.stationery input, form.stationery textarea {
  font: inherit; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--ink-faint);
  padding: 0.55rem 0; border-radius: 0; outline: none; width: 100%;
  transition: border-color var(--t-fast);
}
form.stationery textarea { min-height: 8rem; resize: vertical; line-height: 1.5; }
form.stationery input:focus, form.stationery textarea:focus { border-bottom-color: var(--ochre); border-bottom-width: 2px; }
form.stationery .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
form.stationery .honey { position: absolute; left: -9999px; }
form.stationery .notice { margin: 0; padding: 0.7rem 0.9rem; border-left: 2px solid var(--ochre); background: var(--paper-deep); }
form.stationery .cf-turnstile { margin-top: -0.4rem; }

.site-foot { margin-top: auto; border-top: 1px solid var(--rule); padding-block: 1.8rem 2.2rem; position: relative; overflow: clip; }
.site-foot .wrap { display: block; }
.site-foot .label { display: block; margin-bottom: 0.8rem; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.site-foot li a { font-size: 0.95rem; }
.site-foot .fine { margin-top: 0; font-family: var(--sans); font-size: 0.72rem; color: var(--ink-faint); display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.5rem; text-align: center; }
.site-foot .fine a:hover { color: var(--ochre); }
.site-foot .stroke-foot { position: absolute; left: -2%; bottom: -14px; width: 42vw; max-width: 520px; height: 40px; background: url("../assets/art/stroke_ochre.webp") left center / contain no-repeat; opacity: 0.35; pointer-events: none; }

.rise-media { opacity: 0; animation: rise var(--t-slow) var(--ease) forwards; }
.rise-media.d1 { animation-delay: 90ms; } .rise-media.d2 { animation-delay: 180ms; } .rise-media.d3 { animation-delay: 270ms; }
@keyframes rise { to { opacity: 1; } }
.reveal { transition: opacity var(--t-slow) var(--ease); }
html.js .reveal:not(.in) { opacity: 0; }

.reading-pool > .card:nth-child(n+4) { display: none; }
@media (prefers-reduced-motion: reduce) {

  .rise, .rise-media, .reveal { opacity: 1; transform: none; animation: none; transition: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 900px) {
  .hero .wrap, .contact .wrap, .work { grid-template-columns: 1fr; }
  .hero-art { margin-inline: -4%; max-width: 34rem; }

  .hero-copy .intro p { max-width: none; }
  .work:nth-child(even) .still { order: 0; }
  .contact-art { margin-top: 1rem; }
  .contact-art img { max-width: 15rem; }

  .recent .grid { grid-template-columns: 1fr; gap: 0; }
  .studio-strip .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-foot .wrap { grid-template-columns: 1fr 1fr; }

  .entry:not(.entry-plain) { grid-template-columns: 1fr; gap: 0.4rem; }

  .reading-pool .card {
    display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 1.25rem; align-items: start;
    padding-block: 2rem; border-top: 1px solid var(--rule);
  }
  .reading-pool .card:first-child { border-top: 0; padding-top: 0.5rem; }
  .reading-pool .card:nth-child(3) { border-bottom: 1px solid var(--rule); }
  .reading-pool .card .cover { width: 100%; margin-bottom: 0; }
}
@media (max-width: 480px) {

  .entry.entry-plain.has-cover { grid-template-columns: 4.5rem minmax(0, 1fr); gap: 1.1rem; }
  .entry.entry-plain.has-cover .cover { width: 4.5rem; }
  .reading-pool .card { grid-template-columns: 4.5rem minmax(0, 1fr); gap: 1.1rem; }
}
@media (max-width: 640px) {
  .fig.cut, .fig.cut.right, .fig.cut.left { float: none; width: 80%; margin-inline: auto; margin-block: 1.5rem; }
  .closing { grid-template-columns: 1fr; }
  .closing .fig.side { margin: 0 auto 1rem; width: 70%; }
  .opening-flow .fig.cutout-float { width: clamp(5rem, 26vw, 7rem); margin: 0 0 0.5rem 0.8rem; }
  nav.primary { display: none; position: absolute; left: 0; right: 0; top: 4.25rem; background: var(--paper); border-bottom: 1px solid var(--rule); padding: 1rem var(--gutter) 1.4rem; flex-direction: column; gap: 0.9rem; }
  nav.primary.open { display: flex; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; align-self: center; background: none; border: 0; color: var(--ink-soft); cursor: pointer; padding: 0.4rem; }
  .menu-btn svg { display: block; }
  .site-foot .wrap { grid-template-columns: 1fr; }
  form.stationery .row { grid-template-columns: 1fr; }
  .studio-strip .grid { grid-template-columns: 1fr; }
}

.acc { position: absolute; z-index: -1; pointer-events: none; user-select: none; background: center / contain no-repeat; }
.acc-bloom-blue { background-image: url("../assets/art/bloom_blue.webp"); width: clamp(150px, 18vw, 260px); aspect-ratio: 600 / 497; right: 3%; top: -4%; opacity: 0.5; transform: rotate(-6deg); }
.acc-blot-ochre { background-image: url("../assets/art/blot_ochre.webp"); width: clamp(44px, 5vw, 72px); aspect-ratio: 235 / 600; right: 9%; top: -14%; opacity: 0.55; transform: rotate(4deg); }
.acc-spray-blue { background-image: url("../assets/art/spray_blue.webp"); width: clamp(120px, 14vw, 200px); aspect-ratio: 600 / 592; right: 4%; top: 6%; opacity: 0.6; transform: rotate(20deg); }
.acc-spray-ochre { background-image: url("../assets/art/spray_ochre.webp"); width: clamp(120px, 14vw, 200px); aspect-ratio: 600 / 592; opacity: 0.55; transform: rotate(-30deg) scaleX(-1); }
.acc-bloom-ochre { background-image: url("../assets/art/bloom_ochre.webp"); width: clamp(180px, 22vw, 320px); aspect-ratio: 600 / 497; left: -3%; bottom: 6%; opacity: 0.32; transform: rotate(12deg); }
.acc-essay { right: 2%; top: 0; }
.acc-dab-ink { background-image: url("../assets/art/dab_ink.webp"); width: clamp(90px, 10vw, 150px); aspect-ratio: 600 / 219; right: 8%; bottom: 28%; opacity: 0.16; transform: rotate(-3deg); }
.essay, .contact, .recipe { position: relative; }
.page-studio .acc-blot-ochre { right: 12%; top: -9%; transform: rotate(-13deg) scale(1.15); }
.page-contact .acc-spray-blue { right: 7%; top: -6%; transform: rotate(-17deg) scale(0.86); }
.page-contact .acc-bloom-ochre { left: -4%; bottom: 4%; transform: rotate(19deg) scale(1.05); }
.page-about .acc-spray-blue.acc-essay { right: 1%; top: -3%; transform: rotate(31deg) scale(0.9); }

.page-reading .acc-bloom-blue { left: auto; right: 1%; top: -9%; width: clamp(140px, 17vw, 235px); transform: rotate(11deg); }
.page-recipes .acc-spray-ochre { left: 34%; right: auto; top: 58%; width: clamp(110px, 13vw, 180px); transform: rotate(-27deg) scaleX(-1); }
.page-gaming .acc-bloom-blue { left: auto; right: -3%; top: 62%; width: clamp(150px, 18vw, 260px); transform: rotate(-7deg) scale(1.1); }
@media (max-width: 640px) { .acc-bloom-ochre, .acc-dab-ink { display: none; } .acc-essay { opacity: 0.35; } }

.moth { position: fixed; left: 0; top: 0; width: 0; height: 0; z-index: 15; pointer-events: none; will-change: transform, opacity; opacity: 0; }
.moth > div { position: absolute; background-position: center; background-size: 100% 100%; background-repeat: no-repeat; will-change: transform; }
.moth-forewing { background-image: url("../assets/moth/forewing.webp"); }
.moth-hindwing { background-image: url("../assets/moth/hindwing.webp"); }
.moth-body     { background-image: url("../assets/moth/body.webp"); }
.moth-antenna  { background-image: url("../assets/moth/antenna.webp"); }
