/* Arco — shared styles for the blog and secondary pages.
   Tokens mirror index.html (Plum & Honey). index.html keeps its own inline copy. */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url("bricolage.ttf") format('truetype');
  font-weight: 200 900;
  font-display: swap;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }

/* ---------- tokens ---------- */
:root {
  --bg: #FAF7F9;
  --surface: #FFFFFF;
  --sv: #F1ECEF;
  --ink: #221A20;
  --muted: #6E6470;
  --plum: #6B3A5B;
  --plum-deep: #2A1424;
  --plum-container: #F3E3EE;
  --orchid: #D7A6C6;
  --honey: #E0A23C;
  --honey-deep: #9A6A1E;
  --honey-soft: #FBEBCF;
  --outline: #9C8D97;
  --ov: #E8E1E5;
  --income: #2E7D5B;
  --expense: #B3352F;

  --maxw: 1140px;
  --readw: 68ch;
  --pad: clamp(1.25rem, 5vw, 2rem);

  --fs-h1: clamp(2rem, 5vw, 3.2rem);
  --fs-h2: clamp(1.5rem, 2.6vw, 2rem);
  --fs-h3: clamp(1.15rem, 1.7vw, 1.4rem);
  --fs-lead: clamp(1.08rem, 1.5vw, 1.3rem);
  --fs-body: 1.0625rem;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --z-nav: 100;
}

body {
  font-family: 'Bricolage Grotesque', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.03em; text-wrap: balance; font-weight: 800; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.02em; font-weight: 700; }
p { text-wrap: pretty; }
.amt { font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
:focus-visible { outline: 3px solid var(--honey); outline-offset: 2px; border-radius: 4px; }
.skip {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -120%);
  background: var(--honey); color: #3B2A0C; font-weight: 700;
  padding: 0.6rem 1rem; border-radius: 0 0 10px 10px; z-index: 200;
}
.skip:focus { transform: translate(-50%, 0); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  height: 54px; padding: 0 1.5rem; border-radius: 14px;
  font-weight: 700; font-size: 1.02rem; letter-spacing: -0.01em;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-honey { background: var(--honey); color: #3B2A0C; box-shadow: 0 10px 30px -12px rgba(224,162,60,0.7); }
.btn-honey:hover { background: #ecb154; }
.btn-plum { background: var(--plum); color: #fff; }
.btn-plum:hover { background: #5b3050; }
.btn-ghost { border: 1.5px solid var(--outline); color: var(--plum); }
.btn-ghost:hover { border-color: var(--plum); background: var(--plum-container); }
.btn-sm { height: 44px; padding: 0 1.1rem; border-radius: 10px; font-size: 0.95rem; }
.cta-ico { display: inline-flex; align-items: center; justify-content: center; }
.cta-ico svg { display: block; width: 20px; height: 20px; }

/* ---------- nav (solid by default on inner pages) ---------- */
.nav {
  position: sticky; top: 0; z-index: var(--z-nav);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.85rem var(--pad);
  background: rgba(250,247,249,0.88); backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--ov);
}
.nav-brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.28rem; letter-spacing: -0.03em; color: var(--ink); }
.nav-logo { width: 34px; height: 34px; }
.nav-links { display: flex; align-items: center; gap: 1.7rem; }
.nav-links a { font-weight: 600; font-size: 0.98rem; color: var(--muted); transition: color 0.2s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--plum); }
@media (max-width: 820px) { .nav-links a:not(.nav-cta) { display: none; } }

/* ---------- page header ---------- */
.phead {
  background: radial-gradient(120% 120% at 82% 0%, #7A4265 0%, #4A2740 44%, #2A1424 100%);
  color: #fff; padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.75rem, 6vw, 4.5rem);
}
.phead .inner { max-width: var(--readw); margin-inline: auto; }
/* the blog index lines its header up with the card column, which is wider than a reading column */
.phead .inner.wide { max-width: 52rem; }
.phead .crumb { font-size: 0.9rem; font-weight: 600; color: rgba(255,255,255,0.6); }
.phead .crumb a:hover { color: var(--honey); }
.phead h1 { font-size: var(--fs-h1); margin-top: 0.9rem; letter-spacing: -0.035em; max-width: 26ch; }
.phead .lead { margin-top: 1.25rem; font-size: var(--fs-lead); line-height: 1.5; color: rgba(255,255,255,0.8); max-width: 56ch; }
.pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.42rem 0.85rem; border-radius: 999px;
  background: rgba(224,162,60,0.16); color: var(--honey);
  font-weight: 700; font-size: 0.82rem; border: 1px solid rgba(224,162,60,0.3);
}
.meta { margin-top: 1.4rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem; font-size: 0.9rem; color: rgba(255,255,255,0.66); font-weight: 500; }
.meta .dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,0.4); }

