/* ============================================
   WHATDOTHEYUSE.COM — STYLESHEET
   Clean editorial aesthetic
   ============================================ */

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

:root {
  --black: #0f0f0f;
  --off-white: #f7f5f0;
  --warm-gray: #e8e4dc;
  --mid-gray: #8c8880;
  --text: #1a1a1a;
  --text-muted: #6b6760;
  --accent: #c84b2f;
  --accent-light: #f5ede9;
  --border: #ddd9d0;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --max-width: 1100px;
  --radius: 6px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---- HEADER ---- */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo-dot { color: var(--accent); }

.main-nav { display: flex; gap: 2rem; }
.main-nav a {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.15s;
}
.main-nav a:hover { color: var(--text); }

/* ---- HERO ---- */
.hero {
  background: var(--off-white);
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--border);
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 500px;
  line-height: 1.65;
  font-weight: 300;
}

/* ---- BROWSE SECTION ---- */
.browse-section { padding: 4rem 0; border-bottom: 1px solid var(--border); }

.browse-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

@media (max-width: 640px) {
  .browse-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

.section-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.person-link, .category-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--warm-gray);
  text-decoration: none;
  color: var(--text);
  transition: all 0.15s;
}

.person-link:hover, .category-link:hover {
  color: var(--accent);
  padding-left: 0.5rem;
}

.person-name { font-weight: 500; font-size: 0.95rem; }
.person-niche { font-size: 0.8rem; color: var(--text-muted); }
.category-link { font-size: 0.95rem; font-weight: 400; }

/* ---- FEATURED SECTION ---- */
.featured-section { padding: 4rem 0; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.feature-card {
  display: block;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
  background: #fff;
}

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(200, 75, 47, 0.08);
}

.card-category {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.card-question {
  font-size: 0.975rem;
  line-height: 1.45;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.card-question strong { font-weight: 500; }

.card-answer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tool-badge {
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
}

.card-arrow {
  color: var(--border);
  font-size: 1.1rem;
  transition: color 0.15s;
}

.feature-card:hover .card-arrow { color: var(--accent); }

/* ---- ARTICLE PAGE ---- */
.article-header {
  background: var(--off-white);
  padding: 3.5rem 0 3rem;
  border-bottom: 1px solid var(--border);
}

.article-breadcrumb {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.article-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.article-breadcrumb a:hover { color: var(--accent); }
.article-breadcrumb span { margin: 0 0.4rem; }

.article-eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.article-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
  max-width: 720px;
}

.article-verdict {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.875rem 1.25rem;
  margin-top: 0.5rem;
}

.verdict-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.verdict-tool {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.verdict-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4caf50;
  flex-shrink: 0;
}

/* ---- ARTICLE BODY ---- */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 4rem;
  padding: 3.5rem 0 5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { order: -1; }
}

.article-body { max-width: 680px; }

.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 2.5rem 0 1rem;
  color: var(--text);
}

.article-body h3 {
  font-size: 1.05rem;
  font-weight: 500;
  margin: 2rem 0 0.75rem;
  color: var(--text);
}

.article-body p {
  font-size: 1rem;
  line-height: 1.75;
  color: #2a2a2a;
  margin-bottom: 1.25rem;
  font-weight: 300;
}

.article-body ul {
  margin: 0.75rem 0 1.25rem 1.25rem;
}

.article-body li {
  font-size: 1rem;
  line-height: 1.7;
  color: #2a2a2a;
  margin-bottom: 0.4rem;
  font-weight: 300;
}

.verdict-block {
  background: var(--accent-light);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}

.verdict-block p {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
}

/* ---- SIDEBAR ---- */
.article-sidebar { position: sticky; top: 5rem; }

.sidebar-cta {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.sidebar-cta-header {
  background: var(--text);
  padding: 1.25rem;
}

.sidebar-cta-header p {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.4rem;
}

.sidebar-cta-header h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.sidebar-cta-body { padding: 1.25rem; }

.sidebar-cta-body p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  font-weight: 300;
}

.cta-button {
  display: block;
  width: 100%;
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.925rem;
  text-decoration: none;
  transition: background 0.15s;
  letter-spacing: 0.01em;
}

.cta-button:hover { background: #b03d23; }

.sidebar-facts {
  margin-top: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.sidebar-facts-title {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border);
}

.fact-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--warm-gray);
  font-size: 0.875rem;
}

.fact-row:last-child { border-bottom: none; }
.fact-label { color: var(--text-muted); font-weight: 300; }
.fact-value { font-weight: 500; color: var(--text); }

/* ---- FAQ SECTION ---- */
.faq-section {
  background: var(--off-white);
  padding: 3.5rem 0;
  border-top: 1px solid var(--border);
}

.faq-section h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.faq-item { margin-bottom: 2rem; }

.faq-q {
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.faq-a {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 300;
}

/* ---- RELATED SECTION ---- */
.related-section { padding: 3.5rem 0; border-top: 1px solid var(--border); }

.related-section h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

/* ---- LOADING STATE ---- */
.loading {
  padding: 3rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--text);
  padding: 2.5rem 0;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-note {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  max-width: 500px;
  line-height: 1.5;
  font-weight: 300;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  font-weight: 300;
}

/* ---- PEOPLE & TOOLS INDEX PAGES ---- */
.page-header {
  background: var(--off-white);
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--text-muted);
  font-weight: 300;
}

.index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  padding-bottom: 5rem;
}

.index-card {
  display: block;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: all 0.15s;
}

.index-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.index-card-name {
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.index-card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 300;
}

/* ---- UTILITIES ---- */
.ai-loading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  padding: 1rem 0;
}

.ai-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.generated-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.25rem 0.6rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
}
