/* Qteros — one stylesheet for every page.
   Editorial paper palette, a forest-green accent for the product and coral for the MP3 action.
   Hand-written, no build step: this file is the final artifact. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-400-800.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/plus-jakarta-sans-400-800.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f5f0e6;
  --paper-deep: #ece4d6;
  --surface: #fffdf7;
  --ink: #17231e;
  --ink-soft: #33423a;
  --muted: #66746c;
  --line: #d8cfbf;
  --line-strong: #bfb3a0;
  --forest: #0d5c4d;
  --forest-deep: #073d33;
  --mint: #d9e9e2;
  --coral: #e45435;
  --coral-deep: #c23e22;
  --gold: #dda62b;
  --error: #a92f1c;
  --font-display: "Bricolage Grotesque", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* tokens the shared suggestion list reads */
  --card: var(--surface);
  --fg: var(--ink);
  --border: var(--line);
  --radius: 12px;
  --ring: rgba(13, 92, 77, 0.13);
  --dl: var(--forest);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 18% 8%, rgba(221, 166, 43, 0.16), transparent 26rem),
    radial-gradient(circle at 88% 24%, rgba(13, 92, 77, 0.12), transparent 30rem);
  background-repeat: no-repeat;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--forest-deep); }
button, input { font: inherit; }
::selection { background: var(--mint); color: var(--forest-deep); }
:focus-visible { outline: 3px solid rgba(13, 92, 77, 0.35); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { width: 100%; max-width: 880px; margin: 0 auto; padding: 0 24px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 8px; background: var(--ink); color: var(--paper);
  text-decoration: none; transition: top 0.15s;
}
.skip:focus { top: 12px; color: var(--paper); }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 240, 230, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.site-header .bar {
  display: flex; align-items: center; gap: 18px;
  width: 100%; max-width: 1120px; margin: 0 auto; padding: 12px 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  margin-right: auto; color: var(--ink); text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand .word { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.brand .word i { font-style: normal; color: var(--coral); }
.site-nav { display: flex; align-items: center; gap: 22px; font-size: 0.9rem; font-weight: 600; }
.site-nav a { color: var(--ink-soft); text-decoration: none; }
.site-nav a:hover { color: var(--forest); }
.header-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--surface); color: var(--ink-soft); font-size: 0.78rem; font-weight: 700;
  white-space: nowrap;
}
.header-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--forest); }

/* ---------- hero ---------- */

