:root {
  --primary: #fa520f;
  --primary-deep: #cc3a05;
  --ink: #1f1f1f;
  --slate: #4a4a4a;
  --steel: #6a6a6a;
  --stone: #8a8a8a;
  --hairline: #e5e5e5;
  --hairline-soft: #ededed;
  --canvas: #ffffff;
  --cream: #fff8e0;
  --cream-soft: #fffaeb;
  --beige-deep: #e6d5a8;
  --radius-md: 8px;
  --radius-lg: 12px;
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.55;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { margin: 0 0 16px; }
h1 { font-family: var(--font-display); font-size: clamp(34px, 5vw, 52px); font-weight: 400; letter-spacing: -0.5px; line-height: 1.15; }
h2 { font-size: clamp(24px, 3.5vw, 32px); font-weight: 500; letter-spacing: -0.3px; }
h3 { font-size: 22px; font-weight: 500; }
p { margin: 0 0 16px; }

.top-nav { background: var(--canvas); border-bottom: 1px solid var(--hairline-soft); position: sticky; top: 0; z-index: 50; }
.top-nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.brand { font-family: var(--font-display); font-size: 19px; color: var(--ink); }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--steel); font-size: 14px; font-weight: 500; text-decoration: none; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 1px solid var(--hairline); border-radius: var(--radius-md); padding: 8px 10px; cursor: pointer; }

.hero { padding: 64px 0 40px; }
.hero-eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--primary); margin-bottom: 12px; }
.hero-lead { font-size: 18px; color: var(--slate); max-width: 640px; }

.breadcrumb { font-size: 13px; color: var(--stone); margin-bottom: 24px; }
.breadcrumb a { color: var(--stone); }
.breadcrumb a:hover { color: var(--primary); }

.entry-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin: 24px 0; }
.entry-card { background: var(--canvas); border: 1px solid var(--hairline-soft); border-radius: var(--radius-lg); padding: 24px; display: block; color: var(--ink); }
.entry-card:hover { border-color: var(--primary); text-decoration: none; }
.entry-card .letter-badge { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: var(--radius-md); background: var(--cream); font-weight: 600; margin-bottom: 12px; color: var(--primary-deep); }
.entry-card p { color: var(--slate); font-size: 14px; margin-bottom: 0; }

.category-group { margin-bottom: 32px; }
.category-group h3 { color: var(--primary); font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }

.toc { background: var(--cream-soft); border-radius: var(--radius-lg); padding: 24px; margin: 24px 0; border: 1px solid var(--beige-deep); }
.toc h3 { margin-bottom: 12px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--slate); }
.toc ol { margin: 0; padding-left: 20px; }
.toc a { text-decoration: none; color: var(--ink); font-size: 14px; }
.toc a:hover { color: var(--primary); }

figure { margin: 24px 0; }
figure img { width: 100%; border-radius: var(--radius-lg); }
figcaption { font-size: 13px; color: var(--stone); margin-top: 8px; }

.related-block { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--hairline); }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.related-grid a { text-decoration: none; color: var(--ink); background: var(--canvas); border: 1px solid var(--hairline-soft); border-radius: var(--radius-md); padding: 16px; font-size: 14px; font-weight: 500; display: block; }
.related-grid a:hover { border-color: var(--primary); }

.faq-row { background: var(--cream-soft); border-bottom: 1px solid var(--hairline-soft); padding: 24px; border-radius: var(--radius-md); margin-bottom: 12px; }
.faq-row summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-row summary::-webkit-details-marker { display: none; }
.faq-row summary::after { content: "+"; font-size: 20px; color: var(--stone); }
.faq-row[open] summary::after { content: "\2212"; }
.faq-row p { margin-top: 12px; color: var(--slate); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--primary); color: #fff; text-decoration: none; font-size: 14px; font-weight: 500; border-radius: var(--radius-md); padding: 10px 20px; border: none; cursor: pointer; }
.btn:hover { background: var(--primary-deep); color: #fff; text-decoration: none; }

form .field { margin-bottom: 16px; }
form label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
form input, form textarea { width: 100%; border: 1px solid var(--hairline); border-radius: var(--radius-md); padding: 11px 16px; font-family: inherit; font-size: 15px; background: var(--canvas); color: var(--ink); height: 44px; }
form textarea { height: auto; }
form input:focus, form textarea:focus { outline: none; border: 2px solid var(--primary); }
.field-error { color: #c41c1c; font-size: 13px; margin-top: 4px; display: none; }
.form-success { display: none; background: var(--cream); border-radius: var(--radius-md); padding: 16px; color: var(--ink); font-weight: 500; margin-top: 16px; }

.contact-panel { background: var(--cream); border: 1px solid var(--beige-deep); border-radius: var(--radius-lg); padding: 32px; max-width: 520px; }

.sunset-stripe { height: 8px; background: linear-gradient(90deg, var(--primary), #ffa110, #ffd900, var(--cream)); }

.footer { background: var(--cream); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--slate); margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 8px; }
.footer a { text-decoration: none; color: var(--primary); font-size: 14px; }
.footer a:hover { text-decoration: underline; }
.footer .legal-links { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; margin-bottom: 16px; }
.footer .disclaimers { font-size: 12px; color: var(--stone); border-top: 1px solid var(--beige-deep); padding-top: 20px; }
.footer .disclaimers p { margin-bottom: 8px; }

.cookie-banner { position: fixed; left: 24px; right: 24px; bottom: 24px; max-width: 640px; margin: 0 auto; background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 24px; display: none; z-index: 100; box-shadow: 0 8px 30px rgba(0,0,0,0.2); }
.cookie-banner p { font-size: 14px; color: #ddd; margin-bottom: 16px; }
.cookie-actions { display: flex; gap: 12px; }
.cookie-actions button { border-radius: var(--radius-md); padding: 8px 16px; font-size: 14px; font-weight: 500; cursor: pointer; border: none; }
.btn-accept { background: #fff; color: var(--ink); }
.btn-reject { background: transparent; color: #fff; border: 1px solid #555; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--canvas); padding: 24px; border-bottom: 1px solid var(--hairline); gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
}