/* ---------- article ---------- */
.post { padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(3rem, 7vw, 5rem); }
.prose { max-width: var(--readw); margin-inline: auto; }
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { margin-top: 2.8rem; }
.prose h3 { margin-top: 2rem; }
.prose h2 + p, .prose h3 + p { margin-top: 0.85rem; }
.prose a:not(.btn) { color: var(--plum); font-weight: 600; text-decoration: underline; text-decoration-color: var(--orchid); text-underline-offset: 3px; }
.prose a:not(.btn):hover { text-decoration-color: var(--plum); }
.prose strong { font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.35rem; display: flex; flex-direction: column; gap: 0.6rem; }
.prose li::marker { color: var(--orchid); }
.prose blockquote {
  border-left: 3px solid var(--honey); background: var(--honey-soft);
  padding: 1rem 1.25rem; border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 1.1rem; font-weight: 600; color: #4A3512;
}
.prose hr { border: none; border-top: 1px solid var(--ov); margin: 2.75rem 0; }
.prose .note {
  background: var(--surface); border: 1px solid var(--ov); border-radius: var(--r-md);
  padding: 1.1rem 1.25rem; font-size: 1rem;
}
.prose .note b { color: var(--plum); }
.prose figure { margin-top: 2rem; }
.prose figcaption { margin-top: 0.7rem; font-size: 0.92rem; color: var(--muted); text-align: center; }
.prose .shot-inline { border: 1px solid var(--ov); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }

/* step list */
.steps { list-style: none; padding: 0; counter-reset: s; gap: 1rem; }
.steps li { counter-increment: s; position: relative; padding-left: 3rem; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0.1rem;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--plum-container); color: var(--plum);
  font-weight: 800; font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
}
.steps li > b:first-child { display: block; }

/* comparison table */
.tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.cmp { border-collapse: collapse; width: 100%; min-width: 30rem; font-size: 1rem; }
table.cmp th, table.cmp td { text-align: left; padding: 0.8rem 1rem; border-bottom: 1px solid var(--ov); vertical-align: top; }
table.cmp thead th { font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
table.cmp tbody th { font-weight: 700; }

/* ---------- blog index cards ---------- */
.postlist { display: grid; gap: 1.25rem; max-width: 52rem; margin-inline: auto; }
.card {
  display: block; background: var(--surface); border: 1px solid var(--ov);
  border-radius: var(--r-lg); padding: clamp(1.35rem, 3vw, 1.9rem);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.card:hover { transform: translateY(-3px); border-color: var(--orchid); box-shadow: 0 22px 44px -28px rgba(42,20,36,0.35); }
.card .kicker { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--honey-deep); }
.card h2 { margin-top: 0.55rem; font-size: clamp(1.3rem, 2.2vw, 1.65rem); }
.card p { margin-top: 0.7rem; color: var(--muted); }
.card .more { margin-top: 1rem; font-weight: 700; color: var(--plum); }

/* announcement card - product news, deliberately quieter than a guide */
.card.news { padding: 1.1rem 1.35rem; }
.card.news h3 { margin-top: 0.35rem; font-size: 1.1rem; }

/* ---------- end-of-post CTA ---------- */
.cta {
  margin-top: 3rem; background: var(--plum-container); border-radius: var(--r-xl);
  padding: clamp(1.75rem, 4vw, 2.6rem); text-align: center;
}
.cta h2 { margin-top: 0; }
.cta p { margin-top: 0.75rem; color: var(--muted); max-width: 44ch; margin-inline: auto; }
.cta.narrow { max-width: 52rem; margin-inline: auto; }
.cta .row { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; }
.cta .avail { margin-top: 1.2rem; font-size: 0.9rem; color: var(--muted); }

/* ---------- footer ---------- */
.footer { background: var(--plum-deep); color: rgba(255,255,255,0.7); padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand .nav-brand { color: #fff; }
.footer-brand p { margin-top: 1rem; font-size: 0.95rem; max-width: 30ch; }
.footer h4 { color: #fff; font-size: 0.9rem; font-weight: 700; letter-spacing: 0.02em; margin-bottom: 1rem; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer a { font-size: 0.94rem; color: rgba(255,255,255,0.7); transition: color 0.2s ease; }
.footer a:hover { color: var(--honey); }
.footer-bottom { margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: 0.85rem; color: rgba(255,255,255,0.5); }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
