/* base.css — fonts, colours (light + dark), top bar, shared pieces. Loaded on every page. */
@font-face { font-family: "Manrope"; font-weight: 200 800; font-display: swap; src: url("../assets/fonts/manrope-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 500; font-display: swap; src: url("../assets/fonts/fraunces-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 600; font-display: swap; src: url("../assets/fonts/fraunces-latin-600-normal.woff2") format("woff2"); }

:root {
  --font-body: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --bg: #f5f2ea; --surface: #fffdf8; --ink: #1c1a17; --muted: #6e675b;
  --line: rgba(28,26,23,.12); --accent: #3d6b54; --accent-soft: rgba(61,107,84,.13);
  --used: #c2532b; --used-soft: rgba(194,83,43,.13);
  --glass: rgba(255,253,248,.72);
  --r-md: 18px; --r-lg: 26px; --ease: cubic-bezier(.22,.7,.2,1);
  --bar-h: 68px;
  --tile1: #efeadf; --tile2: #fbf8f1;
  --btn-bg: #1c1a17; --btn-ink: #fbf8f1;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #11100e; --surface: #1b1916; --ink: #f3eee3; --muted: #a39c8d;
  --line: rgba(243,238,227,.15); --accent: #9fcbb0; --accent-soft: rgba(159,203,176,.14);
  --used: #f08a63; --used-soft: rgba(240,138,99,.17);
  --glass: rgba(24,22,19,.72);
  --tile1: #26231e; --tile2: #1f1d19;
  --btn-bg: #f3eee3; --btn-ink: #171512;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 1rem; line-height: 1.55; color: var(--ink); background: var(--bg); opacity: 0; }
body.ready { opacity: 1; }
body::before { content: ""; position: absolute; inset: 0 0 auto; height: 560px; z-index: -1; pointer-events: none;
  background: radial-gradient(45% 60% at 8% 0%, rgba(61,107,84,.16), transparent 70%), radial-gradient(40% 55% at 95% 5%, rgba(216,154,43,.15), transparent 70%); }
h1, h2, p { margin: 0; }
h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.9rem, 4.5vw, 2.8rem); line-height: 1.12; letter-spacing: -.015em; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 24px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }

/* ---------- top bar ---------- */
.bar { position: sticky; top: 0; z-index: 20; background: var(--glass); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); border-bottom: 1px solid var(--line); }
.bar__in { display: flex; align-items: center; gap: 16px; min-height: var(--bar-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand__logo { display: block; height: 40px; width: auto; max-width: 180px; object-fit: contain; }
.brand__mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--ink); color: var(--bg); }
.brand__mark svg { width: 20px; height: 20px; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; letter-spacing: -.02em; }
.brand__name span { color: var(--accent); }
.lang { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(28,26,23,.07); }
.lang button { min-width: 44px; height: 36px; border: 0; border-radius: 999px; background: transparent; font-weight: 700; font-size: .85rem; transition: background-color .2s, color .2s; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

.price { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.was { color: var(--muted); font-size: .9rem; text-decoration: line-through; }
.badge { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.badge--new { background: var(--accent-soft); color: var(--accent); }
.badge--used { background: var(--used-soft); color: var(--used); }
.link { display: inline-block; padding: 8px 0; font-weight: 700; text-decoration: none; }
.link:hover { text-decoration: underline; }
.infobox { width: 100%; padding: 18px 20px; border-radius: var(--r-md); background: var(--accent-soft); }
.infobox h2 { font-family: var(--font-display); font-weight: 500; font-size: 1.2rem; margin-bottom: 4px; }
.foot { padding-block: 28px 36px; color: var(--muted); font-size: .9rem; }
.iconbtn { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: rgba(128,128,128,.16); color: inherit; text-decoration: none; }
.iconbtn:hover { background: rgba(128,128,128,.28); }
.iconbtn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.iconbtn b { font-size: 1rem; }
.iconbtn.is-in { background: var(--accent); color: var(--bg); }
.i-moon { display: none; } :root[data-theme="dark"] .i-sun { display: none; } :root[data-theme="dark"] .i-moon { display: block; }

/* logo: assets/logos/logo.png (light) and logo-dark.png (dark theme).
   Shown in the header of every page except the home page, which has no brand mark. */
.brand__name { display: none; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; letter-spacing: .06em; }
.brand__logo--dark { display: none; }
:root[data-theme="dark"] .brand__logo--light { display: none; }
:root[data-theme="dark"] .brand__logo--dark { display: block; }
.brand.nologo .brand__name { display: inline; }
.brand.nologo .brand__logo { display: none; }
@media (max-width: 720px) { .bar__in { gap: 8px; } .brand__logo { height: 34px; max-width: 120px; } .brand__name { font-size: 1rem; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .001ms !important; } }
@supports not (backdrop-filter: blur(1px)) { .bar { background: var(--surface); } }
