:root { color-scheme: light dark; --orange: #ff9f1c; --bg: #fffaf3; --fg: #2a1a10; --muted: #6b5a4e; }
@media (prefers-color-scheme: dark) { :root { --bg: #1a0f0a; --fg: #f6ece2; --muted: #b9a89a; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
main { max-width: 680px; margin: 0 auto; padding: 48px 24px 80px; }
h1 { font-size: 2.4rem; line-height: 1.1; margin: 0 0 8px; }
h2 { font-size: 1.2rem; margin: 2em 0 0.4em; }
p, li { color: var(--fg); }
.tag { color: var(--orange); font-weight: 700; margin: 0 0 32px; }
.muted { color: var(--muted); font-size: 0.9rem; }
a { color: var(--orange); }
nav { display: flex; gap: 20px; margin-top: 48px; font-size: 0.95rem; }

/* Homepage pan: a steak bite flips twice every 4 seconds, landing seared side down, then up. */
.pan { display: block; width: min(100%, 360px); height: auto; margin: 0 0 12px -12px; overflow: visible; }
.pan .hop, .pan .flip, .pan .shadow { transform-box: fill-box; transform-origin: center; animation-duration: 4s; animation-iteration-count: infinite; }
.pan .hop { animation-name: hop; animation-timing-function: ease-in-out; }
.pan .flip { animation-name: flip; animation-timing-function: cubic-bezier(.4, 0, .3, 1); }
.pan .shadow { animation-name: shadow; animation-timing-function: ease-in-out; }
.pan .steam path { fill: none; stroke: var(--muted); stroke-width: 3; stroke-linecap: round; opacity: 0; animation: steam 2.4s ease-out infinite; }
.pan .steam path:nth-child(2) { animation-delay: .8s; }
.pan .steam path:nth-child(3) { animation-delay: 1.6s; }
.pan .spit circle { fill: #ffd9a0; opacity: 0; animation: spit 2s ease-out infinite; }
.pan .spit circle:nth-child(2) { animation-delay: .5s; }
.pan .spit circle:nth-child(3) { animation-delay: 1.1s; }
.pan .spit circle:nth-child(4) { animation-delay: 1.5s; }
@keyframes hop {
  0%, 12% { transform: translateY(0) scale(1, 1); }
  14% { transform: translateY(2px) scale(1.08, .9); }
  26% { transform: translateY(-78px) scale(.96, 1.04); }
  38% { transform: translateY(0) scale(1, 1); }
  41% { transform: translateY(2px) scale(1.1, .88); }
  45%, 62% { transform: translateY(0) scale(1, 1); }
  64% { transform: translateY(2px) scale(1.08, .9); }
  76% { transform: translateY(-78px) scale(.96, 1.04); }
  88% { transform: translateY(0) scale(1, 1); }
  91% { transform: translateY(2px) scale(1.1, .88); }
  95%, 100% { transform: translateY(0) scale(1, 1); }
}
@keyframes flip {
  0%, 14% { transform: rotate(0deg); }
  38%, 64% { transform: rotate(180deg); }
  88%, 100% { transform: rotate(360deg); }
}
@keyframes shadow {
  0%, 14%, 38%, 64%, 88%, 100% { transform: scale(1); opacity: .35; }
  26%, 76% { transform: scale(.55); opacity: .15; }
}
@keyframes steam {
  0% { opacity: 0; transform: translateY(8px); }
  30% { opacity: .45; }
  100% { opacity: 0; transform: translateY(-28px); }
}
@keyframes spit {
  0%, 60% { opacity: 0; transform: translateY(0); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-14px); }
}
@media (prefers-reduced-motion: reduce) {
  .pan * { animation: none !important; }
  .pan .steam path { opacity: .35; }
}