.hero { padding: 64px 0 20px; }
.hero-inner { max-width: 880px; margin: 0 auto; padding: 0 24px; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  margin: 0; padding: 6px 14px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--surface); color: var(--ink-soft);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.eyebrow .spark { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.hero h1 {
  margin: 22px 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7.4vw, 4.55rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.05em;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  color: var(--forest);
  background: linear-gradient(transparent 64%, rgba(228, 84, 53, 0.25) 64%);
}
.hero .lede {
  max-width: 640px; margin: 20px auto 0;
  color: var(--ink-soft); font-size: 1.08rem; line-height: 1.7;
  text-wrap: pretty;
}
.hero .lede strong { color: var(--ink); }

/* ---------- converter card ---------- */

.converter {
  max-width: 780px; margin: 30px auto 0; padding: 18px;
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: 22px;
  box-shadow: 10px 10px 0 rgba(13, 92, 77, 0.14), 0 30px 70px -46px rgba(23, 35, 30, 0.55);
  text-align: left;
}
.composer-field {
  position: relative; display: flex; align-items: center;
  background: var(--paper-deep);
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.composer-field:focus-within { border-color: var(--forest); box-shadow: 0 0 0 4px var(--ring); }
.field-icon {
  position: absolute; left: 15px; width: 20px; height: 20px;
  color: var(--muted); pointer-events: none;
}
#ym-url {
  width: 100%; height: 60px; padding: 0 46px 0 46px;
  border: 0; background: transparent; color: var(--ink); font-size: 1.04rem;
  border-radius: 13px;
}
#ym-url::placeholder { color: #7c857e; }
#ym-url:focus { outline: none; }
#ym-url[aria-invalid="true"] { color: var(--error); }
.clear {
  position: absolute; right: 8px; display: grid; place-items: center;
  width: 34px; height: 34px; padding: 0; border: 0; border-radius: 9px;
  background: transparent; color: var(--muted); cursor: pointer;
}
.clear:hover { background: rgba(23, 35, 30, 0.07); color: var(--ink); }
.clear svg { width: 18px; height: 18px; }
.composer-hint { margin: 9px 2px 0; color: var(--muted); font-size: 0.78rem; line-height: 1.5; }
.composer-actions { display: flex; gap: 10px; margin-top: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 52px; padding: 0 24px;
  border: 1.5px solid var(--ink); border-radius: 12px;
  font-size: 0.98rem; font-weight: 700; letter-spacing: 0.01em;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform 0.12s, box-shadow 0.12s, background-color 0.12s, color 0.12s;
}
.btn svg { width: 20px; height: 20px; flex: 0 0 auto; }
.btn[hidden] { display: none; }
.btn:disabled { cursor: default; opacity: 0.45; }
.btn-mp3 {
  background: var(--coral); color: #fff;
  box-shadow: 3px 3px 0 var(--ink);
}
.btn-mp3:hover:not(:disabled) { background: var(--coral-deep); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); color: #fff; }
.btn-mp4 { background: var(--surface); color: var(--ink); box-shadow: 3px 3px 0 var(--line-strong); }
.btn-mp4:hover:not(:disabled) { background: var(--paper-deep); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--line-strong); color: var(--ink); }
.btn-search { background: var(--forest); color: #fff; box-shadow: 3px 3px 0 var(--ink); }
.btn-search:hover:not(:disabled) { background: var(--forest-deep); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); color: #fff; }
.composer-actions .btn { flex: 1 1 0; }
.composer-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px;
  margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line);
  color: var(--muted); font-size: 0.78rem;
}
.composer-foot a { color: inherit; }
.composer-foot .free { color: var(--forest); font-weight: 700; }

.note {
  margin: 12px 2px 0; min-height: 22px;
  color: var(--ink-soft); font-size: 0.9rem; line-height: 1.5;
  overflow-wrap: anywhere;
}
.note[data-error="true"] { color: var(--error); }
.note strong { display: block; color: inherit; font-weight: 700; }
.note .hint { display: block; margin-top: 2px; font-weight: 400; opacity: 0.85; }
.note .btn { display: flex; width: fit-content; margin-top: 10px; min-height: 42px; padding: 0 16px; font-size: 0.875rem; box-shadow: none; }

.progress {
  margin: 10px 2px 0; height: 6px; width: 100%;
  border-radius: 999px; background: var(--paper-deep); overflow: hidden;
  opacity: 0; transition: opacity 0.2s;
}
.progress[data-state="running"], .progress[data-state="done"], .progress[data-state="ready"] { opacity: 1; }
.progress-fill { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--forest), #1f8a72); transition: width 0.35s ease; }
.progress[data-state="ready"] .progress-fill, .progress[data-state="done"] .progress-fill { background: var(--coral); }
.progress[data-unknown="true"] .progress-fill { width: 34%; animation: qteros-slide 1.15s ease-in-out infinite; }
@keyframes qteros-slide { 0% { margin-left: -34%; } 100% { margin-left: 100%; } }

.promises {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px;
  margin: 22px 0 0; padding: 0; list-style: none;
  color: var(--ink-soft); font-size: 0.82rem; font-weight: 600;
}
.promises li { display: inline-flex; align-items: center; gap: 7px; }
.promises li::before { content: "✓"; color: var(--forest); font-weight: 800; }

/* ---------- search results ---------- */

