/* Storybook look. It is one extra layer on top of the original design: remove this file (or open
   any page with ?style=classic) and the site is exactly as it was. Everything is scoped to
   html[data-style=story]. Light is "day" (paper and ink), dark is "night". */
@import url("story-fonts.css");

html[data-style=story] { --ink: #f4ecdb; --ink-2: #fbf6ea; --line: #2a2f3a; --text: #20242e; --muted: #5c6270; --teal: #0f8a7e; --teal-ink: #fffaf0; --paper: #efe4cc; --paper-2: #2a2f3a; --radius: 4px;
  --wobble: 255px 14px 225px 16px / 16px 225px 14px 255px; --wobble2: 18px 220px 16px 240px / 235px 16px 230px 18px; }
html[data-style=story][data-theme=dark] { --ink: #161b2b; --ink-2: #1c2236; --line: #cfc6b2; --text: #f1e9d6; --muted: #a9a595; --teal: #4fd6c4; --teal-ink: #10202a; --paper: #1f2740; --paper-2: #cfc6b2; }

html[data-style=story] body { font-family: "Newsreader", Georgia, serif; font-size: 19px; line-height: 1.6;
  background-image: radial-gradient(rgba(0,0,0,.035) 1px, transparent 1px); background-size: 5px 5px; }
html[data-style=story] h1, html[data-style=story] h2, html[data-style=story] h3, html[data-style=story] .teaser h3 { font-family: "Newsreader", Georgia, serif; font-weight: 600; letter-spacing: -.01em; }
html[data-style=story] .hero h1, html[data-style=story] .pagehead h1 { font-size: clamp(36px, 5.4vw, 64px); line-height: 1.04; }
html[data-style=story] .hero p.lede, html[data-style=story] .pagehead p, html[data-style=story] .intro { font-style: italic; }
html[data-style=story] header.top { background: var(--ink); backdrop-filter: none; border-bottom: 2px solid var(--line); }
html[data-style=story] header.top nav { font-family: "Inter Tight", sans-serif; }
html[data-style=story] header.top nav a[aria-current=page] { box-shadow: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 8' preserveAspectRatio='none'%3E%3Cpath d='M1 5 Q 14 1 26 5 T 51 5 T 76 5 T 99 4' fill='none' stroke='%230f8a7e' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") bottom / 100% 7px no-repeat; padding-bottom: 8px; }

/* ink outlines with a hand-drawn wobble, and a hard offset shadow like a paper cut-out */
html[data-style=story] .btn { font-family: "Inter Tight", sans-serif; border-radius: var(--wobble); border: 2px solid var(--line); box-shadow: 3px 4px 0 var(--line); padding: 12px 22px; transition: transform .15s cubic-bezier(.3,1.6,.5,1), box-shadow .15s; }
html[data-style=story] .btn:hover { background: var(--teal); transform: translate(-1px, -2px) rotate(-1deg); box-shadow: 5px 7px 0 var(--line); }
html[data-style=story] .btn:active { transform: translate(2px, 3px); box-shadow: 1px 1px 0 var(--line); }
html[data-style=story] .btn.ghost { background: var(--ink-2); color: var(--text); }
html[data-style=story] .teaser, html[data-style=story] .picker, html[data-style=story] .honest, html[data-style=story] .warn, html[data-style=story] .build,
html[data-style=story] .presets button, html[data-style=story] .grid3, html[data-style=story] .card { border: 2px solid var(--line); border-radius: var(--wobble2); background: var(--ink-2); box-shadow: 4px 5px 0 var(--line); }
html[data-style=story] .teaser:nth-child(odd) { transform: rotate(-.6deg); } html[data-style=story] .teaser:nth-child(even) { transform: rotate(.5deg); }
html[data-style=story] .teaser { transition: transform .25s cubic-bezier(.3,1.5,.5,1), box-shadow .2s; }
html[data-style=story] .teaser:hover { transform: rotate(0) translateY(-4px); box-shadow: 7px 9px 0 var(--line); border-color: var(--line); }
html[data-style=story] .teaser span::after { content: " \2192"; display: inline-block; transition: transform .2s; } html[data-style=story] .teaser:hover span::after { transform: translateX(5px); }
html[data-style=story] .honest { border-style: dashed; box-shadow: none; }
html[data-style=story] .warn { border-color: #b45309; box-shadow: 4px 5px 0 #b45309; }
html[data-style=story] .grid3 { background: var(--line); gap: 2px; overflow: hidden; } html[data-style=story] .grid3 > div { background: var(--ink-2); }
html[data-style=story] .paper { background: var(--paper); color: var(--text); border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }
html[data-style=story] .paper .intro, html[data-style=story] .grid3 p { color: var(--muted); }
html[data-style=story] .ledger, html[data-style=story] .ledger .row, html[data-style=story] .status, html[data-style=story] .status div { border-color: var(--line); border-style: dashed; border-width: 0 0 1.5px; }
html[data-style=story] .ledger .complaint { font-size: 21px; }
html[data-style=story] .ledger .complaint::before { content: "\201C"; font-size: 44px; line-height: 0; vertical-align: -14px; margin-right: 4px; color: var(--teal); }
html[data-style=story] .demo { border: 3px solid var(--line); border-radius: 10px; box-shadow: 8px 10px 0 var(--line); }
html[data-style=story] .icons img { border: 2px solid var(--line); border-radius: 8px; box-shadow: 4px 5px 0 var(--line); }
html[data-style=story] .picker { overflow: hidden; } html[data-style=story] .picker .bar, html[data-style=story] .picker .foot, html[data-style=story] .tray { border-color: var(--line); }
html[data-style=story] .apps { background: var(--line); } html[data-style=story] .app { background: var(--ink-2); font-family: "Inter Tight", sans-serif; }
html[data-style=story] .app:hover { background: var(--paper); }
html[data-style=story] .tab, html[data-style=story] .picker input[type=search], html[data-style=story] .tray .chip { border-color: var(--line); font-family: "Inter Tight", sans-serif; background: var(--ink-2); }
html[data-style=story] .tab[aria-selected=true] { background: var(--line); color: var(--ink); }
html[data-style=story] .devbar { font-family: "Inter Tight", sans-serif; border-bottom: 2px solid var(--line); }
html[data-style=story] footer { border-top: 2px solid var(--line); font-family: "Inter Tight", sans-serif; }
html[data-style=story] .steps div { border-top: 2px dashed var(--teal); }
html[data-style=story] #theme { border: 2px solid var(--line); box-shadow: 2px 3px 0 var(--line); background: var(--ink-2); }
html[data-style=story] .legal p, html[data-style=story] .legal li { color: var(--text); }
html[data-style=story] svg.word path[stroke="#fff"] { stroke: var(--text); } html[data-style=story] svg.word .o { fill: var(--text); }

/* handwritten notes and doodles */
.note-hand { display: none; }
html[data-style=story] .note-hand { display: block; font-family: "Caveat", cursive; font-size: 30px; line-height: 1; color: var(--teal); transform: rotate(-4deg); }
html[data-style=story] .chapter { display: block; font-family: "Caveat", cursive; font-size: 28px; color: var(--teal); margin-bottom: 4px; transform: rotate(-1.5deg); transform-origin: left; }
.chapter { display: none; }
html[data-style=story] .squiggle { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M1 6 Q 9 1 17 6 T 33 6 T 49 6 T 65 6 T 81 6 T 99 5' fill='none' stroke='%230f8a7e' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") bottom / 100% .22em no-repeat; padding-bottom: .12em; }
html[data-style=story] .doodle { position: absolute; pointer-events: none; color: var(--teal); }
html[data-style=story] .doodle path { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 400; stroke-dashoffset: 400; }
html[data-style=story] .in .doodle path, html[data-style=story] .doodle.in path { animation: drawdoodle 1.1s .3s ease forwards; }
.doodle { display: none; } html[data-style=story] .doodle { display: block; }
@keyframes drawdoodle { to { stroke-dashoffset: 0; } }

/* gentle motion: pages settle in, headings rise, cards arrive one after another */
@media (prefers-reduced-motion: no-preference) {
  html[data-style=story] .hero h1, html[data-style=story] .pagehead h1 { animation: rise .7s .15s cubic-bezier(.2,.8,.2,1) both; }
  html[data-style=story] .hero .lede, html[data-style=story] .pagehead p { animation: rise .7s .3s cubic-bezier(.2,.8,.2,1) both; }
  html[data-style=story] .hero .ctas { animation: rise .7s .45s cubic-bezier(.2,.8,.2,1) both; }
  html[data-style=story] .reveal { transform: translateY(26px) rotate(-1.2deg); transition: opacity .6s ease, transform .7s cubic-bezier(.3,1.4,.5,1); }
  html[data-style=story] .reveal.in { transform: none; }
  html[data-style=story] .teaser.reveal.in:nth-child(odd) { transform: rotate(-.6deg); } html[data-style=story] .teaser.reveal.in:nth-child(even) { transform: rotate(.5deg); }
  html[data-style=story] .teasers .reveal:nth-child(2), html[data-style=story] .grid3 .reveal:nth-child(2), html[data-style=story] .steps .reveal:nth-child(2) { transition-delay: .1s; }
  html[data-style=story] .teasers .reveal:nth-child(3), html[data-style=story] .grid3 .reveal:nth-child(3), html[data-style=story] .steps .reveal:nth-child(3) { transition-delay: .2s; }
  html[data-style=story] .teasers .reveal:nth-child(4), html[data-style=story] .grid3 .reveal:nth-child(4) { transition-delay: .3s; }
  html[data-style=story] .app .ico { transition: transform .2s cubic-bezier(.3,1.6,.5,1); } html[data-style=story] .app:hover .ico { transform: scale(1.12) rotate(-4deg); }
  html[data-style=story] header.top .brand img { transition: transform .3s cubic-bezier(.3,1.6,.5,1); } html[data-style=story] header.top .brand:hover img { transform: rotate(-3deg) scale(1.05); }
  html[data-style=story] .note-hand { animation: nod 3s ease-in-out infinite; }
}
@keyframes pagein { from { opacity: 0; } } @keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes nod { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(-1deg) translateY(-3px); } }

html[data-style=story] .about-logo { border: 2px solid var(--line); border-radius: var(--wobble2); box-shadow: 4px 5px 0 var(--line); }
html[data-style=story] .report input, html[data-style=story] .report textarea, html[data-style=story] .report select { border: 2px solid var(--line); border-radius: 10px 14px 9px 13px; font-family: "Inter Tight", sans-serif; }
html[data-style=story] .chapter { margin-bottom: 2px; }

@media (max-width: 760px) {
  html[data-style=story] body { font-size: 17.5px; }
  html[data-style=story] .hero h1, html[data-style=story] .pagehead h1 { font-size: 34px; }
  html[data-style=story] .teaser:nth-child(odd), html[data-style=story] .teaser:nth-child(even), html[data-style=story] .teaser.reveal.in:nth-child(odd), html[data-style=story] .teaser.reveal.in:nth-child(even) { transform: none; }
  html[data-style=story] .demo { box-shadow: 4px 5px 0 var(--line); }
  html[data-style=story] .note-hand { font-size: 22px; right: 6% !important; top: 8px !important; }
  html[data-style=story] .doodle { width: 70px; top: 30px !important; }
  html[data-style=story] #menu { border: 2px solid var(--line); box-shadow: 2px 3px 0 var(--line); background: var(--ink-2); }
}
