/* At the Christensens' placeholder. No JavaScript, no external requests. */

:root {
  --bg: #FBF6EE;
  --surface-2: #F3EADB;
  --ink: #2B2420;
  --ink-muted: #6B5B4F;
  --line: #E4D9C8;
  --accent: #A8471F;
  --gold: #F6C453;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.55;
}

.page {
  flex: 1;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 20px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.scene { width: 100%; max-width: 560px; }
.scene svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 24px;
  box-shadow: 0 6px 0 var(--line);
}

h1 {
  margin: 12px 0 4px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.lead {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 5.5vw, 1.75rem);
  font-weight: 700;
  color: var(--accent);
  text-decoration: underline wavy var(--gold) 3px;
  text-underline-offset: 8px;
}

.sub {
  margin: 8px 0 0;
  max-width: 34ch;
  color: var(--ink-muted);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0 0;
  padding: 10px 18px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
}

.dots { display: inline-flex; gap: 4px; }
.dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: bounce 1.2s ease-in-out infinite;
}
.dots span:nth-child(2) { animation-delay: .15s; }
.dots span:nth-child(3) { animation-delay: .3s; }

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

/* ---- scene animation ---- */

.rays,
.flag,
.flower,
.puff,
.house { transform-box: fill-box; }

.rays { transform-origin: 50% 50%; animation: spin 40s linear infinite; }

.cloud { animation: drift 9s ease-in-out infinite; }

.flag { transform-origin: 50% 0; animation: sway 3.2s ease-in-out infinite; }
.bunting g:nth-of-type(odd) .flag { animation-delay: -1.1s; }
.bunting g:nth-of-type(3n) .flag { animation-delay: -2.2s; }

.flower { transform-origin: 50% 100%; animation: nod 3.6s ease-in-out infinite; }
.flower-2 { animation-delay: -1s; }
.flower-3 { animation-delay: -2s; }
.flower-4 { animation-delay: -.5s; }

.puff { transform-origin: 50% 50%; opacity: 0; animation: rise 4s ease-out infinite; }
.puff-2 { animation-delay: -1.33s; }
.puff-3 { animation-delay: -2.66s; }

.steam {
  fill: none;
  stroke: var(--ink-muted);
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0;
  animation: steam 2.4s ease-in-out infinite;
}
.steam-2 { animation-delay: -.8s; }
.steam-3 { animation-delay: -1.6s; }

.win { animation: glow 4s ease-in-out infinite; }

.scene:hover .house { animation: hop .6s ease-out; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift { 0%, 100% { transform: translateX(-8px); } 50% { transform: translateX(8px); } }
@keyframes sway { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
@keyframes nod { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@keyframes rise {
  0%   { transform: translate(0, 0) scale(.5); opacity: 0; }
  15%  { opacity: .9; }
  100% { transform: translate(8px, -40px) scale(1.1); opacity: 0; }
}
@keyframes steam {
  0%   { transform: translateY(4px); opacity: 0; }
  35%  { opacity: .7; }
  100% { transform: translateY(-6px); opacity: 0; }
}
@keyframes glow { 0%, 100% { fill: #FFF3C4; } 50% { fill: #FFE79A; } }
@keyframes hop {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
  60% { transform: translateY(0); }
  80% { transform: translateY(-3px); }
}
@keyframes bounce { 0%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-6px); } }

/* ---- calmer for people who ask for less motion ---- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .puff-1 { opacity: .85; transform: translate(4px, -26px) scale(.9); }
  .puff-2, .puff-3, .steam { display: none; }
}
