:root {
  --paper: #f7f2e7;
  --paper-2: #efe7d6;
  --ink: #1f1c24;
  --ink-2: #4a4550;
  --ink-3: #7c7581;
  --rule: #d9cfbd;
  --grid: rgba(43, 69, 184, .075);
  --magenta: #d21f97;
  --magenta-soft: rgba(230, 60, 170, .28);
  --blue: #2b45b8;
  --blue-soft: rgba(70, 110, 230, .22);
  --flame: #e8622a;
  --moss: #3f6b3c;
  --hand: "Kalam", "Comic Neue", cursive;
  --brush: "Caveat Brush", "Kalam", cursive;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --r-box: 255px 18px 225px 18px / 18px 225px 18px 255px;
  --r-box2: 18px 225px 18px 255px / 255px 18px 225px 18px;
  --shadow: 0 1px 1px rgba(0,0,0,.08), 0 18px 30px -22px rgba(30,20,40,.55);
  --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
body {
  margin: 0; color: var(--ink); font-family: var(--hand); font-size: 1.125rem; line-height: 1.55;
  background-color: var(--paper);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
kbd { font-family: var(--mono); font-size: .72em; border: 1px solid var(--ink-3); border-bottom-width: 2px; border-radius: 4px; padding: .05em .4em; background: var(--paper); color: var(--ink); }
:focus-visible { outline: 2.5px dashed var(--magenta); outline-offset: 4px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: .4rem .8rem; border-radius: 6px; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2.5rem); }
.mono { font-family: var(--mono); font-size: .78rem; letter-spacing: .02em; }
.tag { color: var(--magenta); display: inline-block; margin-bottom: .6rem; }
.hand-h { font-family: var(--brush); font-weight: 400; line-height: 1.02; letter-spacing: .005em; margin: 0; }
.fine { color: var(--ink-3); font-size: .72rem; margin-top: 1rem; }
.aside { font-family: var(--brush); font-size: 1.35rem; color: var(--blue); transform: rotate(-3deg); margin: 1.2rem 0 0; line-height: 1.15; }
.aside.center { text-align: center; transform: rotate(-1.5deg); margin-top: 2rem; }
.hl { background: linear-gradient(104deg, transparent 2%, var(--magenta-soft) 4%, var(--magenta-soft) 94%, transparent 97%); padding: 0 .12em; border-radius: 6px 12px 4px 10px; }
.hl-blue { background: linear-gradient(100deg, transparent 2%, var(--blue-soft) 4%, var(--blue-soft) 95%, transparent 98%); padding: 0 .1em; }
.strike { position: relative; color: var(--ink-3); font-size: .62em; }
.strike::after { content: ""; position: absolute; left: -4%; right: -4%; top: 55%; height: 4px; background: var(--magenta); transform: rotate(-4deg); border-radius: 4px; }

/* pencil scroll bar + spiral rings */
.pencil { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 60; pointer-events: none; }
.pencil i { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 0 3px 3px 0; box-shadow: 4px 0 0 var(--flame); }
.rings { height: 22px; background: radial-gradient(circle at 50% 30%, transparent 5px, var(--ink) 5.5px, var(--ink) 7.5px, transparent 8px) 0 0 / 34px 22px repeat-x; opacity: .85; margin-top: 6px; }

/* top */
.top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 1.2rem; padding: .7rem clamp(1.1rem, 4vw, 2.5rem); background: rgba(247, 242, 231, .9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 2px solid var(--ink); border-radius: 0 0 40px 18px / 0 0 6px 10px; }
.mark { display: flex; align-items: baseline; gap: .6rem; text-decoration: none; flex-shrink: 0; }
.mark-word { font-family: var(--brush); font-size: 2rem; line-height: 1; }
.mark-i { position: relative; display: inline-block; }
.mark-i svg { position: absolute; left: 50%; top: -.4em; width: .72em; height: .62em; transform: translateX(-50%); }
.mark-tag { font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); border: 1.5px solid var(--ink-2); border-radius: var(--r-box); padding: .12rem .5rem; transform: rotate(-2deg); white-space: nowrap; }
.top-nav { display: flex; gap: 1.1rem; margin-left: auto; font-size: 1.05rem; }
.top-nav a { text-decoration: none; position: relative; }
.top-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--magenta); transform: scaleX(0); transform-origin: left; transition: transform .25s; border-radius: 2px; }
.top-nav a:hover::after { transform: scaleX(1); }
.top-tools { display: flex; align-items: center; gap: .6rem; }
.kbd-btn { display: inline-flex; align-items: center; gap: .4rem; background: transparent; border: 0; cursor: pointer; font-family: var(--mono); font-size: .75rem; color: var(--ink-2); padding: .3rem; }
@media (max-width: 1020px) { .top-nav { display: none; } .top-tools { margin-left: auto; } }
@media (max-width: 520px) { .mark-tag { display: none; } .kbd-btn span { display: none; } }