.results { margin-top: 16px; }
.results[hidden] { display: none; }
.results-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px;
  padding: 4px 2px 10px; border-bottom: 1px solid var(--line);
}
.results-head h2 { margin: 0; font-family: var(--font-display); font-size: 1.15rem; letter-spacing: -0.02em; }
.results-count { color: var(--muted); font-size: 0.8rem; font-weight: 600; }
.results-list { display: grid; gap: 10px; margin-top: 10px; }
.result {
  display: grid; grid-template-columns: 168px 1fr; gap: 14px;
  padding: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
}
.result[data-state="ready"], .result[data-state="done"] { border-color: rgba(13, 92, 77, 0.45); }
.result[data-state="failed"] { border-color: rgba(169, 47, 28, 0.35); }
.result-thumb {
  position: relative; width: 168px; aspect-ratio: 16 / 9; border-radius: 9px; overflow: hidden;
  background: linear-gradient(135deg, var(--paper-deep), var(--mint));
}
.result-thumb::before {
  content: "♪"; position: absolute; inset: 0; display: grid; place-items: center;
  color: rgba(13, 92, 77, 0.45); font-size: 1.5rem;
}
.result-thumb img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.result-time {
  position: absolute; right: 6px; bottom: 6px; padding: 2px 6px;
  border-radius: 5px; background: rgba(23, 35, 30, 0.86); color: #fff;
  font-size: 0.7rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.result-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.result-title {
  margin: 0; font-size: 0.94rem; font-weight: 700; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  overflow-wrap: anywhere;
}
.result-by { margin: 0; color: var(--muted); font-size: 0.78rem; overflow-wrap: anywhere; }
.result-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.btn-sm {
  min-height: 36px; padding: 0 14px; border-width: 1px; border-radius: 9px;
  font-size: 0.78rem; box-shadow: none;
}
.btn-sm svg { width: 15px; height: 15px; }
.btn-ghost { background: transparent; color: var(--ink-soft); border-color: var(--line-strong); }
.btn-ghost:hover:not(:disabled) { background: var(--paper-deep); color: var(--ink); }
.result-status { grid-column: 1 / -1; }
.result-status .progress { margin: 2px 0 0; }
.result-status .note { margin: 7px 0 0; font-size: 0.8rem; }
.result-cap { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 0.76rem; }
.result-player { grid-column: 1 / -1; }
.result-player[hidden] { display: none; }
.result-player iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 9px; background: #000; }
.results-more { width: 100%; margin-top: 12px; min-height: 44px; }
.results-empty {
  padding: 22px; text-align: center;
  background: var(--paper); border: 1px dashed var(--line-strong); border-radius: 14px;
}
.results-empty-head { margin: 0; font-weight: 700; }
.results-empty-hint { margin: 6px 0 0; color: var(--muted); font-size: 0.86rem; }
.results-empty .btn { margin-top: 12px; min-height: 40px; }
.result-ghost { display: block; height: 106px; background: linear-gradient(90deg, var(--paper) 25%, var(--paper-deep) 37%, var(--paper) 63%); background-size: 400% 100%; animation: qteros-shimmer 1.4s ease infinite; border-style: dashed; }
.result-ghost + .result-ghost { margin-top: 10px; }
@keyframes qteros-shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* ---------- trust strip ---------- */

.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 40px; }
.trust-inner {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  max-width: 1120px; margin: 0 auto; padding: 24px;
}
.trust-item { display: flex; flex-direction: column; gap: 2px; }
.trust-item strong { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: -0.02em; }
.trust-item span { color: var(--muted); font-size: 0.8rem; line-height: 1.5; }

/* ---------- content sections ---------- */

