/* Noise Remover — amber workshop design system
   Instrument Serif (display) + Inter (body)
   #1a1512 bg / #f59e0b accent / #fef3c7 text
   Editorial center. Heavy 2-3px borders, chunky buttons, offset hard shadows. */

:root {
  --bg: #1a1512;
  --panel: #221c17;
  --panel-2: #2a231c;
  --line: #f59e0b;
  --line-soft: #4a3d2e;
  --text: #fef3c7;
  --muted: #c4ad85;
  --faint: #8a7a5f;
  --accent: #f59e0b;
  --accent-ink: #241a05;
  --ok: #a3e635;
  --bad: #f87171;
  --radius: 6px;
  --shadow: 4px 4px 0 rgba(0, 0, 0, 0.55);
  --display: "Instrument Serif", Georgia, serif;
  --body: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display { font-family: var(--display); font-weight: 400; line-height: 1.12; }
a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
a:hover { text-decoration: none; }
.num { font-variant-numeric: tabular-nums; }
code { background: var(--panel-2); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 0.05em 0.4em; font-size: 0.9em; }

/* ---------- top navigation ---------- */

.topnav {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 18px;
  border-bottom: 2px solid var(--line-soft);
  background: var(--panel);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.topnav .brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; flex: 0 0 auto; }
.brand-name { font-family: var(--display); font-size: 1.15rem; }
.brand-name em { color: var(--accent); font-style: italic; }
.topnav .links { display: flex; gap: 2px; margin-left: auto; flex: 0 0 auto; }
.topnav .links a {
  color: var(--muted); font-size: 0.85rem; font-weight: 500;
  padding: 6px 12px; border-radius: var(--radius);
  text-decoration: none; white-space: nowrap;
}
.topnav .links a:hover { color: var(--accent); background: var(--panel-2); }
.topnav .links a.here { background: var(--accent); color: var(--accent-ink); font-weight: 700; }

/* ---------- editorial layout ---------- */

.wrap { max-width: 800px; margin: 0 auto; padding: 0 18px 64px; }
.masthead { text-align: center; padding: 32px 0 26px; border-bottom: 3px solid var(--line); }
.kicker {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--muted);
  border: 2px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 4px 12px; margin-bottom: 14px;
  background: var(--panel);
}
.masthead h1 { font-size: 2.9rem; margin: 0; }
.masthead h1 em { color: var(--accent); font-style: italic; }
.masthead .dek { color: var(--muted); max-width: 40em; margin: 12px auto 0; font-size: 1.02rem; }
@media (min-width: 560px) { .masthead h1 { font-size: 3.5rem; } }

.instrument {
  border: 3px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  margin: 28px 0 12px;
}
.figcap {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 9px 16px;
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--muted);
  border-bottom: 2px solid var(--line-soft);
}
.instrument-body { padding: 20px 16px 24px; }
@media (min-width: 560px) { .instrument-body { padding: 26px 28px 30px; } }

/* ---------- dropzone ---------- */

.dropzone {
  border: 2px dashed var(--line-soft);
  border-radius: var(--radius);
  background: var(--panel-2);
  text-align: center;
  padding: 30px 14px;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.92rem;
}
.dropzone.drag { border-color: var(--accent); color: var(--accent); }
.dropzone input { display: none; }
.dz-name { color: var(--text); font-weight: 600; display: block; margin-bottom: 3px; }

/* ---------- controls ---------- */

.btn {
  display: inline-block;
  background: var(--accent); color: var(--accent-ink);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  font-family: var(--body); font-weight: 700; font-size: 1rem;
  padding: 13px 24px; cursor: pointer;
  box-shadow: var(--shadow);
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 rgba(0,0,0,0.55); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 rgba(0,0,0,0.55); }
.btn.full { display: block; width: 100%; }
.btn:disabled { opacity: 0.45; cursor: default; transform: none; }
.btn-ghost {
  background: var(--panel); border: 2px solid var(--line-soft);
  border-radius: var(--radius); color: var(--text);
  font-family: var(--body); font-size: 0.84rem; font-weight: 600;
  padding: 9px 15px; cursor: pointer;
  box-shadow: var(--shadow);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost:disabled { opacity: 0.4; cursor: default; box-shadow: none; }
.btn-ghost[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: var(--panel-2);
  border: 2px solid var(--line-soft);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.82rem; font-weight: 600;
  padding: 7px 13px; cursor: pointer;
}
.chip:hover { color: var(--text); }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.field-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.field-row label { font-size: 0.82rem; font-weight: 600; color: var(--muted); min-width: 88px; }
.field-row input[type="range"] { flex: 1; accent-color: var(--accent); min-width: 120px; }
.field-row .val { font-size: 0.85rem; width: 70px; text-align: right; }
.field-row input[type="number"], .field-row select {
  background: var(--panel-2); border: 2px solid var(--line-soft);
  border-radius: var(--radius); color: var(--text);
  font-family: var(--body); font-size: 0.9rem; padding: 7px 10px; width: 90px;
}

.section-label {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--faint); margin: 20px 0 8px;
}
.row-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.hint { font-size: 0.78rem; color: var(--muted); margin: 10px 0 0; }
.err {
  background: rgba(248, 113, 113, 0.08);
  border: 2px solid var(--bad); border-radius: var(--radius);
  color: var(--bad); font-size: 0.85rem;
  padding: 10px 13px; margin-top: 12px; display: none;
}
.err.show { display: block; }

