/* ==========================================================
   Best Desk Setup — Design System v2
   Aesthetic: Luxury Editorial × Premium Tech Magazine
   Font: DM Sans (display) + Source Serif 4 (body)
   Accent: Warm copper-gold on deep charcoal
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;1,9..40,400&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,500;0,8..60,600;0,8..60,700;1,8..60,400;1,8..60,500&display=swap');

:root {
  --bg: #0c0e13;
  --bg-elevated: #141720;
  --surface: #1a1e2a;
  --surface-hover: #222738;
  --text: #f0f2f8;
  --text-muted: #9ba4be;
  --text-dim: #6b7394;
  --border: rgba(255 255 255 / 0.07);
  --border-strong: rgba(255 255 255 / 0.12);
  --accent: #d4a054;
  --accent-hover: #e8b96d;
  --accent-glow: rgba(212 160 84 / 0.25);
  --pro: #4ade80;
  --pro-bg: rgba(74 222 128 / 0.08);
  --pro-border: rgba(74 222 128 / 0.2);
  --con: #f87171;
  --con-bg: rgba(248 113 113 / 0.08);
  --con-border: rgba(248 113 113 / 0.2);
  --amazon: #ff9900;
  --amazon-hover: #ffad33;
  --max-w: 720px;
  --max-w-wide: 1100px;
  --radius: 14px;
  --radius-sm: 10px;
  --font-display: 'DM Sans', system-ui, sans-serif;
  --font-body: 'Source Serif 4', Georgia, serif;
  --font-ui: 'DM Sans', system-ui, sans-serif;
  --shadow-card: 0 2px 24px rgba(0 0 0 / 0.4);
  --shadow-elevated: 0 8px 40px rgba(0 0 0 / 0.5);
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(212 160 84 / 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(30 35 55 / 0.5) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

img { max-width: 100%; display: block; height: auto; }

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

::selection { background: rgba(212 160 84 / 0.3); color: #fff; }

/* ── Layout ── */
.container { width: min(var(--max-w-wide), calc(100% - 2rem)); margin-inline: auto; }
.container--narrow { width: min(var(--max-w), calc(100% - 2rem)); margin-inline: auto; }
.section { padding: 4rem 0; }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12 14 19 / 0.88);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}

.nav {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.brand span { color: var(--accent); }

.nav-links { display: flex; gap: 1.5rem; }
.nav-links a {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); }

/* ── Hero ── */
.hero { padding: 5rem 0 3rem; }
.hero .eyebrow {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 16ch;
}
.hero .lead {
  margin-top: 1.2rem;
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 55ch;
  line-height: 1.7;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  color: #0c0e13;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover {
  color: #0c0e13;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-amazon {
  color: #0c0e13;
  background: linear-gradient(135deg, var(--amazon) 0%, var(--amazon-hover) 100%);
  box-shadow: 0 4px 20px rgba(255 153 0 / 0.3);
  font-size: 1rem;
  padding: 1rem 2rem;
  margin-top: 0.8rem;
}
.btn-amazon:hover {
  color: #0c0e13;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255 153 0 / 0.4);
}

/* ── Card Grid ── */
.grid { display: grid; gap: 1.25rem; }
.cards-3 { grid-template-columns: 1fr; }

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  overflow: hidden;
  transition: all var(--transition);
}
.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
}

.thumb-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-content {
  padding: 1.2rem 1rem;
}
.card-content h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}
.card-content h3 a { color: var(--text); }
.card-content h3 a:hover { color: var(--accent); }

/* ── Article Layout ── */
.article-main {
  padding: 2rem 1.25rem;
  background: transparent;
  border: none;
  border-radius: 0;
}

.article-main h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0.8rem 0 0;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--text-dim);
}
.article-meta span { display: inline-flex; align-items: center; gap: 0.3rem; }

.affiliate-notice {
  margin: 1.2rem 0;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(212 160 84 / 0.05);
  border-left: 3px solid rgba(212 160 84 / 0.4);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.55;
}
.affiliate-notice a { text-decoration: underline; }

.article-main h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 2.5rem 0 0.8rem;
  letter-spacing: -0.01em;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.article-main h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  margin: 1.8rem 0 0.6rem;
  color: var(--text);
}

.article-main p { margin: 0 0 1.2rem; }
.article-main ul, .article-main ol {
  padding-left: 1.2rem;
  margin: 0 0 1.2rem;
}
.article-main li { margin-bottom: 0.4rem; }
.article-main li::marker { color: var(--accent); }

.article-main figure {
  margin: 2rem 0;
  padding: 0;
}
.article-main figure img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.article-main figcaption {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--text-dim);
  text-align: center;
  margin-top: 0.6rem;
  font-style: italic;
}

/* ── Pros & Cons Cards ── */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 2rem 0;
}
.panel {
  border-radius: var(--radius-sm);
  padding: 1.2rem;
}
.panel h3 {
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.panel li {
  padding: 0.45rem 0;
  padding-left: 1.6rem;
  position: relative;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}
.panel li:last-child { border-bottom: none; }

.panel.pros {
  background: var(--pro-bg);
  border: 1px solid var(--pro-border);
}
.panel.pros h3 { color: var(--pro); }
.panel.pros h3::before { content: '✓'; }
.panel.pros li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--pro);
  font-weight: 700;
}

.panel.cons {
  background: var(--con-bg);
  border: 1px solid var(--con-border);
}
.panel.cons h3 { color: var(--con); }
.panel.cons h3::before { content: '✗'; }
.panel.cons li::before {
  content: '✗';
  position: absolute;
  left: 0;
  color: var(--con);
  font-weight: 700;
}

/* ── CTA Box ── */
.cta-box {
  margin: 2.5rem 0;
  padding: 1.8rem 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--surface) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border-strong);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta-box h2 {
  font-family: var(--font-display);
  border-bottom: none;
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  text-align: center;
  width: 100%;
}
.cta-box .lead {
  margin: 0 0 0.6rem;
  font-size: 0.92rem;
  text-align: center;
  max-width: 100%;
}

/* ── Sticky Mobile CTA ── */
.sticky-cta {
  display: none;
}

/* ── Tables (Legacy Pros/Cons) ── */
.article-main table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.article-main table th {
  font-family: var(--font-ui);
  text-align: left;
  padding: 0.75rem;
  background: var(--surface);
  border-bottom: 2px solid var(--border-strong);
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.article-main table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

/* ── Footer Disclaimer ── */
.footer-disclaimer {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--text-dim);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 0.6rem;
  line-height: 1.45;
}

/* ── Footer ── */
.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--border);
  background: rgba(10 12 16 / 0.95);
}
.footer-inner {
  min-height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 0;
  text-align: center;
}
.footer-inner p {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--text-dim);
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent); }

/* ── Legal / Static Pages ── */
.legal-section {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}
.legal-section h2 {
  border-bottom: none;
  margin-top: 0;
}

/* ── Eyebrow ── */
.eyebrow {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}

.lead {
  color: var(--text-muted);
  max-width: 60ch;
}

h2, h3 {
  font-family: var(--font-display);
  line-height: 1.25;
}

/* ── Responsive ── */
@media (min-width: 640px) {
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .pros-cons { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
  .article-main { padding: 2.5rem 0; }
}

@media (max-width: 639px) {
  .sticky-cta {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    padding: 0.75rem 1rem;
    background: rgba(12 14 19 / 0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    text-align: center;
  }
  .sticky-cta .btn-amazon {
    width: 100%;
    margin: 0;
    padding: 0.9rem;
    font-size: 0.95rem;
  }

  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 0.82rem; }

  body { padding-bottom: 70px; }
}
