:root {
  --paper: #f2e9d8;
  --paper-2: #e9dcc4;
  --card: #fbf6ec;
  --ink: #3b2f25;
  --ink-soft: #6e5e4e;
  --line: #d6c4a6;
  --clay: #c2643c;
  --clay-soft: #f1d3c2;
  --olive: #6c7a3a;
  --olive-soft: #dfe2c4;
  --mustard: #d7a03e;
  --mustard-soft: #f4e2b8;
  --sage: #a8b38e;
  --radius: 18px;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.27 0 0 0 0 0.18 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper) var(--noise); font: 17px/1.65 var(--body); }
a { color: var(--clay); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
h1, h2, h3 { font-family: var(--display); font-variation-settings: "SOFT" 100; font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 6.5vw, 4.2rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
code { font-family: ui-monospace, Menlo, monospace; font-size: .88em; background: var(--paper-2); border-radius: 6px; padding: 1px 6px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
section { padding: 72px 0; position: relative; }
.sprites { position: absolute; }
.sr, .skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--card); padding: 8px 12px; z-index: 20; }
[hidden] { display: none !important; }

svg use, .step svg, .d, .drop-icon, .brand-mark, .verdict svg, .thumb-ph svg { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* header */
.top { position: relative; z-index: 2; }
.top-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 700; font-size: 1.45rem; color: var(--ink); text-decoration: none; font-variation-settings: "SOFT" 100; }
.brand-name { display: inline-flex; align-items: baseline; gap: 8px; }
.brand-sub { font-family: var(--body); font-size: .62rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--olive); background: var(--olive-soft); border-radius: 999px; padding: 2px 8px; transform: translateY(-3px) rotate(-2deg); }
.brand-mark { width: 30px; height: 30px; color: var(--clay); transform: rotate(-12deg); }
nav { display: flex; align-items: center; gap: 22px; }
nav a { color: var(--ink-soft); text-decoration: none; font-weight: 500; }
nav a:hover { color: var(--ink); }
.nav-pill { color: var(--ink) !important; border: 1.5px solid var(--ink); border-radius: 999px; padding: 6px 16px; }
@media (max-width: 560px) { nav a:not(.nav-pill) { display: none; } }

/* hero */
.hero { padding: 40px 0 80px; overflow: hidden; }
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 760px; }
.kicker { display: inline-block; font-weight: 600; font-size: .9rem; color: var(--olive); background: var(--olive-soft); border-radius: 999px; padding: 4px 14px; transform: rotate(-1.5deg); }
.scribble { position: relative; white-space: nowrap; color: var(--clay); font-style: italic; }
.scribble::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: -.12em; height: .32em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 14 C 40 4, 80 18, 120 9 S 180 6, 197 11' fill='none' stroke='%23d7a03e' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 34em; margin: 0 auto 28px; }

.doodles .d { position: absolute; width: 84px; height: 84px; color: var(--ink); opacity: .2; }
.d1 { left: 4%; top: 60px; transform: rotate(-10deg); }
.d2 { right: 6%; top: 40px; transform: rotate(8deg); color: var(--clay) !important; opacity: .35 !important; }
.d3 { left: 7%; top: 380px; transform: rotate(6deg); color: var(--olive) !important; opacity: .35 !important; }
.d4 { right: 4%; top: 330px; transform: rotate(-7deg); }
.d5 { left: 14%; bottom: 40px; transform: rotate(-4deg); }
.d6 { right: 13%; bottom: 60px; transform: rotate(10deg); color: var(--mustard) !important; opacity: .5 !important; }
@media (max-width: 900px) { .doodles { display: none; } }

