* { box-sizing: border-box; }

:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  background: #f4f6f2;
  color: #183c2d;
}

body { margin: 0; min-width: 280px; line-height: 1.55; }
[hidden] { display: none !important; }
a { color: inherit; }
a:focus-visible { outline: 3px solid #ae6713; outline-offset: 6px; }

.o-shell { width: min(calc(100% - 2rem), 48rem); margin: 0 auto; padding: 1.25rem 0 2rem; }

.c-header { display: flex; align-items: center; justify-content: center; gap: 0; flex-direction: column; text-align: center; }
.c-header__brand { font-size: 1.15rem; font-weight: 800; text-decoration: none; }
.c-header__label { color: #53665c; font-size: .875rem; }

.c-egg-family { display: grid; place-items: center; margin-top: 1.25rem; }
.c-egg-family__image { display: block; width: min(100%, 23rem); height: auto; filter: drop-shadow(0 .6rem 1rem rgba(24, 60, 45, .10)); }

.c-stock {
  background: #fff;
  border: 1px solid #dce5db;
  border-top: 5px solid #174b35;
  border-radius: 1.4rem;
  padding: clamp(1.35rem, 5vw, 3.25rem);
  box-shadow: 0 1rem 3rem rgba(24, 60, 45, .06);
  text-align: center;
}
.c-stock__top { display: flex; align-items: center; justify-content: center; gap: .75rem; flex-wrap: wrap; }
.c-stock__eyebrow { color: #53665c; font-size: .9rem; }
.c-stock__badge { padding: .3rem .65rem; border-radius: .45rem; background: #fff0cf; color: #735114; font-size: .8rem; font-weight: 700; }
.c-stock__title { display: flex; align-items: baseline; justify-content: center; gap: .65rem; margin: 1.75rem 0 0; font-size: clamp(1.6rem, 7vw, 2.3rem); line-height: 1.25; letter-spacing: -.035em; }
.c-stock__dot { width: .72rem; height: .72rem; flex: 0 0 .72rem; border-radius: 50%; background: #2b8350; }
.c-stock__quantity { margin: 1rem 0 .15rem; font-size: clamp(5.5rem, 28vw, 8.5rem); font-weight: 780; line-height: 1.05; letter-spacing: -.07em; white-space: nowrap; }
.c-stock__prefix,
.c-stock__unit { font-size: clamp(1.35rem, 6vw, 2.3rem); font-weight: 500; letter-spacing: -.03em; }
.c-stock__prefix { color: #53665c; }
.c-stock__message { margin: .6rem 0 2rem; font-size: 1.05rem; }
.c-stock__update { display: flex; justify-content: center; gap: .25rem 1rem; flex-wrap: wrap; padding: 1.15rem 0; border-top: 1px solid #e2e8e1; border-bottom: 1px solid #e2e8e1; }
.c-stock__update > span { color: #53665c; }
.c-stock__update time { font-weight: 700; }
.c-stock__note { max-width: 56ch; margin: 1.2rem 0 0; color: #53665c; font-size: .95rem; }
.c-stock[data-state="empty"] .c-stock__dot { background: #776449; }
.c-stock[data-state="stale"],
.c-stock[data-state="error"] { border-top-color: #b67b22; }
.c-stock[data-state="stale"] .c-stock__dot,
.c-stock[data-state="error"] .c-stock__dot,
.c-stock[data-state="loading"] .c-stock__dot { background: #b67b22; }

.c-footer { margin-top: 1.6rem; color: #53665c; font-size: .875rem; text-align: center; }
.c-fallback { padding: 1rem; background: #fff0cf; }

@media (max-width: 420px) {
  .c-header { gap: 0; }
  .c-egg-family { margin-top: .9rem; }
  .c-stock__quantity { font-size: clamp(4.8rem, 26vw, 6.5rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
