:root {
  --bg-canvas: #090a0d;
  --bg-surface: #12141a;
  --bg-surface-gloss: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.01) 45%, rgba(0, 0, 0, 0.5) 100%), #12141a;
  --bg-surface-alt: #0c0e12;
  --bg-liquid-glow: radial-gradient(circle at 50% 0%, rgba(250, 204, 21, 0.16) 0%, transparent 65%);
  --text-primary: #ffffff;
  --text-muted: #cbd5e1;
  --accent-yellow: #facc15;
  --accent-yellow-bright: #fde047;
  --accent-yellow-deep: #ca8a04;
  --accent-yellow-glow: rgba(250, 204, 21, 0.3);
  --charcoal-black: #000000;
  --border-subtle: rgba(255, 255, 255, 0.12);
  --border-yellow-gloss: rgba(250, 204, 21, 0.35);
  --font-heading: "Arial Narrow", "Helvetica Neue", -apple-system, sans-serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-card: 16px;
  --gloss-reflection: inset 0 1px 1px rgba(255, 255, 255, 0.22);
}

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

body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  background-image:
    radial-gradient(ellipse 70% 35% at 50% -5%, rgba(250, 204, 21, 0.18) 0%, transparent 60%),
    radial-gradient(circle at 15% 75%, rgba(250, 204, 21, 0.05) 0%, transparent 40%),
    linear-gradient(180deg, #090a0d 0%, #050608 100%);
  background-repeat: no-repeat;
  min-height: 100vh;
}

/* Skip link: positioned cleanly offscreen, drops down visibly on focus with high contrast */
.skip-link {
  position: absolute;
  top: -60px;
  left: 14px;
  background: var(--accent-yellow);
  color: #000000;
  padding: 6px 14px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 6px;
  border: 1px solid #ffffff;
  box-shadow: 0 4px 16px rgba(250, 204, 21, 0.5), var(--gloss-reflection);
  z-index: 10000;
  text-decoration: none;
  transition: top 0.2s ease-in-out;
}
.skip-link:focus, .skip-link:focus-visible {
  top: 10px;
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* Slim Non-Sticky Header: Moves up naturally when scrolling */
.site-header {
  position: static;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(22, 25, 32, 0.95) 0%, rgba(10, 11, 15, 0.98) 100%);
  padding: 7px clamp(1rem, 3vw, 2rem);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.header-row {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-link {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 0.92rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: opacity 0.15s ease;
}
.brand-link:hover {
  color: var(--accent-yellow);
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: linear-gradient(145deg, #fde047 0%, #facc15 50%, #ca8a04 100%);
  color: #000000;
  border-radius: 4px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.7), 0 0 10px rgba(250, 204, 21, 0.4);
}
.brand-mark svg {
  display: block;
  fill: #000000;
}
.nav-wrap {
  display: flex;
  align-items: center;
}
.main-nav {
  display: flex;
  gap: 1.1rem;
  list-style: none;
  align-items: center;
}
.nav-link {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #cbd5e1;
  text-decoration: none;
  padding: 4px 6px;
  border-radius: 4px;
  transition: all 0.15s ease;
}
.nav-link:hover, .nav-link:focus-visible {
  color: var(--accent-yellow);
  background: rgba(250, 204, 21, 0.08);
}
.nav-link.active {
  color: var(--accent-yellow);
  border-bottom: 2px solid var(--accent-yellow);
}
.nav-toggle-btn {
  display: none;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0.7) 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--accent-yellow);
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25);
  transition: all 0.15s ease;
}
.nav-toggle-btn:hover {
  border-color: var(--accent-yellow);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4), 0 0 10px var(--accent-yellow-glow);
}

/* Layout Core */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(1.5rem, 3vw, 2.75rem) clamp(1rem, 3vw, 2rem);
}
.prose-column {
  max-width: 72ch;
  margin: 0 auto;
}

/* Headings & Text */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-primary);
  line-height: 1.2;
  overflow-wrap: anywhere;
  hyphens: auto;
}
h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 900;
  margin-bottom: 0.85rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}
h2 {
  font-size: clamp(1.3rem, 2.8vw, 1.85rem);
  margin-bottom: 0.85rem;
}
h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #ffffff;
}
p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  overflow-wrap: anywhere;
}
strong {
  color: #ffffff;
}

/* Liquid Gloss Console & Hero */
.hero-console {
  background:
    radial-gradient(ellipse 80% 60% at 50% 20%, rgba(250, 204, 21, 0.18), transparent 75%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(0, 0, 0, 0.6) 100%),
    var(--bg-surface);
  border: 1px solid var(--border-yellow-gloss);
  border-radius: var(--radius-card);
  padding: clamp(2rem, 4.5vw, 3.5rem) clamp(1.25rem, 3.5vw, 2.5rem);
  text-align: center;
  margin-bottom: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}
