/* BizLabs · Desk Setup — Warm Workspace */
:root {
  --bg: #F7F1E8;
  --surface: #FFFBF6;
  --text: #2C241B;
  --muted: #7A6E62;
  --border: #E6D9C8;
  --wood: #A67C52;
  --cta: #3D5A40;
  --cta-hover: #2F4632;
  --brass: #C4A574;
  --focus: #3D5A40;
  --radius: 12px;
  --shadow: 0 2px 8px rgba(44, 36, 27, 0.06), 0 1px 2px rgba(44, 36, 27, 0.04);
  --shadow-hover: 0 8px 24px rgba(44, 36, 27, 0.1), 0 2px 6px rgba(44, 36, 27, 0.06);
  --max: 42rem;
  --wide: 68rem;
  --font-body: "Source Sans 3", "Inter", system-ui, -apple-system, sans-serif;
  --font-heading: "Source Serif 4", "Lora", Georgia, "Times New Roman", serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100%;
}

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

a {
  color: var(--wood);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
a:hover { color: var(--cta); }
a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--cta);
  color: #fff;
  padding: 0.5rem 1rem;
  font-weight: 600;
}
.skip-link:focus { left: 0.75rem; top: 0.75rem; }

/* Header */
.site-header {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
}
@supports not (background: color-mix(in srgb, white 50%, black)) {
  .site-header { background: var(--bg); }
}
.header-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-decoration: none;
  color: var(--text);
  padding-left: 0.75rem;
  border-left: 4px solid var(--wood);
}
.brand:hover { color: var(--text); text-decoration: none; }
.brand-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.brand-tag {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.01em;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.1rem;
  flex-wrap: wrap;
}
.site-nav a:not(.btn) {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.25rem 0;
}
.site-nav a:not(.btn):hover { color: var(--cta); }
.site-nav a:not(.btn)[aria-current="page"] {
  color: var(--cta);
  box-shadow: inset 0 -2px 0 var(--cta);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  min-height: 2.75rem; /* ≥44px tap target */
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  border-radius: 8px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}
.btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.btn-primary {
  background: var(--cta);
  color: var(--surface);
  border-color: var(--cta);
}
.btn-primary:hover {
  background: var(--cta-hover);
  border-color: var(--cta-hover);
  color: var(--surface);
  text-decoration: none;
}
.btn-ghost {
  background: transparent;
  color: var(--wood);
  border-color: var(--wood);
}
.btn-ghost:hover {
  border-color: var(--cta);
  color: var(--cta);
  text-decoration: none;
  background: var(--surface);
}

/* Layout */
.wrap {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 1.25rem;
  width: 100%;
  box-sizing: border-box;
}
.narrow { max-width: var(--max); margin-left: auto; margin-right: auto; width: 100%; }
.header-inner,
.footer-inner,
.prose,
.guide-grid,
.guide-list,
.guide-card,
.product-card {
  min-width: 0;
  max-width: 100%;
}

/* Hero */
.hero {
  padding: 3rem 0 2.25rem;
  position: relative;
}
.hero::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 3px;
  background: linear-gradient(90deg, var(--wood), var(--brass));
  border-radius: 2px;
  margin-top: 1.5rem;
}
.hero-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wood);
  margin: 0 0 0.75rem;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 4.5vw, 2.65rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: var(--text);
  max-width: 18ch;
}
.hero-lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 36rem;
  margin: 0 0 1.75rem;
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* Guide cards */
.section {
  padding: 1.75rem 0 3.25rem;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}
.section-head h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}
.section-head a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cta);
  text-decoration: none;
}
.section-head a:hover { text-decoration: underline; }

.guide-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .guide-grid { grid-template-columns: repeat(3, 1fr); }
}

.guide-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  text-decoration: none;
  color: inherit;
}
a.guide-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
  text-decoration: none;
  color: inherit;
}
a.guide-card:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.guide-card-img {
  aspect-ratio: 16 / 9;
  background: var(--border);
  overflow: hidden;
}
.guide-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.guide-card-body {
  padding: 1.15rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.5rem;
}
.guide-card-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wood);
}
.guide-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  letter-spacing: -0.01em;
}
.guide-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
}
.guide-card-cta {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cta);
  margin-top: 0.35rem;
}

/* Page titles (inner) */
.page-hero {
  padding: 2rem 0 1.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.65rem, 3.5vw, 2.2rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}
.page-hero .lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
  max-width: 36rem;
}

