:root {
  --bg-canvas: #1e1612;
  --bg-surface: #33251d;
  --bg-surface-hover: #3d2d23;
  --text-primary: #f5ecdf;
  --text-muted: #c9b9a6;
  --accent-primary: #f59e0b;
  --accent-secondary: #d97706;
  --border-subtle: #4a372c;
  --border-focus: #f59e0b;
  --max-width: 1140px;
  --font-stack: "Trebuchet MS", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius-panel: 20px;
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
  background-color: var(--bg-canvas);
}

body {
  font-family: var(--font-stack);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  hyphens: auto;
  overflow-wrap: anywhere;
}

a {
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

a:hover, a:focus-visible {
  color: #fbbf24;
}

:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--accent-primary);
  color: #1e1612;
  font-weight: 700;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-panel);
  z-index: 999;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* Slim Header: brand far left, non-sticky */
.site-header {
  position: relative;
  background-color: #261b15;
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 1.5rem;
  width: 100%;
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-link {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.brand-link span.accent {
  color: var(--accent-primary);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-desktop a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.35rem 0.6rem;
  border-radius: 12px;
  transition: color 0.2s, background-color 0.2s;
}

.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  color: var(--text-primary);
  background-color: var(--bg-surface);
}

.nav-desktop a[aria-current="page"] {
  border-bottom: 2px solid var(--accent-primary);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 1.25rem;
  line-height: 1;
  padding: 6px 12px;
  border-radius: 12px;
  cursor: pointer;
  aria-label: "Toggle Navigation Menu";
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.5rem 1.5rem;
  background: #261b15;
  border-bottom: 1px solid var(--border-subtle);
}

.nav-mobile.is-open {
  display: flex;
}

.nav-mobile a {
  color: var(--text-primary);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  background-color: var(--bg-surface);
}

/* Primary Hero (Amber Exchange Organic Fluid) */
.hero {
  background: linear-gradient(175deg, #2a1e17 0%, #1e1612 100%);
  padding: clamp(3rem, 7vw, 5.5rem) 1.5rem clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--border-subtle);
  clip-path: ellipse(150% 100% at 50% 0%);
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-tag {
  display: inline-block;
  background-color: rgba(245, 158, 11, 0.12);
  color: var(--accent-primary);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.15;
  color: var(--text-primary);
  font-weight: 800;
  margin-bottom: 1.25rem;
  max-width: 20ch;
  letter-spacing: -0.02em;
}

.hero p.lead {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  color: var(--text-muted);
  max-width: 62ch;
  line-height: 1.55;
  margin-bottom: 2rem;
}

/* Buttons (Border-free amber pills with espresso text) */
.btn-amber {
  display: inline-block;
  background-color: var(--accent-primary);
  color: #1e1612;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.85rem;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.18s ease;
}

.btn-amber:hover, .btn-amber:focus-visible {
  background-color: #fbbf24;
  color: #150f0c;
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--border-subtle);
  transition: background-color 0.2s ease;
  margin-left: 0.75rem;
}

.btn-secondary:hover {
  background-color: var(--bg-surface);
  color: #ffffff;
}

/* Layout Containers & Sections */
main {
  flex: 1;
}

.section {
  padding: clamp(2.5rem, 5vw, 4.5rem) 1.5rem;
}

.section-tinted {
  background-color: #241a15;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

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

.reading-column {
  max-width: 70ch;
  margin: 0 auto;
}

.section-head {
  margin-bottom: 2.25rem;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 60ch;
}

/* Organic 2-column & fluid cards */
.two-column-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.three-column-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Card components: flat 1px-bordered panels, no shadows, 20px radii */
.card-panel {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-panel);
  padding: 1.75rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.card-panel:hover {
  border-color: #634b3d;
  background-color: var(--bg-surface-hover);
}

.card-panel h3 {
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.card-panel p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* Paired Dialogue Examples */
.dialogue-comparison {
  margin: 1.5rem 0;
  display: grid;
  gap: 1rem;
}

.dialogue-box {
  background-color: #291d17;
  border-left: 4px solid var(--accent-primary);
  padding: 1rem 1.25rem;
  border-radius: 0 14px 14px 0;
  font-size: 0.98rem;
}

.dialogue-box.alternative {
  border-left-color: #78716c;
}

.dialogue-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  margin-bottom: 0.35rem;
  display: block;
}

.dialogue-label.amber {
  color: var(--accent-primary);
}

.dialogue-label.muted {
  color: #a8a29e;
}

.dialogue-quote {
  font-style: italic;
  color: var(--text-primary);
}

/* High contrast moody images: 20px radius, deep shadows */
.panel-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-panel);
  border: 1px solid var(--border-subtle);
  margin: 1.5rem 0;
  display: block;
}

.img-square {
  aspect-ratio: 4 / 3;
}

/* Accordion FAQ items */
.faq-list {
  display: grid;
  gap: 1.25rem;
}

.faq-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-panel);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  text-align: left;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--accent-primary);
  transition: transform 0.2s ease;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 1.5rem 1.5rem;
  color: var(--text-muted);
}

.faq-item.active .faq-answer {
  display: block;
}

/* Interactive Client-Side Drafting Tool */
.form-panel {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-panel);
  padding: 2rem;
  margin-top: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: #241a15;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.draft-preview {
  margin-top: 1.5rem;
  background: #1e1612;
  border: 1px dashed var(--border-subtle);
  border-radius: 14px;
  padding: 1.25rem;
  font-family: monospace;
  font-size: 0.9rem;
  white-space: pre-wrap;
  color: #e6dacb;
  display: none;
}

.feedback-msg {
  display: inline-block;
  color: var(--accent-primary);
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

/* Footer */
.site-footer {
  background-color: #17110e;
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 1.5rem 2rem;
  margin-top: auto;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  color: var(--text-primary);
  font-size: 1.05rem;
  margin-bottom: 0.85rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid #2a1e17;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
}

/* Responsive adjustments */
@media (max-width: 820px) {
  .nav-desktop {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
}

@media (max-width: 540px) {
  .btn-secondary {
    margin-left: 0;
    margin-top: 0.5rem;
    display: block;
    text-align: center;
  }
  .btn-amber {
    display: block;
    text-align: center;
  }
  .form-actions button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
