/* Drum Lab marketing site — shared design system
   Brand colors pulled directly from the app's own Color extension
   (ContentView.swift): drumLabCream / drumLabTileCream / drumLabAccent */

:root {
  --bg: #c98359;           /* drumLabCream — warm terracotta background */
  --bg-deep: #b06f47;       /* darker shade for depth/footers */
  --cream: #fcf6ea;         /* drumLabTileCream — card surfaces */
  --cream-dim: #f3ead9;
  --accent: #a65c29;        /* drumLabAccent — brown, headings/icons/links */
  --accent-dark: #7c431c;
  --ink: #3a2417;            /* near-black warm ink for body text on cream */
  --ink-soft: #6b5240;
  --success: #4c7a4f;
  --shadow: 0 12px 28px -12px rgba(58, 36, 23, 0.35);
  --shadow-sm: 0 4px 12px -6px rgba(58, 36, 23, 0.25);
  --radius: 20px;
  --radius-sm: 12px;
  --max-w: 1120px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent-dark); text-decoration: underline; text-decoration-color: rgba(166,92,41,0.35); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  text-wrap: balance;
  color: var(--accent-dark);
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p { margin: 0 0 1em; max-width: 68ch; }
.lede { font-size: 1.2rem; color: var(--ink-soft); }

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(201, 131, 89, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(58,36,23,0.12);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand span {
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem;
  color: var(--cream); letter-spacing: 0.01em;
}
nav.primary { display: flex; align-items: center; gap: 22px; }
nav.primary a {
  color: var(--cream); text-decoration: none; font-weight: 600; font-size: 0.95rem;
  opacity: 0.9;
}
nav.primary a:hover { opacity: 1; text-decoration: underline; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--cream) !important;
  padding: 11px 22px; border-radius: 999px; font-weight: 700;
  text-decoration: none !important; font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
  border: none; cursor: pointer; font-family: var(--font-body);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn.ghost { background: transparent; border: 1.5px solid rgba(252,246,234,0.6); }
.btn.small { padding: 8px 16px; font-size: 0.85rem; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero-copy .eyebrow {
  display: inline-block; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--cream); background: rgba(58,36,23,0.22);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero-copy h1 { color: var(--cream); }
.hero-copy p.lede { color: rgba(252,246,234,0.88); }
.hero-ctas { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-art {
  background: var(--cream); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow); display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.hero-art img { width: 100%; aspect-ratio: 1; object-fit: contain; }

/* ---------- Sections ---------- */
section { padding: 56px 0; }
section.tinted { background: var(--cream); color: var(--ink); border-radius: 32px 32px 0 0; }
.section-head { max-width: 640px; margin-bottom: 36px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.card {
  background: var(--cream); border-radius: var(--radius-sm); padding: 26px;
  box-shadow: var(--shadow-sm);
}
section.tinted .card { background: #fff; }
.card img.icon { width: 52px; height: 52px; margin-bottom: 14px; }
.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 0; color: var(--ink-soft); font-size: 0.97rem; }

.category-strip { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; }
.category-strip .chip {
  flex: 0 0 auto; display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 999px; padding: 8px 18px 8px 8px;
  box-shadow: var(--shadow-sm); font-weight: 700; color: var(--accent-dark);
  text-decoration: none; font-size: 0.92rem;
}
.category-strip img { width: 34px; height: 34px; }

/* ---------- FAQ / AEO blocks ---------- */
.faq-item { border-bottom: 1px solid rgba(58,36,23,0.12); padding: 20px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-item h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--ink); font-family: var(--font-body); font-weight: 700; }
.faq-item p { color: var(--ink-soft); margin-bottom: 0; }

.answer-box {
  background: var(--cream-dim); border-left: 4px solid var(--accent);
  padding: 18px 22px; border-radius: 0 12px 12px 0; margin: 18px 0;
}
section.tinted .answer-box { background: #fff8ef; }

/* ---------- Comparison table (roundup page) ---------- */
table.compare { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); }
table.compare th, table.compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid rgba(58,36,23,0.08); font-size: 0.94rem; }
table.compare th { background: var(--accent); color: var(--cream); font-family: var(--font-display); font-weight: 600; }
table.compare tr:last-child td { border-bottom: none; }
table.compare tr.highlight td { background: rgba(166,92,41,0.06); font-weight: 700; }

/* ---------- Blog ---------- */
.post-list { display: flex; flex-direction: column; gap: 18px; }
.post-list a.post-card {
  display: block; background: #fff; border-radius: var(--radius-sm); padding: 24px 26px;
  box-shadow: var(--shadow-sm); text-decoration: none; color: inherit;
}
.post-list a.post-card:hover { box-shadow: var(--shadow); }
.post-list .post-meta { font-size: 0.85rem; color: var(--ink-soft); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.post-list h3 { margin: 6px 0 8px; color: var(--accent-dark); }
.post-list p { color: var(--ink-soft); margin-bottom: 0; }

article.post { max-width: 720px; margin: 0 auto; }
article.post .post-meta { font-size: 0.85rem; color: var(--ink-soft); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 10px; }
article.post h2 { margin-top: 1.6em; }
article.post ul, article.post ol { padding-left: 1.3em; }
article.post li { margin-bottom: 0.5em; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--accent); color: var(--cream); border-radius: var(--radius);
  padding: 48px; text-align: center; margin: 8px 0;
}
.cta-band h2, .cta-band p { color: var(--cream); }
.cta-band p { margin: 0 auto 22px; }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--bg-deep); color: rgba(252,246,234,0.85); padding: 44px 0 30px; }
footer.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
footer.site-footer a { color: rgba(252,246,234,0.85); text-decoration: none; }
footer.site-footer a:hover { text-decoration: underline; }
footer.site-footer .cols { display: flex; gap: 48px; flex-wrap: wrap; }
footer.site-footer .cols h4 { color: var(--cream); font-family: var(--font-body); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
footer.site-footer .cols ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 0.92rem; }
footer.site-footer .fine { margin-top: 30px; font-size: 0.82rem; opacity: 0.7; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  nav.primary { display: none; }
}
@media (max-width: 560px) {
  .grid-3 { grid-template-columns: 1fr; }
  .hero-art { grid-template-columns: repeat(3, 1fr); }
  table.compare { display: block; overflow-x: auto; }
  .cta-band { padding: 32px 20px; }
}
