:root {
  --bg: #fffaf2;
  --bg-alt: #fff3df;
  --ink: #1f2937;
  --ink-soft: #4b5563;
  --muted: #6b7280;
  --line: #e7d7b8;
  --accent: #c2410c;
  --accent-soft: #fed7aa;
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
  --radius: 14px;
  --max: 1100px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Header */
.site-header {
  background: #fff7ea;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
}
.brand:hover { text-decoration: none; }
.brand-text { font-size: 1.05rem; }
.site-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--accent); text-decoration: none; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 48px 0 24px;
}
.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.75rem;
  margin: 0 0 8px;
}
.hero h1 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 14px;
}
.hero .lead {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin: 0 0 20px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  background: transparent;
  color: var(--ink);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: #9a3412; text-decoration: none; color: #fff; }
.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.btn-link {
  color: var(--accent);
  padding-left: 4px;
  padding-right: 4px;
}
.btn-link:hover { text-decoration: underline; }

/* Hero art */
.hero-art {
  display: flex;
  justify-content: center;
}
.oven-illustration {
  position: relative;
  width: 260px;
  max-width: 100%;
}
.oven-body {
  background: #1f2937;
  border-radius: 14px;
  padding: 14px;
  box-shadow: var(--shadow);
}
.oven-window {
  background: linear-gradient(180deg, #fde68a 0%, #f97316 70%, #b91c1c 100%);
  border-radius: 8px;
  height: 160px;
  position: relative;
  overflow: hidden;
}
.heat-wave {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 10px;
  height: 6px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  animation: rise 2.4s ease-in-out infinite;
}
.heat-wave.delay-1 { bottom: 28px; animation-delay: 0.4s; opacity: 0.7; }
.heat-wave.delay-2 { bottom: 46px; animation-delay: 0.8s; opacity: 0.5; }
@keyframes rise {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(-8px); opacity: 0.9; }
}
.oven-rack {
  height: 4px;
  background: #9ca3af;
  margin: 10px 0;
  border-radius: 2px;
}
.oven-base {
  height: 14px;
  background: #111827;
  border-radius: 0 0 8px 8px;
}
.oven-dial {
  margin-top: 14px;
  text-align: center;
  color: #fff;
  background: #111827;
  border-radius: 8px;
  padding: 8px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* Sections */
section {
  padding: 48px 0;
  border-top: 1px solid var(--line);
}
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 28px;
}
.section-head h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin: 0 0 8px;
}
.section-head p {
  color: var(--ink-soft);
  margin: 0;
}

/* Checker */
.checker {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.checker-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.field select {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.95rem;
  color: var(--ink);
}
.field select:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}
.form-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 8px;
}

/* Result */
.result {
  margin-top: 24px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 24px;
  min-height: 180px;
}
.result-empty {
  color: var(--ink-soft);
  text-align: center;
  padding: 16px 0;
}
.result-empty h3 {
  margin: 0 0 8px;
  color: var(--ink);
}
.result h3 {
  margin-top: 0;
}
.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.result-card {
  background: var(--bg-alt);
  border-radius: 10px;
  padding: 14px;
  border: 1px solid var(--line);
}
.result-card h4 {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 0.95rem;
}
.result-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.result-list {
  margin-top: 16px;
  padding-left: 20px;
}
.result-list li {
  margin-bottom: 6px;
}

/* Cues */
.cue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.cue-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.cue-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}
.cue-card p {
  margin: 0 0 8px;
  color: var(--ink-soft);
}
.cue-note {
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px dashed var(--line);
  padding-top: 8px;
}

/* Troubleshoot */
.troubleshoot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.troubleshoot-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.troubleshoot-item h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--accent);
}
.troubleshoot-item p {
  margin: 0;
  color: var(--ink-soft);
}

/* Reference card */
.reference-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  max-width: 720px;
  margin: 0 auto;
}
.ref-header {
  text-align: center;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 12px;
  margin-bottom: 16px;
}
.ref-header h3 {
  margin: 0 0 4px;
  font-size: 1.2rem;
}
.ref-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.ref-body {
  display: grid;
  gap: 10px;
}
.ref-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.95rem;
}
.ref-row strong {
  color: var(--ink);
}
.ref-row span {
  color: var(--ink-soft);
}
.ref-footer {
  margin-top: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.reference-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* Footer */
.site-footer {
  margin-top: 40px;
  padding: 28px 0;
  background: #fff3df;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--ink-soft);
}
.site-footer a {
  color: var(--ink-soft);
}
.site-footer a:hover {
  color: var(--accent);
}
.muted {
  color: var(--muted);
  font-size: 0.85rem;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #111827;
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 50;
}
.toast.show {
  opacity: 1;
}

/* Print */
@media print {
  body { background: #fff; }
  .site-header, .site-footer, .hero-actions, .form-actions, .reference-actions, .btn, nav { display: none !important; }
  section { border: none; padding: 12px 0; }
  .reference-card { box-shadow: none; border: 1px solid #999; }
  .result, .cue-card, .troubleshoot-item { box-shadow: none; border: 1px solid #ccc; }
}

/* Responsive */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .checker-form { grid-template-columns: 1fr; }
  .ref-row { grid-template-columns: 1fr; }
  .ref-row strong { margin-bottom: 2px; }
}

@media (max-width: 520px) {
  .site-nav { gap: 12px; }
  .site-nav a { font-size: 0.9rem; }
  .hero { padding-top: 28px; }
  section { padding: 32px 0; }
  .btn { width: 100%; }
  .form-actions .btn { width: auto; flex: 1 1 auto; }
}



/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
