:root {
  --bg-canvas: #1c1f24;
  --bg-surface: #292e33;
  --bg-surface-hover: #32383e;
  --text-primary: #e5e7eb;
  --text-muted: #9ca3af;
  --accent-primary: #10b981;
  --accent-secondary: #059669;
  --border-subtle: rgba(229, 231, 235, 0.12);
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-elevation: 0 12px 32px -4px rgba(0, 0, 0, 0.45);
  --glow-accent: 0 0 28px -6px rgba(16, 185, 129, 0.4);
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, Consolas, "Courier New", monospace;
}

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

html, body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-wrap: anywhere;
  hyphens: auto;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.25s var(--ease-kinetic);
}

.text-link {
  position: relative;
  display: inline-block;
  color: var(--accent-primary);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  padding-bottom: 2px;
}

.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background-color: var(--accent-primary);
  transition: width 0.3s var(--ease-kinetic);
}

.text-link:hover::after {
  width: 100%;
}

.btn-primary {
  display: inline-block;
  background-color: var(--accent-primary);
  color: #062219;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  border: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease-kinetic), box-shadow 0.3s var(--ease-kinetic), background-color 0.2s;
}

.btn-primary:hover {
  background-color: #34d399;
  transform: translateY(-3px) scale(1.015);
  box-shadow: var(--shadow-elevation), var(--glow-accent);
}

/* Header: Inset, round-ended floating-style box in normal flow, brand far left */
.site-header-wrap {
  max-width: 1200px;
  margin: 1.5rem auto 0;
  padding: 0 1.25rem;
  position: relative;
}

.site-header {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-elevation);
  position: relative;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-right: auto;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  background-color: var(--accent-primary);
  color: #062219;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
}

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

.desktop-nav a {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--text-muted);
  position: relative;
  padding: 0.25rem 0;
}

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

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-radius: 9999px;
  width: 38px;
  height: 38px;
  font-size: 1.25rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.mobile-nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 1.25rem;
  left: 1.25rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 1.25rem;
  z-index: 50;
  box-shadow: var(--shadow-elevation);
}

.mobile-nav-dropdown.open {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.mobile-nav-dropdown a {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

/* Layout & Containers */
.main-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

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

.glow-section {
  position: relative;
  padding: 4.5rem 0;
}

.glow-section::before {
  content: "";
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: min(680px, 90vw);
  height: 380px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.13) 0%, rgba(16, 185, 129, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.glow-section > * {
  position: relative;
  z-index: 1;
}

/* Hero: Solid charcoal field without an image, oversized baking headline */
.hero-charcoal {
  background-color: #16181c;
  border: 1px solid var(--border-subtle);
  padding: 5rem 2rem;
  margin: 2.5rem 0 3.5rem;
  position: relative;
}

.hero-inner {
  max-width: 72ch;
  margin: 0 auto;
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  display: block;
  margin-bottom: 0.75rem;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.2;
  margin: 2.5rem 0 1rem;
  color: var(--text-primary);
}

h3 {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  line-height: 1.35;
  margin: 1.5rem 0 0.6rem;
  color: var(--text-primary);
}

p {
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.hero-lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 64ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.75rem;
}

/* Breakout Food Photographs & Pull Quotes */
.breakout-media {
  width: 100%;
  max-width: 960px;
  margin: 2.75rem auto;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.breakout-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0;
}

.media-caption {
  padding: 0.85rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pull-quote {
  margin: 2.5rem 0;
  padding: 1.75rem 2rem;
  background-color: var(--bg-surface);
  border-left: 4px solid var(--accent-primary);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-primary);
}

.pull-quote cite {
  display: block;
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.82rem;
  color: var(--accent-primary);
}

/* Recipe & Topic Cards: Photo-top, square corners, round overlapping emerald badge */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2.5rem 0;
}

.recipe-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 0;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease-kinetic), box-shadow 0.35s var(--ease-kinetic), background-color 0.25s;
}

.recipe-card:hover {
  transform: translateY(-5px) scale(1.015);
  background-color: var(--bg-surface-hover);
  box-shadow: var(--shadow-elevation), var(--glow-accent);
}

.card-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
}

.card-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

.badge-emerald {
  position: absolute;
  bottom: -14px;
  left: 1.25rem;
  background-color: var(--accent-primary);
  color: #062219;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.card-body {
  padding: 1.75rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.card-body h3 {
  margin-top: 0;
  margin-bottom: 0.65rem;
}

.card-body p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

/* Author / Baker note with round avatar */
.baker-note {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  margin: 2rem 0;
}

.avatar-round {
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  object-fit: cover;
  border: 2px solid var(--accent-primary);
  flex-shrink: 0;
}

/* Ingredient Comparison Rows & Temperature Tables */
.comparison-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}

.comparison-row {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 1.25rem;
  display: grid;
  grid-template-columns: 180px 1fr 220px;
  gap: 1.25rem;
  align-items: baseline;
}

.comp-title {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-primary);
}

.comp-metric {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.table-scroll {
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th, td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

th {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  color: var(--accent-primary);
  background-color: rgba(0, 0, 0, 0.2);
}

td {
  font-size: 0.95rem;
}

.temp-cell {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent-primary);
}

/* FAQ Disclosures */
.faq-list {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

details.faq-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 1.1rem 1.35rem;
}

details.faq-item summary {
  font-family: var(--font-mono);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

details.faq-item summary::-webkit-details-marker {
  display: none;
}

details.faq-item summary::after {
  content: "+";
  color: var(--accent-primary);
  font-size: 1.25rem;
}

details.faq-item[open] summary::after {
  content: "−";
}

details.faq-item p {
  margin-top: 1rem;
  margin-bottom: 0;
  color: var(--text-muted);
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
}

/* Forms & Interactive Tools */
.kitchen-form {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 2rem;
  margin: 2rem 0;
}

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

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin-bottom: 0.45rem;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
}

.form-control:focus {
  outline: 2px solid var(--accent-primary);
  border-color: transparent;
}

.tool-output {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background-color: #16181c;
  border: 1px solid var(--accent-primary);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  white-space: pre-wrap;
  display: none;
}

.tool-output.active {
  display: block;
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s var(--ease-kinetic), transform 0.65s var(--ease-kinetic);
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
.site-footer {
  margin-top: 5rem;
  border-top: 1px solid var(--border-subtle);
  background-color: #16181c;
  padding: 3.5rem 1.25rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--text-muted);
}

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

.footer-bottom {
  max-width: 1200px;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .comparison-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .hero-charcoal {
    padding: 3.25rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 0.6rem 1rem;
  }
  .pull-quote {
    padding: 1.25rem;
  }
}

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