/* Generational Makers. The palette and type follow Le Four Argile: paper, stone, clay, one kiln accent. */
:root {
  --paper: #faf8f5; --surface: #ffffff; --ink: #292524; --stone: #78716c; --faint: #a8a29e; --line: #e7e5e4;
  --clay: #96735a; --kiln: #b74412; --wash: #f3efe9; --ok: #4d6b4f;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, 0, 0, 1);
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #1c1917; --surface: #24201d; --ink: #f3efe9; --stone: #b5ada6; --faint: #8a827b; --line: #3a3531;
          --clay: #d4b596; --kiln: #f09442; --wash: #2b2622; --ok: #9dbf9f; }
}
@view-transition { navigation: auto; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans); }
a { color: inherit; text-decoration-color: var(--faint); text-underline-offset: 3px; transition: color .25s var(--ease); }
a:hover { color: var(--kiln); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.2; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); } h2 { font-size: 1.35rem; margin-top: 2.2rem; } h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; } .wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.kicker { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin: 0 0 .5rem; }
.muted { color: var(--stone); } .small { font-size: .875rem; } .lede { font: 1.15rem/1.55 var(--serif); color: var(--stone); max-width: 62ch; }
.prose { max-width: 68ch; } .prose p, .prose li { font-family: var(--serif); font-size: 1.05rem; }

header.top { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 5; }
header.top .wrap { display: flex; align-items: baseline; gap: 22px; padding-top: 14px; padding-bottom: 12px; flex-wrap: wrap; }
.mark { font: 1.15rem var(--serif); text-decoration: none; white-space: nowrap; }
nav.main { display: flex; gap: 16px; flex: 1; overflow-x: auto; scrollbar-width: none; }
nav.main a { font-size: .82rem; text-decoration: none; color: var(--stone); padding-bottom: 2px; border-bottom: 1px solid transparent; white-space: nowrap; }
nav.main a[aria-current] { color: var(--ink); border-color: var(--kiln); }
.who { font-size: .78rem; color: var(--faint); white-space: nowrap; }
main { padding: 36px 0 80px; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
footer { border-top: 1px solid var(--line); padding: 18px 0 40px; color: var(--faint); font-size: .78rem; }

.flash { background: var(--wash); border-left: 2px solid var(--kiln); padding: 10px 14px; font-size: .9rem; }
.check { background: var(--wash); border-left: 2px solid var(--clay); padding: 14px 18px; margin: 1.4rem 0; max-width: 68ch; }
.check p { margin: 0; font-size: .92rem; color: var(--stone); }
.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid > * { background: var(--surface); padding: 18px; }
.cols-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); } .cols-4 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
a.card { text-decoration: none; display: block; transition: background .3s var(--ease); } a.card:hover { background: var(--wash); color: inherit; }
.card h3 { margin: .1rem 0 .35rem; } .card p { margin: 0; font-size: .85rem; color: var(--stone); }
.num { font: 1.9rem var(--serif); display: block; }
.bar { height: 2px; background: var(--line); margin-top: 12px; } .bar i { display: block; height: 100%; background: var(--kiln); transition: width .6s var(--ease); }
.pill { display: inline-block; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border: 1px solid var(--line); border-radius: 99px; color: var(--stone); white-space: nowrap; }
.pill.s-ready, .pill.verified, .pill.yes { color: var(--ok); border-color: currentColor; } .pill.s-drafted, .pill.s-in { color: var(--clay); border-color: currentColor; }
.pill.declined, .pill.nothing { color: var(--kiln); border-color: currentColor; }

.loop { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 340px); gap: 40px; align-items: center; margin-bottom: 2.5rem; }
.loop svg { width: 100%; height: auto; } .loop svg text { font: 11px var(--sans); fill: var(--stone); letter-spacing: .06em; }
.loop svg .ring { fill: none; stroke: var(--line); stroke-width: 1.5; } .loop svg .arc { fill: none; stroke: var(--kiln); stroke-width: 1.5; stroke-dasharray: 6 9; animation: turn 40s linear infinite; transform-origin: 160px 160px; }
.loop svg circle.dot { fill: var(--paper); stroke: var(--clay); stroke-width: 1.5; }
@keyframes turn { to { transform: rotate(360deg); } } @media (prefers-reduced-motion: reduce) { .loop svg .arc { animation: none; } }
@media (max-width: 720px) { .loop { grid-template-columns: 1fr; gap: 16px; } .loop svg { max-width: 300px; margin: 0 auto; display: block; } }