/* buttons */
.sketch-btn { display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; cursor: pointer; font-family: var(--hand); font-weight: 700; font-size: 1.05rem; padding: .55rem 1.15rem; border: 2.5px solid var(--ink); border-radius: var(--r-box); background: var(--paper); color: var(--ink); box-shadow: 3px 4px 0 var(--ink); transition: transform .12s, box-shadow .12s; }
.sketch-btn:hover { transform: translate(-1px, -2px) rotate(-.6deg); box-shadow: 5px 6px 0 var(--ink); }
.sketch-btn:active { transform: translate(2px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.sketch-btn.solid { background: var(--ink); color: var(--paper); box-shadow: 3px 4px 0 var(--magenta); }
.sketch-btn.solid:hover { box-shadow: 5px 6px 0 var(--magenta); }
.sketch-btn.small { font-size: .92rem; padding: .35rem .8rem; box-shadow: 2px 3px 0 var(--ink); }
.sketch-btn.light { border-color: var(--paper); background: transparent; color: var(--paper); box-shadow: 3px 4px 0 var(--paper); }
.sketch-btn.solid.light { background: var(--paper); color: var(--ink); box-shadow: 3px 4px 0 var(--magenta); }
.acts { display: flex; flex-wrap: wrap; gap: .8rem 1rem; align-items: center; margin-top: 1.6rem; }
.hint { color: var(--ink-3); }

/* hero */
.hero { overflow-x: clip; max-width: var(--wrap); margin: 0 auto; padding: clamp(2rem, 6vw, 4.5rem) clamp(1.1rem, 4vw, 2.5rem) 3rem; display: grid; grid-template-columns: 1.05fr 1fr; gap: 2rem; align-items: center; min-height: min(86vh, 780px); }
.status { display: inline-flex; align-items: center; gap: .5rem; border: 1.5px dashed var(--ink-3); border-radius: 999px; padding: .25rem .75rem; color: var(--ink-2); margin: 0 0 1.4rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--magenta); box-shadow: 0 0 0 0 var(--magenta-soft); animation: pulse 2s infinite; flex-shrink: 0; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(210, 31, 151, .45); } 70% { box-shadow: 0 0 0 9px rgba(210, 31, 151, 0); } 100% { box-shadow: 0 0 0 0 rgba(210, 31, 151, 0); } }
.hero h1 { font-size: clamp(3rem, 1.8rem + 4.6vw, 5.8rem); max-width: 9ch; }
.scribble { font-family: var(--brush); color: var(--blue); font-size: 1.3rem; margin: 0 0 .2rem; transform: rotate(-3deg); transform-origin: left; }
.underline { width: min(520px, 90%); height: 26px; margin: .2rem 0 1rem; overflow: visible; }
.underline path, .draw { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.underline path { stroke: var(--magenta); stroke-width: 5; }
.lede { font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); line-height: 1.5; max-width: 34ch; margin: 0; color: var(--ink-2); }
.js .draw { stroke-dasharray: var(--len, 1200); stroke-dashoffset: var(--len, 1200); }
.js .draw.drawn { stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s cubic-bezier(.6,.1,.2,1); }
.js .draw.slow.drawn { transition-duration: 2.2s; }
.js .draw.d2.drawn { transition-delay: .5s; }
.js .draw.d3.drawn { transition-delay: 1.4s; }
.pile { position: relative; height: clamp(420px, 52vw, 620px); touch-action: none; }
.pc { position: absolute; width: clamp(150px, 17vw, 230px); background: #fff; padding: 8px 8px 10px; box-shadow: var(--shadow); cursor: grab; user-select: none; -webkit-user-select: none; transition: box-shadow .2s; touch-action: none; }
.pc:active { cursor: grabbing; box-shadow: 0 2px 2px rgba(0,0,0,.1), 0 34px 44px -26px rgba(30,20,40,.7); }
.pc img { pointer-events: none; -webkit-user-drag: none; }
.pc::before { content: ""; position: absolute; top: -12px; left: 50%; width: 74px; height: 24px; transform: translateX(-50%) rotate(-3deg); background: rgba(255, 230, 140, .62); border-left: 1px dashed rgba(0,0,0,.08); border-right: 1px dashed rgba(0,0,0,.08); }
.pc:nth-child(3n)::before { background: rgba(240, 150, 210, .55); }
.pc:nth-child(3n+1)::before { background: rgba(150, 190, 250, .55); }
.pc figcaption { font-family: var(--hand); font-size: .82rem; color: var(--ink-2); margin-top: 6px; line-height: 1.2; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero .aside { display: none; }
  .pile { height: 440px; }
}

/* ticker */
.ticker { border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); background: var(--ink); color: var(--paper); overflow: hidden; transform: rotate(-1deg); margin: 1rem -2vw 4rem; }
.ticker-track { display: flex; gap: 2.5rem; padding: .65rem 0; width: max-content; animation: tick 60s linear infinite; font-family: var(--mono); font-size: .8rem; }
.ticker-track span { white-space: nowrap; }
.ticker-track b { color: #ff7fd0; font-weight: 600; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }

/* section heads */
.sec-head { max-width: 44rem; margin-bottom: 2.4rem; }
.sec-head h2 { font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4.2rem); }
.sec-head p { font-size: 1.2rem; color: var(--ink-2); margin: .8rem 0 0; max-width: 40ch; }
section.wrap { margin-bottom: clamp(4.5rem, 9vw, 8rem); }