.content { max-width: 880px; margin: 0 auto; padding: 0 24px; }
.section-block { padding: 56px 0 8px; border-top: 1px solid var(--line); margin-top: 48px; }
.section-block:first-of-type { border-top: 0; }
.section-num {
  display: inline-block; margin-bottom: 10px;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--coral);
}
.section-block h2 {
  margin: 0; font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.6vw, 2.35rem); line-height: 1.08; letter-spacing: -0.035em;
  text-wrap: balance;
}
.section-block h2 + p { margin-top: 14px; }
.section-block h3 { margin: 28px 0 0; font-size: 1.06rem; font-weight: 700; }
.section-block p { margin: 13px 0 0; color: var(--ink-soft); }
.section-block p.lead { font-size: 1.04rem; }
.section-block ul, .section-block ol { margin: 13px 0 0; padding-left: 22px; color: var(--ink-soft); }
.section-block li + li { margin-top: 7px; }
.section-block strong { color: var(--ink); }
.section-block code {
  padding: 2px 6px; border-radius: 5px; background: var(--paper-deep);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.86em;
  overflow-wrap: anywhere;
}
.dim { color: var(--muted); font-size: 0.92rem; }

.steps { margin: 20px 0 0; padding: 0; list-style: none; counter-reset: qstep; }
.steps li {
  position: relative; padding: 0 0 0 58px; margin: 0 0 22px;
  color: var(--ink-soft);
}
.steps li:last-child { margin-bottom: 0; }
.steps li::before {
  counter-increment: qstep; content: counter(qstep);
  position: absolute; left: 0; top: -2px;
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 12px; background: var(--ink); color: var(--paper);
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 700;
  box-shadow: 3px 3px 0 var(--mint);
}
.steps strong { display: block; margin-bottom: 3px; color: var(--ink); font-size: 1rem; }
.steps p { margin: 0; }

.note-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px; }
.note-card {
  padding: 20px; border: 1px solid var(--line); border-radius: 15px;
  background: var(--surface);
}
.note-card h3 { margin: 0 0 6px; font-size: 0.98rem; }
.note-card p { margin: 0; font-size: 0.86rem; line-height: 1.6; }
.note-card .tick { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-bottom: 10px; border-radius: 8px; background: var(--mint); color: var(--forest-deep); font-size: 0.8rem; font-weight: 800; }

.band {
  margin: 56px 0 0; padding: 46px 0;
  background: var(--forest-deep); color: var(--paper);
}
.band-inner { max-width: 880px; margin: 0 auto; padding: 0 24px; }
.band .section-num { color: var(--gold); }
.band h2 { color: var(--paper); }
.band p, .band li { color: rgba(245, 240, 230, 0.82); }
.band strong { color: #fff; }
.band a { color: var(--gold); }
.band .note-card { background: rgba(255, 253, 247, 0.06); border-color: rgba(245, 240, 230, 0.18); }
.band .note-card h3 { color: var(--paper); }
.band .note-card p { color: rgba(245, 240, 230, 0.72); }
.band .note-card .tick { background: rgba(221, 166, 43, 0.2); color: var(--gold); }
.band .steps li::before { background: var(--coral); color: #fff; box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.25); }
.band .steps strong { color: #fff; }
.band-follow { margin-top: 26px; }

.checklist { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 32px; color: var(--ink-soft); }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  display: grid; place-items: center; width: 21px; height: 21px;
  border-radius: 6px; background: var(--mint); color: var(--forest-deep);
  font-size: 0.72rem; font-weight: 800;
}
.checklist strong { color: var(--ink); }

.tablewrap { margin-top: 18px; overflow-x: auto; border: 1px solid var(--line); border-radius: 13px; }
table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 0.9rem; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--paper-deep); color: var(--ink); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }
td { color: var(--ink-soft); }
td:first-child { color: var(--ink); font-weight: 600; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }

.cta-band {
  margin-top: 56px; padding: 38px 32px;
  background: var(--coral); color: #fff;
  border: 1.5px solid var(--ink); border-radius: 20px;
  box-shadow: 8px 8px 0 var(--ink);
}
.cta-band h2 { margin: 0; font-family: var(--font-display); font-size: clamp(1.5rem, 3.2vw, 2rem); letter-spacing: -0.03em; }
.cta-band p { margin: 8px 0 0; color: rgba(255, 255, 255, 0.88); }
.cta-band .btn { margin-top: 18px; background: var(--paper); color: var(--ink); border-color: var(--ink); box-shadow: 3px 3px 0 rgba(23, 35, 30, 0.55); }
.cta-band .btn:hover { background: #fff; color: var(--ink); }

/* ---------- FAQ ---------- */

.faq { margin-top: 20px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 2px; cursor: pointer; list-style: none;
  color: var(--ink); font-weight: 700; font-size: 0.98rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: 0 0 auto;
  display: grid; place-items: center; width: 26px; height: 26px;
  border: 1px solid var(--line-strong); border-radius: 8px;
  color: var(--forest); font-size: 1.05rem; font-weight: 600;
}
.faq details[open] summary::after { content: "−"; background: var(--mint); border-color: var(--mint); }
.faq details p { margin: 0 0 16px; color: var(--ink-soft); font-size: 0.94rem; }
.faq details p + p { margin-top: -6px; }

/* ---------- footer ---------- */

.site-footer { margin-top: 72px; background: var(--ink); color: rgba(245, 240, 230, 0.72); }
.footer-inner {
  display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 34px;
  max-width: 1120px; margin: 0 auto; padding: 52px 24px 34px;
}
.footer-brand .brand { color: var(--paper); margin: 0 0 12px; }
.footer-brand p { max-width: 290px; margin: 0; font-size: 0.84rem; line-height: 1.6; color: rgba(245, 240, 230, 0.6); }
.footer-col h3 { margin: 0 0 10px; color: var(--paper); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; }
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li + li { margin-top: 7px; }
.footer-col a { color: inherit; text-decoration: none; font-size: 0.86rem; }
.footer-col a:hover { color: var(--paper); }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  max-width: 1120px; margin: 0 auto; padding: 18px 24px 28px;
  border-top: 1px solid rgba(245, 240, 230, 0.14);
  font-size: 0.78rem; color: rgba(245, 240, 230, 0.52);
}
.footer-base a { color: inherit; }

/* ---------- article pages ---------- */

.page-hero { padding: 48px 0 0; }
.trail { max-width: 800px; margin: 0 auto; padding: 0 24px; font-size: 0.78rem; color: var(--muted); }
.trail ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.trail li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.trail a { color: inherit; text-decoration: none; }
.trail a:hover { color: var(--forest); }
.page-head { max-width: 800px; margin: 0 auto; padding: 18px 24px 0; }
.page-head h1 {
  margin: 0; font-family: var(--font-display);
  font-size: clamp(2.05rem, 5vw, 3.1rem); line-height: 1.03; letter-spacing: -0.04em;
  text-wrap: balance;
}
.page-head .lede { margin: 16px 0 0; color: var(--ink-soft); font-size: 1.05rem; }
.page-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 16px 0 0; color: var(--muted); font-size: 0.78rem; }
.page-meta span { display: inline-flex; align-items: center; gap: 6px; }
.page-meta span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--coral); }

.article {
  max-width: 800px; margin: 26px auto 0; padding: 30px 32px 36px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
}
.article > :first-child { margin-top: 0; }
.article h2 {
  margin: 34px 0 0; padding-top: 26px; border-top: 1px solid var(--line);
  font-family: var(--font-display); font-size: 1.45rem; line-height: 1.2; letter-spacing: -0.025em;
}
.article > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.article h3 { margin: 24px 0 0; font-size: 1.02rem; }
.article p { margin: 12px 0 0; color: var(--ink-soft); }
.article ul, .article ol { margin: 12px 0 0; padding-left: 22px; color: var(--ink-soft); }
.article li + li { margin-top: 6px; }
.article strong { color: var(--ink); }
.article code { padding: 2px 6px; border-radius: 5px; background: var(--paper-deep); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.86em; overflow-wrap: anywhere; }
.article .callout {
  margin: 20px 0 0; padding: 18px 20px;
  background: var(--mint); border-left: 4px solid var(--forest); border-radius: 0 12px 12px 0;
}
.article .callout p { margin: 0; color: var(--forest-deep); }
.article .callout p + p { margin-top: 8px; }
.article .tablewrap { margin: 18px 0 0; }
.article .go { margin: 26px 0 0; padding: 22px; text-align: center; background: var(--paper); border: 1px dashed var(--line-strong); border-radius: 14px; }
.article .go p { margin: 0 0 12px; }
.article .go .btn { min-height: 44px; }