/* drop zone: a paper price tag */
.drop { position: relative; background: var(--card); border: 2px dashed var(--ink-soft); border-radius: 26px 26px 26px 26px; padding: 34px 24px 30px; cursor: pointer;
  box-shadow: 6px 7px 0 var(--paper-2), 0 18px 40px -24px rgba(59,47,37,.45); transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.drop:hover, .drop:focus-visible { transform: rotate(-.6deg) translateY(-2px); border-color: var(--clay); outline: none; }
.drop.is-over { background: var(--clay-soft); border-color: var(--clay); transform: scale(1.02) rotate(-.8deg); }
.drop-hole { position: absolute; top: 14px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; border: 2px solid var(--ink-soft); background: var(--paper); }
.drop-icon { width: 64px; height: 64px; color: var(--clay); margin-top: 6px; }
.drop.is-over .drop-icon { animation: bob .6s ease-in-out infinite alternate; }
@keyframes bob { to { transform: translateY(-6px) rotate(-6deg); } }
.drop-title { font-family: var(--display); font-weight: 600; font-size: 1.45rem; margin: 6px 0 2px; font-variation-settings: "SOFT" 100; }
.drop-sub { color: var(--ink-soft); margin: 0; font-size: .95rem; }
.u { color: var(--clay); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.drop-busy { display: flex; gap: 20px; align-items: center; text-align: left; }
.drop-busy img { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; border: 3px solid #fff; box-shadow: 0 4px 12px rgba(59,47,37,.2); transform: rotate(-4deg); flex: none; }
.drop-busy > div { flex: 1; }
.bar { height: 8px; background: var(--paper-2); border-radius: 99px; overflow: hidden; margin: 8px 0; }
.bar span { display: block; height: 100%; width: 5%; background: var(--clay); border-radius: 99px; transition: width .25s ease; }

.or { display: flex; align-items: center; gap: 14px; color: var(--ink-soft); font-size: .9rem; margin: 22px 0 14px; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1.5px dotted var(--line); }
.type-row { display: flex; gap: 10px; }
.type-row input { flex: 1; font-size: 1.1rem; padding: 14px 18px; border-radius: 999px; }
.tries { font-size: .92rem; color: var(--ink-soft); margin: 14px 0 0; }
.chip { font: 600 .85rem var(--body); color: var(--ink); background: var(--mustard-soft); border: 0; border-radius: 999px; padding: 3px 11px; margin: 0 4px; cursor: pointer; }
.chip:nth-child(2) { background: var(--olive-soft); }
.chip:nth-child(3) { background: var(--clay-soft); }
.chip:hover { filter: brightness(.96); transform: rotate(-2deg); }
.data-note { font-size: .82rem; color: var(--ink-soft); margin: 18px 0 0; }

/* inputs & buttons */
input, select, textarea { font: inherit; color: var(--ink); background: #fffdf8; border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 14px; width: 100%; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, .chip:focus-visible, a:focus-visible { outline: 3px solid color-mix(in srgb, var(--clay) 40%, transparent); outline-offset: 2px; border-color: var(--clay); }
.btn { font: 700 1rem var(--body); color: #fff8ee; background: var(--clay); border: 0; border-radius: 999px; padding: 12px 26px; cursor: pointer; box-shadow: 3px 3px 0 var(--ink); transition: transform .12s ease, box-shadow .12s ease; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn:disabled { opacity: .6; cursor: progress; }

/* results */
.result { text-align: left; margin-top: 28px; animation: rise .35s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.verdict { display: flex; gap: 14px; align-items: flex-start; border-radius: var(--radius); padding: 18px 20px; margin-bottom: 14px; }
.verdict svg { width: 40px; height: 40px; flex: none; }
.verdict h3 { margin: 0 0 4px; font-size: 1.35rem; }
.verdict p { margin: 0; }
.is-possible_match { background: var(--clay-soft); color: #6d2f15; }
.is-check_suggested, .is-need_more_info { background: var(--mustard-soft); color: #5f4310; }
.is-no_match_found { background: var(--olive-soft); color: #3e4a17; }
.found { font-size: .92rem; color: var(--ink-soft); margin: 0 0 12px; }
.found b { font-family: ui-monospace, Menlo, monospace; color: var(--ink); background: var(--card); border: 1.5px dashed var(--line); border-radius: 8px; padding: 1px 8px; margin: 0 2px; }
.matches { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.match { display: grid; grid-template-columns: 76px 1fr; gap: 14px; background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; padding: 14px; }
.match .thumb { width: 76px; height: 76px; border-radius: 10px; object-fit: cover; background: var(--paper-2); }
.match .thumb-ph { display: grid; place-items: center; color: var(--ink-soft); }
.match .thumb-ph svg { width: 40px; height: 40px; }
.match a { font-weight: 600; color: var(--ink); }
.match .meta { font-size: .84rem; color: var(--ink-soft); margin: 2px 0 4px; }
.match .why { font-size: .9rem; margin: 0; }
.tag { display: inline-block; font-size: .74rem; font-weight: 700; border-radius: 6px; padding: 1px 8px; margin-right: 6px; vertical-align: 2px; transform: rotate(-2deg); }
.tag-strong { background: var(--clay); color: #fff8ee; }
.tag-possible { background: var(--mustard); color: #3b2a07; }
.tag-related { background: var(--paper-2); color: var(--ink-soft); }
.fine { font-size: .84rem; color: var(--ink-soft); margin: 12px 0 0; }
@media (max-width: 480px) { .match { grid-template-columns: 1fr; } .match .thumb { width: 100%; height: 120px; } }

/* decide bar */
.decide { margin-top: 16px; background: var(--card); border: 1.5px dashed var(--line); border-radius: 14px; padding: 14px 16px; }
.decide-q { font-family: var(--display); font-weight: 600; margin: 0 0 10px; }
.decide-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.dec-btn { font: 600 .92rem var(--body); border: 1.5px solid var(--ink); border-radius: 999px; padding: 7px 14px; cursor: pointer; background: #fffdf8; color: var(--ink); }
.dec-btn:hover { transform: rotate(-1.5deg); }
.dec-btn.dec-ok:hover { background: var(--olive-soft); } .dec-btn.dec-hold:hover { background: var(--mustard-soft); } .dec-btn.dec-pull:hover { background: var(--clay-soft); }
.dec-note { font-size: .92rem; padding: 8px 12px; }
.decide-done { margin: 0; color: var(--olive); font-weight: 600; }

/* your checks */
.log { padding-top: 8px; }
.log-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.log-count { font-family: var(--body); font-size: .9rem; font-weight: 600; color: var(--ink-soft); background: var(--paper-2); border-radius: 999px; padding: 2px 10px; vertical-align: 6px; }
.small-p { margin: 0; font-size: .92rem; }
.log-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.btn-soft { background: var(--card); color: var(--ink); box-shadow: 2px 2px 0 var(--ink); border: 1.5px solid var(--ink); padding: 8px 16px; font-size: .92rem; }
.btn-soft:hover { box-shadow: 3px 3px 0 var(--ink); }
.link-btn { background: none; border: 0; color: var(--ink-soft); text-decoration: underline; cursor: pointer; font: inherit; font-size: .9rem; }
.log-status { min-height: 1.4em; font-size: .92rem; color: var(--olive); font-weight: 600; margin: 10px 0; }
.log-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.log-item { display: flex; justify-content: space-between; gap: 14px; background: var(--card); border-radius: 14px; padding: 12px 14px; border-left: 6px solid var(--line); }
.log-item.dec-ok { border-left-color: var(--olive); } .log-item.dec-hold { border-left-color: var(--mustard); } .log-item.dec-pull { border-left-color: var(--clay); }
.log-main { min-width: 0; }
.log-models b { font-family: ui-monospace, Menlo, monospace; }
.log-pill { font-size: .75rem; background: var(--paper-2); border-radius: 99px; padding: 1px 8px; margin-left: 8px; color: var(--ink-soft); }
.log-new { font-size: .75rem; font-weight: 700; background: var(--clay); color: #fff8ee; border-radius: 6px; padding: 1px 8px; margin-left: 8px; animation: rise .4s ease; }
.log-match { font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-match a { color: var(--ink); }
.log-meta { font-size: .82rem; color: var(--ink-soft); }
.log-side { display: flex; gap: 6px; align-items: flex-start; flex: none; }
.dec-select { width: auto; padding: 5px 8px; font-size: .85rem; border-radius: 8px; }
.log-del { background: none; border: 0; font-size: 1.3rem; line-height: 1; color: var(--ink-soft); cursor: pointer; padding: 4px 6px; }
@media (max-width: 560px) { .log-item { flex-direction: column; } .log-match { white-space: normal; } }

/* how */
.how { background: var(--paper-2) var(--noise); border-block: 1.5px dashed var(--line); }
.how h2 { text-align: center; margin-bottom: 36px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { background: var(--card); border-radius: var(--radius); padding: 26px 22px; box-shadow: 4px 5px 0 var(--line); }
.step svg { width: 54px; height: 54px; margin-bottom: 8px; }
.s1 { transform: rotate(-1deg); } .s1 svg { color: var(--clay); }
.s2 { transform: rotate(.8deg) translateY(10px); } .s2 svg { color: var(--olive); }
.s3 { transform: rotate(-.6deg); } .s3 svg { color: var(--mustard); }
.step p { margin: 0; color: var(--ink-soft); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } .s2 { transform: rotate(.8deg); } }

/* why */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.note-card { background: var(--card); border-radius: 6px 22px 8px 20px; padding: 28px; box-shadow: 0 16px 30px -22px rgba(59,47,37,.5); position: relative; }
.note-card::before { content: ""; position: absolute; top: -10px; left: 40px; width: 70px; height: 22px; background: rgba(215,160,62,.45); transform: rotate(-4deg); }
.note-card.tilt { transform: rotate(1deg); }
.note-card.tilt::before { left: auto; right: 40px; background: rgba(168,179,142,.6); transform: rotate(5deg); }
.hand { font-family: var(--display); font-style: italic; color: var(--olive); font-size: 1.3rem; margin: 0; }
@media (max-width: 760px) { .why-grid { grid-template-columns: 1fr; } }

/* pilot */
.pilot h2, .pilot > .wrap > p { text-align: center; }
.paper-form { background: var(--card); border-radius: var(--radius); padding: 26px; display: grid; gap: 16px; box-shadow: 6px 7px 0 var(--paper-2); margin-top: 20px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } .type-row { flex-direction: column; } }
.field { display: grid; gap: 6px; }
label { font-weight: 600; font-size: .95rem; }
.opt { font-weight: 400; color: var(--ink-soft); font-size: .85rem; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { width: auto; margin-top: 6px; accent-color: var(--clay); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.status { margin: 0; }
.status-ok { color: var(--olive); font-weight: 600; }
.status-error { color: var(--clay); }

/* limits */
.limits { padding-top: 24px; }
.limits ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.limits li { padding-left: 30px; position: relative; }
.limits li::before { content: "✿"; position: absolute; left: 0; top: 0; color: var(--clay); }

/* footer */
.foot { border-top: 1.5px dashed var(--line); padding: 30px 0 44px; }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: flex-start; }
.small-brand { font-size: 1.2rem; }
.foot-sub { font-size: .85rem; color: var(--ink-soft); margin: 4px 0 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; }
.foot-links a { color: var(--ink); }

/* legal pages */
.legal { padding: 32px 0 72px; }
.legal .paper { background: var(--card); border-radius: var(--radius); padding: 32px; box-shadow: 6px 7px 0 var(--paper-2); }
.legal h1 { font-size: 2.2rem; }
.legal h2 { font-size: 1.25rem; margin-top: 1.6em; }
.muted { color: var(--ink-soft); }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
