:root {
  --bg: #f7f0e4;
  --bg-glow: #fdf8ef;
  --ink: #2b211c;
  --muted: #76675c;
  --accent: #c4552f;
  --accent-deep: #9c3f1f;
  --lid: #3a2d26;
  --steam: #cdbfae;
  --flame-a: #f2a23a;
  --flame-b: #e0572b;
  --line: rgba(43, 33, 28, .12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1d1714;
    --bg-glow: #2a201b;
    --ink: #f4ebdf;
    --muted: #b3a393;
    --accent: #e0724a;
    --accent-deep: #b4512c;
    --lid: #cdbba8;
    --steam: #6e5f54;
    --line: rgba(244, 235, 223, .14);
  }
}

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

html, body { height: 100%; }

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background: radial-gradient(ellipse at 50% 35%, var(--bg-glow) 0%, var(--bg) 62%) fixed, var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 16px 24px;
}

/* ---- hrnec ------------------------------------------------------------- */

.pot { position: relative; width: min(240px, 62vw); margin-bottom: 28px; }
.pot svg { display: block; width: 100%; height: auto; overflow: visible; }

.body   { fill: var(--accent); }
.rim    { fill: var(--accent-deep); }
.handle { fill: var(--accent-deep); }
.shine  { stroke: rgba(255, 255, 255, .22); }
.lid-top, .knob { fill: var(--lid); }

.lid { transform-origin: 120px 100px; animation: rattle 3.2s ease-in-out infinite; }

.steam path {
  stroke: var(--steam);
  stroke-dasharray: 90;
  stroke-dashoffset: 90;
  opacity: 0;
  animation: steam 3.6s ease-in-out infinite;
}
.steam .s2 { animation-delay: 1.2s; }
.steam .s3 { animation-delay: 2.4s; }

.flame {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 6px;
  height: 22px;
}
.flame span {
  width: 14px;
  height: 20px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: linear-gradient(to top, var(--flame-b), var(--flame-a));
  transform-origin: 50% 100%;
  animation: flicker 1.1s ease-in-out infinite alternate;
}
.flame span:nth-child(2) { animation-delay: .35s; height: 22px; }
.flame span:nth-child(3) { animation-delay: .7s; }

@keyframes steam {
  0%   { stroke-dashoffset: 90;  opacity: 0;  transform: translateY(8px); }
  30%  { opacity: .9; }
  70%  { stroke-dashoffset: 0;   opacity: .5; }
  100% { stroke-dashoffset: -90; opacity: 0;  transform: translateY(-14px); }
}

@keyframes rattle {
  0%, 82%, 100% { transform: translateY(0) rotate(0); }
  86% { transform: translateY(-3px) rotate(-1.5deg); }
  90% { transform: translateY(0) rotate(1deg); }
  94% { transform: translateY(-2px) rotate(-.6deg); }
}

@keyframes flicker {
  from { transform: scaleY(.82) scaleX(1.05); opacity: .85; }
  to   { transform: scaleY(1.08) scaleX(.94); opacity: 1; }
}

/* ---- text -------------------------------------------------------------- */

.eyebrow {
  margin: 0 0 10px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(2.6rem, 9vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -.02em;
}

.lead {
  margin: 14px 0 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-style: italic;
  font-size: clamp(1.25rem, 4vw, 1.6rem);
  color: var(--accent);
}

.text {
  max-width: 30rem;
  margin: 18px auto 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--muted);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 34px 0 0;
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .9rem;
  color: var(--muted);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(196, 85, 47, .5); }
  100% { box-shadow: 0 0 0 10px rgba(196, 85, 47, 0); }
}

.foot {
  padding: 20px 16px 28px;
  text-align: center;
  font-size: .82rem;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .steam path { opacity: .6; stroke-dashoffset: 0; }
}