.card-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 18px; }
.card-link {
  display: flex; flex-direction: column; gap: 3px;
  padding: 16px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 13px;
  color: var(--ink); text-decoration: none;
}
.card-link:hover { border-color: var(--forest); color: var(--ink); box-shadow: 0 0 0 4px var(--ring); }
.card-link strong { font-size: 0.95rem; }
.card-link span { color: var(--muted); font-size: 0.8rem; }

/* ---------- 404 ---------- */

.error-page { max-width: 720px; margin: 0 auto; padding: 90px 24px 40px; text-align: center; }
.error-code { margin: 0; font-family: var(--font-display); font-size: clamp(4rem, 15vw, 8rem); line-height: 0.9; letter-spacing: -0.06em; color: var(--forest); }
.error-page h1 { margin: 14px 0 0; font-family: var(--font-display); font-size: 1.8rem; letter-spacing: -0.03em; }
.error-page p { margin: 12px auto 0; max-width: 440px; color: var(--muted); }
.error-page .btn { margin-top: 22px; }

/* ---------- small screens ---------- */

@media (max-width: 900px) {
  .site-nav { display: none; }
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (max-width: 720px) {
  .wrap, .narrow, .hero-inner, .content, .footer-inner, .site-header .bar { padding-left: 18px; padding-right: 18px; }
  .hero { padding-top: 40px; }
  .hero .lede { font-size: 1rem; }
  .converter { padding: 14px; border-radius: 18px; box-shadow: 6px 6px 0 rgba(13, 92, 77, 0.14); }
  #ym-url { height: 54px; font-size: 0.98rem; }
  .btn { min-height: 48px; padding: 0 16px; font-size: 0.92rem; }
  .composer-actions { flex-wrap: wrap; }
  .composer-actions .btn { flex: 1 1 0; min-width: 120px; }
  .trust-inner { grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 22px 18px; }
  .note-grid { grid-template-columns: 1fr; }
  .result { grid-template-columns: 118px 1fr; gap: 10px; padding: 10px; }
  .result-thumb { width: 118px; }
  .result-title { font-size: 0.86rem; }
  .section-block { padding-top: 42px; margin-top: 34px; }
  .band { padding: 36px 0; margin-top: 42px; }
  .cta-band { padding: 28px 22px; margin-top: 42px; box-shadow: 5px 5px 0 var(--ink); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 26px; padding-top: 36px; }
  .footer-brand { grid-column: 1 / -1; }
  .page-hero { padding-top: 28px; }
  .article { margin-left: 14px; margin-right: 14px; padding: 22px 20px 28px; }
  .trail, .page-head { padding-left: 18px; padding-right: 18px; }
  .card-links { grid-template-columns: 1fr; }
  .steps li { padding-left: 50px; }
}
@media (max-width: 430px) {
  .hero h1 { font-size: 2.35rem; }
  .promises { font-size: 0.76rem; gap: 7px 14px; }
  .trust-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .result { grid-template-columns: 92px 1fr; }
  .result-thumb { width: 92px; }
  .result-time { font-size: 0.64rem; }
  .btn-sm { padding: 0 11px; font-size: 0.72rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .progress[data-unknown="true"] .progress-fill { animation: none; width: 100%; opacity: 0.4; }
  .result-ghost { animation: none; }
  .progress-fill, .btn { transition: none; }
}

/* keep the idle composer compact: an empty note and an idle bar take no vertical room */
.clear[hidden] { display: none; }
.note:empty { min-height: 0; margin-top: 0; }
.progress[data-state="idle"] { height: 0; margin-top: 0; opacity: 0; }
.progress { transition: opacity 0.2s, height 0.2s, margin 0.2s; }
