/* DeskMakers configurator — shared design system.
   One stylesheet, no build step. Pages add their own small page-specific <style> on top.
   Tokens first; shared components (topbar, cards, buttons, tags, chips) below. */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* palette — warm gallery neutrals + DeskMakers navy + oak accent */
  --ink:      #1c2530;
  --ink-2:    #5a6472;
  --ink-3:    #8f98a5;
  --bg:       #f6f5f2;
  --surface:  #ffffff;
  --line:     #e8e5df;
  --line-2:   #d9d5cc;
  --brand:    #1b3a5b;
  --brand-2:  #14304d;
  --brand-soft:#e8eef6;
  --oak:      #a8763e;
  --oak-soft: #f4ece1;
  --ok:       #1c7a44;
  --ok-soft:  #e4f3e9;

  --radius:   16px;
  --radius-s: 10px;
  --shadow-1: 0 1px 2px rgba(28,37,48,.05), 0 4px 14px rgba(28,37,48,.05);
  --shadow-2: 0 2px 6px rgba(28,37,48,.07), 0 14px 34px rgba(28,37,48,.10);
  --font:     'Inter', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--ink);
       -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

/* ---------- topbar (shared across pages) ---------- */
.topbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 26px;
          padding: 14px clamp(18px, 4vw, 44px);
          background: rgba(246,245,242,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
          border-bottom: 1px solid var(--line); }
.topbar .wordmark { font-size: 17px; font-weight: 800; letter-spacing: -.02em; color: var(--ink);
                    text-decoration: none; white-space: nowrap; }
.topbar .wordmark b { color: var(--brand); }
.topbar nav { display: flex; gap: 4px; margin-left: 6px; }
.topbar nav a { font-size: 13.5px; font-weight: 600; color: var(--ink-2); text-decoration: none;
                padding: 7px 12px; border-radius: 9px; }
.topbar nav a:hover { color: var(--ink); background: rgba(28,37,48,.05); }
.topbar nav a.on { color: var(--brand); background: var(--brand-soft); }
.topbar .spacer { margin-left: auto; }
.topbar .crumb { font-size: 13px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.topbar .crumb:hover { color: var(--brand); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
       font-family: var(--font); font-size: 13.5px; font-weight: 600; color: var(--ink);
       background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px;
       padding: 10px 16px; text-decoration: none; transition: transform .1s, box-shadow .12s, background .12s; }
.btn:hover { background: #fbfaf8; box-shadow: var(--shadow-1); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-2); box-shadow: 0 6px 18px rgba(27,58,91,.28); }
.btn.big { font-size: 15px; padding: 13px 24px; border-radius: 14px; }

/* ---------- section headings ---------- */
.sec-head { display: flex; align-items: baseline; gap: 12px; margin: 0 0 4px; }
.sec-head h3 { font-size: clamp(19px, 2.4vw, 24px); font-weight: 800; letter-spacing: -.02em; margin: 0; color: var(--ink); }
.sec-head .sub { font-size: 13.5px; color: var(--ink-2); }

/* ---------- product cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
        overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column;
        transition: transform .14s ease, box-shadow .16s ease, border-color .16s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.card .thumb { background: linear-gradient(180deg, #ffffff 0%, #f1efe9 100%); position: relative; }
.card .body { padding: 16px 18px 18px; }
.card .body h2 { font-size: 16px; font-weight: 700; letter-spacing: -.01em; margin: 0 0 5px; color: var(--ink); }
.card .body p { font-size: 13px; color: var(--ink-2); margin: 0 0 10px; line-height: 1.5; }
.card .cta { font-size: 13px; font-weight: 700; color: var(--brand); margin-top: 6px; }
.card:hover .cta { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- tags ---------- */
.tag { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .06em;
       text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.tag.done { background: var(--ok-soft); color: var(--ok); }
.tag.auto { background: var(--brand-soft); color: var(--brand); }
.tag.new  { background: var(--oak-soft); color: var(--oak); }

/* ---------- filter chips (typicals browser) ---------- */
.chip { font-size: 13px; font-weight: 600; color: var(--ink-2); text-decoration: none;
        background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
        padding: 6px 14px; white-space: nowrap; transition: background .12s, color .12s; }
.chip b { color: var(--ink-3); font-weight: 600; margin-left: 2px; }
.chip:hover { border-color: var(--line-2); color: var(--ink); }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip.active b { color: #b9cade; }

/* ---------- footer ---------- */
.foot { padding: 30px clamp(18px, 4vw, 44px) 40px; color: var(--ink-3); font-size: 12.5px;
        border-top: 1px solid var(--line); margin-top: 30px; display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { color: var(--ink-3); }

model-viewer { --poster-color: transparent; }

/* ---------- small screens ---------- */
@media (max-width: 700px) {
  .topbar { gap: 12px; padding: 10px 14px; }
  .topbar .wordmark { font-size: 15.5px; }
  .topbar .crumb { font-size: 12px; white-space: nowrap; }
  .btn.big { font-size: 14px; padding: 12px 18px; }
}