.console-tag {
  display: inline-block;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(0, 0, 0, 0.5) 100%), var(--bg-surface-alt);
  color: var(--accent-yellow);
  border: 1px solid var(--border-yellow-gloss);
  padding: 3px 10px;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Glossy Liquid Buttons: Yellow, Black, White */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #fef08a 0%, #facc15 45%, #eab308 100%);
  color: #000000;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 20px;
  text-decoration: none;
  border: 1px solid #ffffff;
  border-radius: 6px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8), 0 3px 12px rgba(234, 179, 8, 0.4);
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-primary:hover {
  background: linear-gradient(180deg, #ffffff 0%, #fde047 50%, #facc15 100%);
  box-shadow: inset 0 1px 1px #ffffff, 0 5px 18px rgba(250, 204, 21, 0.6);
  transform: translateY(-1px);
}
.btn-primary:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(0, 0, 0, 0.6) 100%), #14171d;
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 8px 16px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15), 0 2px 6px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-secondary:hover {
  border-color: var(--accent-yellow);
  color: var(--accent-yellow);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25), 0 0 12px var(--accent-yellow-glow);
  transform: translateY(-1px);
}
.btn-secondary:focus-visible {
  outline: 2px solid var(--accent-yellow);
  outline-offset: 2px;
}

/* Grids & Recipe Panels */
.grid-2col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.grid-3col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.recipe-panel {
  background: var(--bg-surface-gloss);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), var(--gloss-reflection);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.recipe-panel:hover {
  border-color: var(--border-yellow-gloss);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.3), 0 0 16px rgba(250, 204, 21, 0.12);
}

/* Glossy Stat Strips */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0.5) 100%), var(--bg-surface-alt);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 7px 10px;
  margin: 1rem 0;
  gap: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.stat-item {
  text-align: center;
  min-width: 0;
}
.stat-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.stat-val {
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent-yellow);
  white-space: nowrap;
}

/* Media Cards */
.card-media-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}
.card-media-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Method & Ingredient Lists */
.method-list, .ingredient-list {
  padding-left: 1.25rem;
  margin-bottom: 1.25rem;
}
.method-list li, .ingredient-list li {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}
.method-list li strong {
  color: #ffffff;
}

/* Tables & Wrappers */
.table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-card);
  background: var(--bg-surface-gloss);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), var(--gloss-reflection);
}
.console-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}
.console-table th, .console-table td {
  padding: 11px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.console-table th {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(0, 0, 0, 0.6) 100%), var(--bg-surface-alt);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-yellow);
  font-weight: 800;
  font-size: 0.8rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.console-table tr:last-child td {
  border-bottom: none;
}

/* FAQ Accordion Details */
details.faq-item {
  background: var(--bg-surface-gloss);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.9rem 1.2rem;
  margin-bottom: 0.85rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), var(--gloss-reflection);
  transition: border-color 0.15s ease;
}
details.faq-item:hover, details.faq-item[open] {
  border-color: var(--border-yellow-gloss);
}
details.faq-item summary {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ffffff;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
details.faq-item summary::-webkit-details-marker {
  display: none;
}
details.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--accent-yellow);
  font-weight: 900;
}
details.faq-item[open] summary::after {
  content: "−";
}
details.faq-item p {
  margin-top: 0.85rem;
  margin-bottom: 0;
}

/* Contact Drafting Tool */
.draft-box {
  background: var(--bg-surface-gloss);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), var(--gloss-reflection);
}
.form-field {
  margin-bottom: 1.25rem;
}
.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-yellow);
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 9px 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(0, 0, 0, 0.5) 100%), var(--bg-surface-alt);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.92rem;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6);
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: 2px solid var(--accent-yellow);
  border-color: var(--accent-yellow);
  box-shadow: 0 0 10px var(--accent-yellow-glow);
}
.tool-preview-area {
  background: #08090c;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 0.9rem;
  font-family: monospace;
  font-size: 0.82rem;
  color: #cbd5e1;
  white-space: pre-wrap;
  min-height: 120px;
  margin: 1rem 0;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Footer: Glossy Liquid Onyx */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, #101217 0%, #050608 100%);
  padding: 2.75rem 1.5rem 1.75rem;
  margin-top: 3rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--accent-yellow);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.5rem;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 0.45rem;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.15s ease;
}
.footer-links a:hover {
  color: var(--accent-yellow);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.25rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

/* Mobile & Dropdown Navigation */
@media (max-width: 768px) {
  .nav-toggle-btn {
    display: inline-flex;
  }
  .nav-wrap {
    position: relative;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 210px;
    background: linear-gradient(180deg, #161820 0%, #0c0d12 100%);
    border: 1px solid var(--border-yellow-gloss);
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.85), inset 0 1px 1px rgba(255, 255, 255, 0.2);
    flex-direction: column;
    padding: 0.6rem;
    gap: 0.25rem;
    z-index: 1000;
  }
  .main-nav.is-open {
    display: flex;
  }
  .main-nav li {
    width: 100%;
  }
  .main-nav .nav-link {
    display: block;
    width: 100%;
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 0.82rem;
  }
  .stat-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

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