/* four sides */
.sides-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.side { border: 2.5px solid var(--ink); border-radius: var(--r-box); padding: 1.3rem 1.2rem 1.4rem; background: var(--paper); display: flex; flex-direction: column; gap: .3rem; box-shadow: 4px 5px 0 var(--c, var(--ink)); }
.side:nth-child(even) { border-radius: var(--r-box2); transform: rotate(.8deg); }
.side:nth-child(odd) { transform: rotate(-.6deg); }
.side svg { width: 48px; height: 48px; fill: none; stroke: var(--c, var(--ink)); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; filter: url(#rough); margin-bottom: .4rem; }
.side b { font-family: var(--brush); font-size: 1.9rem; font-weight: 400; line-height: 1; color: var(--c, var(--ink)); }
.side span { color: var(--ink-2); font-size: 1rem; }
.side.aliveness { --c: var(--flame); }
.side.safety { --c: var(--moss); }
.side.problem { --c: var(--magenta); }
.side.solution { --c: var(--blue); }
@media (max-width: 860px) { .sides-grid { grid-template-columns: 1fr 1fr; } }

/* draw */
.draw-grid { display: grid; grid-template-columns: 220px minmax(0, 380px) 1fr; gap: 2.5rem; align-items: center; }
.deck-zone { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.deck { position: relative; width: 170px; height: 240px; border: 0; background: transparent; cursor: pointer; padding: 0; }
.deck span { position: absolute; inset: 0; border: 2.5px solid var(--ink); border-radius: 14px 18px 12px 16px; background: var(--ink); background-image: repeating-linear-gradient(45deg, transparent 0 9px, rgba(255,255,255,.06) 9px 11px); }
.deck span:nth-child(1) { transform: rotate(-6deg) translate(-6px, 4px); }
.deck span:nth-child(2) { transform: rotate(3deg) translate(4px, 2px); }
.deck span:nth-child(3) { transform: rotate(-1deg); display: grid; place-items: center; }
.deck b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--brush); font-weight: 400; font-size: 1.6rem; color: var(--paper); transform: rotate(-4deg); }
.deck:hover span:nth-child(3) { transform: rotate(-3deg) translateY(-8px); transition: transform .2s; }
.deck:active span:nth-child(3) { transform: translateY(4px); }
.flip { perspective: 1400px; aspect-ratio: 2 / 3; width: 100%; cursor: pointer; }
.flip-in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.flip.flipped .flip-in { transform: rotateY(180deg); }
.flip.deal .flip-in { animation: deal .55s cubic-bezier(.2,.8,.2,1); }
@keyframes deal { from { transform: translate(-60%, 8%) rotate(-12deg) scale(.85); opacity: .2; } }
.face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border: 2.5px solid var(--ink); border-radius: 16px 20px 14px 18px; background: #fffdf8; padding: 1.3rem; display: flex; flex-direction: column; gap: .8rem; box-shadow: var(--shadow); overflow: hidden; }
.face::after { content: ""; position: absolute; inset: 9px; border: 1.5px dashed var(--rule); border-radius: 10px; pointer-events: none; }
.face.back { transform: rotateY(180deg); background: var(--ink); color: var(--paper); }
.face.back::after { border-color: rgba(255,255,255,.18); }
.face-empty { margin: auto; font-family: var(--brush); font-size: 1.8rem; color: var(--ink-3); transform: rotate(-4deg); }
.poles { display: flex; gap: .4rem; flex-wrap: wrap; position: relative; z-index: 1; }
.pole { font-family: var(--mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; border: 1.5px solid currentColor; border-radius: 999px; padding: .15rem .55rem; font-weight: 600; }
.pole.aliveness { color: var(--flame); } .pole.safety { color: var(--moss); } .pole.problem { color: var(--magenta); } .pole.solution { color: var(--blue); }
.face.back .pole.safety { color: #9fd49a; } .face.back .pole.solution { color: #a9b9ff; } .face.back .pole.problem { color: #ff8fd6; } .face.back .pole.aliveness { color: #ffab7d; }
.face .line { font-family: var(--brush); font-size: clamp(1.6rem, 1.1rem + 1.4vw, 2.2rem); line-height: 1.08; margin: 0; flex: 1; position: relative; z-index: 1; }
.face .thumb { height: 42%; border-radius: 8px; overflow: hidden; border: 1.5px solid var(--rule); background: #fff; position: relative; z-index: 1; }
.face .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.face .flip-tip { font-family: var(--mono); font-size: .66rem; color: var(--ink-3); text-align: right; position: relative; z-index: 1; }
.face.back .flip-tip { color: #a59fae; }
.draw-side .note { font-size: 1.05rem; color: var(--ink-2); max-width: 32ch; }
.draw-side h3 { font-family: var(--brush); font-weight: 400; font-size: 1.9rem; line-height: 1.05; margin: .2rem 0 .6rem; }
.draw-side .meta { color: var(--ink-3); }
.draw-side .acts { margin-top: 1rem; }
@media (max-width: 980px) { .draw-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; } .flip { max-width: 340px; } .draw-side .acts { justify-content: center; } .draw-side .note { margin: 0 auto; } }

/* bilayer */
.bilayer { display: grid; grid-template-columns: 1fr 1.05fr; gap: 3rem; align-items: center; }
.bilayer h2 { font-size: clamp(2.3rem, 1.6rem + 3vw, 3.9rem); margin-bottom: 1.4rem; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; font-size: 1.15rem; }
.steps li { border-left: 3px solid var(--blue); padding-left: .9rem; color: var(--ink-2); }
.steps b { font-family: var(--brush); font-weight: 400; color: var(--blue); font-size: 1.4rem; margin-right: .3rem; }
.bl-svg { width: 100%; height: auto; overflow: visible; }
.bl-svg .draw { stroke-width: 3.4; }
.bl-svg .hatch-fill { opacity: 0; transition: opacity .8s 1.6s; }
.bl-svg.on .hatch-fill { opacity: .9; }
.bl-svg text { font-family: var(--hand); fill: var(--ink); }
.bl-svg .t-big { font-family: var(--brush); font-size: 72px; }
.bl-svg .t-s { font-size: 17px; fill: var(--ink-2); }
.bl-svg .t-blue { font-family: var(--brush); font-size: 26px; fill: var(--blue); }
@media (max-width: 860px) { .bilayer { grid-template-columns: 1fr; } }

/* how strip */
.strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border: 3px solid var(--ink); border-radius: 22px 8px 26px 10px / 10px 26px 8px 22px; background: #fffdf8; box-shadow: 6px 7px 0 var(--ink); }
.strip li { padding: 1.3rem 1.1rem 1.5rem; display: flex; flex-direction: column; gap: .4rem; border-right: 2.5px solid var(--ink); }
.strip li:last-child { border-right: 0; }
.strip svg { width: 100%; max-width: 130px; height: 90px; fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; margin-bottom: .4rem; }
.strip li:nth-child(4) svg { stroke: var(--flame); }
.strip li:nth-child(2) svg path:last-child { stroke: var(--magenta); }
.strip b { font-family: var(--brush); font-weight: 400; font-size: 1.55rem; line-height: 1; }
.strip span { font-size: .98rem; color: var(--ink-2); line-height: 1.4; }
@media (max-width: 980px) { .strip { grid-template-columns: 1fr 1fr; } .strip li { border-right: 0; border-bottom: 2.5px solid var(--ink); } .strip li:nth-child(odd) { border-right: 2.5px solid var(--ink); } .strip li:last-child { border-bottom: 0; grid-column: 1 / -1; border-right: 0; } }
@media (max-width: 520px) { .strip { grid-template-columns: 1fr; } .strip li:nth-child(odd) { border-right: 0; } }

/* wall */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.chip { font-family: var(--mono); font-size: .76rem; border: 1.5px solid var(--ink); border-radius: 999px; padding: .3rem .8rem; background: var(--paper); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.chip:hover { border-color: var(--magenta); }
.board { columns: 4 230px; column-gap: 1.6rem; }
.pin { break-inside: avoid; margin: 0 0 1.8rem; background: #fff; padding: 8px 8px 12px; box-shadow: var(--shadow); position: relative; cursor: zoom-in; transition: transform .2s; display: block; width: 100%; border: 0; text-align: left; }
.pin:nth-child(odd) { transform: rotate(-1.2deg); }
.pin:nth-child(even) { transform: rotate(1deg); }
.pin:hover { transform: rotate(0) translateY(-4px) scale(1.015); z-index: 2; }
.pin::before { content: ""; position: absolute; top: -7px; left: 50%; width: 14px; height: 14px; border-radius: 50%; transform: translateX(-50%); background: radial-gradient(circle at 35% 35%, #ff9be0, var(--magenta) 60%, #7a0c55); box-shadow: 0 2px 2px rgba(0,0,0,.25); }
.pin:nth-child(3n)::before { background: radial-gradient(circle at 35% 35%, #a9c0ff, var(--blue) 60%, #14236b); }
.pin:nth-child(4n)::before { background: radial-gradient(circle at 35% 35%, #ffc29f, var(--flame) 60%, #8a2f0a); }
.pin span { display: block; font-family: var(--hand); font-size: .9rem; line-height: 1.25; color: var(--ink-2); margin-top: 8px; }
.pin small { display: block; font-family: var(--mono); font-size: .62rem; color: var(--ink-3); margin-top: 4px; }

/* land */
.land { background: var(--ink); color: var(--paper); padding: clamp(4rem, 8vw, 7rem) 0; margin-bottom: clamp(4.5rem, 9vw, 8rem); border-radius: 60px 30px 70px 40px / 26px 50px 30px 60px; background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1.5px); background-size: 22px 22px; }
.sec-head.light p { color: #cfc7d8; }
.sec-head.light .tag { color: #ff8fd6; }
.next { display: inline-flex; align-items: center; gap: .6rem; border: 1.5px dashed #8d8597; border-radius: 999px; padding: .35rem .9rem; margin-bottom: 2.5rem; font-size: .82rem; }
.next b { color: #ffab7d; font-weight: 600; }
.polaroids { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.pol { background: #fbf8f1; color: var(--ink); padding: 10px 10px 14px; box-shadow: 0 30px 40px -28px rgba(0,0,0,.9); text-decoration: none; transition: transform .2s; display: block; }
.pol:nth-child(odd) { transform: rotate(-2.2deg); }
.pol:nth-child(even) { transform: rotate(1.8deg) translateY(16px); }
.pol:hover { transform: rotate(0) translateY(-6px); }
.pol img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.pol b { display: block; font-family: var(--brush); font-weight: 400; font-size: 1.45rem; margin-top: .5rem; line-height: 1; }
.pol span { font-family: var(--mono); font-size: .66rem; color: var(--ink-3); }
.land .fine { color: #8d8597; margin-top: 2.6rem; }
@media (max-width: 860px) { .polaroids { grid-template-columns: 1fr 1fr; } }

/* mail */
.mail { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: start; }
.envelope { position: relative; }
.env-svg { width: 100%; height: auto; fill: #fffdf8; stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.env-svg .stamp-g { fill: none; stroke-width: 2; }
.env-copy { position: absolute; left: 10%; right: 10%; top: 50%; }
.env-after .acts { margin-top: 1.2rem; }
.addr { font-style: normal; font-size: clamp(1.25rem, .9rem + 1.3vw, 1.9rem); line-height: 1.15; }
.env-copy .acts { margin-top: 1rem; }
.env-copy .fine { margin-top: .6rem; }
.prompts ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.prompts li { font-size: 1.15rem; border-bottom: 1.5px dashed var(--rule); padding-bottom: .7rem; display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.prompts li button { flex-shrink: 0; border: 0; background: none; font-family: var(--mono); font-size: .7rem; color: var(--magenta); cursor: pointer; padding: .2rem; }
@media (max-width: 980px) { .mail { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .env-svg { display: none; } .envelope .env-copy { position: static; border: 3px solid var(--ink); border-radius: var(--r-box); padding: 1.4rem; background: #fffdf8; } }

/* grown */
.grown-box { border: 3px solid var(--ink); border-radius: var(--r-box2); padding: clamp(1.6rem, 4vw, 3rem); display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center; background: var(--paper-2); box-shadow: 6px 7px 0 var(--blue); }
.grown-box h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); }
.grown-box p { color: var(--ink-2); margin: .6rem 0 0; }
.grown-box .acts { margin-top: 0; }
@media (max-width: 860px) { .grown-box { grid-template-columns: 1fr; } }

/* foot */
.foot { padding-top: 2.4rem; padding-bottom: 3rem; border-top: 2.5px solid var(--ink); color: var(--ink-2); }
.foot-mark { font-size: 2.4rem; color: var(--ink); }
.foot p { max-width: 60ch; }

/* palette */
.palette { position: fixed; inset: 0; z-index: 90; background: rgba(31, 28, 36, .45); display: grid; place-items: start center; padding-top: 12vh; }
.palette[hidden], .lightbox[hidden] { display: none; }
.pal-box { width: min(620px, 92vw); background: #fffdf8; border: 3px solid var(--ink); border-radius: 16px 22px 14px 20px; box-shadow: 8px 9px 0 var(--ink); overflow: hidden; }
.pal-box input { width: 100%; border: 0; border-bottom: 2.5px solid var(--ink); background: transparent; font-family: var(--hand); font-size: 1.3rem; padding: 1rem 1.2rem; outline: none; color: var(--ink); }
.pal-box ul { list-style: none; margin: 0; padding: .4rem; max-height: 50vh; overflow: auto; }
.pal-box li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem .8rem; border-radius: 10px; cursor: pointer; }
.pal-box li[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.pal-box li small { font-family: var(--mono); font-size: .66rem; color: var(--ink-3); white-space: nowrap; align-self: center; }
.pal-box li[aria-selected="true"] small { color: #c9c2d1; }
.pal-foot { padding: .6rem 1.2rem; border-top: 1.5px dashed var(--rule); color: var(--ink-3); margin: 0; display: flex; gap: .4rem; align-items: center; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 85; background: rgba(31, 28, 36, .6); display: grid; place-items: center; padding: 4vh 4vw; }
.lb-box { position: relative; background: #fffdf8; border: 3px solid var(--ink); border-radius: 18px 24px 16px 22px; max-width: 960px; width: 100%; max-height: 92vh; overflow: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; padding: 1.4rem; box-shadow: 8px 9px 0 var(--magenta); }
.lb-box img { width: 100%; max-height: 78vh; object-fit: contain; background: #fff; box-shadow: var(--shadow); }
.lb-copy h3 { font-size: 2rem; margin: 0 0 1rem; }
.lb-face { border: 2px solid var(--ink); border-radius: var(--r-box); padding: .8rem 1rem; margin-bottom: .8rem; }
.lb-face p { margin: .4rem 0 0; font-family: var(--brush); font-size: 1.35rem; line-height: 1.1; }
.lb-x { position: absolute; top: .4rem; right: .6rem; border: 0; background: none; font-size: 2rem; line-height: 1; cursor: pointer; }
@media (max-width: 760px) { .lb-box { grid-template-columns: 1fr; } }

/* toast */
.toast { position: fixed; left: 50%; bottom: 1.6rem; opacity: 0; transform: translate(-50%, 220%); background: var(--ink); color: var(--paper); padding: .6rem 1rem; border-radius: 999px; z-index: 95; transition: transform .3s; pointer-events: none; }
.toast.on { transform: translate(-50%, 0); opacity: 1; }
@media (max-width: 600px) {
  .board { columns: 2; column-gap: 1rem; }
  .pin { margin-bottom: 1.2rem; padding: 6px 6px 9px; }
  .pin span { font-size: .8rem; }
  .pin small { display: none; }
  .pile { height: 400px; }
  .pc { width: 150px; }
}

/* back to the compass */
.top-nav .to-compass { color: var(--flame, #d9622b); font-weight: 700; }
.to-compass-m { display: none; }
@media (max-width: 1020px) { .to-compass-m { display: inline-flex; } }

/* the wick: a candle "i" whose flame is two rings meeting; the lens between them is the omni */
.venn-flame { overflow: visible; }
.venn-flame .vf-a { fill: none; stroke: #ff4fb0; stroke-width: 2.1; stroke-linecap: round; }
.venn-flame .vf-b { fill: none; stroke: #4f6fd8; stroke-width: 2.1; }
.venn-flame .vf-lens { fill: #ff8a3d; }
.venn-flame .vf-spark { fill: #7a3fe0; }

.hu-line { font-size: clamp(1.3rem, 2.6vw, 2rem); margin: 0 0 .2em; color: var(--ink-2); }