/* Disclosure strip — under H1, proposal §Amazon Associates */
.disclosure {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--cta);
  border-radius: 6px;
  padding: 0.7rem 1rem;
  font-size: 0.875rem; /* 14px */
  font-weight: 400;
  color: var(--muted);
  margin: 1rem 0 1.5rem; /* ~16px after H1, ~24px before cover/body */
  line-height: 1.55;
}
.disclosure strong {
  font-weight: 500;
  color: var(--muted);
}

.cover-img {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin: 0 0 1.75rem;
  box-shadow: var(--shadow);
}
.cover-img img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Article / prose — guide typography rhythm */
.prose {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 0 3rem;
  font-size: 1.0625rem; /* ~17px */
  line-height: 1.7;
}
.prose > *:first-child { margin-top: 0; }
.prose > .page-hero {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0.35rem;
}
.prose > .page-hero h1 {
  font-family: var(--font-heading);
  margin-bottom: 0;
}
.prose h2 {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 0.85rem; /* ~40px between sections */
  padding-left: 0.75rem;
  border-left: 3px solid var(--cta);
  line-height: 1.35;
  color: var(--text);
}
.prose h3 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 500;
  margin: 1.75rem 0 0.65rem;
  line-height: 1.35;
  color: var(--text);
}
.prose p { margin: 0 0 1.15rem; } /* ~16–18px gap */
.prose ul, .prose ol {
  margin: 0 0 1.25rem;
  padding-left: 1.35rem;
}
.prose li { margin-bottom: 0.4rem; }
.prose li::marker { color: var(--wood); }
.prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}
.prose strong { font-weight: 650; color: var(--text); }
.prose blockquote {
  margin: 1.5rem 0;
  padding: 0.85rem 1.15rem;
  border-left: 3px solid var(--wood);
  background: var(--surface);
  border-radius: 0 8px 8px 0;
  color: var(--muted);
  font-style: italic;
}

/* Tables — visual on table; scroll on .table-wrap only */
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 0;
  background: transparent;
  border: none;
  display: table;
}
.prose thead { background: #F3EBE0; }
.prose th, .prose td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.prose th {
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--text);
  white-space: nowrap;
}
.prose tr:last-child td { border-bottom: none; }

/* Product callout cards — calm Warm Workspace */
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem; /* 20px */
  margin-block: 1.5rem; /* 24px */
  margin-inline: 0;
  box-shadow: var(--shadow);
  position: relative;
}
.product-card .product-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wood);
  margin: 0 0 0.4rem;
}
.prose .product-card h3,
.product-card h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  border-left: none;
  padding-left: 0;
}
.product-card .product-price {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
  font-style: italic;
}
.product-card a.product-link,
.product-card a[href*="amazon."] {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--cta);
  text-decoration: none;
  margin-top: 0.2rem;
  min-height: 2.75rem; /* ≥44px touch */
  padding: 0.35rem 0;
}
.product-card a.product-link:hover,
.product-card a[href*="amazon."]:hover {
  color: var(--cta-hover);
  text-decoration: underline;
}
.product-card p:last-child { margin-bottom: 0; }

@media (max-width: 600px) {
  .prose h2 {
    margin-top: 1.85rem; /* ~25% tighter on mobile */
  }
  .product-card {
    padding: 1rem; /* ≥16px */
    margin-block: 1.15rem;
    overflow-wrap: anywhere;
  }
  .product-card a.product-link,
  .product-card a[href*="amazon."] {
    display: flex;
    width: 100%;
    max-width: 100%;
    justify-content: center;
    box-sizing: border-box;
    padding: 0.7rem 1rem;
    min-height: 2.75rem;
    background: var(--cta);
    color: var(--surface);
    border-radius: 8px;
    text-decoration: none;
    margin-top: 0.35rem;
  }
  .product-card a.product-link:hover,
  .product-card a[href*="amazon."]:hover {
    background: var(--cta-hover);
    color: var(--surface);
    text-decoration: none;
  }
}

.series-nav {
  display: grid;
  gap: 0.65rem;
  margin: 2.5rem 0 0;
  padding: 1.25rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.prose .series-nav h2,
.series-nav h2 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  padding-left: 0;
  border-left: none;
  color: var(--text);
}
.series-nav a {
  font-weight: 600;
  color: var(--cta);
  text-decoration: none;
}
.series-nav a:hover { text-decoration: underline; }
.series-nav p { margin: 0; font-size: 0.95rem; color: var(--muted); line-height: 1.45; }

