/* BrewTunes blog. Standalone on purpose: an article page loads this file and
   nothing else from the app, so it stays small and fast. Colours and type
   follow styles.css. */
:root {
  --bg: #faf6f1;
  --bg-elev: #ffffff;
  --bg-soft: #f3ece2;
  --text: #1f1a14;
  --text-soft: #5b5246;
  --text-mute: #6e6458;
  --line: #ece3d4;
  --line-strong: #d8cdb8;
  --brand: #7a4f1d;
  --brand-dark: #5e3b13;
  --accent: #c87f3a;
  --accent-soft: #fbe7cc;
  --rc: #1e1914;
  --rc-gold: #e0a458;
  --yes: #2f7650;
  --yes-soft: #e4f2ea;
  --no: #a72f2a;
  --no-soft: #fbe9e7;
  --focus: #2767c5;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(60, 40, 18, 0.08);
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font-body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(30px, 6vw, 46px); margin: 8px 0 14px; }
h2 { font-size: clamp(23px, 4vw, 30px); margin: 0 0 14px; }
h3 { font-size: 20px; margin: 26px 0 10px; }
p { margin: 0 0 14px; }
q { quotes: '«' '»'; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--bg-elev); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* top bar */
.bar { background: var(--bg-elev); border-bottom: 1px solid var(--line); }
.bar__in { max-width: 1040px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--brand); font-weight: 700; text-decoration: none; font-size: 18px; }
.bar__nav { display: flex; gap: 16px; font-size: 15px; }
.bar__nav a { color: var(--text-soft); text-decoration: none; }
.bar__nav a:hover { color: var(--brand); }

/* article head */
.art { padding: 22px 0 40px; }
.art > section { margin-top: 38px; }
.crumbs { font-size: 14px; color: var(--text-mute); }
.crumbs a { color: var(--text-mute); }
.kicker { margin: 18px 0 0; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); font-weight: 600; }
.byline { font-size: 15px; color: var(--text-soft); margin: 0 0 4px; }
.lead { font-size: 19px; }
.hook { margin-top: 24px !important; }
.hook .lead { border-left: 4px solid var(--accent); padding: 4px 0 4px 16px; }

