@charset "UTF-8";
/* Cypher Rants — notebook theme. See DESIGN.md. Light is the default; dark via [data-theme="dark"]. */
:root{
  color-scheme:light;
  --paper:#d2c79d;--ink:#171612;--muted:#4f4a36;--line:#a89d70;--mark-bg:#171612;--mark-fg:#d2c79d;--pen:#2436c7;--pen-hl:rgba(36,54,199,.18);--code:#c6ba8e;
  --s1:#efdcc9;--s2:#e9cbb0;--s3:#dcb894;--s4:#c9a97e;--s5:#c48f62;--s6:#a9704a;--s7:#8a5636;--s8:#63402a;--s9:#45291b;
  --p1:#efdcc9;--p2:#e9cbb0;--p3:#dcb894;--p4:#c9a97e;--p5:#c48f62;--p6:#a9704a;--p7:#8a5636;--p8:#63402a;--p9:#45291b;
  --h-ink:#171612;--h-brown:#5a3a26;--h-auburn:#8a4b2a;--h-blond:#cdb063;--h-gray:#9a9890;--h-white:#e5e0d2;--h-purple:#6b4d8a;--h-teal:#4f8a86;
  --w-sage:rgba(150,165,130,.6);--w-blue:rgba(140,160,190,.6);--w-ochre:rgba(205,170,90,.6);--w-mauve:rgba(170,145,170,.6);--w-clay:rgba(190,125,100,.6);--w-gray:rgba(160,158,150,.5);
  --red:#b8433a;--green:#4f8a5a;--cheek:rgba(213,154,154,.4);
  --sketch:255px 15px 225px 15px/15px 225px 15px 255px;
  --text:'Patrick Hand',cursive;--mono:'IBM Plex Mono',ui-monospace,Menlo,Consolas,monospace;--hand:Caveat,cursive;
}
:root[data-theme="dark"]{
  color-scheme:dark;
  --paper:#17160f;--ink:#e6dcb2;--muted:#9b9370;--line:#3b3826;--mark-bg:#e6dcb2;--mark-fg:#17160f;--pen:#9aa8ff;--pen-hl:rgba(122,140,255,.26);--code:#201f15;
  /* doodle tokens: not an inversion — skin one step darker than the line, pencil one step lighter than the page, hair a warm charcoal, washes as glazes */
  --s1:#8a7a66;--s2:#8c745c;--s3:#8f7050;--s4:#8c6a45;--s5:#8d5f3b;--s6:#7c4e30;--s7:#663d25;--s8:#52301c;--s9:#3e2314;
  --p1:#e8d6c0;--p2:#dcc3a5;--p3:#cfb18a;--p4:#c2a074;--p5:#bf8f62;--p6:#ad7a52;--p7:#9b6a45;--p8:#8a5a3a;--p9:#7a4d30;
  --h-ink:#4a4436;--h-brown:#6b4a30;--h-auburn:#94522f;--h-blond:#b09a55;--h-gray:#7a786f;--h-white:#a9a598;--h-purple:#7a5c9c;--h-teal:#4f8a86;
  --w-sage:rgba(190,200,170,.26);--w-blue:rgba(170,190,225,.28);--w-ochre:rgba(225,190,110,.28);--w-mauve:rgba(205,180,210,.28);--w-clay:rgba(225,150,120,.28);--w-gray:rgba(200,198,190,.2);
  --red:#e0655a;--green:#7fbf8a;--cheek:rgba(230,150,150,.35);
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--paper);color:var(--ink);font:18px/1.55 var(--text)}
code,pre,kbd,time,.meta,.chip,.path,.stamp,.cr,.turn .who,.castchip .who,.lbl{font-family:var(--mono)}
/* paper grain, both themes */
body::after{content:"";position:fixed;inset:0;pointer-events:none;z-index:9;mix-blend-mode:overlay;opacity:.34;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E")}
a{color:inherit;text-underline-offset:4px}
a:hover{color:var(--pen)}
a:focus-visible,button:focus-visible{outline:2px solid var(--pen);outline-offset:4px}
button{font:inherit;color:inherit;-webkit-tap-highlight-color:transparent}
h1,h2,h3{letter-spacing:-.03em;line-height:1.15}
.skip{position:fixed;top:-100px;left:10px;background:var(--mark-bg);color:var(--mark-fg);padding:8px 12px;z-index:20}
.skip:focus{top:10px}
svg{overflow:visible}

/* ---- ink devices ---- */
.mark{background:var(--mark-bg);color:var(--mark-fg);padding:0 .3em;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.hl{background:var(--pen-hl);color:var(--ink);padding:0 .12em;border-radius:3px 7px 4px 6px;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.pen{color:var(--pen)}
.muted{color:var(--muted)}
.hand{font-family:var(--hand);font-size:24px;font-weight:500;line-height:1.1;letter-spacing:.01em;color:var(--pen)}
.sketch,.tog,.chip,.card,.bubble{border:1.5px solid var(--ink);border-radius:var(--sketch)}
.rule{display:flex;justify-content:space-between;align-items:baseline;gap:16px;border-bottom:1.5px solid var(--line);padding-bottom:14px;font-size:17px}
.rule .muted{text-align:right}
.stamp{display:inline-block;font-size:13px;font-weight:600;letter-spacing:.06em;padding:2px 10px;border:2px solid currentColor;box-shadow:inset 0 0 0 3px var(--paper),inset 0 0 0 4px currentColor;transform:rotate(-7deg);opacity:.9}
.stamp-red{color:var(--red)}
.stamp-green{color:var(--green)}

/* ---- doodles ---- */
.doodle{display:inline-block;width:var(--size,120px);height:var(--size,120px);color:var(--ink);line-height:0;flex:none}
.doodle svg{width:100%;height:100%;display:block;overflow:visible}
.glyph{display:inline-block;width:1.25em;height:1.25em;vertical-align:-.3em;margin:0 .1em;color:currentColor}
.scene{display:block;width:100%}
.scene svg{width:100%;height:auto;display:block;overflow:visible}

/* ---- shell ---- */
.shell{display:flex;min-height:100vh}
.rail{width:300px;flex:none;position:sticky;top:0;height:100vh;overflow:auto;border-right:1.5px solid var(--line);padding:44px 34px 36px;display:flex;flex-direction:column;gap:22px}
.rail-portrait{display:block;line-height:0;text-decoration:none}
.rail-portrait .doodle{transform:rotate(-2deg)}
.wordmark{display:flex;align-items:center;gap:10px;font-size:20px;text-decoration:none}
.cr{display:inline-block;padding:1px 8px;background:var(--mark-bg);color:var(--mark-fg);transform:rotate(-3deg);font-weight:600;font-size:16px;line-height:1.5}
.intro{margin:-10px 0 0;font-size:16px;line-height:1.5;color:var(--muted)}
.menu{display:none}
.rnav{display:flex;flex-direction:column;gap:4px;font-size:18px}
.rnav a{display:flex;align-items:center;gap:8px;color:var(--muted);text-decoration:none;padding:4px 0;min-height:32px}
.rnav a.on{color:var(--ink)}
.rnav a:hover{color:var(--pen)}
.rnav .arr{width:22px;height:10px;flex:none;color:var(--pen);visibility:hidden}
.rnav .arr svg{width:22px;height:10px;display:block}
.rnav a.on .arr{visibility:visible}
.tog{display:inline-flex;align-items:center;gap:7px;font-size:15px;padding:7px 14px;background:transparent;cursor:pointer;align-self:flex-start;min-height:40px}
.tog-icon{width:14px;height:14px;display:inline-block}
.tog-icon svg{width:14px;height:14px;display:block}
.rail-foot{margin-top:auto;display:flex;flex-direction:column;gap:12px;font-size:15px;color:var(--muted)}
.socials{display:flex;flex-wrap:wrap;gap:10px}
.socials a{display:inline-flex;align-items:center;gap:6px;padding:4px 12px;min-height:36px;border:1.5px solid var(--ink);border-radius:var(--sketch);color:var(--ink);text-decoration:none;font-size:15px;line-height:1.2}
.socials a:hover{color:var(--pen);border-color:var(--pen)}
.main{flex:1;min-width:0;padding:52px 64px 48px;display:flex;flex-direction:column;gap:36px}
.push{flex:1}

/* ---- home ---- */
.empty-fig{margin:0;display:flex;flex-direction:column;gap:10px;align-items:center;padding:26px 0 8px}
.empty-fig .scene{max-width:960px}
.fig.empty-fig figcaption{font-size:16px;font-family:inherit;color:var(--muted)}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(360px,1fr));gap:36px 32px;padding-top:12px}
.card{position:relative;padding:24px 26px 20px 116px;display:flex;flex-direction:column;gap:6px;min-height:156px;text-decoration:none;color:inherit}
.card:nth-child(odd){transform:rotate(-.4deg)}
.card:nth-child(even){transform:rotate(.4deg)}
.card:hover{color:inherit;border-color:var(--pen)}
.card-doodle{position:absolute;left:-10px;top:-18px}
.card time{font-size:12px;color:var(--muted)}
.card h3{margin:0;font-size:24px;font-weight:400;line-height:1.25}
.card p{margin:0;color:var(--muted);font-size:16px;line-height:1.5}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.chip{display:inline-block;font-size:11px;padding:1px 9px;border-width:1.2px;border-color:currentColor;line-height:1.7;color:var(--muted);text-decoration:none}
.chip.pen{color:var(--pen)}
.card.ghost{border-style:dashed;border-color:var(--muted);color:var(--muted);padding-left:26px;justify-content:center;transform:none}
.card.ghost .hand{font-size:22px}
.card.ghost .path{font-size:12px}
.cast-section{display:flex;flex-direction:column;gap:10px}
.cast{display:flex;flex-wrap:wrap;gap:22px 28px;align-items:flex-end;padding-top:10px}
.castchip{display:flex;flex-direction:column;align-items:center;gap:0;text-decoration:none}
.castchip .who{font-size:12px;margin-top:-4px}
.castmore{align-self:center;text-decoration:none;transform:rotate(-4deg);display:inline-block;margin-left:6px}

/* ---- article ---- */
.article{max-width:924px;display:flex;flex-direction:column;gap:28px}
.back{font-size:16px;text-decoration:none;display:inline-flex;align-items:center;gap:8px;min-height:32px}
.back svg{width:22px;height:10px}
.article-head{display:grid;grid-template-columns:640px 240px;column-gap:44px;align-items:end;padding-bottom:28px;border-bottom:1.5px solid var(--line)}
.article-title{display:flex;flex-direction:column;gap:12px}
.meta{margin:0;font-size:13px;color:var(--muted)}
.article-head h1{margin:0;font-size:56px;font-weight:400;line-height:1.05;letter-spacing:-.01em;overflow-wrap:anywhere}
.lede{margin:0;font-size:20px;color:var(--muted)}
.article-cover{display:flex;flex-direction:column;align-items:center;gap:6px;position:relative}
.article-cover .doodle{transform:rotate(3deg)}
.article-cover .stamp{position:absolute;right:-10px;bottom:10px;font-size:18px}
.prose{width:640px;max-width:100%;font-size:19px;line-height:1.55}
.prose>*:first-child{margin-top:0}
.prose p,.prose ul,.prose ol{margin:0 0 20px}
/* h2s render as marks automatically, so Markdown stays plain ## headings */
.prose h2{display:table;margin:30px 0 12px;font-size:24px;font-weight:400;background:var(--mark-bg);color:var(--mark-fg);padding:0 .3em}
.prose h3{margin:24px 0 8px;font-size:21px;font-weight:400}
.prose img{max-width:100%;height:auto}
.prose li{margin:4px 0}
.prose code{font-size:.8em;background:var(--code);padding:.08em .35em;border-radius:3px}
.prose pre{margin:0 0 22px;padding:18px 22px;background:var(--code);border:1.5px solid var(--line);border-radius:3px 9px 4px 8px;overflow:auto;font-size:14.5px;line-height:1.6}
.prose pre code{background:none;padding:0;font-size:inherit}
.prose blockquote{margin:0 0 22px;padding:2px 0 2px 22px;border-left:3px solid var(--pen);color:var(--muted);font-style:italic}
.prose blockquote p:last-child{margin-bottom:0}
.prose a{color:var(--pen)}
.prose hr{border:0;border-top:1.5px solid var(--line);margin:28px 0}
.prose table{border-collapse:collapse;width:100%;font-size:17px;margin:0 0 22px}
.prose th,.prose td{text-align:left;padding:8px 10px;border-bottom:1px solid var(--line)}
.prose th{font-weight:400;text-decoration:underline;text-underline-offset:4px}
/* sticky note: > note: … */
.prose blockquote.note{position:relative;border:0;background:var(--w-ochre);color:var(--ink);font-style:normal;padding:20px 22px 16px;font-size:18px;transform:rotate(-1.2deg);border-radius:4px 10px 5px 9px;max-width:560px;margin:8px 0 28px}
.prose blockquote.note::before{content:"note";position:absolute;top:-16px;left:16px;transform:rotate(-4deg);font-family:Caveat,cursive;font-size:24px;color:var(--pen)}
/* margin column: sidenotes and reactions float into the 240px margin */
.prose .aside,.prose .react{float:right;clear:right;width:240px;margin:0 -284px 18px 0;font-family:var(--hand);font-size:23px;font-weight:500;line-height:1.15;color:var(--pen)}
.prose .react{display:flex;flex-direction:column;align-items:center;gap:8px;font-family:inherit;color:inherit}
.prose .react .bubble{font-size:18px;padding:6px 12px;position:relative;background:var(--paper)}
.fig{margin:8px 0 28px;width:924px;max-width:none;clear:both;display:flex;flex-direction:column;align-items:center;gap:8px;padding:14px 0 10px;border-top:1.5px solid var(--line);border-bottom:1.5px solid var(--line)}
.fig img{max-width:100%;height:auto}
.fig figcaption{font-size:21px}
.dlg{display:flex;flex-direction:column;gap:18px;margin:6px 0 26px;clear:both}
.turn{display:flex;align-items:center;gap:14px}
.turn.r{flex-direction:row-reverse}
.turn>div{display:flex;flex-direction:column;gap:2px;align-items:flex-start}
.turn.r>div{align-items:flex-end}
.turn .who{font-size:12px;color:var(--muted)}
.bubble{position:relative;padding:10px 18px;font-family:var(--hand);font-size:20px;font-weight:500;line-height:1.25;max-width:360px;background:var(--paper);margin:0;border-radius:14px 18px 16px 20px/18px 14px 20px 16px}
.bubble code{font-size:.7em;vertical-align:1px}
/* drawn tails (see _includes/tail.html): a wedge whose base sits 4px inside the bubble so its fill hides the border; only the two sides are stroked */
.tail{position:absolute;overflow:visible;pointer-events:none;width:26px;height:24px}
.tail-fill{fill:var(--paper);stroke:none}
.tail-line{fill:none;stroke:var(--ink);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.tail-left{left:-22px;top:calc(50% - 12px)}
.tail-right{right:-22px;top:calc(50% - 12px);transform:scaleX(-1)}
.tail-up{top:-22px;left:calc(50% - 13px);transform:rotate(90deg)}
.post-nav{clear:both;border-top:1.5px solid var(--line);padding-top:24px;display:flex;justify-content:space-between;align-items:center;gap:20px;font-size:16px;flex-wrap:wrap}
.post-nav a{text-decoration:none;min-height:32px;display:inline-flex;align-items:center}
.byline{display:flex;align-items:center;gap:12px}

/* ---- about / cast / 404 ---- */
.about{display:grid;grid-template-columns:minmax(0,600px) 1fr;gap:40px;align-items:center}
.about-text{display:flex;flex-direction:column;gap:14px;font-size:19px}
.about-text h1{margin:0;font-size:46px;font-weight:400;letter-spacing:-.01em}
.about-text p{margin:0}
.about-text .chips{margin-top:6px}
.about-text .chip{font-size:12px;padding:3px 12px;min-height:32px;display:inline-flex;align-items:center}
.about-portrait{display:flex;flex-direction:column;align-items:center;gap:0}
.about-portrait .doodle{transform:rotate(-2deg)}
.about-portrait .hand{transform:rotate(-3deg);font-size:26px}
.cast-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:24px 16px;padding-top:16px}
.member{display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px;scroll-margin-top:24px}
.member .hand{margin-top:-10px;font-size:28px}
.member .muted{font-size:15px;line-height:1.4;max-width:200px}
.member:target .doodle{outline:1.5px dashed var(--pen);outline-offset:6px;border-radius:50%}
.lost{display:flex;align-items:center;gap:36px;padding:40px 0}
.lost h1{margin:0 0 10px;font-size:40px;font-weight:400}

/* ---- components page ---- */
.spec{display:flex;flex-direction:column;gap:18px}
.spec>.lbl{font-size:12px;color:var(--muted)}
.swatches{display:flex;flex-wrap:wrap;gap:12px}
.swatch{display:flex;flex-direction:column;align-items:center;gap:4px;font-size:11px;color:var(--muted)}
.swatch i{display:block;width:54px;height:54px;border-radius:50%;border:1.5px solid var(--line)}
.things{display:flex;flex-wrap:wrap;gap:18px}
.things span.doodle{width:72px;height:72px}

/* ---- mobile ---- */
@media (max-width:900px){
  .shell{display:block}
  .rail{position:static;height:auto;width:auto;border-right:0;border-bottom:1.5px solid var(--line);padding:12px 18px;display:grid;grid-template-columns:auto 1fr auto auto;align-items:center;gap:6px 12px}
  .rail-portrait .doodle{width:40px;height:40px;transform:none}
  .wordmark{font-size:17px}
  .intro,.rail-foot{display:none}
  .menu{display:inline-flex;align-items:center;font-size:15px;padding:5px 12px;background:transparent;border:1.5px solid var(--ink);border-radius:var(--sketch);cursor:pointer;min-height:40px}
  .tog{order:3;padding:6px 10px}
  .tog .tog-label{display:none}
  .menu{order:4}
  .rnav{display:none;grid-column:1/-1;flex-direction:row;flex-wrap:wrap;gap:4px 18px;padding:8px 0 4px}
  .rail.open .rnav{display:flex}
  .main{padding:26px 18px 40px;gap:26px}
  .grid{grid-template-columns:1fr;gap:30px}
  .card{padding:18px 18px 16px 96px;min-height:120px}
  .card-doodle{left:-8px;top:-14px}
  .card-doodle .doodle{width:92px;height:92px}
  .card h3{font-size:21px}
  .empty-fig{padding:10px 0 0}
  .article-head{grid-template-columns:1fr;row-gap:18px}
  .article-head h1{font-size:38px}
  .article-cover{align-items:flex-start}
  .prose{width:auto}
  .prose .aside,.prose .react{float:none;width:auto;margin:6px 0 20px}
  .prose .react{flex-direction:row;align-items:center;gap:12px}
  .prose .react .tail-up{top:calc(50% - 12px);left:-22px;transform:none}
  .fig{width:100%}
  .about{grid-template-columns:1fr}
  .about-text h1{font-size:34px}
  .lost{flex-direction:column;align-items:flex-start;gap:16px}
  .cast{gap:12px 14px;justify-content:space-between}
  .castchip .doodle{width:68px;height:68px}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}
