/* zine-flyer: SecurityZines look. Three themes: theme-bw, theme-dark, theme-bbg.
   Lettering is "Rohit Hand": Rohit's own handwriting traced from his flyers
   (zine-font.css, built by tools/handfont). Three variants of every letter rotate
   automatically. The font has one weight; heavier lettering is the same letters
   drawn with a thicker pen (text stroke). No network needed. */
@import url('zine-font.css');

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--paper); }

/* ---------- themes ---------- */
body {
  --paper: #fff; --ink: #141414; --shade: #a6a6a6; --note: var(--ink); --accent: var(--ink);
  --red: #141414; --green: #141414; --blue: #141414; --pink: #141414; --yellow: #141414;
  --orange: #141414; --gray: #777; --white: #fff;
  --pillbg: var(--ink); --pillfg: var(--paper); --warnfill: #fff; --win: #1b1b1b;
  --badge: var(--ink); --badgefg: var(--paper); --stroke: 4.5px; --hatch: #fff;
  font: 400 22px/1.2 'Rohit Hand 1', 'Comic Sans MS', 'Chalkboard SE', cursive; color: var(--ink);
  font-synthesis-weight: none; font-synthesis-style: none; --pen: .65px; -webkit-text-stroke: var(--pen) currentColor; paint-order: stroke fill;
}
body.theme-dark {
  --paper: #2d2d2d; --ink: #fff; --shade: #ee86a8; --note: #f6cf45; --accent: #e4473d;
  --red: #e4473d; --green: #7fbf8e; --blue: #58a6f2; --pink: #ee86a8; --yellow: #f6cf45;
  --orange: #f0a23b; --gray: #9a9a9a;
  --pillbg: var(--accent); --pillfg: #fff; --warnfill: #e4473d; --win: #555;
  --badge: #fff; --badgefg: var(--accent);
  --hatch: color-mix(in srgb, var(--tc, var(--accent)) 45%, #000);
}
body.theme-bbg {
  --paper: #fff; --ink: #2a2545; --shade: #2a2545; --note: #2a2545; --accent: #3f7ae6;
  --red: #e2574c; --green: #4b9c5a; --blue: #3f7ae6; --pink: #c4517f; --yellow: #f3c13f;
  --orange: #e2791e; --gray: #6f6f6f;
  --pillbg: var(--accent); --pillfg: #fff; --warnfill: #f3c13f; --win: #2a2545;
  --badge: var(--red); --badgefg: #fff; --hatch: #fff; --halo: #fbe1d5; --frame: #6f9cf3; --stroke: 7px;
}

/* colour helpers: class sets --c; text takes it, pills/arrows use it as fill/stroke */
.red { --c: var(--red); } .green { --c: var(--green); } .blue { --c: var(--blue); }
.pink { --c: var(--pink); } .yellow { --c: var(--yellow); } .orange { --c: var(--orange); }
.gray { --c: var(--gray); } .white { --c: #fff; } .inkc { --c: var(--ink); }
.red, .green, .blue, .pink, .yellow, .orange, .gray, .inkc { color: var(--c); }
[c] > .ico { color: var(--c); }

/* every word is its own inline block so zine.js can nudge it like handwriting */
.wd { display: inline-block; white-space: nowrap; text-indent: 0; }
.f2 { font-family: 'Rohit Hand 2', 'Comic Sans MS', cursive; } .f3 { font-family: 'Rohit Hand 3', 'Comic Sans MS', cursive; }
/* pen weights: everything heavier than body text */
b, h3, .cap, .lbl, .bubble, z-self { --pen: 1px; -webkit-text-stroke: var(--pen) currentColor; }
h2, .pill, .tag, .sub, z-brand { --pen: 1.5px; -webkit-text-stroke: var(--pen) currentColor; }
.s { --pen: .5px; } .s b, .code b { --pen: .9px; }

/* ---------- sheet ---------- */
.sheet {
  position: relative; width: 1600px; height: 1000px; padding: 34px 44px 36px 50px;
  display: flex; flex-direction: column; gap: 26px; overflow: hidden;
  background: var(--paper); filter: url(#wob);
}
body[data-size="portrait"] .sheet { width: 1200px; height: 1560px; padding: 42px 44px; gap: 18px; }
.sheet::before {
  content: ""; position: absolute; inset: 12px; border: 5px solid var(--ink);
  border-radius: 9px; pointer-events: none;
}
.theme-bbg .sheet::before { display: none; }
/* the bbg frame is a clean digital border, so it sits outside the hand-drawn warp */
body.theme-bbg::after { content: ""; position: fixed; inset: 0; border: 15px solid var(--frame); pointer-events: none; }

/* ---------- masthead ---------- */
.mast { display: flex; align-items: center; gap: 28px; min-height: 124px; padding-top: 4px; }
.title {
  font-size: 112px; line-height: .95; letter-spacing: 3px;
  color: var(--tc, var(--accent)); -webkit-text-stroke: 5px var(--tc, var(--accent));
  paint-order: stroke fill; white-space: nowrap; padding-left: 6px;
}
.title .w { display: inline-block; }
.title .w > span { display: inline-block; text-shadow: 7px 6px 0 var(--shade); }
.theme-dark .title { --shade: color-mix(in srgb, var(--tc, var(--accent)) 45%, #000); }
/* hatch: fat marker letters with pen hatching inside, like the LFI / IDOR titles */
.title.hatch { -webkit-text-stroke: 13px var(--tc, var(--accent)); letter-spacing: 16px; padding-left: 12px; }
.title.hatch .w > span { position: relative; text-shadow: none; }
.title.hatch .w > span::after {
  content: attr(data-ch); position: absolute; left: 0; top: 0; color: transparent; -webkit-text-stroke: 0;
  background: repeating-linear-gradient(-48deg, var(--hatch) 0 3px, transparent 3px 8px);
  -webkit-background-clip: text; background-clip: text;
}
.title.small { font-size: 72px; }
.sub { font-size: 50px; line-height: 1; font-variant-caps: small-caps; color: var(--ink); flex: 1; letter-spacing: 1px; white-space: nowrap; }
.sub.s { font-size: 36px; }
z-brand { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; margin-left: auto; white-space: nowrap; }
z-brand .h { display: flex; align-items: center; gap: 10px; }
z-brand .at { font-size: 46px; }
z-brand .handle { font-size: 34px; padding: 0 16px 3px; }
z-brand .site { font-size: 32px; letter-spacing: 1px; }
z-brand .site i { font-style: normal; font-size: 1.25em; color: var(--siteaccent, inherit); }
.theme-dark z-brand .site i { --siteaccent: var(--yellow); }
z-brand .by { font-size: 26px; }
.heart { color: #e4473d; }
.theme-bw .heart { color: var(--ink); }

/* ---------- grid + panels ---------- */
.grid {
  flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr; gap: 34px 38px;
}
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.rows-auto { grid-auto-rows: auto; }
body[data-size="portrait"] .grid { gap: 14px 30px; }
.span2 { grid-column: span 2; } .span3 { grid-column: 1 / -1; } .rspan2 { grid-row: span 2; }
.grid > .mast { grid-column: 1 / -1; }
.panel {
  position: relative; min-width: 0; min-height: 0; border: 5px solid var(--pc, var(--ink));
  border-radius: 9px; padding: 14px 18px 14px 22px; display: flex; flex-direction: column; gap: 8px;
}
.panel[data-n]::before {
  content: attr(data-n); position: absolute; left: -26px; top: -26px; width: 60px; height: 60px;
  border-radius: 50%; background: var(--badge); color: var(--badgefg); display: grid; place-items: center;
  font-size: 46px; line-height: 1; z-index: 2; box-shadow: 0 0 0 5px var(--paper); -webkit-text-stroke: .8px currentColor;
}
.panel[data-n] > h2 { padding-left: 32px; }
h2 { font-size: 40px; line-height: 1; font-weight: 400; color: var(--hc, var(--ink)); }
h2:has(.pill) { margin-bottom: 10px; }
.theme-dark h2 { --hc: var(--accent); }
h3 { font-size: 27px; font-weight: 400; line-height: 1.05; }

/* bbg: no boxes, headings are pills with a hard shadow */
.theme-bbg .panel { border: 0; padding: 10px 12px; gap: 10px; justify-content: space-between; }
.theme-bbg .panel.zone { background: var(--zone, #eef2fb); border-radius: 26px 20px 28px 22px; padding: 16px 18px; }
.theme-bbg .panel > h2, .theme-bbg h2.pillh {
  align-self: flex-start; background: var(--c, var(--blue)); color: #fff; padding: 2px 20px 6px;
  border-radius: 22px; box-shadow: 5px 6px 0 var(--ink); font-size: 40px; margin-bottom: 6px;
}
.theme-bbg .panel > h2 .pill { box-shadow: none; margin: 0 4px; }
.theme-bbg .panel[data-n] > h2 { margin-left: 44px; padding-left: 20px; }
.theme-bbg .panel[data-n]::before { box-shadow: 4px 5px 0 var(--blue); left: -2px; top: 8px; width: 50px; height: 50px; font-size: 36px; }
.theme-bbg .title { font-size: 170px; -webkit-text-stroke: 11px var(--tc, var(--accent)); letter-spacing: 12px; }
.theme-bbg .title .w > span { text-shadow: 7px 8px 0 color-mix(in srgb, var(--tc, var(--accent)) 32%, #fff); }
.theme-bbg .sub { color: var(--orange); text-shadow: 3px 4px 0 var(--ink); font-size: 62px; --pen: 2.5px; flex: 0 1 auto; }
.theme-bbg .sub.s { font-size: 42px; --pen: 1.8px; text-shadow: 2px 3px 0 var(--ink); }
.theme-bbg .mast { justify-content: center; }

/* ---------- text bits ---------- */
p, li { text-wrap: pretty; }
.s { font-size: 18px; line-height: 1.15; } .l { font-size: 27px; } .xl { font-size: 34px; }
.note { color: var(--note); }
ul.star { list-style: none; display: flex; flex-direction: column; gap: 5px; }
ul.star li { padding-left: 24px; text-indent: -24px; }
ul.star li::before { content: "* "; }
.theme-dark ul.star li { color: var(--note); }
b { font-weight: 400; }
.hl { background: var(--c, var(--yellow)); color: #141414; padding: 0 6px; border-radius: 8px; }
.theme-bw .hl { background: #d2d2d2; }
.pill {
  display: inline-block; background: var(--c, var(--pillbg)); color: var(--pillfg) !important;
  padding: 1px 14px 4px; border-radius: 14px; line-height: 1.15; white-space: nowrap; margin-right: .3em;
}
.pill.white, body:not(.theme-bw) .pill.yellow { --pillfg: #141414; }
body:not(.theme-bw) .tag.yellow { color: #141414; }
/* chalk colours are light, so chips on the dark board take dark lettering */
.theme-dark .tag { color: #141414; }
.theme-dark .tag.red { color: #fff; }
.theme-bw .pill.white { border: 3px solid var(--ink); }
.theme-bbg .pill { box-shadow: 3px 4px 0 var(--ink); }
.tag { display: inline-block; background: var(--c, var(--gray)); color: #fff; font-size: max(.84em, 15.5px); --pen: .9px; padding: 1px 9px 3px; margin: 0 .12em; border-radius: 10px; vertical-align: middle; white-space: nowrap; }
.n {
  display: inline-grid; place-items: center; width: 1.35em; height: 1.35em; border-radius: 50%;
  background: var(--c, var(--badge)); color: var(--badgefg); font-size: .95em; --pen: .5px; -webkit-text-stroke: var(--pen) currentColor; line-height: 1;
  margin-right: 5px; vertical-align: middle; flex: none;
}
.theme-dark .n { background: var(--c, var(--red)); color: #fff; }
.theme-bbg .n { box-shadow: 2px 3px 0 var(--blue); }
.code {
  border: 3.5px dashed var(--c, var(--ink)); border-radius: 12px; padding: 8px 14px; font-size: 19.5px;
  line-height: 1.25; white-space: pre-wrap; align-self: flex-start;
}
.theme-dark .code b:not([class]) { color: var(--yellow); }
.theme-bbg .code b:not([class]) { color: var(--blue); }
.code .s { font-size: 16px; }
.dashed { border: 3.5px dashed var(--c, var(--ink)); border-radius: 12px; padding: 8px 12px; }
.box { border: 4px solid var(--c, var(--ink)); border-radius: 10px; padding: 6px 12px; }
.bubble {
  position: relative; background: var(--c, var(--red)); color: #fff; padding: 7px 14px 9px;
  border-radius: 18px; font-size: 19.5px; line-height: 1.15; max-width: 300px; margin-top: 14px;
}
/* curly tail on top, the way the bubbles are drawn in the originals */
.bubble::after { content: ""; position: absolute; top: -15px; left: 26px; width: 20px; height: 26px; background: var(--c, var(--red)); border-radius: 0 95% 0 95%; rotate: 18deg; }
.bubble.r::after { left: auto; right: 26px; border-radius: 95% 0 95% 0; rotate: -18deg; }
.theme-bbg .bubble { box-shadow: 3px 4px 0 var(--ink); }
.theme-bw .bubble { background: var(--paper); color: var(--ink); border: 4px solid var(--ink); margin-top: 0; }
.theme-bw .bubble::after { display: none; }
.boom {
  display: inline-grid; place-items: center; min-width: 104px; padding: 0 24px; height: 64px; font-size: 28px; --pen: .7px; -webkit-text-stroke: var(--pen) currentColor;
  letter-spacing: 3px; white-space: nowrap; background: var(--c, var(--ink)); color: var(--paper);
  clip-path: polygon(0 50%, 9% 30%, 3% 10%, 20% 16%, 28% 0, 40% 13%, 52% 0, 62% 14%, 78% 3%, 82% 20%, 98% 14%, 92% 36%, 100% 52%, 91% 68%, 97% 90%, 80% 84%, 72% 100%, 60% 86%, 48% 100%, 38% 85%, 22% 97%, 19% 78%, 2% 84%, 9% 66%);
}
.theme-dark .boom { --c: var(--orange); color: #141414; }
.theme-bbg .boom { --c: var(--red); color: #fff; }
.pill, .tag, .n, .lbl, .bubble, .code { text-indent: 0; }

/* ---------- layout helpers ---------- */
.row { display: flex; align-items: center; gap: 14px; } .row.top { align-items: flex-start; }
.row.wrap { flex-wrap: wrap; } .row.around { justify-content: space-around; } .row.between { justify-content: space-between; }
.col { display: flex; flex-direction: column; gap: 8px; } .col.mid { align-items: center; }
.spread { justify-content: space-between; }
.grow { flex: 1; min-width: 0; min-height: 0; } .center { text-align: center; } .right { text-align: right; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; flex: 1; min-height: 0; }
.split > * { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.split > * + * { border-left: 5px dashed var(--ink); padding-left: 28px; }
.scatter { display: flex; flex-wrap: wrap; gap: 14px 26px; align-content: space-around; flex: 1; padding: 4px 8px; }
.scatter > :nth-child(even) { margin-left: auto; }

/* ---------- icons ---------- */
z-icon, z-actor { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; flex: none; text-align: center; }
.ico { fill: none; stroke: currentColor; stroke-width: 4.2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; filter: url(#pen); }
.ico .retrace { stroke-width: 1.8; opacity: .5; }
.ico .retrace * { fill: none; }
.cap { font-size: 18px; line-height: 1; }
.theme-bw .ico { filter: grayscale(1) contrast(1.15); }
.theme-bbg .i-server { --r1: #f3aaa4; --r2: #c9ef8f; --r3: #a9d4f5; }

/* ---------- arrows ---------- */
.arr { display: block; overflow: visible; }
.arr path { fill: none; stroke: var(--c, var(--ink)); stroke-width: var(--stroke); stroke-linecap: round; stroke-linejoin: round; }
.arr .halo { display: none; }
.theme-bbg .arr .halo { display: block; stroke: var(--halo); stroke-width: 24px; }
.arr.over { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.lbl { font-size: 18.5px; line-height: 1.1; text-align: center; display: inline-block; }
/* labels sit on a faint tinted chip (not a white box punched out of the lifelines) and stay on one line */
z-msg .lbl { background: var(--lblbg, #f2f5fd); padding: 1px 10px 3px; border-radius: 10px; white-space: nowrap; }
.theme-dark z-msg .lbl { --lblbg: var(--paper); }
z-seq.grow { align-content: space-between; }
z-arrow .lbl, z-link .lbl { white-space: nowrap; }
.theme-dark .lbl { color: var(--note); }
.slot { display: block; width: 100%; height: 30px; }

z-flow { display: flex; align-items: center; gap: 10px; width: 100%; }
z-link { flex: 1; min-width: 80px; display: flex; flex-direction: column; align-items: center; }

/* sequence diagram */
z-seq { position: relative; display: grid; row-gap: 5px; width: 100%; }
z-seq > z-actor { justify-self: center; z-index: 1; background: var(--paper); padding-bottom: 4px; }
z-seq > z-actor .cap { order: -1; background: var(--c, var(--pillbg)); color: var(--pillfg); padding: 1px 12px 4px; border-radius: 12px; font-size: 20px; --pen: 1.2px; margin-bottom: 5px; }
.theme-bbg z-seq > z-actor .cap { box-shadow: 3px 4px 0 var(--ink); }
z-seq > .life { position: absolute; bottom: 0; width: 0; border-left: 6px dashed var(--ink); translate: -3px 0; }
.theme-bbg z-seq > .life { border-left-width: 7px; outline: 9px solid #d6e6fa; outline-offset: -1px; border-radius: 8px; }
z-msg { display: flex; flex-direction: column; align-items: center; z-index: 1; }
z-self { z-index: 1; justify-self: center; background: var(--lblbg, #f2f5fd); padding: 2px 6px; font-size: 18px; line-height: 1.08; text-align: center; max-width: 125%; border-radius: 8px; }
.theme-dark z-self { color: var(--note); --lblbg: var(--paper); }

/* free-form stage: children are absolutely placed, z-arrow connects ids */
.stage { position: relative; flex: 1; min-height: 120px; }
.stage.fit { flex: none; }
.stage > * { position: absolute; }
.stage > z-arrow { z-index: 2; translate: -50% -50%; }

[data-overflow] { outline: 4px dotted magenta; }
.arr .retrace { stroke-width: 1.8px; opacity: .45; }

/* ---------- doodles (cover / title pages) ---------- */
/* masking tape label */
.tape { display: inline-block; background: rgba(243, 193, 63, .62); padding: 6px 26px 9px; font-size: 26px; rotate: -3deg; --pen: 1px; -webkit-text-stroke: var(--pen) currentColor;
  clip-path: polygon(0 8%, 3% 0, 6% 10%, 9% 2%, 100% 0, 97% 12%, 100% 26%, 97% 45%, 100% 62%, 97% 80%, 100% 100%, 0 100%, 3% 84%, 0 66%, 3% 48%, 0 30%); }
.tape.pinkt { background: rgba(196, 81, 127, .38); rotate: 4deg; }
/* hand-drawn loop around a word: an open pen loop that overshoots, with room so it never touches the next word */
.circled { position: relative; display: inline-block; padding: 0 6px; margin: 0 22px 0 14px; }
.circled::after { content: ""; position: absolute; inset: -16px -22px -12px -20px; rotate: -5deg; background: no-repeat center / 100% 100%
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 70' preserveAspectRatio='none'%3E%3Cpath d='M62 6C38 2 10 12 6 34c-3 18 18 30 44 30 26 0 46-10 45-30C94 16 74 6 50 8 34 9 22 14 16 20' fill='none' stroke='%23e2574c' stroke-width='4.5' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E"); }
.squiggle { width: 520px; height: 26px; margin-top: 2px; overflow: visible; }
.squiggle path { fill: none; stroke: var(--orange); stroke-width: 5; stroke-linecap: round; }
.doodle { position: absolute; overflow: visible; }
.doodle path { fill: currentColor; stroke: var(--ink); stroke-width: 2.2; stroke-linejoin: round; }
.doodle path.o { fill: #fff; stroke-width: 4; }
/* bbg's big title rule used to override .small; long titles need it to fit the sheet */
.theme-bbg .title.small { font-size: 104px; letter-spacing: 6px; -webkit-text-stroke-width: 8px; }
/* a pill in a stacked column is a label, not a bar: keep it at its own width */
.panel > .pill, .col:not(.mid) > .pill, .split > * > .pill { align-self: flex-start; }

/* ---------- highlighter swipes: the key phrase of a zone, marker-style ---------- */
.hl { white-space: nowrap; -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 7px 2px; margin: 0 1px; --pen: .9px; }
.hl b, .hl .wd { color: inherit; }
.theme-dark .hl { background: var(--c, var(--yellow)); color: #141414 !important; }
.theme-dark .hl.red { color: #fff !important; }

/* ---------- brand sticker on dark pages ---------- */
.theme-dark z-brand .at { color: var(--yellow); font-size: 54px; --pen: 2px; -webkit-text-stroke: var(--pen) currentColor; rotate: -8deg; translate: 0 -2px; }
.theme-dark z-brand .handle { background: var(--red); border: 3.5px solid #fff; box-shadow: 5px 6px 0 var(--yellow); padding: 2px 20px 6px; rotate: -2deg; }
.theme-dark z-brand .h { gap: 12px; }
.theme-dark z-brand .site { margin-top: 6px; }

/* stickers keep their size inside flex rows (else BOOM clips to BOO) */
.boom { flex: none; }

/* white pages: a highlighter is translucent ink, not a solid block (dark pages keep full markers) */
.theme-bbg .hl { background: color-mix(in srgb, var(--c, var(--yellow)) 42%, #fff); color: var(--ink); }

/* ---------- quad: 4 numbered quadrants around a centre hero (ByteByteGo "Session Identifiers" look) ----------
   <body class="theme-bbg quad" data-size="portrait">: ink arrows with a lime glow, black number discs,
   stacked title words on lime highlighter blobs, client <-> www cloud <-> server between them. */
body.quad { --halo: #d9f78a; --frame: #b6afcc; --lime: #c8f169; --mint: #a8e8cf; --teal: #5fd0c5; --navy: #3f3a7a; --stroke: 6px; }
.lime { --c: var(--lime); } .mint { --c: var(--mint); } .teal { --c: var(--teal); } .navy { --c: var(--navy); }
.navy { color: var(--c); }
.pill.lime, .pill.mint, .pill.teal, .tag.lime, .tag.mint, .tag.teal { --pillfg: #141414; color: #141414; }
body.quad::after { border-width: 12px; }
.quad .quadg { grid-template-rows: 1fr auto 1fr; gap: 6px 40px; }
.quad .panel { justify-content: flex-start; gap: 14px; padding: 6px 4px; }
/* quadrant header: black number disc + colour pills, no heading pill of its own */
.quad .panel > h2.qh { background: none; box-shadow: none; padding: 0; color: var(--ink); display: flex; align-items: center; gap: 16px; margin: 0 0 6px; }
.qn { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #141414; color: #fff; font-size: 44px; line-height: 1; box-shadow: 4px 5px 0 #c9c9c9; flex: none; --pen: 1.4px; }
.qh .pill { font-size: 46px; padding: 0 24px 8px; box-shadow: 4px 5px 0 var(--ink); margin: 0; }
/* step discs: light teal with an ink ring */
.quad .n { background: var(--teal); color: #141414; box-shadow: 0 0 0 3px var(--ink); margin-right: 7px; }
/* label chip riding an arrow ("username & password") */
.chip { display: inline-block; background: var(--mint); border: 3px solid var(--ink); padding: 0 8px 2px; font-size: 17px; line-height: 1.05; border-radius: 3px; text-align: center; white-space: nowrap; --pen: .9px; -webkit-text-stroke: var(--pen) currentColor; }
/* pills stacked under an icon: "Web" over "Server", "Client" */
.cap:has(.pill) { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 24px; margin-top: 4px; }
.cap .pill { margin: 0; font-size: 24px; padding: 0 14px 4px; }
/* handwritten aside in navy ("Heavy server", "Light weight server") */
.scrawl { font-size: 36px; color: var(--navy); --pen: 1.2px; -webkit-text-stroke: var(--pen) currentColor; rotate: -2deg; line-height: 1.05; }
/* self-loop + vertical arrows */
z-loop, z-down { display: inline-flex; align-items: center; gap: 4px; flex: none; }
z-loop .lbl, z-down .lbl { text-align: left; white-space: nowrap; }
.arr.loop { flex: none; }
/* fan-out: a vertical pill branching to rows */
.fan { display: flex; align-items: stretch; gap: 0; }
.fan > .vpill { align-self: center; writing-mode: vertical-rl; text-orientation: upright; letter-spacing: -6px; padding: 22px 8px 14px; font-size: 40px; box-shadow: 4px 5px 0 var(--ink); }
z-fan { display: block; width: 84px; flex: none; }
.fan > .fanrows { flex: 1; justify-content: space-around; gap: 10px; }
/* centre hero: title words on lime blobs with the client <-> www <-> server flow between them */
.quad .mast.hero { flex-direction: column; justify-content: center; gap: 2px; min-height: 0; padding: 0; }
.quad .hero .title { --tc: #3a3a3a; font-size: 112px; letter-spacing: 8px; -webkit-text-stroke-width: 8px; padding: 0; }
.quad .hero .title .w { background: var(--lime); padding: 6px 34px 0; border-radius: 46% 38% 42% 50% / 60% 48% 56% 44%; box-shadow: 0 0 16px 12px color-mix(in srgb, var(--lime) 75%, #fff); }
.quad .hero .title .w > span { text-shadow: none; }
.quad .hero .heroflow { align-self: stretch; padding: 0 30px; gap: 4px; }
.quad .hero .heroflow > z-link { min-width: 60px; }
.quad .hero z-brand { margin: 8px 0 0; flex-direction: row; align-items: center; gap: 18px; }
.incap { position: relative; }
.incap > .cap { position: absolute; top: 40%; left: 0; right: 0; font-size: 34px; letter-spacing: 3px; --pen: 1.4px; }
