/* blurt.agihunt.info — one stylesheet, no build step. Light only: warm paper, the chicken's yellow, the pen's coral. */
:root {
  --paper: #fffdf7;
  --ink: #1f1a17;
  --soft: #6b625b;
  --coral: #ff5c3d;   /* the recorder's border and pen ink */
  --amber: #ffc23d;   /* the recorder's "paused" colour */
  --yolk: #ffd84d;
  --card: #ffffff;
  --line: 2.5px solid var(--ink);
  --shadow: 5px 5px 0 var(--ink);
  --r: 18px;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, video { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
section { padding: 88px 0; }
h2 { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--coral); margin-bottom: 12px; }
.lead { color: var(--soft); font-size: 19px; max-width: 36em; margin-top: 16px; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ---- nav */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid rgb(31 26 23 / 0.08); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 19px; text-decoration: none; margin-right: auto; }
.brand img { width: 40px; height: 40px; }
.brand small { font-weight: 600; color: var(--soft); font-size: 15px; }
.nav a.link { text-decoration: none; font-size: 15px; font-weight: 600; color: var(--soft); }
.nav a.link:hover { color: var(--ink); }
.gh { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: var(--line); border-radius: 999px; background: var(--card); font-weight: 700; font-size: 15px; text-decoration: none; box-shadow: 3px 3px 0 var(--ink); transition: transform 0.12s, box-shadow 0.12s; }
.gh:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.gh svg { width: 18px; height: 18px; }
.gh .stars:empty { display: none; }
.gh .stars::before { content: "★ "; color: var(--amber); }

/* ---- hero */
.hero { padding: 72px 0 40px; text-align: center; }
.hero h1 { font-size: clamp(54px, 11vw, 148px); line-height: 1.04; font-weight: 800; letter-spacing: -0.03em; }
.hero h1 span { white-space: nowrap; }
.hero.en h1 { font-size: clamp(42px, 8.6vw, 118px); }
.closing h2 { text-wrap: balance; }
.hero .sub { font-size: clamp(18px, 2.1vw, 23px); color: var(--soft); max-width: 30em; margin: 26px auto 0; }

/* the pen: a hand-drawn loop around a word, drawn when it scrolls into view */
.circled { position: relative; display: inline-block; white-space: nowrap; }
.circled svg { position: absolute; left: -13%; top: -15%; width: 126%; height: 134%; overflow: visible; pointer-events: none; }
/* no vector-effect: with non-scaling strokes Chrome measures dashes in screen pixels and pathLength stops working */
.circled path { fill: none; stroke: var(--coral); stroke-width: 2.7; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.circled.drawn path { stroke-dashoffset: 0; transition: stroke-dashoffset 0.9s cubic-bezier(0.5, 0, 0.2, 1) 0.25s; }
.no-js .circled path { stroke-dashoffset: 0; }

/* ---- actions: download + install command */
.actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 16px; margin-top: 36px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 0 26px; min-height: 58px; border: var(--line); border-radius: 14px; background: var(--coral); color: #fff; font-weight: 800; font-size: 18px; text-decoration: none; box-shadow: var(--shadow); transition: transform 0.12s, box-shadow 0.12s; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.btn svg { width: 20px; height: 20px; }
.btn small { font-weight: 600; opacity: 0.9; font-size: 14px; }
.cmd { display: inline-flex; align-items: center; gap: 14px; padding: 0 10px 0 20px; min-height: 58px; border: var(--line); border-radius: 14px; background: var(--card); box-shadow: var(--shadow); font: 600 16px/1 var(--mono); cursor: pointer; max-width: 100%; }
.cmd code { font: inherit; overflow-x: auto; white-space: nowrap; user-select: all; scrollbar-width: none; }
.cmd code::-webkit-scrollbar { display: none; }
.cmd code::before { content: "$ "; color: var(--soft); user-select: none; }
.cmd button { flex: none; border: 0; border-radius: 10px; background: var(--yolk); color: var(--ink); font: 700 14px/1 var(--sans); padding: 11px 14px; cursor: pointer; min-width: 5.2em; }
.cmd button.ok { background: var(--ink); color: #fff; }
.no-js .cmd button { display: none; }
.fine { margin-top: 18px; font-size: 14px; color: var(--soft); }
.fine b { color: var(--ink); font-weight: 600; }

/* ---- film */
.film { margin-top: 56px; position: relative; border: var(--line); border-radius: 22px; overflow: hidden; box-shadow: 8px 8px 0 var(--ink); background: #0b0b10; aspect-ratio: 16 / 9; }
.film video { width: 100%; height: 100%; object-fit: cover; }
.sound { position: absolute; right: 16px; top: 16px; border: var(--line); border-radius: 999px; background: var(--yolk); color: var(--ink); font: 800 15px/1 var(--sans); padding: 11px 16px; cursor: pointer; box-shadow: 3px 3px 0 var(--ink); }
.sound[hidden] { display: none; }

/* ---- numbers */
.versus { display: grid; grid-template-columns: 1fr auto 1fr; gap: 28px; align-items: center; margin-top: 44px; }
.versus > div { border: var(--line); border-radius: var(--r); padding: 30px 28px; background: var(--card); }
.versus .after { background: var(--yolk); box-shadow: var(--shadow); }
.versus .what { font-weight: 700; color: var(--soft); }
.versus .after .what { color: var(--ink); }
.versus .big { font-size: clamp(54px, 8vw, 104px); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }
.versus .before .big { color: var(--soft); text-decoration: line-through; text-decoration-thickness: 5px; text-decoration-color: var(--coral); }
.versus .arrow { font-size: 44px; font-weight: 800; font-style: normal; }
.source { margin-top: 18px; font-size: 14px; color: var(--soft); }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; margin-top: 34px; font-weight: 700; }
.facts span { border: 2px solid var(--ink); border-radius: 999px; padding: 7px 16px; background: var(--card); font-size: 15px; }
.facts i { font-style: normal; color: var(--soft); align-self: center; }
.pitch { margin-top: 64px; font-size: clamp(28px, 4.2vw, 50px); font-weight: 800; line-height: 1.25; letter-spacing: -0.02em; }
.pitch em { font-style: normal; color: var(--coral); }

/* ---- how */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; counter-reset: step; }
.step { border: var(--line); border-radius: var(--r); padding: 24px 22px 26px; background: var(--card); counter-increment: step; }
.step::before { content: counter(step); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; font-size: 16px; }
.step h3 { font-size: 20px; margin: 16px 0 8px; line-height: 1.3; }
.step p { color: var(--soft); font-size: 15.5px; }
.keys { display: flex; gap: 8px; margin-top: 18px; }
kbd { display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding: 0 12px; border: var(--line); border-radius: 11px; background: var(--paper); box-shadow: 0 4px 0 var(--ink); font: 700 19px/1 var(--sans); }
kbd.sm { min-width: 30px; height: 30px; padding: 0 8px; border-width: 2px; border-radius: 8px; box-shadow: 0 3px 0 var(--ink); font-size: 14px; }
.keys.legend { flex-wrap: wrap; gap: 8px 14px; font-size: 14px; font-weight: 600; color: var(--soft); }
.keys.legend span { display: inline-flex; align-items: center; gap: 6px; }
.step.first { background: var(--yolk); box-shadow: var(--shadow); }

/* ---- uses */
.uses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.use { border: var(--line); border-radius: var(--r); padding: 24px 22px; background: var(--card); }
.use .emoji { font-size: 30px; line-height: 1; }
.use h3 { font-size: 19px; margin: 14px 0 6px; }
.use p { color: var(--soft); font-size: 15.5px; }
.use.new { border-color: var(--coral); box-shadow: 5px 5px 0 var(--coral); }
.tag { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 6px; background: var(--coral); color: #fff; font-size: 12px; font-weight: 800; vertical-align: 2px; }

/* ---- destinations */
.dest { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 36px; }
.dest span { display: inline-flex; align-items: center; gap: 10px; border: var(--line); border-radius: 14px; padding: 13px 20px; background: var(--card); font-weight: 800; font-size: 18px; box-shadow: 4px 4px 0 var(--ink); }
.dest svg { width: 24px; height: 24px; }
.dest small { font-weight: 600; color: var(--soft); font-size: 14px; }

/* ---- privacy */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 44px; }
.col { border: var(--line); border-radius: var(--r); padding: 30px 28px; background: var(--card); }
.col.local { background: var(--yolk); box-shadow: var(--shadow); }
.col h3 { font-size: 24px; padding-bottom: 14px; border-bottom: 2px solid rgb(31 26 23 / 0.18); }
.col ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 14px; }
.col li { font-size: 16px; color: rgb(31 26 23 / 0.74); }
.col li b { color: var(--ink); }

/* ---- open source */
.oss { border: var(--line); border-radius: 26px; padding: 52px 44px; background: var(--ink); color: #fff; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.oss .eyebrow { color: var(--yolk); }
.oss p { color: rgb(255 255 255 / 0.72); margin-top: 16px; }
.oss ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.oss li a { display: flex; justify-content: space-between; gap: 16px; padding: 15px 18px; border: 2px solid rgb(255 255 255 / 0.28); border-radius: 12px; text-decoration: none; font-weight: 700; }
.oss li a:hover { border-color: var(--yolk); color: var(--yolk); }
.oss li small { font-weight: 500; color: rgb(255 255 255 / 0.55); font-family: var(--mono); font-size: 13px; align-self: center; }

/* ---- faq */
.faq { max-width: 860px; margin: 40px auto 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
details { border: var(--line); border-radius: 16px; background: var(--card); padding: 0 24px; }
summary { cursor: pointer; font-weight: 800; font-size: 19px; padding: 20px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 26px; line-height: 1; color: var(--coral); }
details[open] summary::after { content: "–"; }
details > :not(summary) { color: rgb(31 26 23 / 0.78); font-size: 16px; }
details > :last-child { padding-bottom: 22px; }
.tablewrap { overflow-x: auto; margin: 14px 0 10px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; white-space: nowrap; }
th, td { text-align: left; padding: 9px 14px 9px 0; border-bottom: 1px solid rgb(31 26 23 / 0.14); }
th { font-size: 13px; color: var(--soft); font-weight: 700; }
td:last-child, th:last-child { padding-right: 0; }
.note { font-size: 14px; color: var(--soft); }

/* ---- closing + footer */
.closing { text-align: center; padding: 96px 0 104px; }
.closing h2 { font-size: clamp(36px, 6vw, 76px); }
footer { border-top: 1px solid rgb(31 26 23 / 0.12); padding: 30px 0 44px; font-size: 14px; color: var(--soft); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
footer a { text-decoration: none; font-weight: 600; }
footer a:hover { color: var(--ink); }
footer .sp { margin-right: auto; }

@media (max-width: 900px) {
  section { padding: 64px 0; }
  .nav a.link { display: none; }
  .nav a.link.lang { display: inline; }
  .steps, .uses { grid-template-columns: 1fr 1fr; }
  .oss { grid-template-columns: 1fr; padding: 40px 26px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .hero { padding-top: 48px; }
  .brand small { display: none; }
  .actions { flex-direction: column; align-items: stretch; }
  .btn, .cmd { justify-content: center; }
  .cmd { justify-content: space-between; font-size: 13px; padding-left: 14px; gap: 8px; }
  .cmd button { padding: 10px 10px; min-width: 4.4em; }
  .versus { grid-template-columns: 1fr; gap: 14px; }
  .versus .arrow { transform: rotate(90deg); justify-self: center; line-height: 0.6; }
  .steps, .uses, .cols { grid-template-columns: 1fr; }
  .film { border-radius: 14px; box-shadow: 5px 5px 0 var(--ink); }
  .sound { right: 10px; top: 10px; padding: 9px 12px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .circled path { stroke-dashoffset: 0; transition: none !important; }
  .btn, .gh { transition: none; }
}
