/* v3 shared base: fonts (group 1 until Yuwen picks), one light direction, review marks.
   Light comes from the top-left in every direction. Shadow offsets are therefore always +x +y,
   and each elevation step scales offset, blur and opacity together. */

@font-face{font-family:'Fraunces';src:url('/v3/fonts/files/fraunces/Fraunces[SOFT,WONK,opsz,wght].ttf') format('truetype');font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:'Fraunces';src:url('/v3/fonts/files/fraunces/Fraunces-Italic[SOFT,WONK,opsz,wght].ttf') format('truetype');font-weight:100 900;font-style:italic;font-display:swap}
@font-face{font-family:'Source Serif 4';src:url('/v3/fonts/files/sourceserif4/SourceSerif4[opsz,wght].ttf') format('truetype');font-weight:200 900;font-style:normal;font-display:swap}
@font-face{font-family:'Source Serif 4';src:url('/v3/fonts/files/sourceserif4/SourceSerif4-Italic[opsz,wght].ttf') format('truetype');font-weight:200 900;font-style:italic;font-display:swap}
@font-face{font-family:'IBM Plex Mono';src:url('/v3/fonts/files/ibmplexmono/IBMPlexMono-Regular.ttf') format('truetype');font-weight:400;font-display:swap}
@font-face{font-family:'IBM Plex Mono';src:url('/v3/fonts/files/ibmplexmono/IBMPlexMono-Medium.ttf') format('truetype');font-weight:500;font-display:swap}
@font-face{font-family:'Reenie Beanie';src:url('/v3/fonts/files/reeniebeanie/ReenieBeanie.ttf') format('truetype');font-display:swap}

:root{
  --f-display:'Fraunces',Georgia,serif;
  --f-body:'Source Serif 4',Georgia,serif;
  --f-label:'IBM Plex Mono',ui-monospace,monospace;
  --f-hand:'Reenie Beanie','Bradley Hand',cursive;

  --ink:#2b2620;--ink-2:#544b40;--ink-3:#7a6f61;
  --umber:rgb(52 34 16);

  /* Elevation: contact, near, far. Same light, same direction. */
  --e0:0 .5px .5px rgb(52 34 16/.22),0 1px 1.5px rgb(52 34 16/.12);
  --e1:var(--e0),1.5px 3px 4px -1px rgb(52 34 16/.16),5px 9px 14px -6px rgb(52 34 16/.18);
  --e2:0 .5px .5px rgb(52 34 16/.16),3px 6px 8px -2px rgb(52 34 16/.18),12px 22px 32px -10px rgb(52 34 16/.26);
  --e3:0 .5px .5px rgb(52 34 16/.1),6px 12px 16px -4px rgb(52 34 16/.18),22px 40px 56px -16px rgb(52 34 16/.3);

  --ease-out:cubic-bezier(.16,1,.3,1);
  --ease-paper:cubic-bezier(.3,1.25,.4,1);
  --paper-tex:url('/v3/shared/textures/paper-fiber.svg');
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-rendering:optimizeLegibility}
body{margin:0;font-family:var(--f-body);color:var(--ink);-webkit-font-smoothing:antialiased}
img{display:block;max-width:100%;height:auto}
a{color:inherit}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
:focus-visible{outline:2px solid #b4532a;outline-offset:4px;border-radius:2px}
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* Review marks: visible on purpose in previews so nothing unconfirmed passes as fact. */
.review-mark{font:inherit;color:inherit;padding:0 .2em;border-radius:2px;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.review-mark.todo{background:rgb(255 120 140/.18);outline:1px dashed rgb(200 40 80/.55);outline-offset:-1px}
.review-mark.draft{background:rgb(120 140 255/.16);outline:1px dashed rgb(70 80 200/.5);outline-offset:-1px}
html.clean .review-mark{background:none;outline:0}

/* Preview chrome: one slim bar, not part of the design. */
.v3-bar{position:fixed;z-index:1000;left:12px;bottom:12px;display:flex;gap:4px;align-items:center;padding:4px;border-radius:999px;background:rgb(24 22 20/.86);color:#eee;font:500 11px/1 system-ui,sans-serif;backdrop-filter:blur(8px);box-shadow:0 6px 20px rgb(0 0 0/.25)}
.v3-bar a,.v3-bar button{padding:7px 10px;border-radius:999px;text-decoration:none;color:#ddd}
.v3-bar [aria-current],.v3-bar [aria-pressed=true]{background:#fff;color:#111}
@media (max-width:480px){.v3-bar{left:8px;right:8px;justify-content:center;flex-wrap:wrap}}

@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:1ms!important;animation-iteration-count:1!important;transition-duration:1ms!important;scroll-behavior:auto!important}}

/* Pull cord (shared/pullcord.js). Directions restyle via the --cord-* tokens. */
.pullcord{position:absolute;width:0;height:0;z-index:6;--cord:#8a7558;--cord-hi:#d9c7a4;--cord-w:3.2px;--knob-w:14px;--knob-h:22px}
.pullcord-svg{position:absolute;overflow:visible;pointer-events:none}
.pullcord-line{fill:none;stroke:var(--cord);stroke-width:var(--cord-w);stroke-linecap:round;stroke-linejoin:round}
.pullcord--beads .pullcord-line{stroke-dasharray:0 5.2}
.pullcord-shadow{fill:none;stroke:rgb(40 26 10/.22);stroke-width:calc(var(--cord-w) + 1px);stroke-linecap:round;transform:translate(3px,5px);filter:blur(1.4px)}
.pullcord--beads .pullcord-shadow{stroke-dasharray:0 5.2}
.pullcord-knob{position:absolute;left:calc(var(--knob-w) / -2);top:-3px;width:var(--knob-w);height:var(--knob-h);transform-origin:50% 3px;cursor:grab;touch-action:none;
  /* invisible hit area so the 14px knob is still a 44px target */
  padding:0}
.pullcord-knob::before{content:'';position:absolute;inset:-15px -15px -12px}
.pullcord.is-dragging .pullcord-knob{cursor:grabbing}
.pullcord-knob-face{position:absolute;inset:0;border-radius:40% 40% 46% 46%/30% 30% 70% 70%;
  background:radial-gradient(circle at 34% 28%,#fff8 0 12%,transparent 34%),linear-gradient(100deg,var(--cord-hi),var(--cord) 70%);
  box-shadow:inset -2px -3px 3px rgb(0 0 0/.25),2px 4px 5px -1px rgb(40 26 10/.4)}
.pullcord-knob.is-clicked .pullcord-knob-face{animation:cord-click .32s var(--ease-out)}
@keyframes cord-click{30%{transform:translateY(-3px) scaleY(.94)}}

/* ?light=night in previews: show the end state at once (also used for screenshots). */
html.light-instant *,html.light-instant *::before,html.light-instant *::after{transition:none!important;animation:none!important}
html.nobar .v3-bar{display:none}
