:root {
  color-scheme: dark;
  --background: #191c19;
  --cream: #f4e7c7;
  --orange: #e7a15b;
  --muted: #adb09f;
}
* { box-sizing: border-box; }
html { min-width: 280px; }
body { margin: 0; background: var(--background); color: var(--cream); font-family: 'DM Sans', Arial, sans-serif; -webkit-font-smoothing: antialiased; }
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 10; opacity: .035;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
}
button:focus-visible { outline: 2px solid var(--orange); outline-offset: 7px; }
.page { position: relative; display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; max-width: 1600px; margin: 0 auto; padding: 36px 5% 24px; }
main { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; padding: 24px 0 38px; }
.brewing-scene { position: relative; width: min(620px, 100%); aspect-ratio: 1.6; isolation: isolate; }
.scene-floor { position: absolute; left: 17%; right: 14%; bottom: 8%; height: 9%; border-radius: 50%; background: #0b0d0b65; filter: blur(8px); }
.brewer, .kettle { position: absolute; }
.brewer img, .kettle img { display: block; width: 100%; height: auto; }
.brewer { width: 47%; bottom: 8%; transform-origin: 50% 90%; }
.brewer-left { left: 10%; bottom: 14%; z-index: 2; animation: stir 3.2s ease-in-out infinite; }
.brewer-right { right: 5%; bottom: 10%; z-index: 1; animation: pour 4.8s ease-in-out infinite; }
.kettle { width: 37%; left: 31%; bottom: 2%; z-index: 4; }
.steam { position: absolute; left: 43%; top: 38%; width: 15%; height: 30%; z-index: 0; }
.steam i { position: absolute; width: 18%; height: 46%; border-radius: 50%; background: #eedfbc; filter: blur(11px); opacity: 0; animation: steam 4.8s ease-out infinite; }
.steam i:nth-child(2) { left: 38%; animation-delay: -1.6s; }
.steam i:nth-child(3) { left: 73%; animation-delay: -3.2s; }
.bubbles { position: absolute; width: 17%; height: 12%; left: 42%; top: 50%; z-index: 5; }
.bubbles i { position: absolute; width: 7px; height: 7px; border: 1.5px solid #e7a15b99; border-radius: 50%; opacity: 0; animation: bubble 2.8s ease-out infinite; }
.bubbles i:nth-child(2) { left: 35%; width: 5px; height: 5px; animation-delay: -1.4s; }
.bubbles i:nth-child(3) { left: 70%; animation-delay: -.7s; }
.bubbles i:nth-child(4) { left: 53%; width: 4px; height: 4px; animation-delay: -2.2s; }
.hops { position: absolute; width: 12%; height: 22%; top: 46%; left: 58%; z-index: 3; }
.hops i { position: absolute; width: 4px; height: 6px; background: #99915f; border-radius: 45%; opacity: 0; animation: hops 4.8s linear infinite; }
.hops i:nth-child(2) { left: 9px; animation-delay: .2s; }
.hops i:nth-child(3) { left: -5px; animation-delay: .4s; }
.headline { text-align: center; position: relative; z-index: 2; margin-top: -5px; }
h1 { margin: 0; font-family: 'Fraunces', Georgia, serif; font-size: clamp(44px, 6.2vw, 82px); font-weight: 500; letter-spacing: -.055em; line-height: 1.13; }
h1 em { color: var(--orange); font-weight: 500; white-space: nowrap; }
footer { display: flex; align-items: center; justify-content: center; position: relative; min-height: 44px; }
.copyright { font-size: 13px; letter-spacing: .2px; color: var(--muted); padding: 12px; margin: 0; }
.motion-control { position: absolute; right: 0; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #f4e7c722; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.motion-control:hover { border-color: var(--orange); color: var(--orange); }
.motion-control[hidden] { display: none; }
.pause-icon { width: 8px; height: 10px; border-inline: 2px solid currentColor; }
.motion-control[aria-pressed='true'] .pause-icon { height: 0; width: 0; border: 5px solid transparent; border-right: 0; border-left: 8px solid currentColor; margin-left: 2px; }
.motion-paused .brewing-scene *, .motion-paused .brewing-scene *::before { animation-play-state: paused !important; }
@keyframes stir { 0%,100% { transform: rotate(-2deg) translateY(0); } 50% { transform: rotate(1.5deg) translateY(2px); } }
@keyframes pour { 0%,15%,80%,100% { transform: rotate(1deg); } 35%,60% { transform: rotate(-4deg) translate(-2px, 1px); } }
@keyframes steam { 0% { transform: translate(0, 30px) scale(.7); opacity: 0; } 25% { opacity: .13; } 100% { transform: translate(-12px, -70px) scale(1.8); opacity: 0; } }
@keyframes bubble { 0% { opacity: 0; transform: translateY(0) scale(.5); } 20% { opacity: .65; } 100% { opacity: 0; transform: translate(9px, -55px) scale(1.1); } }
@keyframes hops { 0%,24% { opacity: 0; transform: translate(0,0) rotate(0); } 25% { opacity: 1; } 52% { opacity: 0; transform: translate(-30px, 55px) rotate(140deg); } 100% { opacity: 0; transform: translate(-30px, 55px); } }
@media (max-width: 600px) {
  .page { padding: 28px 6% 18px; }
  main { padding: 32px 0 48px; }
  .brewing-scene { width: calc(100% + 24px); max-width: calc(100vw - 16px); margin-bottom: 20px; }
  h1 { font-size: clamp(42px, 11.6vw, 64px); }
  h1 em { display: block; }
  .copyright { font-size: 12px; }
  .bubbles i { width: 5px; height: 5px; }
}
@media (max-height: 740px) and (min-width: 601px) {
  .page { padding-top: 24px; padding-bottom: 14px; }
  main { padding-block: 12px 24px; }
  .brewing-scene { width: min(460px, 75%); }
  h1 { font-size: clamp(42px, 6vw, 68px); }
}
@media (prefers-reduced-motion: reduce) {
  .brewing-scene * { animation: none !important; }
  .motion-control { display: none; }
}
