@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --canvas: #f7f7f4;
  --canvas-soft: #fafaf7;
  --surface-card: #ffffff;
  --surface-strong: #e6e5e0;
  --primary: #f54e00;
  --primary-active: #d04200;
  --on-primary: #ffffff;
  --ink: #26251e;
  --body: #5a5852;
  --body-strong: #26251e;
  --muted: #807d72;
  --muted-soft: #a09c92;
  --hairline: #e6e5e0;
  --hairline-soft: #efeee8;
  --hairline-strong: #cfcdc4;
  --success: #1f8a65;
  --error: #cf2d56;
  --rounded-xs: 4px;
  --rounded-sm: 6px;
  --rounded-md: 8px;
  --rounded-lg: 12px;
  --rounded-xl: 16px;
  --rounded-pill: 9999px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: var(--canvas);
  color: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== NAV ===== */
.site-nav {
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-logo {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.2px;
}
.nav-logo span { color: var(--primary); }
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  transition: color 0.15s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--ink); }
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.2s;
}

/* ===== HERO ===== */
.hero {
  padding: 80px 0;
  border-bottom: 1px solid var(--hairline-soft);
}
.hero-badge {
  display: inline-block;
  background: var(--surface-strong);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--rounded-pill);
  margin-bottom: 24px;
}
.hero h1 {
  font-size: 72px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -2.16px;
  max-width: 800px;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 16px;
  color: var(--body);
  max-width: 560px;
  line-height: 1.6;
  margin-bottom: 0;
}

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.section-title {
  font-size: 36px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.72px;
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 16px;
  color: var(--body);
  max-width: 600px;
  line-height: 1.6;
}
.section-divider {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 0;
}

/* ===== CARDS ===== */
.card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 24px;
}
.card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.4;
}
.card-body {
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
}
.card-meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
}

/* ===== ARTICLE CARDS ===== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.article-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.article-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.article-card-body { padding: 20px; flex: 1; }
.article-card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 10px;
}
.article-card-excerpt {
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: 16px;
}
.article-card-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.article-card-link:hover { color: var(--primary-active); }

/* ===== FEATURES GRID ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* ===== MUSHROOM TABLE ===== */
.mushroom-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.mushroom-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--hairline-strong);
}
.mushroom-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--hairline-soft);
  color: var(--body);
  vertical-align: top;
}
.mushroom-table tr:last-child td { border-bottom: none; }
.mushroom-table tr:hover td { background: var(--canvas-soft); }

/* ===== WARNING BOX ===== */
.warning-box {
  background: #fff8f5;
  border: 1px solid #f7c9b3;
  border-left: 4px solid var(--primary);
  border-radius: var(--rounded-md);
  padding: 16px 20px;
  margin: 24px 0;
}
.warning-box-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.warning-box p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
}

/* ===== IMAGE CAPTION ===== */
.img-caption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.4;
}

/* ===== PILL BADGES ===== */
.pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--rounded-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
}
.pill-neutral { background: var(--surface-strong); color: var(--ink); }
.pill-warning { background: #ffe3d4; color: #8a2b00; }
.pill-danger { background: #ffe0e5; color: #8a0020; }
.pill-safe { background: #d4f5e9; color: #0a5c40; }

/* ===== ARTICLE LAYOUT ===== */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}
.article-content h1 {
  font-size: 36px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.72px;
  line-height: 1.2;
  margin-bottom: 8px;
}
.article-content h2 {
  font-size: 26px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.325px;
  line-height: 1.25;
  margin: 40px 0 16px;
}
.article-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 28px 0 12px;
}
.article-content p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 20px;
}
.article-content ul, .article-content ol {
  margin: 0 0 20px 20px;
  color: var(--body);
  font-size: 16px;
  line-height: 1.7;
}
.article-content li { margin-bottom: 6px; }
.article-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hairline);
}
.article-sidebar { position: sticky; top: 88px; }
.sidebar-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 20px;
  margin-bottom: 20px;
}
.sidebar-card-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.sidebar-links { list-style: none; }
.sidebar-links li { margin-bottom: 8px; }
.sidebar-links a {
  font-size: 14px;
  color: var(--body);
  line-height: 1.4;
}
.sidebar-links a:hover { color: var(--ink); }

