@font-face { font-family: "Cormorant Garamond"; src: url("fonts/CormorantGaramond-latin.woff2") format("woff2"); font-style: normal; font-weight: 300 700; font-display: swap; }
@font-face { font-family: Manrope; src: url("fonts/Manrope-latin.woff2") format("woff2"); font-style: normal; font-weight: 200 800; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/plex-mono-500.woff2") format("woff2"); font-style: normal; font-weight: 500; font-display: swap; }
@font-face { font-family: Geist; src: url("fonts/Geist-latin.woff2") format("woff2"); font-style: normal; font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Mona Sans"; src: url("fonts/MonaSans-variable.ttf") format("truetype"); font-style: normal; font-weight: 200 900; font-display: swap; }
@font-face { font-family: Fraunces; src: url("fonts/Fraunces-latin.woff2") format("woff2"); font-style: normal; font-weight: 100 900; font-display: swap; }
@font-face { font-family: Newsreader; src: url("fonts/Newsreader-latin.woff2") format("woff2"); font-style: normal; font-weight: 200 800; font-display: swap; }

:root {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 16px;
  color-scheme: dark;
  /* Deep green leather blotter under a warm desk lamp, the same in both schemes. */
  --table: #142720;
  --focus: #e3d6ae;
  --card-ink: #393329;
  background: var(--table);
  color: var(--card-ink);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-width: 320px; min-height: 100%; }
body {
  min-height: 100vh; min-height: 100svh; overflow-x: clip;
  background:
    radial-gradient(ellipse 62% 55% at 50% 44%, rgb(255 230 175 / 15%), rgb(255 230 175 / 5%) 55%, transparent 78%),
    radial-gradient(ellipse 125% 105% at 50% 46%, transparent 42%, rgb(1 6 4 / 62%) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23g)'/%3E%3C/svg%3E") 0 0 / 240px 240px,
    linear-gradient(160deg, #1d382d, #13271f 55%, #0e1d17) fixed,
    var(--table);
  background-attachment: fixed;
}
.desk { position: relative; isolation: isolate; width: 100%; min-height: 100vh; min-height: 100svh; margin: auto; padding: clamp(12px, 3vh, 30px) clamp(12px, 4vw, 48px); display: grid; align-content: center; overflow: clip; }
.scene { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; }
/* The pose a card's own transform reads. Non-inheriting, so moving a card
   every frame restyles the card alone, not every element inside it. */
@property --move-x { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --move-y { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --lift { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --land-x { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --land-y { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --spin { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@property --tilt-x { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@property --land-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@property --distance-scale { syntax: '<number>'; inherits: false; initial-value: 1; }
@property --distance-light { syntax: '<number>'; inherits: false; initial-value: 1; }
.card-stage { width: min(100%, 580px); min-width: 0; justify-self: center; perspective: 1600px; }
.pile { position: relative; display: grid; min-height: 378px; isolation: isolate; --scatter: 1; transform-style: preserve-3d; }
.paper {
  position: relative; grid-area: 1 / 1; align-self: center; min-height: 338px; width: 100%; overflow: hidden; border-radius: 1px;
  border: 1px solid rgb(113 96 67 / 19%); color: var(--card-ink);
  background-color: var(--paper);
  background-image: linear-gradient(125deg, rgb(255 251 236 / 38%), transparent 48%, rgb(114 88 43 / 6%));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 75%), 0 1px 0 var(--edge-light),
    0 2px 0 var(--edge), 0 3px 0 var(--edge-light), 0 4px 0 var(--edge), 0 5px 1px var(--edge-dark),
    2px 7px 5px rgb(1 7 4 / 46%), 7px 17px 24px rgb(1 7 4 / 38%), 16px 32px 50px rgb(1 7 4 / 22%);
  transform-origin: 50% 50%;
  filter: brightness(var(--distance-light, 1));
  transform: translate3d(calc(var(--land-x, 0px) * var(--scatter) + var(--move-x, 0px)), calc(var(--land-y, 0px) * var(--scatter) + var(--move-y, 0px)), var(--lift, 0px)) scale(var(--distance-scale, 1)) rotateX(calc(7deg + var(--tilt-x, 0deg))) rotateY(var(--tilt-y, 0deg)) rotateZ(calc(var(--orientation, 0deg) - .6deg + var(--land-angle, 0deg) * var(--scatter) + var(--spin, 0deg)));
}
#current-card { z-index: 1; }
.interactive .paper { cursor: grab; touch-action: none; -webkit-user-select: none; user-select: none; }
.interactive .paper.grabbing { cursor: grabbing; box-shadow: inset 0 1px 0 rgb(255 255 255 / 75%), 0 2px 0 var(--edge), 0 4px 1px var(--edge-dark), 12px 30px 28px rgb(1 7 4 / 58%), 20px 55px 65px rgb(1 7 4 / 36%); }
.interactive .paper.grabbing, .interactive .paper.tossing { will-change: transform; }
.interactive .contacts a { cursor: pointer; touch-action: pan-y; -webkit-user-drag: none; }
#current-card:focus-visible { outline: 2px solid var(--focus); outline-offset: 6px; }
.paper::before { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; box-shadow: inset 1px 1px 1px rgb(255 254 247 / 65%), inset -1px -1px 1px rgb(100 77 43 / 10%); }
.paper::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(ellipse at 2% 0%, rgb(255 253 236 / 26%), transparent 68%); }
.paper-grain { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: url("textures/cotton-paper-v1.png") center / cover; opacity: var(--grain); mix-blend-mode: multiply; }
.card-detail { position: absolute; inset: 15px; z-index: 3; pointer-events: none; border: 1px solid rgb(113 91 57 / 12%); box-shadow: inset 0 .7px .4px rgb(80 61 36 / 12%), 0 .7px .4px rgb(255 253 238 / 75%); }
.paper-sheen { position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0; background: linear-gradient(110deg, transparent 25%, rgb(255 255 243 / 55%) 50%, transparent 75%); mix-blend-mode: soft-light; }
.paper.grabbing .paper-sheen { opacity: .35; background: linear-gradient(calc(110deg + var(--tilt-y, 0deg)), transparent 15%, rgb(255 255 243 / 55%) 45%, transparent 75%); }
.card-content { position: relative; z-index: 1; min-height: 338px; padding: 46px 36px 24px; display: flex; flex-direction: column; text-shadow: .2px .45px 0 rgb(255 253 239 / 75%), -.15px -.2px .15px rgb(38 26 10 / 25%); }
.identity-block { margin: 0 0 26px; }
.identity-block h1 { margin: 0; font-size: clamp(1.65rem, 2.4vw, 2rem); line-height: 1.2; font-weight: 500; letter-spacing: .035em; overflow-wrap: anywhere; }
.role { margin: 8px 0 0; font-size: 1.125rem; line-height: 1.35; color: color-mix(in srgb, currentColor 76%, var(--paper)); }
.role span { display: block; }
.facts { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 4px; font-size: 1.125rem; line-height: 1.35; }
.facts li { overflow-wrap: anywhere; }
.contacts { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 14px; margin-top: auto; font-size: 1.125rem; line-height: 1.3; }
.contacts a { min-height: 46px; display: inline-flex; align-items: center; color: inherit; text-decoration: none; text-decoration-thickness: .7px; text-underline-offset: 4px; overflow-wrap: anywhere; }
.contacts a:hover { text-decoration: underline; }
.contacts a:focus-visible { outline: 3px solid #1769aa; outline-offset: 2px; border-radius: 2px; }
.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; }

.stock-cotton { --paper: #f3eddf; --grain: .7; --edge-light: #e8deca; --edge: #d2c6af; --edge-dark: #b7a88c; }
.stock-laid { --paper: #eee0c8; --grain: .45; --edge-light: #e1d2b4; --edge: #cdbc9d; --edge-dark: #ad9b7a; background-image: repeating-linear-gradient(0deg, transparent 0 1.5px, rgb(100 77 40 / 3%) 1.75px 2px), linear-gradient(125deg, rgb(255 253 234 / 40%), transparent 70%); }
.stock-laid .card-detail { border: 3px double rgb(129 103 57 / 16%); }
.stock-smooth { --paper: #f2f3ef; --grain: .12; --edge-light: #e6e5dc; --edge: #c6c7bd; --edge-dark: #a5a69c; background-image: linear-gradient(125deg, rgb(255 255 252 / 65%), transparent 62%, rgb(154 164 161 / 7%)); }
.stock-grey { --paper: #ddddd3; --grain: .55; --edge-light: #cfcec1; --edge: #b3b2a4; --edge-dark: #939184; }
.stock-grey .card-detail { border-color: rgb(67 70 60 / 19%); }
.stock-smooth .card-detail { border: 0; box-shadow: none; background: linear-gradient(rgb(77 81 71 / 17%), rgb(77 81 71 / 17%)) left top / 25px 1px no-repeat, linear-gradient(rgb(77 81 71 / 17%), rgb(77 81 71 / 17%)) left top / 1px 25px no-repeat, linear-gradient(rgb(77 81 71 / 17%), rgb(77 81 71 / 17%)) right bottom / 25px 1px no-repeat, linear-gradient(rgb(77 81 71 / 17%), rgb(77 81 71 / 17%)) right bottom / 1px 25px no-repeat; filter: drop-shadow(0 .7px 0 rgb(255 255 255 / 90%)); }
.stock-silver { --paper: #d9dcda; --grain: .48; --card-ink: #202727; --edge-light: #f0f2ee; --edge: #a5afad; --edge-dark: #737c7a; background-image: linear-gradient(115deg, rgb(255 255 255 / 42%), transparent 24%, rgb(77 87 88 / 8%) 43%, rgb(255 255 255 / 38%) 66%, transparent 81%); }
.stock-gold { --paper: #e6cc93; --grain: .4; --card-ink: #392a13; --edge-light: #f5e1b2; --edge: #bda266; --edge-dark: #8f7649; background-image: linear-gradient(115deg, rgb(255 250 222 / 50%), transparent 24%, rgb(115 88 32 / 9%) 43%, rgb(255 247 210 / 40%) 66%, transparent 81%); }
.stock-silver .paper-grain, .stock-gold .paper-grain { background-image: url("textures/brushed-metal-v1.png"); }
.stock-silver .card-content, .stock-gold .card-content { text-shadow: .3px .65px 0 rgb(255 255 243 / 65%), -.2px -.3px .2px rgb(25 23 17 / 32%); }
.stock-silver .card-detail { border: 0; box-shadow: none; background: linear-gradient(#626e6e, #626e6e) left top / 28px 1px no-repeat, linear-gradient(#626e6e, #626e6e) left top / 1px 28px no-repeat, linear-gradient(#626e6e, #626e6e) right top / 28px 1px no-repeat, linear-gradient(#626e6e, #626e6e) right top / 1px 28px no-repeat, linear-gradient(#626e6e, #626e6e) left bottom / 28px 1px no-repeat, linear-gradient(#626e6e, #626e6e) left bottom / 1px 28px no-repeat, linear-gradient(#626e6e, #626e6e) right bottom / 28px 1px no-repeat, linear-gradient(#626e6e, #626e6e) right bottom / 1px 28px no-repeat; opacity: .56; filter: drop-shadow(0 .8px 0 rgb(255 255 255 / 85%)); }
.stock-gold .card-detail { border: 3px double rgb(112 81 31 / 42%); box-shadow: inset 0 .8px 0 rgb(255 242 197 / 65%), 0 .8px 0 rgb(255 242 197 / 60%); }
.type-cormorant { font-family: "Cormorant Garamond", Georgia, serif; }
.type-cormorant .identity-block h1 { font-weight: 600; }
/* Cormorant is drawn thin; at card sizes it needs weight to survive texture. */
.type-cormorant .role { font-size: 1.3rem; font-style: italic; font-weight: 500; letter-spacing: .01em; }
.type-cormorant .facts, .type-cormorant .contacts { font-size: 1.25rem; font-weight: 600; }
.type-manrope { font-family: Manrope, sans-serif; }
.type-manrope .identity-block h1 { font-size: clamp(1.55rem, 2.3vw, 1.9rem); font-weight: 600; letter-spacing: -.02em; }
.type-manrope .facts, .type-manrope .contacts { font-weight: 500; }
.type-manrope .role, .type-plex .role { color: color-mix(in srgb, currentColor 84%, var(--paper)); }
.type-plex { font-family: "IBM Plex Mono", monospace; }
.type-plex .identity-block h1 { font-size: clamp(1.3rem, 1.9vw, 1.55rem); letter-spacing: -.035em; }
.layout-classic .identity-block { margin-top: 10px; }
.layout-classic .identity-block h1 { text-transform: uppercase; }
.layout-classic .identity-block, .layout-classic .facts { text-align: center; }
.layout-classic .identity-block h1 { letter-spacing: .09em; font-size: clamp(1.5rem, 2.2vw, 1.8rem); }
/* A short engraved rule separates who from what, as on formal cards. */
.layout-classic .identity-block::after { content: ""; display: block; width: 34px; height: 1px; margin: 16px auto 0;
  background: color-mix(in srgb, currentColor 45%, transparent); box-shadow: 0 1px 0 rgb(255 253 240 / 55%); }
.layout-editorial .facts { margin-top: 12px; }
.layout-technical .identity-block h1 { text-transform: uppercase; letter-spacing: .02em; }
/* Facts settle onto the contact line as a right-aligned block over a hairline,
   instead of floating mid-card. */
.layout-technical .facts { text-align: right; margin: auto 0 12px; }
.layout-technical .contacts { margin-top: 0; padding-top: 6px; border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent); }
.previous { box-shadow: 0 1px 0 var(--edge-light), 0 2px 0 var(--edge), 0 3px 0 var(--edge-dark), 2px 6px 7px rgb(1 7 4 / 36%); }
.previous .contacts { pointer-events: none; }
.paper[data-stage] { will-change: transform; }
/* A fixed shadow for the flight: animating it repainted the card every frame. */
.paper[data-stage="dropping"] { box-shadow: 18px 55px 40px rgb(1 7 4 / 30%); }
/* A card at rest in the pile lies flat: a 2D pose (its 7deg tilt folded into a
   vertical squash) lets the archive share one painted layer. Left in 3D, every
   archived card is its own 3D layer, and a long session drops deals and drags
   to ~15fps. Picking one up restores the full 3D pose. */
.previous:not(.grabbing):not(.tossing) {
  transform: translate(calc(var(--land-x, 0px) * var(--scatter) + var(--move-x, 0px)), calc(var(--land-y, 0px) * var(--scatter) + var(--move-y, 0px))) scale(var(--distance-scale, 1)) scaleY(.9925) rotate(calc(var(--orientation, 0deg) - .6deg + var(--land-angle, 0deg) * var(--scatter) + var(--spin, 0deg)));
}

/* Four complete print-inspired recipes. Fine type stays readable; the physical
   proportions yield to content when text is enlarged, and to phone full-screen. */
.type-geist { font-family: Geist, sans-serif; }
.type-mona { font-family: "Mona Sans", sans-serif; }
.type-fraunces { font-family: Fraunces, Georgia, serif; font-variation-settings: "SOFT" 30, "WONK" 0; }
.type-newsreader { font-family: Newsreader, Georgia, serif; }
.card-format { display: none; pointer-events: none; }
.layout-studio { display: grid; min-height: 0; }
/* A separate sizing cell gives the paper its preferred ratio while allowing
   the text cell to grow the grid row immediately, even before JS observes it. */
.layout-studio .card-format { display: block; grid-area: 1 / 1; aspect-ratio: var(--card-ratio); }
.layout-studio .card-content { grid-area: 1 / 1; min-width: 0; min-height: 0; padding: 34px 36px 22px; text-shadow: none; font-weight: 400; }
.layout-studio .identity-block { margin: 0 0 22px; }
.layout-studio .identity-block h1 { font-size: 2rem; letter-spacing: -.025em; line-height: 1.15; overflow-wrap: normal; }
.layout-studio .role { opacity: 1; margin-top: 10px; }
.layout-studio .facts { margin-bottom: 12px; }
.layout-studio .contacts { gap: 0 14px; }
.layout-studio .card-detail { border: 0; background: none; box-shadow: none; filter: none; }

.stock-night { --paper: #272a2a; --card-ink: #f1ede3; --grain: .18; --edge-light: #535550; --edge: #303332; --edge-dark: #181b1b; border-color: #1c1e1d; background-image: linear-gradient(125deg, rgb(255 255 255 / 3%), transparent 65%, rgb(0 0 0 / 10%)); box-shadow: inset 0 1px 0 #454846, 0 1px 0 var(--edge-light), 0 3px 0 var(--edge), 0 5px 1px var(--edge-dark), 7px 17px 24px rgb(0 0 0 / 20%), 16px 32px 50px rgb(0 0 0 / 9%); }
.pattern-night::before { box-shadow: inset 1px 1px .6px rgb(255 255 255 / 10%), inset -1px -1px 1px rgb(0 0 0 / 40%); }
.pattern-night::after { opacity: .15; }
.pattern-night .paper-grain { mix-blend-mode: soft-light; opacity: .25; }
.pattern-night .paper-sheen { background: linear-gradient(110deg, transparent 25%, rgb(255 255 255 / 12%) 50%, transparent 75%); }
.pattern-night .card-content { font-weight: 450; }
.pattern-night .identity-block h1 { font-weight: 550; font-size: 1.9rem; text-shadow: 0 1px .5px #0b0e0d, 0 -1px 0 rgb(255 255 255 / 9%); }
.pattern-night .role { color: #d3d6cc; }
.pattern-night .card-detail { inset: 25px 36px auto; width: 32px; height: 2px; background: #747a70; box-shadow: 0 1px 0 #171b18; }
.pattern-night .contacts a:focus-visible { outline-color: #d9dbb2; }

.pattern-column { --paper: #f5f5f0; --grain: .08; --card-ink: #242726; }
.pattern-column .card-content { padding-left: 46px; font-weight: 420; }
.pattern-column .identity-block { margin-bottom: auto; padding-bottom: 30px; }
.pattern-column .identity-block h1 { font-size: 2rem; font-weight: 560; letter-spacing: -.045em; }
.pattern-column .card-detail { inset: 34px auto 32px 27px; width: 1px; background: #525650; }
.pattern-column .contacts { justify-content: flex-start; flex-direction: column; align-items: flex-start; }

.pattern-bite { --paper: #eee6d6; --grain: .72; --card-ink: #3d352b; }
.pattern-bite .card-content { padding-top: 36px; text-align: center; }
.pattern-bite .identity-block h1 { font-weight: 500; font-optical-sizing: none; font-variation-settings: "opsz" 40, "SOFT" 30, "WONK" 0; letter-spacing: -.035em; text-shadow: -.35px -.5px .3px rgb(36 26 12 / 30%), .3px 1px .3px #fffaf0; }
.pattern-bite .identity-block::after { content: ""; display: block; width: 30px; height: 1px; margin: 18px auto 0; background: #8c7d66; box-shadow: 0 1px .5px #fff9ee; }
.pattern-bite .identity-block { margin-bottom: 16px; }
.pattern-bite .role, .pattern-bite .facts { font-size: 1.125rem; }
.pattern-bite .contacts { font-size: 1.1875rem; }

.stock-duplex { --paper: #f3efe5; --grain: .15; --edge-light: #f0ecdf; --edge: #424844; --edge-dark: #313732; }
.pattern-edge .card-content { padding-top: 32px; }
.pattern-edge .identity-block { margin-bottom: 18px; }
.pattern-edge .identity-block h1 { font-size: 2.2rem; font-weight: 500; letter-spacing: -.035em; }
.pattern-edge .facts, .pattern-edge .contacts { font-size: 1.1875rem; }
.pattern-edge .contacts { justify-content: flex-start; flex-direction: column; align-items: flex-start; }
.pattern-edge .role { color: #555b50; }
.large-text .layout-studio .card-format { display: none; }
.large-text .layout-studio .identity-block h1 { overflow-wrap: anywhere; }
.large-text .layout-studio .contacts a { max-width: 100%; }

@media (max-width: 700px) {
  .card-stage { width: calc(100% - 20px); perspective: 2400px; }
  .pile { --scatter: .16; min-height: 0; }
  .paper, .card-content { min-height: 300px; }
  .card-content { padding: 26px 20px 18px; }
  .identity-block { margin: 0 0 18px; }
  .identity-block h1 { font-size: 1.7rem; }
  .type-manrope .identity-block h1 { font-size: 1.45rem; }
  .type-plex .identity-block h1 { font-size: 1.3rem; }
  .layout-studio .card-content { padding: 26px 26px 18px; }
  .pattern-column .card-content { padding-left: 38px; }
  .pattern-column .card-detail { left: 20px; }
}
@media (max-height: 580px) and (max-width: 700px) {
  .desk { padding-block: 12px; }
  .card-content { padding-top: 22px; padding-bottom: 16px; }
}

/* A landscape card fits the long axis of a portrait phone. The desk and its
   pointer coordinates stay upright; only the physical card turns sideways.
   The card keeps a real card's proportions (its recipe's --card-ratio, or
   US 3.5 x 2 in) instead of stretching to the screen, so a band of lit table
   stays visible around it. */
@media (max-width: 700px) and (orientation: portrait) {
  html:not(.large-text) .desk {
    --avail-w: calc(100vw - env(safe-area-inset-left) - env(safe-area-inset-right) - 40px);
    --avail-h: calc(100svh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 56px);
    min-height: 100svh;
    padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  }
  html:not(.large-text) .card-stage { width: var(--avail-w); height: var(--avail-h); }
  html:not(.large-text) .pile { display: block; width: 100%; height: 100%; --scatter: .38; }
  html:not(.large-text) .paper {
    --orientation: 90deg;
    --ratio: calc(var(--card-ratio, 88.9 / 50.8));
    --view-short: min(var(--avail-w), calc(var(--avail-h) / var(--ratio)));
    --view-long: calc(var(--view-short) * var(--ratio));
    position: absolute; width: var(--view-long); min-height: var(--view-short);
    left: 50%; top: 50%; margin-left: calc(var(--view-long) / -2); margin-top: calc(var(--view-short) / -2);
  }
  html:not(.large-text) .card-content { min-height: var(--view-short); padding: 20px 28px 16px; }
  html:not(.large-text) .layout-studio .card-format { display: none; }
  html:not(.large-text) .identity-block { margin-bottom: 18px; }
  html:not(.large-text) .identity-block h1 { font-size: 1.8rem; }
  html:not(.large-text) .type-manrope .identity-block h1 { font-size: 1.65rem; }
  html:not(.large-text) .type-plex .identity-block h1 { font-size: 1.45rem; }
  html:not(.large-text) .layout-classic .identity-block { margin-top: 4px; }
  html:not(.large-text) .layout-editorial .facts { margin-top: 0; }
  html:not(.large-text) .pattern-column .card-content { padding-left: 44px; }
  html:not(.large-text) .pattern-column .card-detail { inset-block: 22px; left: 26px; }
  html:not(.large-text) .pattern-column .identity-block { padding-bottom: 0; }
  html:not(.large-text) .pattern-night .card-detail { inset: 12px 28px auto; }
  html:not(.large-text) .pattern-bite .identity-block::after { margin-top: 12px; }
  html:not(.large-text) .layout-studio .contacts { flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (pointer: coarse) and (orientation: landscape) and (max-height: 600px) {
  .desk { padding: max(12px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
  .card-stage { width: 100%; max-width: 1000px; }
  .pile { --scatter: .32; min-height: 0; }
  .paper, .card-content { min-height: calc(100svh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 32px); }
  /* Real proportions, but never narrower than a US card: on a 320px-tall
     screen the narrower recipes would wrap their text taller than the glass. */
  .paper { justify-self: center; width: min(100%, calc((100svh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 32px) * max(calc(var(--card-ratio, 88.9 / 50.8)), 1.75))); }
  .card-content { padding: 20px 28px 16px; }
  .identity-block { margin-bottom: 14px; }
  .layout-editorial .facts { margin-top: 0; }
  .layout-studio .card-format { display: none; }
  .layout-studio .card-content { min-height: calc(100svh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 32px); padding: 20px 28px 16px; }
  .layout-studio .identity-block { margin-bottom: 14px; }
  .layout-studio .identity-block h1 { font-size: 1.8rem; }
  .layout-studio .contacts { flex-direction: row; align-items: center; justify-content: space-between; }
  .pattern-column .card-content { padding-left: 44px; }
  .pattern-column .identity-block { padding-bottom: 0; }
  .pattern-column .card-detail { inset-block: 22px; left: 26px; }
  .pattern-night .card-detail { inset: 12px 28px auto; }
  .pattern-bite .identity-block::after { margin-top: 10px; }
}

/* Watermarks (cards/marks.mjs picks them). The wrapper's drop-shadows run
   after the ink's mask, so the shape gets a lit and a shaded edge: a deboss
   pressed into the stock rather than printed on it. */
.card-mark { position: absolute; z-index: 1; pointer-events: none; display: none;
  --mark-ink: color-mix(in srgb, var(--paper) 88%, #4d3d22);
  --mark-lit: rgb(255 252 238 / 78%); --mark-shade: rgb(64 48 24 / 26%); --mark-alpha: 1;
  filter: drop-shadow(.55px .75px 0 var(--mark-lit)) drop-shadow(-.45px -.6px .25px var(--mark-shade)); }
.card-mark[data-mark] { display: block; }
.card-mark-ink { position: absolute; inset: 0; opacity: var(--mark-alpha); background: var(--mark-ink);
  -webkit-mask: var(--mark) no-repeat; mask: var(--mark) no-repeat;
  -webkit-mask-size: var(--mark-size, contain); mask-size: var(--mark-size, contain); -webkit-mask-position: var(--mark-at); mask-position: var(--mark-at); }

/* The box stays inside the card (so it never adds scroll width); the image
   is sized to the box height and runs off its right side instead. */
.card-mark[data-placement="bleed"] { top: 6%; bottom: 22%; right: 0; width: 27%; --mark-at: left center; --mark-size: auto 100%; }
.card-mark[data-placement="seal"] { top: 9%; right: 6.5%; width: 21%; height: 25%; --mark-at: right top; }
.card-mark[data-placement="ghost"] { inset: 14% 17%; --mark-at: center; --mark-alpha: .62; }
.layout-studio .card-mark[data-placement="seal"] { top: auto; bottom: 30%; }

/* Paper stocks press differently: soft cotton takes a deeper impression,
   coated smooth stock a crisper, shallower one. */
.stock-cotton .card-mark { --mark-ink: color-mix(in srgb, var(--paper) 86%, #4d3d22); }
.stock-smooth .card-mark { --mark-ink: color-mix(in srgb, var(--paper) 92%, #3f4440); --mark-shade: rgb(50 54 48 / 22%); }
.stock-grey .card-mark { --mark-ink: color-mix(in srgb, var(--paper) 89%, #3c3c33); --mark-shade: rgb(45 45 38 / 26%); }
.stock-duplex .card-mark { --mark-ink: color-mix(in srgb, var(--paper) 87%, #2f3130); }

/* Metal is etched: a thin, dark, translucent cut that lets the brushed grain
   show through, with a bright lip where the lamp catches the edge. */
.stock-silver .card-mark, .stock-gold .card-mark { --mark-lit: rgb(255 255 250 / 75%); --mark-shade: rgb(20 20 16 / 22%); --mark-alpha: .13; }
.stock-silver .card-mark { --mark-ink: #25302f; }
.stock-gold .card-mark { --mark-ink: #5a4214; }
.stock-silver .card-mark[data-placement="ghost"], .stock-gold .card-mark[data-placement="ghost"] { --mark-alpha: .09; }

/* Charcoal board gets a clear spot gloss that catches the lamp. */
.stock-night .card-mark { --mark-lit: rgb(255 255 255 / 10%); --mark-shade: rgb(0 0 0 / 40%); }
.stock-night .card-mark-ink { background: linear-gradient(115deg, #2d3131 30%, #3d4241 50%, #2b2f2f 70%); }

/* The desk is a leather blotter: a gold-tooled double fillet near its edge
   and the owner's name stamped in foil along the bottom, both pressed into
   the leather (dark lip above, faint light below) and kept under the cards. */
.desk::before { content: ""; position: absolute; inset: clamp(10px, 1.6vw, 22px); z-index: -1; pointer-events: none;
  border: 1px solid rgb(205 170 104 / 16%); outline: 1px solid rgb(205 170 104 / 9%); outline-offset: -5px;
  box-shadow: 0 -1px 0 rgb(0 0 0 / 35%), inset 0 1px 0 rgb(0 0 0 / 30%); border-radius: 3px; }
.blotter-mark { position: absolute; z-index: -1; left: 0; right: 0; bottom: max(clamp(18px, 3.2vh, 34px), calc(env(safe-area-inset-bottom) + 8px));
  margin: 0; padding: 0 24px; pointer-events: none; text-align: center;
  font: 600 .78rem/1.4 "Cormorant Garamond", Georgia, serif; letter-spacing: .28em; text-transform: uppercase;
  color: #b08d4f; background: linear-gradient(100deg, #8c6a31, #e2c58a 45%, #a7843f 70%, #d8b878); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 -.6px 0 rgb(0 0 0 / 55%)) drop-shadow(0 .6px 0 rgb(255 236 190 / 10%)); opacity: .82; }
.blotter-mark .title { letter-spacing: .2em; }
@media (max-width: 700px) {
  .blotter-mark { font-size: .66rem; letter-spacing: .22em; }
  .blotter-mark .sep { display: none; }
  .blotter-mark .title { display: block; margin-top: 2px; letter-spacing: .16em; }
}
@media (pointer: coarse) and (orientation: landscape) and (max-height: 600px) { .blotter-mark, .desk::before { display: none; } }
/* Under 360px of glass the text would wrap taller than the screen, so the
   card may run wider (up to 2:1) before it may grow taller. */
@media (pointer: coarse) and (orientation: landscape) and (max-height: 360px) {
  .paper { width: min(100%, calc((100svh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 32px) * max(calc(var(--card-ratio, 88.9 / 50.8)), 2))); }
}

/* A lamp highlight that follows the pointer over the newest card. Paper
   scatters it into a broad, dim glow; brushed metal stretches it into a tight
   streak across the grain; matte charcoal barely returns it. */
.paper-glint { position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0; transition: opacity .4s ease;
  mix-blend-mode: soft-light; background: radial-gradient(circle at var(--glint-x, 50%) var(--glint-y, 30%), rgb(255 252 238 / 70%), transparent 62%); }
.paper.glinting .paper-glint { opacity: .6; }
.stock-silver .paper-glint, .stock-gold .paper-glint { mix-blend-mode: screen;
  background: radial-gradient(ellipse 58% 13% at var(--glint-x, 50%) var(--glint-y, 30%), rgb(255 255 248 / 42%), transparent 70%),
    radial-gradient(circle at var(--glint-x, 50%) var(--glint-y, 30%), rgb(255 255 248 / 16%), transparent 38%); }
.stock-gold .paper-glint { filter: sepia(.5); }
.stock-night .paper-glint { mix-blend-mode: screen; background: radial-gradient(circle at var(--glint-x, 50%) var(--glint-y, 30%), rgb(255 255 255 / 7%), transparent 45%); }
.paper.grabbing .paper-glint { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .paper-glint { transition: none; } }
.haptic { position: fixed; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; clip-path: inset(50%); }
.paper.nudged { transition: transform .28s cubic-bezier(.2,.7,.3,1); }

/* Only die-cut cards opt into new radii; square recipes retain every original
   layer and shadow. CSS box shadows automatically follow the paper's radius. */
.corner-round {
  --corner-scale: .036;
  --card-radius: calc(var(--card-short-side, 338px) * var(--corner-scale));
  border-radius: var(--card-radius);
}
.corner-round::before, .corner-round::after,
.corner-round .paper-grain, .corner-round .paper-sheen,
.corner-round .paper-glint { border-radius: max(0px, calc(var(--card-radius) - 1px)); }
.corner-round .card-detail { border-radius: max(0px, calc(var(--card-radius) - 15px)); }
/* Marks have placement-sized boxes. The paper's overflow clip follows its
   radius and clips the entire mark, including the filtered deboss edges. */

/* New studio ornaments have their own print zones. Embedded SVG gradients
   survive archiving without document-global IDs. No legacy selectors change. */
.card-art { display: none; position: absolute; z-index: 0; pointer-events: none; user-select: none; right: -1px; top: 0; width: 64px; height: 100%; object-fit: fill; }
:is(.pattern-prism, .pattern-current, .pattern-feather) .card-art { display: block; }
:is(.pattern-prism, .pattern-current, .pattern-feather) .card-content { min-width: 0; padding: 24px 28px 18px; }
:is(.pattern-prism, .pattern-current, .pattern-feather) .contacts { min-width: 0; max-width: 100%; margin-right: 0; gap: 0 12px; position: relative; }
:is(.pattern-prism, .pattern-current, .pattern-feather) .contacts a { min-width: 0; max-width: 100%; min-height: 44px; }
:is(.pattern-prism, .pattern-current, .pattern-feather) .identity-block { min-width: 0; margin-bottom: 12px; }
:is(.pattern-prism, .pattern-current, .pattern-feather) .role { margin-top: 6px; }
:is(.pattern-prism, .pattern-current, .pattern-feather) .facts { min-width: 0; margin-bottom: 8px; line-height: 1.3; }
:is(.pattern-prism, .pattern-current, .pattern-feather) .identity-block h1 { font-size: 1.625rem; overflow-wrap: anywhere; }
:is(.pattern-prism, .pattern-current, .pattern-feather) .role,
:is(.pattern-prism, .pattern-current, .pattern-feather) .facts,
:is(.pattern-prism, .pattern-current, .pattern-feather) .contacts { font-size: 1.125rem; }
/* Garden reserves the left 58% for name and facts, plus a clear contact band.
   Prism's SVG places its large shapes on the right, its small accent below text. */
.pattern-prism .card-art { width: 100%; height: 100%; }
.pattern-prism .identity-block, .pattern-prism .facts { width: 64%; }
.pattern-prism .identity-block h1 { font-size: 1.5rem; }
.pattern-current .identity-block, .pattern-current .facts, .pattern-current .contacts { width: 70%; }
.pattern-feather .identity-block { width: 62%; min-height: 126px; margin-bottom: 8px; }
.stock-ink { --paper: #151c30; --card-ink: #eff0f3; --grain: .12; --edge-light: #39415e; --edge: #232b42; --edge-dark: #0d1220; background-image: linear-gradient(130deg, #1c2440, #101521); }
.stock-foil { --paper: #1a1b19; --card-ink: #ddd4be; --grain: .22; --edge-light: #565041; --edge: #2e2e27; --edge-dark: #0d100c; background-image: linear-gradient(115deg, #20221e, #141613); }
:is(.stock-ink, .stock-foil)::before { box-shadow: inset 1px 1px 1px rgb(255 255 255 / 9%), inset -1px -1px 1px rgb(0 0 0 / 40%); }
:is(.stock-ink, .stock-foil)::after { opacity: .12; }
:is(.stock-ink, .stock-foil) .paper-grain { mix-blend-mode: soft-light; }
:is(.stock-ink, .stock-foil) .card-mark { --mark-ink: #ffffff; --mark-alpha: .045; --mark-lit: transparent; --mark-shade: transparent; }
:is(.stock-ink, .stock-foil) .contacts a:focus-visible { outline-color: #ead3a2; }
.pattern-prism .identity-block h1 { font-weight: 750; letter-spacing: -.04em; }
.pattern-prism .role { color: #c1c8dd; }
.pattern-current { --paper: #fafaf6; --grain: .08; --card-ink: #252a2c; }
.pattern-current .identity-block h1 { font-weight: 700; }
.pattern-current .card-art { width: 30%; height: 100%; }
.pattern-current .contacts { margin-right: 0; flex-direction: column; align-items: flex-start; }
.pattern-current .role { color: #50575a; }
.pattern-feather .identity-block h1 { color: #e1c88c; background: linear-gradient(115deg, #cfb16d, #f2dfad 42%, #bd9c59 75%, #e7ce91); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-weight: 550; }
.pattern-feather .role { color: #ccc2a8; }
.pattern-feather .card-art { width: 35%; top: 0; bottom: auto; height: 45%; }
.pattern-feather .card-detail { inset: 0 auto 0 9px; width: 2px; background: linear-gradient(#a38248, #efd9a4, #95703a); }

/* Ivory Arc is a real 2 x 3.5 inch portrait recipe. The curved ivory header
   owns its background, so long roles can never cross onto the black ink. */
/* A vertical card is as tall as it is narrow-limited: on short windows its
   height (width / ratio) must still fit the glass with the desk padding. */
.paper.format-portrait { width: min(100%, 340px, calc((100svh - 64px) * var(--card-ratio))); justify-self: center; }
.pattern-arc { --paper: #eee8da; --grain: .18; --card-ink: #eee8da; background: #171a18; }
.pattern-arc::after { opacity: .12; }
.pattern-arc .card-content { padding: 0; }
.pattern-arc .identity-block { flex: 1; margin: 0 0 18px; padding: 30px 24px 48px; background: #eee8da; color: #282b25; border-radius: 0 0 65% 12% / 0 0 36px 12px; display: flex; flex-direction: column; justify-content: center; }
.pattern-arc .identity-block h1 { font-size: 2.5rem; font-weight: 500; font-style: italic; letter-spacing: -.025em; }
.pattern-arc .role { font-size: 1.125rem; color: #44483e; }
.pattern-arc .facts { padding: 0 24px; margin-bottom: 12px; font-size: 1.125rem; }
.pattern-arc .contacts { padding: 0 24px 20px; margin-top: 0; flex-direction: column; align-items: flex-start; font-size: 1.125rem; }
.pattern-arc .card-mark { --mark-ink: #ffffff; --mark-alpha: .04; --mark-lit: transparent; --mark-shade: transparent; }
.pattern-arc .contacts a:focus-visible { outline-color: #ead3a2; }

@media (max-width: 700px) and (orientation: portrait) {
  html:not(.large-text) .paper.format-portrait {
    --orientation: 0deg;
    --portrait-width: min(var(--avail-w), calc(var(--avail-h) * var(--ratio)));
    width: var(--portrait-width); min-height: 0;
    margin-left: calc(var(--portrait-width) / -2);
    margin-top: calc(var(--portrait-width) / var(--ratio) / -2);
  }
  html:not(.large-text) .format-portrait .card-format { display: block; }
  html:not(.large-text) .pattern-arc .card-content { min-height: 0; padding: 0; }
  html:not(.large-text) .pattern-arc .identity-block { margin-bottom: 18px; padding: 24px 22px 38px; }
  html:not(.large-text) .pattern-arc .identity-block h1 { font-size: 2.25rem; }
  html:not(.large-text) .pattern-arc .contacts { flex-direction: column; align-items: flex-start; }
  /* Rotated phones need the full text width, so each recipe's art keeps full
     strength but moves into the corner the text never reaches. */
  html:not(.large-text) :is(.pattern-prism, .pattern-current, .pattern-feather) .card-content { padding: 20px 28px 16px; }
  html:not(.large-text) :is(.pattern-prism, .pattern-current, .pattern-feather) :is(.identity-block, .facts, .contacts) { width: auto; max-width: 100%; min-width: 0; margin-right: 0; }
  html:not(.large-text) :is(.pattern-prism, .pattern-current, .pattern-feather) .identity-block { min-height: 0; margin-bottom: 12px; }
  html:not(.large-text) :is(.pattern-prism, .pattern-current, .pattern-feather) .identity-block h1 { font-size: 1.625rem; }
  html:not(.large-text) :is(.pattern-prism, .pattern-current, .pattern-feather) .contacts { flex-direction: row; align-items: center; }
  html:not(.large-text) .pattern-prism .card-art { width: 34%; height: 62%; object-fit: cover; object-position: right top; }
  html:not(.large-text) .pattern-current .card-art { width: 22%; height: 62%; object-fit: cover; object-position: left top; }
  html:not(.large-text) .pattern-feather .card-art { width: 30%; height: 42%; }
}
/* Turn the portrait stock only on short landscape phones. This retains the
   physical ratio and 18px type instead of squeezing it into a 160px column. */
@media (pointer: coarse) and (orientation: landscape) and (max-height: 600px) {
  html:not(.large-text) .pile:has(> #current-card.format-portrait) { min-height: calc(100svh - 32px); }
  html:not(.large-text) .paper.format-portrait {
    --orientation: 90deg;
    --ratio: calc(var(--card-ratio));
    --portrait-width: min(340px, calc(100svh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 40px), calc((100vw - env(safe-area-inset-left) - env(safe-area-inset-right) - 64px) * var(--ratio)));
    position: absolute; left: 50%; top: 50%; width: var(--portrait-width); min-height: 0;
    margin-left: calc(var(--portrait-width) / -2); margin-top: calc(var(--portrait-width) / var(--ratio) / -2);
  }
  html:not(.large-text) .format-portrait .card-format { display: block; }
  html:not(.large-text) .pattern-arc .card-content { min-height: 0; padding: 0; }
  html:not(.large-text) .pattern-arc .identity-block { margin-bottom: 18px; padding: 24px 22px 38px; }
  html:not(.large-text) .pattern-arc .identity-block h1 { font-size: 2.25rem; }
  html:not(.large-text) .pattern-arc .contacts { flex-direction: column; align-items: flex-start; }
}
.large-text .pattern-arc .card-content { min-height: 0; padding: 0; }
.large-text .pattern-arc .identity-block { flex: auto; }
.large-text :is(.pattern-prism, .pattern-current, .pattern-feather) .card-content { padding-right: 28px; }
.large-text :is(.pattern-prism, .pattern-current, .pattern-feather) :is(.identity-block, .facts, .contacts) { width: auto; min-height: 0; margin-right: 0; }
.large-text .card-art { opacity: .08; }

/* Short landscape phones put all four new landscape recipes in a compact,
   full-width setting. This does not match original stocks or studio recipes. */
@media (pointer: coarse) and (orientation: landscape) and (max-height: 360px) {
  html:not(.large-text) :is(.pattern-prism, .pattern-current, .pattern-feather) .card-content { padding: 12px 28px; }
  html:not(.large-text) :is(.pattern-prism, .pattern-current, .pattern-feather) :is(.identity-block, .facts, .contacts) { width: auto; min-width: 0; max-width: 100%; }
  html:not(.large-text) :is(.pattern-prism, .pattern-current, .pattern-feather) .identity-block { min-height: 0; margin-bottom: 8px; }
  html:not(.large-text) :is(.pattern-prism, .pattern-current, .pattern-feather) .identity-block h1 { font-size: 1.625rem; }
  html:not(.large-text) :is(.pattern-prism, .pattern-current, .pattern-feather) .role { margin-top: 4px; }
  html:not(.large-text) :is(.pattern-prism, .pattern-current, .pattern-feather) .facts { gap: 2px; margin-bottom: 4px; }
  html:not(.large-text) :is(.pattern-prism, .pattern-current, .pattern-feather) .contacts { flex-direction: row; align-items: center; }
  /* Same corner placement as rotated phones: full-strength art the text never reaches. */
  html:not(.large-text) .pattern-prism .card-art { width: 30%; height: 58%; object-fit: cover; object-position: right top; }
  html:not(.large-text) .pattern-current .card-art { width: 20%; height: 58%; object-fit: cover; object-position: left top; }
  html:not(.large-text) .pattern-feather .card-art { width: 28%; height: 42%; }
}

/* The second print collection is entirely opt-in. Keep the legacy stylesheet
   above intact: square originals and the first nine recipes share no rules. */
html .paper.print-recipe { container-type: inline-size; min-height: 0; }
html .paper.print-recipe .card-format { display: block; }
html .paper.print-recipe .card-content {
  min-height: 0; min-width: 0; padding: 20px 24px;
  font-size: 1.125rem; line-height: 1.15; text-shadow: none;
}
html .paper.print-recipe .identity-block { min-width: 0; margin: 0 0 8px; }
html .paper.print-recipe .identity-block h1 {
  font-size: 1.625rem; line-height: 1.1; letter-spacing: -.035em;
  overflow-wrap: anywhere;
}
html .paper.print-recipe .role { font-size: 1.125rem; line-height: 1.15; margin: 4px 0 0; color: inherit; }
html .paper.print-recipe .facts { font-size: 1.125rem; line-height: 1.15; gap: 0; margin: 0 0 6px; }
html .paper.print-recipe .contacts {
  font-size: 1.125rem; line-height: 1.15; min-width: 0; max-width: 100%;
  margin-top: auto; gap: 0 12px; flex-direction: row; align-items: center;
}
html .paper.print-recipe .contacts a { min-width: 0; max-width: 100%; min-height: 44px; }
.print-art { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.print-art > :is(svg, img) { display: block; width: 100%; height: 100%; }
.print-extra { pointer-events: none; }

/* A real prompt and a block cursor; archived cards do not keep running clocks. */
.pattern-root { background: #242828; --paper: #242828; --card-ink: #f0f1e9; }
.pattern-root::before { box-shadow: inset 1px 1px 0 #424747, inset -1px -1px 0 #161a1a; }
.pattern-root::after { background: none; }
.pattern-root .paper-grain { mix-blend-mode: soft-light; }
.terminal-prompt { margin-bottom: 6px; font-size: 1.125rem; line-height: 1.15; }
.terminal-prompt::after { content: ''; display: inline-block; width: .6em; height: 1em; margin-left: .65em; vertical-align: -.12em; background: currentColor; animation: terminal-cursor 1s steps(1, end) 6; }
/* Six blinks after the card lands, then a steady block: an idle page does no work. */
@keyframes terminal-cursor { 50% { opacity: 0; } }
.previous .terminal-prompt::after { animation: none; }
@media (prefers-reduced-motion: reduce) { .terminal-prompt::after { animation: none; } }
.pattern-root .contacts a:focus-visible { outline-color: currentColor; }
html .paper.pattern-root .contacts { flex-direction: column; align-items: flex-start; gap: 0; }
.pattern-root .contacts a { flex-wrap: wrap; }
.pattern-root .contact-flag { color: #aebbb5; white-space: pre; }

/* Paint is confined to the cut rim and the physical thickness shadow stack. */
.stock-rim { --paper: #f6f5f0; --card-ink: #262a29; --grain: .42; --edge-light: #37c0ce; --edge: #18b7c9; --edge-dark: #128694; background: var(--paper); border: 1.5px solid #18b7c9; }
.pattern-rim::after { background: none; }
html .paper.pattern-rim .card-content { padding: 30px; }
html .paper.pattern-rim .identity-block { padding-bottom: 16px; border-bottom: 1px solid #666d69; margin-bottom: 16px; }
.pattern-rim .contacts a:focus-visible { outline-color: currentColor; }

.stock-manila { --paper: #e6d7b7; --card-ink: #3e372a; --grain: .48; --edge-light: #eedfc2; --edge: #cbbb99; --edge-dark: #9e8e6d; background: var(--paper); }
.print-recipe {
  -webkit-mask-image: var(--card-cutout); mask-image: var(--card-cutout);
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.pattern-hollerith .print-art { inset: -1px; }
html .paper.pattern-hollerith .card-content { padding: 12.5cqw 12px 8cqw; }
html .paper.pattern-hollerith .identity-block { margin-bottom: 4px; background: var(--paper); }
html .paper.pattern-hollerith .role { margin-top: 2px; }
html .paper.pattern-hollerith .facts { margin-bottom: 4px; }
/* The two 18px Plex addresses plus this gap total 459.6px: one 44px row
   fits even the 464px text band on a 320px phone. Keep the ratio spacer. */
html .paper.pattern-hollerith .contacts { gap: 0 6px; }

/* Meishi hierarchy uses the Roman name as supplied, with a quiet vertical
   practice column and a separate, locally bundled sans for metadata. */
.pattern-meishi { --paper: #f4f6f5; --card-ink: #283331; background: var(--paper); }
html .paper.pattern-meishi .card-content { padding: 32px 34px 26px 52px; }
html .paper.pattern-meishi .identity-block h1 { font-size: 2.125rem; font-weight: 500; }
html .paper.pattern-meishi :is(.role, .facts, .contacts) { font-family: Manrope, sans-serif; }
.meishi-column { position: absolute; left: 16px; top: 32px; writing-mode: vertical-rl; font: 500 18px/1 Manrope, sans-serif; border-left: 1px solid #83928d; padding-left: 7px; }

.stock-cyanotype { --paper: #173f5b; --card-ink: #f0f8fb; --grain: .13; --edge-light: #54798a; --edge: #244e66; --edge-dark: #102e44; background: var(--paper); }
.pattern-cyan::after { background: none; }
.pattern-cyan .paper-grain { mix-blend-mode: soft-light; }
html .paper.pattern-cyan .card-content { padding-bottom: 54px; }
.dimension-line { height: 12px; border-top: 1px solid #e5f5fa; position: relative; margin: 5px 0 7px; width: 100%; }
.dimension-line::before, .dimension-line::after { content: ''; position: absolute; top: -4px; width: 7px; height: 7px; border-top: 1px solid; border-left: 1px solid; }
.dimension-line::before { left: 1px; transform: rotate(-45deg); }
.dimension-line::after { right: 1px; transform: rotate(135deg); }
.drawing-title { position: absolute; right: 24px; bottom: 14px; max-width: calc(100% - 48px); display: flex; flex-wrap: wrap; border: 1px solid; font-size: 1.125rem; line-height: 1.15; }
.drawing-cell { padding: 3px 6px; }
.drawing-cell + .drawing-cell { border-left: 1px solid; }
.pattern-cyan .contacts a:focus-visible { outline-color: currentColor; }

/* One frosted sheet, with an opaque fallback and a local white ink patch.
   At 94% white even a black backdrop leaves >10:1 contrast with #263a35. */
.stock-plastic { --paper: #dbe4df; --card-ink: #263a35; --grain: 0; --edge-light: #edf8f2; --edge: #afc3b9; --edge-dark: #7e9e8f; background: #dbe4df; border-color: #d3e5db; }
@supports ((backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px))) {
  .stock-plastic { background: rgb(244 250 247 / 18%); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
}
.pattern-frost { border-color: rgb(241 255 248 / 28%); box-shadow: 1px 2px 1px rgb(17 40 30 / 30%), 5px 12px 22px rgb(1 7 4 / 25%); }
.pattern-frost::before { box-shadow: inset 1px 1px 1px rgb(255 255 255 / 65%), inset -1px -1px 1px rgb(17 40 30 / 32%); }
.pattern-frost::after { background: linear-gradient(125deg, rgb(255 255 255 / 24%), transparent 32%, rgb(255 255 255 / 12%) 52%, transparent 72%); }
.pattern-frost .paper-grain { opacity: .12; mix-blend-mode: soft-light; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath d='M0 0H160V160H0Z' filter='url(%23f)' opacity='.6'/%3E%3C/svg%3E") 0 0 / 160px 160px; }
.pattern-frost.corner-round { --corner-scale: .059; }
html .paper.pattern-frost .card-content { align-self: center; justify-self: center; width: max-content; max-width: calc(100% - 48px); margin: 18px 24px; padding: 12px 16px; isolation: isolate; }
.pattern-frost .card-content::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: 20px; background: rgb(255 255 255 / 94%); box-shadow: 0 0 7px 8px rgb(255 255 255 / 70%); pointer-events: none; }
html .paper.pattern-frost .contacts { margin-top: 4px; }

/* Square stock stays upright. The cap height is ~94% of the square, with
   the foot bleeding through the bottom trim. Copy sits on plain stock. */
html .paper.format-square { width: min(100%, 420px); justify-self: center; }
.pattern-block { --paper: #eee8da; --card-ink: #332f29; --grain: .3; background: var(--paper); }
.pattern-block.corner-round { --corner-scale: .028; }
html .paper.pattern-block .card-content { align-self: end; margin: 12px 12px 18px clamp(30px, calc(50cqw - 110px), 100px); padding: 0; background: var(--paper); }
html .paper.pattern-block .identity-block { margin-bottom: 4px; }
html .paper.pattern-block .identity-block h1 { font-size: 1.25rem; line-height: 1.1; }
html .paper.pattern-block .role { margin-top: 3px; line-height: 1.1; }
html .paper.pattern-block .facts { line-height: 1.1; margin-bottom: 2px; }
html .paper.pattern-block .contacts { flex-direction: column; align-items: flex-start; gap: 0; }
.block-frame { position: absolute; inset: 0; z-index: 0; overflow: clip; pointer-events: none; border-radius: inherit; }
.block-letter { position: absolute; z-index: 0; bottom: -.15em; left: -7.5%; font: 900 132cqw/1 Fraunces, serif; font-optical-sizing: none; font-variation-settings: "opsz" 144, "wght" 900, "SOFT" 30, "WONK" 0; transform: scaleX(.58); transform-origin: left bottom; color: #d7cfbd; text-shadow: -1px -1px .5px #fffdf4, 1.5px 2px 1px #a99c84; }

.stock-kraft { --paper: #d4ba8f; --card-ink: #332e24; --grain: .52; --edge-light: #e4cea8; --edge: #b99d71; --edge-dark: #96805b; background: var(--paper); }
html .paper.pattern-pass .card-content { width: 75.253%; padding: 16px 18px; }
html .paper.pattern-pass .identity-block h1 { font: 600 1.375rem/1.1 Manrope, sans-serif; letter-spacing: -.035em; }
html .paper.pattern-pass .role { font-family: Manrope, sans-serif; margin-top: 0; }
html .paper.pattern-pass .identity-block { margin-bottom: 6px; }
html .paper.pattern-pass .contacts { flex-direction: column; align-items: flex-start; gap: 0; }
html .paper.pattern-pass .facts { font-family: Manrope, sans-serif; }
.pass-label { font: 500 1.125rem/1.1 'IBM Plex Mono', monospace; }
.pattern-pass .identity-block > .pass-label:not(:first-child) { margin-top: 4px; }
.pass-stub { position: absolute; inset: 0 0 0 75.253%; padding: 20px 10px; border-left: 1px dashed #786647; display: flex; flex-direction: column; font-size: 1.125rem; line-height: 1.15; }
.stub-value { font-family: Manrope, sans-serif; margin: 2px 0 12px; }
.stub-dest { overflow-wrap: anywhere; }
.stub-barcode { margin-top: auto; height: 48px; flex-shrink: 0; background: repeating-linear-gradient(90deg, #514532 0 2px, transparent 2px 4px, #514532 4px 5px, transparent 5px 9px, #514532 9px 13px, transparent 13px 16px, #514532 16px 17px, transparent 17px 22px); }

@media (max-width: 700px) and (orientation: portrait) {
  html .paper.print-recipe .card-content { padding: 14px; }
  html .paper.pattern-hollerith .card-content { padding: 12.5cqw 12px 8cqw; }
  html .paper.pattern-rim .identity-block { padding-bottom: 10px; margin-bottom: 10px; }
  html .paper.pattern-meishi .card-content { padding: 22px 24px 18px 46px; }
  html .paper.pattern-cyan .card-content { padding: 12px 12px 40px; }
  html .paper.pattern-frost .card-content { margin: 12px 24px; padding: 12px; }
  html .paper.pattern-pass .card-content { padding: 10px 14px; }
  html:not(.large-text) .paper.format-square {
    --orientation: 0deg;
    --square-side: min(var(--avail-w), var(--avail-h));
    width: var(--square-side); min-height: 0;
    margin-left: calc(var(--square-side) / -2); margin-top: calc(var(--square-side) / -2);
  }
  html .paper.pattern-block .card-content { padding: 0; }
}
@media (pointer: coarse) and (orientation: landscape) and (max-height: 600px) {
  html:not(.large-text) .paper.print-recipe { width: min(100%, calc((100svh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 32px) * var(--card-ratio))); }
  html .paper.print-recipe .card-content { padding: 14px; }
  html .paper.pattern-hollerith .card-content { padding: 12.5cqw 12px 8cqw; }
  html .paper.pattern-rim .identity-block { padding-bottom: 10px; margin-bottom: 10px; }
  html .paper.pattern-meishi .card-content { padding: 22px 24px 18px 46px; }
  html .paper.pattern-cyan .card-content { padding: 12px 12px 40px; }
  html .paper.pattern-frost .card-content { margin: 12px 24px; padding: 12px; }
  html .paper.pattern-pass .card-content { padding: 10px 14px; }
  html .paper.pattern-block .card-content { padding: 0; }
}
@media (max-width: 700px) and (orientation: portrait), (pointer: coarse) and (orientation: landscape) and (max-height: 600px) {
  html .paper.pattern-cyan .contacts { gap: 0 6px; }
  .pattern-cyan .dimension-line { height: 6px; margin: 4px 0; }
  .pattern-cyan .drawing-title { right: 12px; bottom: 8px; max-width: calc(100% - 24px); }
}
/* Enlarged text keeps the existing scrollable accessibility mode. Ornaments
   retain full strength in separate bands; growing content never crosses them. */
html.large-text .paper.print-recipe { width: 100%; }
html.large-text .paper.print-recipe .card-format { display: none; }
html.large-text .paper.print-recipe .contacts { flex-direction: column; align-items: flex-start; }
html.large-text .paper.pattern-cyan .card-content { padding-bottom: 20px; }
html.large-text .paper.pattern-cyan .drawing-title { position: relative; right: auto; bottom: auto; margin: 0 24px 20px; }
html.large-text .paper.pattern-pass .card-content { width: 100%; }
html.large-text .paper.pattern-pass .pass-stub { position: relative; inset: auto; border-left: 0; border-top: 1px dashed; }
html.large-text .paper.pattern-hollerith .card-content { padding: 105px 12px 24px; }
html.large-text .paper.pattern-hollerith .print-art { height: 400px; clip-path: inset(0 0 75%); }
/* The holes keep their 400px scale: Hollerith's top punch row and the badge slot
   stay in their bands instead of stretching down the taller card. */
html.large-text .paper:is(.pattern-hollerith, .pattern-badge) {
  -webkit-mask-image: var(--card-cutout), linear-gradient(#000, #000);
  mask-image: var(--card-cutout), linear-gradient(#000, #000);
  -webkit-mask-size: 100% 400px, 100% calc(100% - 99px);
  mask-size: 100% 400px, 100% calc(100% - 99px);
  -webkit-mask-position: top, bottom; mask-position: top, bottom;
}
/* Frost Token on the smallest glass (320px-wide portrait, 320px-tall
   landscape): the patch hugs the text and the gaps close up so the block
   fits the card at its own shape. */
@media (max-width: 380px) and (orientation: portrait), (pointer: coarse) and (orientation: landscape) and (max-height: 360px) {
  html:not(.large-text) .paper.pattern-frost .card-content { margin: 6px 14px; padding: 6px 10px; }
  html:not(.large-text) .paper.pattern-frost .identity-block { margin-bottom: 4px; }
  html:not(.large-text) .paper.pattern-frost .identity-block h1 { font-size: 1.35rem; line-height: 1.15; }
  html:not(.large-text) .paper.pattern-frost .role { margin-top: 2px; }
  html:not(.large-text) .paper.pattern-frost .facts { gap: 0; margin-bottom: 0; line-height: 1.25; }
  html:not(.large-text) .paper.pattern-frost .contacts { margin-top: 0; flex-direction: row; flex-wrap: wrap; column-gap: 14px; }
  /* The smallest glass has no room for the dispatch stamp under a slim slip. */
  html:not(.large-text) .paper.pattern-canary .slip-stamp { display: none; }
  html:not(.large-text) .badge-band { padding-bottom: 5px; }
}
/* Enlarged text: the patch becomes a full-width block instead of a fitted one. */
html.large-text .paper.pattern-frost .card-content { width: auto; max-width: none; margin: 12px; justify-self: stretch; }

/* The third print collection (Antigravity round). Each recipe owns one stock
   voice; ornaments live in zones the copy never reaches at any format. */
:is(.pattern-greenbar, .pattern-tag, .pattern-telemetry, .pattern-copper, .pattern-canary, .pattern-hazard)::after { background: none; }

/* Green-bar fanfold: half-inch tracking bands and a perforated tractor strip
   whose four sprocket holes are cut through to the leather. */
.stock-fanfold { --paper: #f7f8f2; --card-ink: #2c3a30; --grain: .2; --edge-light: #fbfcf7; --edge: #d9ddd3; --edge-dark: #b3b8ac; background: repeating-linear-gradient(#dfeee1 0 25%, var(--paper) 25% 50%); }
.pattern-greenbar .card-detail { inset: 0 auto 0 14%; width: 0; border-left: 1px dashed #93a497; }
html .paper.pattern-greenbar .card-content { padding-left: calc(14% + 16px); }

/* Anodized rating plate: etched silver rules, four rivet holes and a barcode. */
.stock-anodized { --paper: #16181a; --card-ink: #d8dde2; --grain: .35; --edge-light: #3a3f44; --edge: #23272a; --edge-dark: #0b0d0e; background: var(--paper); border-color: #0e1012; box-shadow: inset 0 1px 0 #30353a, 0 1px 0 var(--edge-light), 0 3px 0 var(--edge), 0 5px 1px var(--edge-dark), 7px 17px 24px rgb(0 0 0 / 22%), 16px 32px 50px rgb(0 0 0 / 10%); }
.pattern-tag::before { box-shadow: inset 1px 1px 1px rgb(255 255 255 / 12%), inset -1px -1px 1px rgb(0 0 0 / 50%); }
.pattern-tag .paper-grain { mix-blend-mode: soft-light; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='b'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23b)'/%3E%3C/svg%3E") 0 0 / 120px 120px; }
.pattern-tag.corner-round { --corner-scale: .065; }
.pattern-tag .card-detail { inset: 9px; border: 1px solid #a7adb3; box-shadow: 0 0 0 1px rgb(0 0 0 / 60%), inset 0 0 0 1px rgb(0 0 0 / 60%); }
html .paper.pattern-tag .card-content { padding: 26px 30px 60px; }
html .paper.pattern-tag .identity-block h1 { text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.tag-barcode { position: absolute; left: 30px; right: 30px; bottom: 22px; height: 26px; background: repeating-linear-gradient(90deg, #c9cfd4 0 2px, transparent 2px 4px, #c9cfd4 4px 5px, transparent 5px 9px, #c9cfd4 9px 13px, transparent 13px 16px, #c9cfd4 16px 17px, transparent 17px 22px); }

/* Chart paper: the pen traces stay in the top band; copy starts under the rule. */
.stock-chart { --paper: #fdf9f3; --card-ink: #2b3036; --grain: .1; --edge-light: #fffdf8; --edge: #ddd6c9; --edge-dark: #b8b0a2; background: var(--paper); }
html .paper.pattern-telemetry .card-content { padding-top: 13cqw; }
html .paper.pattern-telemetry .identity-block h1 { font-weight: 700; }

/* Velvet black board with hot-stamped copper: the name takes the foil too. */
.stock-velvet { --paper: #121314; --card-ink: #f1e9df; --grain: .3; --edge-light: #35373a; --edge: #1e2022; --edge-dark: #060708; background: var(--paper); border-color: #0a0b0c; box-shadow: inset 0 1px 0 #2a2c2f, 0 1px 0 var(--edge-light), 0 3px 0 var(--edge), 0 5px 1px var(--edge-dark), 7px 17px 24px rgb(0 0 0 / 22%), 16px 32px 50px rgb(0 0 0 / 10%); }
.pattern-copper::before { box-shadow: inset 1px 1px 1px rgb(255 255 255 / 7%), inset -1px -1px 1px rgb(0 0 0 / 60%); }
.pattern-copper .paper-grain { mix-blend-mode: soft-light; }
html .paper.pattern-copper .card-content { padding: 48px 70px 28px 48px; }
html .paper.pattern-copper .identity-block h1 { font-weight: 650; color: #e9a67f; background: linear-gradient(115deg, #c87a52, #f4a27e 45%, #d08a63 75%, #f0b596); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.pattern-copper .contacts a:focus-visible { outline-color: #f4a27e; }

/* A slim carbonless slip: crimson glue strip, two columns, a dispatch stamp. */
.stock-canary { --paper: #f6e98c; --card-ink: #3a3120; --grain: .3; --edge-light: #fbf2b2; --edge: #d9cb75; --edge-dark: #b0a35a; background: var(--paper); }
.pattern-canary .card-detail { inset: 0 0 auto; height: 6px; box-shadow: inset 0 -1px 0 rgb(0 0 0 / 25%); background: #a3231f; }
html .paper.pattern-canary .card-content { display: grid; grid-template-columns: 1fr auto; grid-template-rows: 1fr auto; column-gap: 20px; padding: 22px 24px 14px; }
html .paper.pattern-canary :is(.identity-block, .facts) { margin: 0; }
html .paper.pattern-canary .contacts { grid-column: 2; grid-row: 1 / 3; flex-direction: column; align-items: flex-end; justify-content: flex-start; margin: 0; gap: 0; }
.slip-stamp { position: absolute; right: 22px; bottom: 20px; padding: 1px 8px; border: 2px solid #a3231f; color: #a3231f; font: 500 1.125rem/1.15 "IBM Plex Mono", monospace; letter-spacing: .06em; transform: rotate(-3deg); opacity: .85; }

/* Twill composite: a rotated checker reads as the weave; the type is silkscreened white. */
.stock-carbon { --paper: #1b1d1f; --card-ink: #ffffff; --grain: 0; --edge-light: #3a3d41; --edge: #202224; --edge-dark: #08090a; border-color: #0c0d0e; background: repeating-linear-gradient(45deg, rgb(255 255 255 / 6%) 0 1px, transparent 1px 7px), repeating-conic-gradient(from 45deg, #25292d 0 25%, #16191c 0 50%) 0 0 / 14px 14px; }
.pattern-carbon::after { background: linear-gradient(115deg, rgb(255 255 255 / 10%), transparent 40%, rgb(255 255 255 / 6%) 70%, transparent); }
.pattern-carbon::before { box-shadow: inset 1px 1px 1px rgb(255 255 255 / 14%), inset -1px -1px 1px rgb(0 0 0 / 55%); }
:is(.pattern-carbon, .pattern-badge).corner-round { --corner-scale: .059; }
html .paper.pattern-carbon .card-content { padding: 28px 30px 22px; text-shadow: 0 1px 1px rgb(0 0 0 / 60%); }
html .paper.pattern-carbon .identity-block h1 { text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
:is(.pattern-tag, .pattern-carbon) .contacts a:focus-visible { outline-color: currentColor; }

/* Safety chevrons on the left trim only; the copy keeps the other 84%. */
.pattern-hazard { --paper: #f4f1ea; --card-ink: #1f1f1d; background: var(--paper); }
.pattern-hazard .card-detail { inset: 0 auto 0 0; width: 16%; box-shadow: inset -1px 0 0 rgb(0 0 0 / 35%); background: repeating-linear-gradient(45deg, #f2b705 0 14px, #1b1b1b 14px 28px); }
html .paper.pattern-hazard .card-content { padding-left: calc(16% + 22px); }
html .paper.pattern-hazard .identity-block h1 { font-weight: 800; letter-spacing: -.03em; text-transform: uppercase; }

/* An ID-1 badge: the slot is cut through the indigo clearance band. The
   label is furniture at a fixed 18px, so enlarged text never wraps it onto the slot. */
.stock-pvc { --paper: #f8f9f9; --card-ink: #1f2240; --grain: 0; --edge-light: #ffffff; --edge: #d5d9db; --edge-dark: #a9b0b4; border-color: #dfe3e5; background: linear-gradient(160deg, #ffffff, #eef1f2 60%, #f7f8f8); }
.pattern-badge::after { background: linear-gradient(120deg, rgb(255 255 255 / 60%), transparent 45%); }
.badge-band { position: absolute; inset: 0 0 auto; height: 27cqw; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px; background: #1f1b4d; color: #f3f4ff; font: 600 18px/1.15 Geist, sans-serif; letter-spacing: .14em; text-transform: uppercase; }
html .paper.pattern-badge .card-content { padding: calc(27cqw + 16px) 22px 20px; }
html .paper.pattern-badge .contacts { flex-direction: column; align-items: flex-start; gap: 0; }
.pattern-badge .contacts a:focus-visible { outline-color: #1f1b4d; }

@media (max-width: 700px) and (orientation: portrait), (pointer: coarse) and (orientation: landscape) and (max-height: 600px) {
  html .paper.pattern-greenbar .card-content { padding-left: calc(14% + 10px); }
  html .paper.pattern-tag .card-content { padding: 24px 24px 52px; }
  .tag-barcode { left: 22px; right: 22px; bottom: 16px; height: 22px; }
  html .paper.pattern-copper .card-content { padding: 36px 60px 22px 40px; }
  /* Slim slips stack on phones: one column, the stamp in the flow above the contacts. */
  html .paper.pattern-canary .card-content { display: flex; padding: 12px 16px 10px; }
  html .paper.pattern-canary .contacts { order: 1; flex-direction: row; align-items: center; justify-content: space-between; margin-top: auto; }
  .slip-stamp { position: static; align-self: flex-start; margin: 4px 0 0; transform: rotate(-2deg); }
  html .paper.pattern-carbon .card-content { padding: 14px 18px; }
  html .paper.pattern-hazard .card-content { padding-left: calc(16% + 14px); }
  html .paper.pattern-badge .card-content { padding: calc(27cqw + 12px) 16px 16px; }
  /* The badge keeps its portrait width: on short landscape phones the print-recipe width rule would otherwise win. */
  html:not(.large-text) .paper.print-recipe.format-portrait { width: var(--portrait-width); }
}
/* Enlarged text: the slip stacks and its stamp joins the flow instead of covering
   the links; the chart keeps its 400px band so the traces stay above the copy. */
html.large-text .paper.pattern-canary .card-content { display: flex; }
html.large-text .slip-stamp { position: static; align-self: flex-start; margin: 12px 0 6px; }
html.large-text .paper.pattern-telemetry .card-content { padding-top: 96px; }
html.large-text .paper.pattern-telemetry .print-art { height: 400px; clip-path: inset(0 0 313px); }
html.large-text .paper.pattern-badge .card-content { padding-top: 110px; }
html.large-text .badge-band { height: 90px; }
html.large-text .paper.pattern-tag .card-content { padding-bottom: 60px; }

/* Fourth collection: animated surfaces drawn by the vendored Paper Shaders
   (docs/superpowers/specs/2026-10-19-shader-cards-design.md). The shader
   layer is the paper itself; grain, sheen and copy sit on top of it. The
   card's --paper and --card-ink come inline from the dealt variant. */
.shader-art { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.shader-art :is(canvas, img) { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.large-text .shader-art { opacity: .12; }
.paper[data-shader-tone="dark"] .paper-grain { mix-blend-mode: soft-light; opacity: .25; }
.paper[data-shader-tone="dark"]::after { opacity: .15; }
.paper[data-shader-tone] .contacts a:focus-visible { outline-color: currentColor; }
/* Holographic foil: an iridescent wash under the brushed-silver grain, with
   dark type lifted by a light halo, on an always-rounded ID-1 card. */
.stock-holo { --paper: #d9dcda; --card-ink: #1f2527; --grain: .42; --edge-light: #f0f2ee; --edge: #a5afad; --edge-dark: #737c7a; background: var(--paper); }
.stock-holo .paper-grain { background-image: url("textures/brushed-metal-v1.png"); }
/* The rainbow band of a real hologram: it sits where the lamp catches the
   foil, so it follows the pointer (--glint-x) across the card, and its edges
   break up into speckle through a noise mask, like the diffraction grating. */
.pattern-holo .shader-art::after {
  content: ''; position: absolute; inset: -20%; pointer-events: none; mix-blend-mode: hard-light; opacity: .62;
  background: linear-gradient(112deg, transparent calc(var(--glint-x, 50%) - 32%), #ff7cc8 calc(var(--glint-x, 50%) - 17%), #ffcf5a calc(var(--glint-x, 50%) - 7%),
    #6ff5a6 var(--glint-x, 50%), #5cc0ff calc(var(--glint-x, 50%) + 8%), #c48cff calc(var(--glint-x, 50%) + 18%), transparent calc(var(--glint-x, 50%) + 32%));
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='2.4' intercept='-.5'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E"), linear-gradient(#000, #000);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='2.4' intercept='-.5'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E"), linear-gradient(#000, #000);
  -webkit-mask-size: 140px 140px, 100% 100%; mask-size: 140px 140px, 100% 100%;
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.pattern-holo.shader-fallback .shader-art::after { opacity: .6; }
.pattern-holo::after { background: linear-gradient(115deg, rgb(255 255 255 / 30%), transparent 30%, rgb(255 255 255 / 18%) 60%, transparent 80%); }
.pattern-holo .paper-sheen { opacity: .18; }
.pattern-holo.corner-round { --corner-scale: .059; }
html .paper.pattern-holo .card-content { text-shadow: 0 0 1px rgb(255 255 255 / 70%), 0 .5px 3px rgb(255 255 255 / 55%); }
/* Mercury plate: dark chrome; light type with a shadow so the highlights never swallow it. */
.stock-mercury { --grain: .1; --edge-light: #9ea7ae; --edge: #5c6368; --edge-dark: #2a2f33; background: var(--paper); border-color: rgb(255 255 255 / 18%); }
.stock-mercury .paper-grain { background-image: url("textures/brushed-metal-v1.png"); }
html .paper.pattern-mercury .card-content { text-shadow: 0 1px 1px rgb(0 0 0 / 65%), 0 0 12px rgb(0 0 0 / 55%); }
/* A smoked scrim where the copy sits, so the brightest highlights stay off the type. */
.pattern-mercury .shader-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgb(10 12 14 / 58%) 0 32%, rgb(10 12 14 / 34%) 60%, rgb(10 12 14 / 28%)), linear-gradient(180deg, transparent 55%, rgb(10 12 14 / 35%)); }
/* Aurora board: matte black board whose face glows. */
.stock-aurora { --grain: .18; --edge-light: #3a3f4c; --edge: #23262f; --edge-dark: #0e1014; background: var(--paper); border-color: rgb(255 255 255 / 10%); }
html .paper.pattern-aurora .card-content { text-shadow: 0 1px 2px rgb(0 0 0 / 45%); }
/* Riso: uncoated stock, the inks sit in the grain; dark type, no shadow. */
.stock-riso { --grain: .5; --edge-light: #efe7d5; --edge: #cfc4ab; --edge-dark: #a39777; background: var(--paper); }
/* Phosphor: an acrylic plate; a halo in the plate colour keeps the type apart from the dither. */
.stock-phosphor { --grain: .08; --edge-light: #4a5157; --edge: #2b3034; --edge-dark: #111416; background: var(--paper); border-color: rgb(255 255 255 / 14%); }
.paper.pattern-dither[data-shader-tone="light"] { --edge-light: #f4efe4; --edge: #cfc8b8; --edge-dark: #9d957f; border-color: rgb(113 96 67 / 19%); }
html .paper.pattern-dither .card-content { text-shadow: 0 0 2px var(--paper), 0 0 6px var(--paper), 0 0 12px var(--paper); }
/* Marbled endpaper: the copy is a pasted cream bookplate with a double rule. */
.stock-endpaper { --grain: .35; --edge-light: #eee6d6; --edge: #cbbfa6; --edge-dark: #978a6c; background: var(--paper); }
html .paper.pattern-marble .card-content { isolation: isolate; margin: 9% 10%; padding: 16px 20px; min-height: 0; }
.pattern-marble .card-content::before { content: ''; position: absolute; inset: 0; z-index: -1; background: #f6f0e3; border: 1px solid #b7a98a; box-shadow: inset 0 0 0 3px #f6f0e3, inset 0 0 0 4px #c9bc9c, 0 1px 2px rgb(40 30 10 / 25%); }
/* Velvet smoke: the ring drifts right of centre; the copy stays in the dark. */
html .paper.pattern-smoke .card-content { text-shadow: 0 1px 2px rgb(0 0 0 / 60%); }
.pattern-smoke .shader-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(11 10 12 / 70%) 0 30%, rgb(11 10 12 / 25%) 50%, transparent 68%); }
.pattern-smoke .identity-block h1 { font-weight: 500; letter-spacing: .01em; }
/* Vellum: a translucent sheet with a light thickness; the type follows the mood. */
.stock-vellum { --grain: .22; --edge-light: #f6efe3; --edge: #d9cdb6; --edge-dark: #ab9c80; background: var(--paper); }
.paper.pattern-rays[data-shader-tone="dark"] { --edge-light: #3a3b45; --edge: #22232b; --edge-dark: #0d0e12; border-color: rgb(255 255 255 / 12%); }
/* Phones: the bookplate keeps a slimmer mount so the copy still fits the card's ratio. */
@media (max-width: 700px) and (orientation: portrait), (pointer: coarse) and (orientation: landscape) and (max-height: 600px) {
  html .paper.pattern-marble .card-content { margin: 10px 12px; padding: 10px 14px; }
}
html.large-text .paper.pattern-marble .card-content { margin: 10px 12px; padding: 12px 14px; }
