@font-face { font-family: "BookDisplay"; src: url("/assets/fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "BookDisplay"; src: url("/assets/fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "BookSans"; src: url("/assets/fonts/nunito-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "BookSans"; src: url("/assets/fonts/nunito-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "BookSans"; src: url("/assets/fonts/nunito-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "BookSans"; src: url("/assets/fonts/nunito-sans-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "BookHand"; src: url("/assets/fonts/caveat-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "BookHand"; src: url("/assets/fonts/caveat-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "BookMarker"; src: url("/assets/fonts/patrick-hand-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "BookMono"; src: url("/assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
/* The Someday Folder: comic scrapbook, from the book's print.css palette.
   Layout: one column of taped-in sections on cream paper; the cover's sun yellow
   is the accent band at the top and the bottom. Single light look by design (the book
   is a printed scrapbook), with every colour set explicitly. */
:root {
  --ink: #1d2233;
  --text: #272c3d;
  --muted: #5c6272;
  --paper: #fdf8ee;
  --card: #ffffff;
  --rule: #ddd3c1;
  --sticky: #ffe680;
  --tape: rgba(236, 222, 186, 0.92);
  --sun: #ffc93c;   --sun-tint: #fff0bf;   --sun-ink: #8a5a00;
  --coral: #ff6b5b; --coral-tint: #ffe3dd; --coral-ink: #c23a2b;
  --teal: #17a398;  --teal-tint: #dcf2ee;  --teal-ink: #0b6f68;
  --grape: #9b87f5; --grape-tint: #ece8ff; --grape-ink: #5d47c9;
  --leaf: #7dcf6b;  --leaf-tint: #e5f6df;  --leaf-ink: #2f7d27;
  --f-display: "BookDisplay", "Bricolage Grotesque", "Arial Black", sans-serif;
  --f-body: "BookSans", "Nunito Sans", "Helvetica Neue", Arial, sans-serif;
  --f-hand: "BookHand", "Caveat", "Comic Sans MS", cursive;
  --f-marker: "BookMarker", "Patrick Hand", "Comic Sans MS", cursive;
  --f-mono: "BookMono", "IBM Plex Mono", Menlo, monospace;
  --w: 1080px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--coral-ink); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; border-radius: 3px; }
code { font-family: var(--f-mono); font-size: 0.9em; background: var(--sun-tint); padding: 0.05em 0.35em; border-radius: 4px; }
h1, h2, h3 { font-family: var(--f-display); color: var(--ink); line-height: 1.1; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.45rem); font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; font-weight: 800; }
p { margin: 0; }
.prose { display: grid; gap: 0.9em; min-width: 0; max-width: 62ch; }
.wrap {
  max-width: var(--w); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.narrow { max-width: 760px; }
.two { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--card); padding: 8px 12px; z-index: 5; }

/* banner */
.banner { background: var(--ink); color: #fff; font-size: 0.92rem; }
.banner-in { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; padding-block: 9px; }
.banner a { color: var(--sun); font-weight: 700; }
.banner-tag { font-family: var(--f-display); font-weight: 800; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; background: var(--coral); color: #fff; padding: 3px 9px; border-radius: 999px; transform: rotate(-2deg); }

/* hero */
.hero { background: var(--sun); border-bottom: 2px solid var(--ink); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(24px, 5vw, 64px); align-items: center; padding-block: clamp(36px, 6vw, 76px); }
.hero-copy { display: grid; gap: 18px; min-width: 0; }
.eyebrow { font-family: var(--f-hand); font-size: 1.45rem; color: var(--ink); line-height: 1; }
.hero-title { font-size: clamp(3rem, 2rem + 6vw, 6.2rem); font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; line-height: 0.92; }
.hero-title > span { display: block; }
.ht-note::after { content: attr(data-note); }
.ht-the, .ht-folder { font-size: 0.86em; }
.ht-some { position: relative; width: fit-content; }
.ht-some::before { content: "\201C"; }
.ht-some::after { content: "\201D"; }
.ht-note { position: absolute; left: 30%; top: -0.78em; font-family: var(--f-hand); font-weight: 600; font-size: 0.42em; text-transform: none; color: var(--coral-ink); transform: rotate(-8deg); letter-spacing: 0; }
.hero-sub { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.15rem, 1rem + 0.8vw, 1.5rem); color: var(--ink); line-height: 1.25; border-top: 3px solid var(--ink); padding-top: 14px; max-width: 30ch; }
.hero-lead { max-width: 56ch; color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 22px; border: 2px solid var(--ink); border-radius: 12px; font-family: var(--f-display); font-weight: 800; font-size: 1.05rem; text-decoration: none; color: var(--ink); transition: transform 0.12s ease, box-shadow 0.12s ease; }
.btn-main { background: var(--coral); color: #fff; box-shadow: 4px 4px 0 var(--ink); }
.btn-main:hover { color: #fff; transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--sun-tint); }
.btn-ink { background: var(--ink); color: var(--sun); box-shadow: 4px 4px 0 var(--coral); }
.btn-ink:hover { color: var(--sun); transform: translate(-2px, -2px); }
.cta-note { font-size: 0.92rem; color: var(--ink); max-width: 52ch; }
.hero-cover { position: relative; justify-self: center; width: min(100%, 340px); transform: rotate(3deg); }
.hero-cover img { display: block; width: 100%; border: 2px solid var(--ink); border-radius: 4px; box-shadow: 10px 10px 0 var(--ink); }
.hero-cover::before { content: ""; position: absolute; z-index: 1; top: -12px; left: 50%; width: 120px; height: 26px; margin-left: -60px; background: var(--tape); transform: rotate(-4deg); border-left: 1.5px dotted rgba(140, 120, 80, 0.4); border-right: 1.5px dotted rgba(140, 120, 80, 0.4); }

/* sections */
.sec { padding-block: clamp(56px, 8vw, 96px); }
.sec + .sec { border-top: 1.5px dashed var(--rule); }
.sec > .wrap > h2 { margin-bottom: 18px; }
.sec-lead { max-width: 64ch; margin-bottom: 28px; }
.folder h2 { margin-bottom: 4px; }

/* bingo */
.bingo-card { margin: 0; background: var(--card); border: 2px solid var(--ink); border-radius: 14px; box-shadow: 6px 6px 0 var(--ink); padding: 16px; transform: rotate(-1deg); min-width: 0; }
.bingo-card figcaption { font-size: 0.92rem; margin-bottom: 12px; color: var(--muted); }
.bingo-title { display: block; font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; color: var(--ink); letter-spacing: 0.12em; text-transform: uppercase; }
.bingo { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.bingo button { width: 100%; min-height: 76px; padding: 8px 6px; border: 1.5px solid var(--ink); border-radius: 8px; background: var(--paper); font: 600 0.82rem/1.25 var(--f-body); color: var(--ink); cursor: pointer; }
.bingo button[aria-pressed="true"] { background: var(--sun); position: relative; }
.bingo button[aria-pressed="true"]::after { content: ""; position: absolute; inset: 10px; border: 3px solid var(--coral); border-radius: 50%; opacity: 0.75; transform: rotate(-8deg); pointer-events: none; }
.bingo .free button { background: var(--coral-tint); font-family: var(--f-hand); font-size: 1rem; }
.bingo-out { margin-top: 12px; font-family: var(--f-hand); font-size: 1.3rem; color: var(--muted); }
.bingo-out.won { color: var(--coral-ink); }

/* figures */
figure { margin: 0; }
.taped { position: relative; background: var(--card); border: 1px solid var(--rule); border-radius: 3px; padding: 16px 16px 12px; box-shadow: 0 4px 6px -2px rgba(80, 60, 20, 0.16); min-width: 0; }
.taped::before { content: ""; position: absolute; z-index: 1; top: -11px; left: 50%; width: 96px; height: 22px; margin-left: -48px; background: var(--tape); transform: rotate(-2deg); border-left: 1.5px dotted rgba(140, 120, 80, 0.4); border-right: 1.5px dotted rgba(140, 120, 80, 0.4); }
figcaption { font-size: 0.86rem; color: var(--muted); margin-top: 10px; line-height: 1.45; }
.fig svg { display: block; width: 100%; }
.thesis { margin: 6px 0 0; padding: 16px 20px; background: var(--sticky); color: var(--ink); font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; line-height: 1.35; border-radius: 2px 2px 18px 2px; box-shadow: 0 4px 4px -2px rgba(90, 70, 0, 0.25); transform: rotate(-0.6deg); }

/* loop */
.c-sun { --c: var(--sun); --ct: var(--sun-tint); --ci: var(--sun-ink); }
.c-coral { --c: var(--coral); --ct: var(--coral-tint); --ci: var(--coral-ink); }
.c-teal { --c: var(--teal); --ct: var(--teal-tint); --ci: var(--teal-ink); }
.c-grape { --c: var(--grape); --ct: var(--grape-tint); --ci: var(--grape-ink); }
.c-leaf { --c: var(--leaf); --ct: var(--leaf-tint); --ci: var(--leaf-ink); }
.c-ink { --c: var(--ink); --ct: var(--card); --ci: var(--ink); }
.loop-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: step; }
.loop-steps li { position: relative; display: grid; gap: 8px; align-content: start; padding: 18px 16px 16px; background: var(--ct); border: 2px solid var(--ink); border-radius: 14px; box-shadow: 4px 4px 0 var(--ink); }
.loop-steps li:last-child::after { content: "\21BB"; right: 12px; top: 14px; color: var(--ci); font-size: 1.3rem; }
.step-k { font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; color: var(--ci); line-height: 1; }
.step-q { font-size: 0.95rem; }
.step-p { font-family: var(--f-hand); font-size: 1.15rem; color: var(--ink); }

/* inside */
.inside-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.toc { min-width: 0; }
.toc h3 { margin-bottom: 14px; }
.toc-part { margin: 0 0 16px; }
.toc-part-h { display: flex; gap: 8px; align-items: baseline; font-family: var(--f-display); font-weight: 800; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
.toc-part-h span { background: var(--ct); border: 1.5px solid var(--ink); border-radius: 999px; padding: 2px 10px; }
.toc ol { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.toc li { display: grid; grid-template-columns: 2.2em minmax(0, 1fr) auto; gap: 8px; align-items: baseline; padding: 3px 0; border-bottom: 1px dotted var(--rule); }
.toc .n { font-family: var(--f-display); font-weight: 800; color: var(--ci); text-align: right; }
.toc .when { font-family: var(--f-hand); font-size: 1rem; color: var(--muted); white-space: nowrap; }
.toc .when.out { color: var(--leaf-ink); }
.extras { display: grid; gap: 26px; min-width: 0; }
.move-card { position: relative; background: var(--card); border: 2px solid var(--ink); border-radius: 16px; box-shadow: 5px 5px 0 var(--ink); overflow: visible; }
.move-card::before { content: ""; position: absolute; z-index: 1; right: -16px; top: 6px; width: 64px; height: 20px; background: var(--tape); transform: rotate(38deg); }
.mc-head { display: flex; gap: 10px; align-items: center; background: var(--sun); border-bottom: 2px solid var(--ink); border-radius: 14px 14px 0 0; padding: 10px 14px; }
.mc-id { font-family: var(--f-display); font-weight: 800; font-size: 0.75rem; background: var(--card); border: 1.5px solid var(--ink); border-radius: 999px; padding: 2px 9px; color: var(--ink); }
.mc-name { font-family: var(--f-display); font-weight: 800; font-size: 1.2rem; color: var(--ink); }
.mc-motto { font-family: var(--f-hand); font-size: 1.3rem; color: var(--ink); padding: 8px 14px 6px; border-bottom: 1.5px dashed var(--ink); }
.mc-rows { margin: 0; padding: 4px 14px 12px; }
.mc-rows div { display: grid; grid-template-columns: 5.6em minmax(0, 1fr); gap: 10px; padding: 7px 0; border-bottom: 1px dotted var(--rule); font-size: 0.93rem; }
.mc-rows div:last-child { border-bottom: 0; }
.mc-rows dt { font-family: var(--f-marker); color: var(--sun-ink); }
.mc-rows dd { margin: 0; }
.kit { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.kit li { padding-left: 30px; position: relative; }
.kit li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border: 2px solid var(--ink); border-radius: 4px; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.5L5 9.5L10.5 2.5' fill='none' stroke='%23c23a2b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat; }

/* cast */
.cast-grid { align-items: start; }
.comic { background: var(--card); border: 2px solid var(--ink); border-radius: 8px; box-shadow: 6px 6px 0 var(--ink); padding: 10px 10px 6px; min-width: 0; }
.comic svg { display: block; width: 100%; }
.comic figcaption { font-family: var(--f-marker); font-size: 1.05rem; color: var(--ink); text-align: center; }

/* drops */
.drops { background: var(--card); }
.wip-map { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.wip-stop { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1.5px dashed var(--rule); border-radius: 12px; background: var(--paper); min-width: 0; }
.wip-stop.is-done { border-style: solid; border-color: var(--ink); }
.wip-stop.is-here { background: var(--ct); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.wip-dot { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 0.85rem; background: var(--card); border: 1.5px dashed var(--muted); color: var(--ink); }
.is-done .wip-dot, .is-here .wip-dot { background: var(--c); border: 1.5px solid var(--ink); }
.c-ink.is-here .wip-dot, .c-ink.is-done .wip-dot { color: #fff; }
.wip-body { min-width: 0; }
.wip-date { font-family: var(--f-hand); font-size: 1.15rem; line-height: 1; color: var(--ci); }
.wip-title { font-family: var(--f-display); font-weight: 800; font-size: 1.02rem; color: var(--ink); line-height: 1.2; }
.wip-sub { font-size: 0.85rem; color: var(--muted); }
.wip-tag { position: absolute; top: -10px; right: 10px; font-family: var(--f-display); font-weight: 800; font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; border: 1.5px solid var(--ink); }
.is-done .wip-tag { background: var(--leaf-tint); color: var(--leaf-ink); }
.is-here .wip-tag { background: var(--coral); color: #fff; transform: rotate(-4deg); }
.log-ask { margin-top: clamp(32px, 5vw, 56px); align-items: start; }
.build-log h3 { margin-bottom: 12px; }
.log { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.log li { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 12px; font-size: 0.95rem; }
.log time { font-family: var(--f-hand); font-size: 1.12rem; color: var(--coral-ink); line-height: 1.3; }
.follow { margin-top: 16px; font-weight: 700; }
.sticky { position: relative; background: var(--sticky); color: var(--ink); padding: 22px 22px 18px; border-radius: 2px 2px 22px 2px; box-shadow: 0 5px 5px -2px rgba(90, 70, 0, 0.25); transform: rotate(-1deg); }
.sticky::before { content: ""; position: absolute; top: -11px; left: 40%; width: 100px; height: 22px; background: var(--tape); transform: rotate(-3deg); }
.sticky-k { font-family: var(--f-hand); font-weight: 600; font-size: 1.6rem; line-height: 1; margin-bottom: 8px; }
.sticky ol { margin: 0 0 10px; padding-left: 1.3em; display: grid; gap: 4px; }
.sticky li::marker { font-family: var(--f-display); font-weight: 800; color: var(--coral-ink); }
.sticky-r { font-size: 0.9rem; }
.sticky a { color: var(--teal-ink); }

/* fit */
.fit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.fit-grid > div { padding: 20px; border-radius: 14px; border: 2px solid var(--ink); background: var(--card); }
.fit-yes { box-shadow: 4px 4px 0 var(--leaf); }
.fit-no { box-shadow: 4px 4px 0 var(--coral); }
.fit-grid h3 { margin-bottom: 10px; }
.fit-grid ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }

/* faq */
.faq details { border-bottom: 1.5px dashed var(--rule); padding: 14px 0; }
.faq summary { cursor: pointer; font-family: var(--f-display); font-weight: 800; font-size: 1.12rem; color: var(--ink); list-style: none; display: flex; gap: 12px; justify-content: space-between; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--coral-ink); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin-top: 10px; max-width: 64ch; }

/* author */
.author .narrow { display: grid; gap: 14px; }
.links { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.links a { display: inline-block; padding: 6px 14px; border: 1.5px solid var(--ink); border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 0.92rem; background: var(--card); }
.links a:hover { background: var(--sun-tint); }

/* closing */
.closing { background: var(--sun); border-top: 2px solid var(--ink); }
.closing-in { display: grid; gap: 22px; justify-items: start; padding-block: clamp(56px, 8vw, 96px); }
.closing h2 { font-size: clamp(1.8rem, 1.2rem + 2.6vw, 3rem); max-width: 22ch; }
.closing mark { background: var(--ink); color: var(--sun); padding: 0 0.15em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.foot { background: var(--ink); color: #c9ccd6; font-size: 0.88rem; }
.foot-in { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-block: 22px; }
.foot a { color: var(--sun); margin-right: 14px; }

@media (max-width: 860px) {
  .two, .inside-grid, .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-cover { width: min(70%, 300px); order: -1; margin-top: 12px; }
  .loop-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wip-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .loop-steps, .wip-map, .fit-grid { grid-template-columns: minmax(0, 1fr); }
  .bingo button { min-height: 68px; font-size: 0.76rem; }
  .log li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .toc li { grid-template-columns: 1.8em minmax(0, 1fr); }
  .toc .when { grid-column: 2; }
}
