/* Minnitrope. The studio owns the white page, the logo, the monospace voice and the rhythm.
   Each project owns its images, its tag colour and the colour of its own page body. */
:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #111;
  --mute: #555;
  --mono: "Anonymous Pro", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gut: clamp(16px, 1.67vw, 24px);          /* caption inset, 24px at 1440 */
  --edge: clamp(16px, 3.6vw, 52px);
  --desc: clamp(7.75px, 1.034vw, 15px);      /* logo descender below baseline = 0.0517 x logo width */          /* masthead inset, 52px at 1440 */
  --cap-gap: clamp(20px, 3.9vw, 56px);       /* image to caption */
  --beat: clamp(72px, 8.9vw, 128px);         /* caption to next project */
  --fs: clamp(14px, 1.12vw, 16px);
  --lh: 1.2;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
.entry { overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 700 var(--fs)/var(--lh) var(--mono);  /* all text bold (C, 2026-11-18) */ -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
h1, h2, p, figure, dl, dd, ol { margin: 0; padding: 0; }
h1, h2 { font: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
/* One plain filled black arrow everywhere, links included (a hairline of white keeps it visible on black pages). */
html, a, button, [role="button"] { cursor: url("/cursor.svg") 2 1, auto; }
html.cc, html.cc * { cursor: none; }
.cursor { position: fixed; left: 0; top: 0; width: 20px; height: 20px; pointer-events: none; z-index: 9999; opacity: 0; will-change: transform; }
.cursor path { fill: #000; transition: fill .12s; }
.cursor.on-dark path { fill: #fff; }
.cursor svg { display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--gut); top: -60px; background: var(--ink); color: var(--paper); padding: 10px 14px; z-index: 10; }
.skip:focus { top: 8px; }

/* ---------- masthead ---------- */
.mast { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "brand nav" "low low"; align-items: start; column-gap: 24px; padding: clamp(20px, 2.8vw, 40px) var(--gut) 0; }  /* one left margin with captions; nav top right; description + tagline share a lower baseline */
.mnav { grid-area: nav; display: flex; gap: 1.4em; }
.mnav a { text-decoration: none; }
.mnav a:hover, .mnav a[aria-current] { text-decoration: underline; }
.mlow { grid-area: low; display: flex; justify-content: space-between; align-items: last baseline; gap: 24px; margin-top: calc(var(--desc) + clamp(14px, 1.7vw, 24px)); }
.intro { color: var(--mute); margin: 0; }
.intro span { display: block; }
.brand { grid-area: brand; display: block; margin: 0; line-height: 0; }
.logo { width: clamp(150px, 20vw, 290px); height: auto; }  /* same size on every page */

.tagline { margin: 0 0 0 auto; white-space: nowrap; }  /* text size: a quiet statement, not a headline */


/* ---------- index entries ---------- */
.work { padding-top: clamp(40px, 4.5vw, 64px); }
/* Homepage carousel: one project per frame, sliding sideways. */
.track { display: flex; align-items: start; overflow-x: auto; overflow-y: hidden; transition: height .45s ease; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
.track:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.slide .entry { margin-bottom: 0; }
.cbar { display: flex; justify-content: space-between; align-items: baseline; padding: clamp(28px, 3.5vw, 48px) var(--gut) 0; }
.cbar p { margin: 0; }
.ccount { font-variant-numeric: tabular-nums; }
.cbtns { display: flex; gap: 1.6em; }
.cbtns button { background: none; border: 0; padding: 0 .1em; font-size: clamp(17px, 1.5vw, 21px); line-height: 1; }
.cbtns button:hover { text-decoration: underline; }
.entry { margin-bottom: var(--beat); }
.fig { margin-left: var(--left); width: var(--width); }
.cover { display: block; }
.cover img { width: 100%; }
.caption { display: grid; grid-template-columns: minmax(0, 27.75em) auto; justify-content: start; align-items: start; column-gap: 0; padding: 0 var(--gut); margin-top: var(--cap-gap); position: relative; }
.entry[data-inset] { display: grid; margin-bottom: var(--after, var(--beat)); }
.entry[data-inset] > * { grid-area: 1 / 1; }
.entry[data-inset] .caption { margin-top: var(--capat); align-self: start; justify-self: start; }
.ctitle, .ctype { font-size: 1em; }
.ctitle a { text-decoration: none; }
.ctitle a:hover, .ctitle a:focus-visible { text-decoration: underline; }
.entry:has(.cover:hover) .ctitle a { text-decoration: underline; }
.tags { color: var(--tag); margin-top: 1.15em; }
.livelink { font-weight: 700; text-decoration: none; white-space: nowrap; }
.livelink:hover { text-decoration: underline; }
.livelink [aria-hidden] { display: inline-block; margin-left: .35em; transition: transform .2s; }
.livelink:hover [aria-hidden] { transform: translateX(3px); }

/* ---------- footer ---------- */
.foot { padding: clamp(72px, 9vw, 128px) var(--gut) clamp(32px, 4vw, 56px); text-align: right; }
.fline { line-height: 1.45; }  /* text size: quiet, like the header */
.fline a { white-space: nowrap; }
.project .foot { padding-top: clamp(72px, 9vw, 128px); }
.foot-min { padding: 0 0 clamp(64px, 8vw, 120px); }
.info .fline { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.4; }  /* Info: the closing line uses the lead style */
.info .fline a { text-decoration-thickness: 1px; }

/* ---------- info page (C's Frame 15): a rule, the copy on the left, the binder hanging from the rule and running off the right edge ---------- */
.howpage { padding-top: clamp(28px, 3.6vw, 52px); font-weight: 400; font-size: clamp(13px, 1.05vw, 15px); line-height: 1.18; }  /* Info body is regular weight; headings and the contact line are bold */
.hrule { border: 0; border-top: 1px solid var(--ink); margin: 0 0 0 var(--gut); }   /* runs from the margin to the right edge */
.hline { margin: 0 var(--gut) 10px; text-align: right; font: 700 11.5px/1.2 "Open Sans", system-ui, sans-serif; letter-spacing: .1em; word-spacing: .55em; text-transform: uppercase; }
.hline span { white-space: nowrap; }
.hpink { color: #FD6FB7; }
.how { position: relative; overflow-x: clip; }
.htext { padding: 28px var(--gut) 0 calc(var(--gut) + .9em); max-width: calc(46.5ch + var(--gut) + .9em); box-sizing: border-box; }
.hblock + .hblock { margin-top: 2.15em; }
.htitle { font-size: 1.33em; font-weight: 700; line-height: 1; margin: 0 0 .95em; }
.htext p { margin: 0; }
.htext p + p { margin-top: 1.18em; }
.hcontact { font-weight: 700; }
.hmail { color: #72A92C; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.bend { position: relative; display: inline-block; width: 0; height: 1em; }
.bend svg { position: absolute; left: 0; top: 0; width: 9.6em; height: 5.05em; overflow: visible; pointer-events: none; }
.bend text { font: 700 19.8px var(--mono); fill: currentColor; }
.bendflat { display: none; }
@media (max-width: 599px) { .bend { display: none; } .bendflat { display: inline; } }   /* phones: no room for the curve, so the words run straight */
.himg { margin: 2.5em 0 0; }
.himg img { width: 100%; height: auto; display: block; }
.habout { margin: clamp(32px, 5.4vw, 78px) var(--gut) 0; max-width: 55.5ch; }
@media (min-width: 1360px) {
  .htext { position: absolute; z-index: 1; top: 0; left: 0; width: calc(46.5ch + var(--gut) + .9em + var(--gut)); max-width: none; }
  .himg { margin: 0 0 0 25.5%; width: 78.4%; max-width: none; }
  .habout { margin-left: 65.8%; }
}
/* ---------- journal: image right (binder geometry), caption + date hung from the bottom on the left ---------- */
.jentry { display: grid; grid-template-columns: 1fr; gap: 1.2em; padding: 0 var(--gut); }
.jentry + .jentry { margin-top: clamp(56px, 7vw, 112px); }
.jtext p { margin: 0; }
.jcap { max-width: 32ch; }
.jdate { color: var(--mute); margin-top: .6em !important; }
.jimg { margin: 0; order: -1; }
.jimg img { width: auto; max-width: 100%; height: auto; max-height: 78vh; max-height: 78svh; display: block; }   /* tall photos fit the screen (C, 2026-11-20) */
.jempty { padding: 2em var(--gut); }
@media (min-width: 900px) {
  /* caption hangs at the picture's bottom left; the pair sits --off across the page (set per entry in build.mjs) */
  .jentry { display: flex; align-items: flex-end; gap: 0; padding: 0 var(--gut) 0 var(--off, 0%); }
  .jtext { flex: 0 0 20.7vw; box-sizing: border-box; padding: 0 1.5em 0 var(--gut); }
  .jimg { order: 0; flex: 0 1 auto; min-width: 0; }
  .jentry + .jentry { margin-top: clamp(64px, 8vw, 128px); }
}
/* ---------- info page: an index, not a manifesto ---------- */
.infopage { padding: clamp(40px, 5.5vw, 80px) var(--gut) 0; line-height: 1.45; }  /* two styles only: the lead, and text (black, or grey for labels and margin notes) */
.ilead { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.4; max-width: 34em; margin-bottom: clamp(48px, 6vw, 88px); }
.irow { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr); gap: 1em clamp(20px, 3vw, 48px); border-top: 1px solid #e6e6e6; padding: 1.1em 0 1.8em; }
.ilabel { color: var(--mute); }
.ilabel span { font-variant-numeric: tabular-nums; }
.irow h2 { font: inherit; margin: 0; }
.ibody p { margin: 0; }
.ibody p span { display: block; }
.iaside { color: var(--mute); margin: 0; }
.irow.wide .ibody { grid-column: 2 / -1; }
.pairs { width: 100%; border-collapse: collapse; }
.pairs th { text-align: left; font: inherit; color: var(--mute); padding: 0 1em .5em 0; }
.pairs td { padding: 0 1em .5em 0; vertical-align: top; width: 50%; }
.flag { font-style: normal; color: var(--mute); border: 1px solid currentColor; border-radius: 999px; padding: 0 .5em; font-size: .85em; white-space: nowrap; margin-left: .3em; }
.todo { border: 1px dashed currentColor; padding: 2px 6px; color: #8a4b00; display: inline-block; }

/* ---------- project page ---------- */
.project .mast { padding-bottom: 0; }
.phead { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(24px, 4vw, 64px); padding: clamp(48px, 8vw, 120px) var(--gut) clamp(40px, 5vw, 72px); }
.ptitle { font-size: clamp(28px, 3.3vw, 48px); line-height: 1.05; margin-bottom: .45em; }
.pmeta .livelink { display: inline-block; margin-top: 1.4em; }
.pabout { display: grid; gap: 1.4em; align-content: start; max-width: 40em; }
.summary { font-size: clamp(18px, 1.6vw, 23px); line-height: 1.3; }
.lab, .facts dt { color: var(--mute); }
.role .lab { margin-right: .6em; }
.facts { display: grid; gap: .35em; }
.facts div { display: grid; grid-template-columns: 5em minmax(0, 1fr); gap: .6em; }
.facts dd { margin: 0; }
.facts dt::after { content: ""; }
.draftnote { border: 1px dashed currentColor; padding: .7em 1em; }

/* Stage: the project's own world. */
.stage { background: var(--g); color: var(--ink); padding: clamp(0px, 0vw, 0px) 0 clamp(64px, 8vw, 120px); display: grid; row-gap: clamp(56px, 8vw, 128px); --pad: clamp(16px, 3.3vw, 48px); }
.stage.plain { border-top: 1px solid #e6e6e6; padding-top: clamp(48px, 6vw, 96px); }
.stage > .m:first-child:not(.w-full) { margin-top: clamp(48px, 6vw, 96px); }
.m { margin-inline: var(--pad); min-width: 0; }
.w-full { margin-inline: 0; }
.w-wide { width: auto; }
.w-medium, .w-narrow { width: min(100% - 2 * var(--pad), var(--mw)); }
.w-medium { --mw: 66%; }
.w-narrow { --mw: 42%; }
.a-left { justify-self: start; }
.a-right { justify-self: end; }
.a-center.w-medium, .a-center.w-narrow { justify-self: center; }
.m img, .m video { width: 100%; }
.mcap { margin-top: 1em; padding-inline: var(--gut); }
.m:not(.w-full) .mcap { padding-inline: 0; }
.mlabel { margin-bottom: 1.2em; }
.ph { width: 100%; display: grid; place-items: center; padding: 16px; color: inherit;
  background: repeating-linear-gradient(135deg, color-mix(in srgb, currentColor 12%, transparent) 0 1px, transparent 1px 12px); border: 1px solid color-mix(in srgb, currentColor 35%, transparent); }
.ph span { border: 1px solid currentColor; padding: 6px 10px; text-align: center; max-width: 30ch; background: var(--g, #fff); }
.tbtn { border: 1px solid currentColor; background: none; border-radius: 999px; padding: 8px 16px; min-height: 40px; }
.tbtn:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.tbtn[aria-pressed="true"] { background: var(--ink); color: var(--g); }

/* columns: tall captures */
.mbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 1.2em; }
.mbar .mlabel { margin: 0; }
.cols { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: clamp(12px, 1.8vw, 28px); align-items: start; }
.crop { position: relative; overflow: hidden; max-height: min(120vh, 1300px); }
.crop::after { content: ""; position: absolute; inset: auto 0 0; height: 16%; background: linear-gradient(transparent, var(--g)); pointer-events: none; }
[data-open="true"] .crop { max-height: none; }
[data-open="true"] .crop::after { display: none; }
.cols .mcap { padding: 0; margin-top: .8em; }

/* pair */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.8vw, 28px); align-items: start; }
.lead-left .two { grid-template-columns: 1.6fr 1fr; }
.lead-right .two { grid-template-columns: 1fr 1.6fr; }

/* sequence */
.seq { list-style: none; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: clamp(12px, 1.8vw, 28px); align-items: start; }
.step { margin-bottom: .8em; font-weight: 700; }
.step span { color: color-mix(in srgb, currentColor 60%, transparent); }
.seq .mcap { margin-top: .8em; padding: 0; }

/* detail with numbered notes */
.m-detail { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: clamp(16px, 2.5vw, 40px); align-items: center; }
.pins { position: relative; }
.pin { position: absolute; translate: -50% -50%; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: #111; font-weight: 700; font-size: 13px; display: grid; place-items: center; box-shadow: 0 0 0 2px #111; }
.notes { list-style: none; counter-reset: n; display: grid; gap: 1em; }
.notes li { counter-increment: n; display: grid; grid-template-columns: 28px 1fr; gap: 10px; line-height: 1.35; }
.notes li::before { content: counter(n); width: 26px; height: 26px; border: 1px solid currentColor; border-radius: 50%; display: grid; place-items: center; font-size: 12px; }
.m-detail .mcap { grid-column: 1 / -1; }

/* variants */
.vbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 1.2em; }

/* video */
.vid { position: relative; }
.play { position: absolute; left: 12px; bottom: 12px; border: 0; border-radius: 999px; padding: 8px 16px; background: #fff; color: #111; }

/* text */
.m-text { margin-inline: var(--pad); }
.m-text p { max-width: 60ch; }   /* wide enough for C's own line breaks (58 characters at most) */
.m-text p { font-size: clamp(16px, 1.4vw, 20px); line-height: 1.4; }
.m-text p + p { margin-top: 1.1em; }
@media (max-width: 760px) { .m-text br.lb { display: none; } }   /* phones: let C's line breaks reflow */
.m-text .mlabel { color: color-mix(in srgb, currentColor 65%, transparent); }

/* context table + credits */
.m-context table { border-collapse: collapse; width: 100%; max-width: 72em; }
.m-context th, .m-context td { text-align: left; vertical-align: top; padding: .9em 1.5em .9em 0; border-top: 1px solid color-mix(in srgb, currentColor 30%, transparent); line-height: 1.35; }
.m-context th { font-weight: inherit; color: color-mix(in srgb, currentColor 65%, transparent); }
.m-credits dl { display: grid; gap: .6em; max-width: 60em; }
.m-credits div { display: grid; grid-template-columns: 12em 1fr; gap: 1em; }
.m-credits dt { color: color-mix(in srgb, currentColor 65%, transparent); }

/* next project */
.next { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding: clamp(72px, 9vw, 128px) var(--gut) 0; }
.nall { white-space: nowrap; }
@media (max-width: 719px) { .nthumb img { width: 110px; } }
.nthumb { display: flex; align-items: end; gap: 1.2em; text-decoration: none; }
.nthumb img { width: clamp(140px, 16vw, 240px); height: auto; display: block; }
.ntext { display: grid; gap: .2em; }
.nk { color: var(--mute); }
.nthumb:hover .ntext span:nth-child(2) { text-decoration: underline; }
.nf { padding: 120px var(--gut); display: grid; gap: 1em; }

/* ---------- tablet ---------- */
@media (max-width: 1199px) { .entry[data-inset] .caption { grid-template-columns: 1fr; row-gap: 1em; } }
@media (max-width: 1023px) {
  .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seq { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .m-detail { grid-template-columns: 1fr; }
  .notes { grid-template-columns: 1fr 1fr; }
}
/* ---------- phone ---------- */
@media (max-width: 719px) {


  .intro span { display: inline; }
  .foot { text-align: left; }
  .irow, .irow.wide { grid-template-columns: 1fr; gap: .6em; }
  .irow.wide .ibody { grid-column: auto; }
  .pairs thead { display: none; }
  .pairs tr { display: grid; padding: .5em 0; }
  .pairs td { width: auto; padding: 0; }
  .pairs td + td { color: var(--mute); }
  .mlow { flex-direction: column; align-items: flex-start; gap: .6em; margin-top: 18px; }

  .tagline { margin: 0; }
  .fig { margin-left: 0; width: 100%; }
  .caption { grid-template-columns: 1fr; row-gap: 1.1em; }
  .entry[data-inset] { display: block; margin-bottom: var(--beat); }
  .entry[data-inset] .caption { margin-top: var(--cap-gap); max-width: none; }
  .phead { grid-template-columns: 1fr; }
  .w-medium, .w-narrow { width: auto; justify-self: stretch; }
  .w-narrow { margin-inline: calc(var(--pad) + 8%); }
  .cols { grid-template-columns: 1fr; }
  .crop { max-height: 130vw; }
  .two, .lead-left .two, .lead-right .two { grid-template-columns: 1fr; }
  .seq { grid-template-columns: 1fr 1fr; gap: 28px 12px; }
  .notes { grid-template-columns: 1fr; }
  .m-context thead { display: none; }
  .m-context tr { display: grid; padding: .9em 0; border-top: 1px solid color-mix(in srgb, currentColor 30%, transparent); }
  .m-context td { border: 0; padding: .2em 0; }
  .m-context td:first-child { color: color-mix(in srgb, currentColor 65%, transparent); }
  .m-credits div { grid-template-columns: 1fr; gap: .2em; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* home (C's Frame 16): no description or tagline on show, so the header keeps their space as air */
.home .mast { padding-bottom: clamp(32px, 4.93vw, 71px); }
.howpage.jpage { padding-top: clamp(40px, 5.5vw, 80px); }