/* About — Warm Workspace prose/card rhythm */
.about-page {
  padding-bottom: 3rem;
}
.about-page .page-hero .hero-kicker {
  margin-bottom: 0.65rem;
}
.about-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}
.about-block h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 0 0 0.85rem;
  padding-left: 0.75rem;
  border-left: 3px solid var(--wood);
  color: var(--text);
}
.about-block p {
  margin: 0 0 1rem;
  color: var(--text);
  line-height: 1.7;
}
.about-block p:last-child { margin-bottom: 0; }
.about-block .about-disclosure,
.about-block p.disclosure {
  margin: 0 0 1.15rem;
  background: #F3EBE0; /* slightly warmer than card surface — matches guide strip intent */
}
.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.35rem;
}
.about-cta-block .about-actions {
  margin-top: 0.85rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 2rem 0 2.5rem;
  margin-top: 1rem;
}
.footer-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .footer-inner {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }
}
.footer-brand {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
}
.footer-muted {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}
.footer-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}
.footer-nav a:hover { color: var(--cta); }
.footer-associates {
  grid-column: 1 / -1;
  font-size: 0.82rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin: 0;
  line-height: 1.5;
}

/* Guides index list */
.guide-list {
  display: grid;
  gap: 1rem;
  margin-top: 0.5rem;
}
.guide-list-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease;
}
@media (min-width: 560px) {
  .guide-list-item {
    grid-template-columns: 200px 1fr;
  }
}
a.guide-list-item:hover {
  box-shadow: var(--shadow-hover);
  text-decoration: none;
  color: inherit;
}
.guide-list-item img {
  width: 100%;
  height: 100%;
  min-height: 140px;
  object-fit: cover;
}
.guide-list-body {
  padding: 1.15rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
}
.guide-list-body h2 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin: 0;
  font-weight: 600;
}
.guide-list-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  margin: 0 0 1.5rem;
  max-width: 100%;
  width: 100%;
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.table-wrap table {
  margin: 0;
  display: table;
  width: 100%;
  min-width: 22rem;
  border: none;
  background: transparent;
}
.prose table { display: table; }
/* Tables outside .table-wrap must not blow the page */
.prose > table {
  display: block;
  overflow-x: auto;
  max-width: 100%;
}

@media (max-width: 720px) {
  /* Header / nav wrap — brand + muted links + full-width Browse CTA */
  .header-inner {
    align-items: flex-start;
    padding: 0.75rem 1rem;
    gap: 0.65rem 0.85rem;
  }
  .brand {
    min-width: 0;
    max-width: 100%;
    flex: 1 1 auto;
  }
  .brand-name {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .site-nav {
    width: 100%;
    flex: 1 1 100%;
    gap: 0.25rem 0.9rem;
  }
  .site-nav a:not(.btn) {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem; /* ≥44px */
    padding: 0.35rem 0;
  }
  .site-nav .btn-primary {
    width: 100%;
    flex: 1 1 100%;
    margin-top: 0.15rem;
  }

  .wrap,
  .footer-inner {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Hero — stack CTAs full-width, calm vertical rhythm (~25% tighter) */
  .hero {
    padding: 2.25rem 0 1.7rem;
  }
  .hero-lead {
    margin-bottom: 1.35rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }
  .hero-actions .btn {
    width: 100%;
  }

  /* Sections / cards — calmer gaps, ≥16px card padding */
  .section {
    padding: 1.3rem 0 2.45rem;
  }
  .section-head {
    margin-bottom: 1.3rem;
  }
  .guide-card-body {
    padding: 1rem;
  }
  .guide-card-img,
  .cover-img {
    max-width: 100%;
  }
  .guide-card-img img,
  .cover-img img {
    max-width: 100%;
  }

  /* Disclosure + series nav */
  .disclosure {
    padding: 0.65rem 0.85rem;
    margin: 0.85rem 0 1.15rem;
  }
  .series-nav {
    margin-top: 1.85rem;
    padding: 1rem;
    gap: 0.5rem;
  }
  .page-hero {
    padding: 1.5rem 0 1rem;
    margin-bottom: 1.5rem;
  }
  .prose {
    padding-bottom: 2.25rem;
  }

  /* Guide list (if used): keep 16:9 contained, no sideways scroll */
  .guide-list-item {
    max-width: 100%;
  }
  .guide-list-item img {
    aspect-ratio: 16 / 9;
    min-height: 0;
    height: auto;
    width: 100%;
    object-fit: cover;
  }
  .guide-list-body {
    padding: 1rem;
  }

  .about-page {
    padding-bottom: 2.25rem;
  }
  .about-block {
    padding: 1.15rem 1rem;
    margin-bottom: 1.15rem;
  }
  .about-block h2 {
    padding-left: 0.65rem;
    margin-bottom: 0.7rem;
  }
  .about-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }
  .about-actions .btn {
    width: 100%;
  }
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: #F3EBE0;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  color: var(--text);
}