/* 30-second picks */
.picks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.pick { display: flex; gap: 12px; align-items: flex-start; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.pick__n { flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--bg-soft); color: var(--brand); font-weight: 700; display: grid; place-items: center; font-size: 15px; }
.pick--top { background: var(--rc); color: #f6efe5; border-color: var(--rc); }
.pick--top a { color: var(--rc-gold); }
.pick--top .pick__n { background: var(--rc-gold); color: var(--rc); }

/* comparison table */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.filters[hidden] { display: none; }
.filters__label { font-size: 14px; color: var(--text-soft); }
.filters div { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: 500 14px var(--font-body); border: 1px solid var(--line-strong); background: var(--bg-elev); color: var(--text); border-radius: 999px; padding: 6px 12px; cursor: pointer; min-height: 36px; }
.chip.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); box-shadow: var(--shadow); }
.cmp { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 680px; }
.cmp caption { caption-side: bottom; text-align: left; padding: 10px 14px; font-size: 14px; color: var(--text-soft); }
.cmp th, .cmp td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp thead th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-soft); background: var(--bg-soft); }
.cmp tbody th { font-weight: 700; white-space: nowrap; }
.cmp tbody tr:last-child > * { border-bottom: 0; }
.cmp small { display: block; color: var(--text-mute); font-size: 13px; }
.cmp tr.is-top > * { background: #fff8ee; }
.cmp tr[hidden] { display: none; }
.cmp--num { min-width: 560px; }
.cmp tbody th .tag { display: table; margin: 6px 0 0; }
.tag { display: inline-block; margin-left: 4px; font: 600 11px var(--font-body); text-transform: uppercase; letter-spacing: 0.05em; background: var(--accent-soft); color: var(--brand-dark); border-radius: 999px; padding: 2px 8px; vertical-align: 2px; }
.yes, .no { display: inline-block; font-weight: 600; font-size: 14px; border-radius: 8px; padding: 2px 8px; }
.yes { background: var(--yes-soft); color: var(--yes); }
.no { background: var(--no-soft); color: var(--no); }
.note { font-size: 14px; color: var(--text-soft); margin-top: 10px; }

/* service cards */
.card { position: relative; }
.card > h2 { padding-top: 6px; }
.card__n { color: var(--accent); }
.card--top { background: var(--rc); color: #f6efe5; border-radius: 22px; padding-top: 26px; padding-bottom: 26px; max-width: 792px; }
.card--top a:not(.btn) { color: var(--rc-gold); }
.card--top .price, .card--top .pc li { color: #f6efe5; }
.card--top .card__n { color: var(--rc-gold); }
.card--top .shot figcaption, .card--top .cta-note { color: #cfc4b5; }
.card--top .more { border-color: rgba(255,255,255,0.18); }
.card__badge { display: inline-block; margin: 0 0 10px; background: var(--rc-gold); color: var(--rc); font-weight: 700; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; border-radius: 999px; padding: 4px 12px; }
.aka { margin-top: -8px; color: var(--text-soft); font-size: 15px; }
.price { font-size: 17px; }
.price strong { font-family: var(--font-display); font-size: 24px; }
.price__warn { display: inline-block; font-weight: 700; color: var(--no); background: var(--no-soft); border-radius: 8px; padding: 0 8px; }
.pc { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.pc li { position: relative; padding-left: 30px; }
.pc li::before { position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.pc__plus::before { content: '✓'; background: var(--yes-soft); color: var(--yes); }
.pc__minus::before { content: '✕'; background: var(--no-soft); color: var(--no); }
.more { border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; margin-bottom: 14px; }
.more summary { cursor: pointer; padding: 10px 0; font-weight: 600; }
.more[open] summary { margin-bottom: 4px; }
.src { font-size: 14px; color: var(--text-soft); }
.aside p { background: var(--bg-soft); border-radius: 12px; padding: 14px 16px; font-size: 16px; }

/* screenshots in a browser frame */
.shot { margin: 0 0 16px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-strong); background: var(--bg-elev); box-shadow: var(--shadow); }
.card--top .shot { border-color: #3a3128; }
.shot__bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: #ece6dd; border-bottom: 1px solid var(--line-strong); }
.shot__bar i { width: 10px; height: 10px; border-radius: 50%; background: #d4cabb; flex: none; }
.shot__bar i:nth-child(1) { background: #ec6a5e; }
.shot__bar i:nth-child(2) { background: #f4bf4f; }
.shot__bar i:nth-child(3) { background: #61c554; }
.shot__bar span { margin-left: 8px; flex: 1; min-width: 0; background: #fff; border-radius: 6px; padding: 2px 10px; font-size: 12px; color: #6e6458; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot figcaption { font-size: 13px; color: var(--text-mute); padding: 8px 12px; border-top: 1px solid var(--line); }
.card--top .shot figcaption { background: #2a231c; border-top-color: #3a3128; }
.shot--small { max-width: 520px; }

/* buttons */
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 6px; }
.btn { display: inline-block; background: var(--brand); color: #fff; text-decoration: none; font-weight: 600; border-radius: 12px; padding: 12px 18px; min-height: 44px; }
.btn:hover { background: var(--brand-dark); color: #fff; }
.card--top .btn { background: var(--rc-gold); color: var(--rc); }
.card--top .btn:hover { background: #ebb877; color: var(--rc); }
.btn--ghost { background: var(--bg-elev); color: var(--brand); border: 1px solid var(--line-strong); }
.btn--ghost:hover { background: var(--bg-soft); color: var(--brand-dark); }
.btn--big { font-size: 18px; padding: 14px 22px; }
.cta-note { font-size: 14px; color: var(--text-soft); }

/* calculator */
.calc__form { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; box-shadow: var(--shadow); display: grid; gap: 14px; }
.calc__form[hidden] { display: none; }
.field { margin: 0; border: 0; padding: 0; }
.field label, .field legend { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.field select, .field input[type=number] { font: 16px var(--font-body); width: 100%; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; color: var(--text); min-height: 44px; }
.field__m2 { display: flex; align-items: center; gap: 8px; }
.field__m2 input { max-width: 160px; font-size: 20px !important; font-weight: 600; }
.hint { font-size: 14px; color: var(--text-soft); margin: 6px 0 0; }
.radio { display: inline-flex !important; align-items: center; gap: 6px; font-weight: 500 !important; margin-right: 18px; min-height: 36px; }
.calc__out { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.box { border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.box--them { background: var(--no-soft); }
.box--us { background: var(--rc); color: #f6efe5; }
.box__k { font-size: 13px; font-weight: 600; }
.box__v { font-family: var(--font-display); font-size: 28px; font-weight: 700; line-height: 1.1; }
.box__s { font-size: 13px; opacity: 0.85; }
.calc__diff { grid-column: 1 / -1; margin: 0; background: var(--yes-soft); color: #1f4d35; border-radius: 12px; padding: 12px 14px; font-size: 16px; }
.calc__diff:empty { display: none; }

/* faq */
.faq { background: var(--bg-elev); border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; margin-bottom: 8px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; font-size: 17px; }
.faq__a p { margin-bottom: 14px; }

/* verdict & method */
.verdict { background: var(--bg-elev); border: 1px solid var(--line); border-radius: 22px; padding-top: 22px; padding-bottom: 18px; box-shadow: var(--shadow); max-width: 792px; }
.method ul { padding-left: 20px; }
.method li { margin-bottom: 6px; }
.disclosure { font-size: 16px; color: var(--text); background: var(--bg-soft); border-radius: 12px; padding: 14px 16px; }

/* blog index */
.posts { list-style: none; padding: 0; display: grid; gap: 14px; }
.post { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.post__link { font-family: var(--font-display); font-size: 22px; font-weight: 700; text-decoration: none; }
.post__date { font-size: 14px; color: var(--text-mute); margin: 0; }
main > .wrap { padding-top: 26px; padding-bottom: 40px; }

/* footer */
.foot { border-top: 1px solid var(--line); background: var(--bg-elev); padding: 20px 16px 28px; font-size: 14px; color: var(--text-soft); text-align: center; }
.foot p { margin: 8px 0 0; }
.foot a { color: var(--text-soft); }
.site-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; }

@media (min-width: 720px) {
  .card--top, .verdict { padding-left: 32px; padding-right: 32px; }
  .calc__form { grid-template-columns: 1fr 1fr; padding: 22px; }
  .calc__form .field:first-child, .calc__out { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .bar__nav { gap: 12px; font-size: 14px; }
  .calc__out { grid-template-columns: 1fr; }
  .card--top, .verdict { border-radius: 0; }
}