/* waveforms + progress */
.wave-wrap { border: 2px solid var(--line-soft); border-radius: var(--radius); background: var(--bg); padding: 8px; margin-top: 12px; }
.wave-wrap canvas { width: 100%; height: 72px; display: block; }
.wave-label { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); margin-bottom: 4px; }
.progress-track {
  height: 10px; background: var(--bg);
  border: 2px solid var(--line-soft); border-radius: var(--radius);
  overflow: hidden; margin-top: 14px; display: none;
}
.progress-track.show { display: block; }
.progress-fill { height: 100%; width: 0%; background: var(--accent); }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.stat {
  background: var(--panel-2); border: 2px solid var(--line-soft);
  border-radius: var(--radius); padding: 10px; text-align: center;
}
.stat .k { font-size: 0.64rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); }
.stat .v { font-family: var(--display); font-size: 1.4rem; margin-top: 2px; }
.stat .v small { font-size: 0.75rem; color: var(--muted); font-family: var(--body); }

.honesty {
  border: 3px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  box-shadow: var(--shadow);
  padding: 14px 16px;
  font-size: 0.87rem;
  color: var(--muted);
  margin-top: 18px;
}
.honesty b { color: var(--text); }

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

.content h2 { font-size: 1.7rem; margin: 44px 0 12px; text-align: center; }
.content > p, .content section > p { color: var(--muted); }

.spec-strip { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 8px; padding: 0; list-style: none; justify-content: center; }
.spec-strip li {
  background: var(--panel); border: 2px solid var(--line-soft);
  border-radius: var(--radius); font-size: 0.78rem; color: var(--muted);
  padding: 5px 11px;
}
.spec-strip b { color: var(--accent); font-weight: 700; }

.feature-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 14px; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
.feature {
  background: var(--panel); border: 2px solid var(--line-soft);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 15px 15px 13px;
}
.feature h3 { font-size: 1.2rem; margin: 0 0 5px; }
.feature p { font-size: 0.85rem; color: var(--muted); margin: 0; }

ol.steps { counter-reset: s; list-style: none; margin: 14px 0 0; padding: 0; }
ol.steps li {
  counter-increment: s; display: flex; gap: 13px;
  padding: 12px 0; border-top: 2px solid var(--line-soft);
  color: var(--muted); font-size: 0.95rem;
}
ol.steps li::before {
  content: counter(s);
  font-family: var(--display); color: var(--accent);
  font-size: 1.4rem; min-width: 20px;
}
ol.steps b { color: var(--text); }

.faq details { border: 2px solid var(--line-soft); border-radius: var(--radius); background: var(--panel); margin-top: 8px; }
.faq summary {
  cursor: pointer; padding: 12px 15px; font-weight: 600; font-size: 0.95rem;
  list-style: none; display: flex; justify-content: space-between; gap: 10px;
}
.faq summary::after { content: "+"; color: var(--accent); flex: 0 0 auto; }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 15px 12px; color: var(--muted); font-size: 0.9rem; }
.faq .a p { margin: 0 0 8px; }

.card-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 14px; }
@media (min-width: 640px) { .card-grid { grid-template-columns: 1fr 1fr; } }
a.card {
  display: block; background: var(--panel);
  border: 2px solid var(--line-soft); border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 15px; color: var(--text); text-decoration: none;
}
a.card:hover { border-color: var(--accent); }
a.card:hover h3 { color: var(--accent); }
a.card h3 { font-size: 1.2rem; margin: 3px 0 5px; }
a.card p { font-size: 0.83rem; color: var(--muted); margin: 0; }
a.card .tag { font-size: 0.66rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); }

.site-footer {
  border-top: 2px solid var(--line-soft);
  margin-top: 52px; padding-top: 16px;
  font-size: 0.8rem; color: var(--faint);
}
.site-footer p { margin: 0 0 6px; }
.site-footer a { color: var(--muted); }

/* ---------- sub pages ---------- */

.page-wrap { max-width: 740px; margin: 0 auto; padding: 26px 18px 60px; }
.page-wrap h1 { font-size: 2.3rem; margin: 0 0 8px; }
.page-meta { color: var(--faint); font-size: 0.8rem; margin-bottom: 20px; }
.blog-wrap h2 { font-size: 1.5rem; margin: 34px 0 10px; }
.blog-wrap p { color: var(--muted); }
.blog-wrap p b { color: var(--text); }
.blog-illo { border: 2px solid var(--line-soft); border-radius: var(--radius); background: var(--panel); padding: 13px; margin: 22px 0; }
.blog-illo svg { width: 100%; height: auto; display: block; }
.blog-cta {
  border: 3px solid var(--accent); border-radius: var(--radius);
  background: rgba(245, 158, 11, 0.08);
  box-shadow: var(--shadow);
  padding: 14px 16px; margin: 28px 0; font-size: 0.93rem;
}

@media (prefers-reduced-motion: reduce) {
  .btn:hover, .btn:active { transform: none; }
}