ol.questions { list-style: none; padding: 0; margin: 0; counter-reset: q; }
ol.questions > li { counter-increment: q; border-top: 1px solid var(--line); padding: 22px 0 22px 44px; position: relative; scroll-margin-top: 80px; }
ol.questions > li::before { content: counter(q); position: absolute; left: 0; top: 20px; font: 1.3rem var(--serif); color: var(--faint); }
ol.questions > li:target { background: linear-gradient(90deg, var(--wash), transparent); }
.q { font: 1.15rem/1.4 var(--serif); margin: 0 0 .3rem; } .hint { font-size: .86rem; color: var(--stone); margin: 0 0 .8rem; }
.answer { border-left: 2px solid var(--clay); padding: 2px 0 2px 14px; margin: 12px 0; } .answer p { margin: 0 0 .5em; }
.answer .by { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
details.reply summary { cursor: pointer; font-size: .82rem; color: var(--stone); list-style: none; } details.reply summary::-webkit-details-marker { display: none; }
details.reply summary:hover { color: var(--kiln); } details.reply[open] summary { margin-bottom: 8px; }

label { display: block; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--stone); margin-bottom: 4px; }
input[type=text], input[type=password], textarea, select { width: 100%; font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: 2px; padding: 9px 11px; transition: border-color .25s var(--ease); }
textarea { min-height: 96px; resize: vertical; font-family: var(--serif); line-height: 1.5; field-sizing: content; } textarea.tall { min-height: 240px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--clay); }
.btn { font: inherit; font-size: .82rem; letter-spacing: .04em; background: var(--ink); color: var(--paper); border: 0; border-radius: 2px; padding: 9px 18px; cursor: pointer; text-decoration: none; display: inline-block; transition: background .25s var(--ease); }
.btn:hover { background: var(--kiln); color: #fff; } .btn.quiet { background: none; color: var(--ink); border: 1px solid var(--line); } .btn.quiet:hover { border-color: var(--kiln); color: var(--kiln); background: none; }
form.sheet { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; max-width: 760px; } form.sheet .full { grid-column: 1 / -1; }
@media (max-width: 620px) { form.sheet { grid-template-columns: 1fr; } }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; } .between { justify-content: space-between; }
.gate { max-width: 420px; margin: 8vh auto; }

.scroll { overflow-x: auto; } table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th { text-align: left; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 500; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; } td.t { font-family: var(--serif); font-size: 1rem; min-width: 180px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 18px; } .filters a { font-size: .78rem; text-decoration: none; padding: 4px 12px; border: 1px solid var(--line); border-radius: 99px; color: var(--stone); }
.filters a[aria-current] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.empty { border: 1px dashed var(--line); padding: 36px 24px; text-align: center; color: var(--stone); }
.thumb { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--wash); display: block; margin-bottom: 12px; } img.full { max-width: 100%; max-height: 420px; display: block; margin-bottom: 20px; }
.pager { display: flex; justify-content: space-between; gap: 20px; margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .9rem; }
pre.draft { white-space: pre-wrap; font: 1rem/1.65 var(--serif); background: var(--surface); border: 1px solid var(--line); padding: 28px; max-width: 76ch; }
.report table { margin: 1rem 0; } .report { max-width: 100%; } .report h2 { border-top: 1px solid var(--line); padding-top: 1.5rem; }

article.supplier { border-top: 1px solid var(--line); padding: 22px 0; max-width: 820px; } article.supplier h3 { margin: 0; font-size: 1.25rem; }
article.supplier .good { font: 1.05rem var(--serif); margin: .5rem 0 .4rem; } article.supplier p.muted { font-size: .92rem; margin-bottom: .7rem; }
pre.mail { white-space: pre-wrap; font: .92rem/1.55 var(--sans); background: var(--surface); border: 1px solid var(--line); padding: 16px 18px; margin: 0 0 .7rem; }
.optional { font: 1.05rem/1.5 var(--serif); color: var(--stone); max-width: 62ch; margin-bottom: 1.2rem; }
.mic { display: inline-flex; gap: 8px; align-items: center; } .mic select { width: auto; padding: 7px 8px; font-size: .8rem; }
.btn.rec { background: var(--kiln); color: #fff; } .btn.rec::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #fff; margin-right: 8px; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } } @media (prefers-reduced-motion: reduce) { .btn.rec::before { animation: none; } }
.mic-note { font-size: .8rem; color: var(--stone); margin: .4rem 0 0; min-height: 1.2em; }
.stock { margin: 1rem 0 .9rem; } .stock .num { font-size: 1.5rem; } article.supplier p.reading { max-width: 70ch; }