/* ===== ARTICLE FEATURED IMAGE ===== */
.article-featured-img {
  width: 100%;
  border-radius: var(--rounded-lg);
  margin-bottom: 32px;
  border: 1px solid var(--hairline);
  overflow: hidden;
}
.article-featured-img img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

/* ===== CONTACT FORM ===== */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  background: var(--surface-card);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--rounded-md);
  padding: 12px 16px;
  height: 44px;
  font-size: 16px;
  color: var(--ink);
  font-family: inherit;
  transition: border-color 0.15s;
  outline: none;
}
.form-control:focus { border-color: var(--ink); }
textarea.form-control {
  height: auto;
  min-height: 120px;
  resize: vertical;
}
.form-control::placeholder { color: var(--muted-soft); }
.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  height: 40px;
  border-radius: var(--rounded-md);
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary:hover { background: var(--primary-active); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.form-success {
  display: none;
  background: #e8f8f2;
  border: 1px solid #a3dfc7;
  border-radius: var(--rounded-md);
  padding: 16px 20px;
  color: var(--success);
  font-size: 15px;
  font-weight: 500;
  margin-top: 16px;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 64px 0 48px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}
.footer-brand p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
  margin-top: 12px;
  max-width: 260px;
}
.footer-col-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  font-size: 14px;
  color: var(--body);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--ink); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--hairline-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 14px; color: var(--muted); }
.footer-disclaimer {
  font-size: 13px;
  color: var(--muted);
  margin-top: 20px;
  line-height: 1.6;
  padding-top: 20px;
  border-top: 1px solid var(--hairline-soft);
}

/* ===== COOKIE BANNER ===== */
#cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--canvas);
  border-radius: var(--rounded-lg);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 640px;
  width: calc(100% - 48px);
  z-index: 999;
  box-shadow: 0 4px 24px rgba(38,37,30,0.18);
}
#cookie-banner p {
  font-size: 14px;
  line-height: 1.5;
  flex: 1;
}
#cookie-banner a { color: var(--canvas); text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.btn-cookie-accept {
  background: var(--primary);
  color: var(--on-primary);
  border: none;
  border-radius: var(--rounded-md);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}
.btn-cookie-reject {
  background: transparent;
  color: var(--canvas);
  border: 1px solid rgba(247,247,244,0.3);
  border-radius: var(--rounded-md);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  padding: 16px 0;
  display: flex;
  gap: 6px;
  align-items: center;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb-sep { color: var(--muted-soft); }

/* ===== PAGE HEADER ===== */
.page-header {
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 64px;
}
.page-header h1 {
  font-size: 36px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.72px;
  line-height: 1.2;
  margin-bottom: 10px;
}
.page-header p {
  font-size: 16px;
  color: var(--body);
  max-width: 560px;
  line-height: 1.6;
}

/* ===== PROSE (Privacy/Terms) ===== */
.prose h2 {
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.11px;
  margin: 40px 0 14px;
}
.prose h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 28px 0 10px;
}
.prose p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 18px;
}
.prose ul {
  margin: 0 0 18px 24px;
  color: var(--body);
  font-size: 16px;
  line-height: 1.7;
}
.prose li { margin-bottom: 6px; }
.prose a { color: var(--ink); text-decoration: underline; }

/* ===== CODE ===== */
code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-xs);
  padding: 2px 6px;
  color: var(--ink);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero h1 { font-size: 56px; letter-spacing: -1.5px; }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
}
@media (max-width: 768px) {
  .hero h1 { font-size: 36px; letter-spacing: -0.8px; }
  .hero { padding: 48px 0; }
  .section { padding: 48px 0; }
  .section-title { font-size: 28px; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--canvas); border-bottom: 1px solid var(--hairline); padding: 16px 24px; gap: 16px; }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: flex; }
  .articles-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  #cookie-banner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
}
