*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: light; }
body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #f6fbfd 0%, #eaf6fa 55%, #dcedf4 100%);
  color: #23465a;
  font-family: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", "Arial Rounded MT Bold", "Segoe UI", system-ui, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}
button { font: inherit; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid #e2779a; outline-offset: 4px; border-radius: 10px; }

.snowfall { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.flakes {
  position: absolute; inset: -200px 0 0 0;
  background-repeat: repeat;
  animation: drift 26s linear infinite;
}
.flakes.near {
  background-image:
    radial-gradient(circle, #ffffff 0 3px, transparent 3.5px),
    radial-gradient(circle, #ffffff 0 2px, transparent 2.5px);
  background-size: 220px 200px, 160px 170px;
  background-position: 30px 40px, 110px 120px;
  opacity: .9;
}
.flakes.far {
  background-image: radial-gradient(circle, #cfe7f1 0 1.6px, transparent 2px);
  background-size: 90px 100px;
  animation-duration: 40s;
}
@keyframes drift { from { transform: translateY(0); } to { transform: translateY(200px); } }
.snow-paused .flakes { animation-play-state: paused; }

.storybook {
  position: relative; z-index: 1;
  max-width: 1080px; margin: 0 auto;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 25rem) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
  padding: 4rem 2.5rem;
}
.footprints .storybook { grid-template-columns: minmax(0, 30rem); }

.intro { text-align: left; }
.site-name {
  margin: 0 0 1.4rem;
  font-weight: 700; font-size: .95rem; color: #3f7894;
  letter-spacing: .01em;
}
h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height: 1.2; font-weight: 700; color: #1d3f53;
}
.lede { margin: 0 0 2rem; font-size: 1.08rem; color: #3d6175; max-width: 24rem; }

.outfit { margin: 0 0 1.2rem; }
.outfit-title { margin: 0 0 .5rem; font-size: .8rem; font-weight: 700; color: #5d8ca3; text-transform: uppercase; letter-spacing: .12em; }
.outfit-steps { list-style: none; margin: 0; padding: 0; display: flex; gap: .45rem; flex-wrap: wrap; }
.outfit-steps li {
  font-size: .82rem; padding: .25rem .6rem;
  border-radius: 8px; background: #ffffff; color: #6b8ea0;
  border: 1px solid #cfe4ee;
}
.outfit-steps li.done { color: #8eabb9; text-decoration: line-through; text-decoration-color: #b8d3df; }
.outfit-steps li[aria-current="step"] { background: #2f6f8f; border-color: #2f6f8f; color: #ffffff; font-weight: 700; }

.line { margin: 0 0 1.4rem; min-height: 1.6em; font-size: 1.05rem; font-weight: 600; color: #23465a; }
.still { margin: 0 0 1.4rem; }

.controls { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-bottom: 2.6rem; }
.layer-button {
  border: 0; border-radius: 16px;
  background: #2f6f8f; color: #ffffff;
  padding: .85rem 1.5rem; min-height: 48px;
  font-weight: 700; font-size: 1rem;
  box-shadow: 0 8px 20px rgba(47, 111, 143, .22);
  transition: background-color .2s ease, transform .2s ease;
}
.layer-button:hover { background: #255d79; }
.layer-button:active { transform: translateY(1px); }
.snow-toggle {
  background: none; border: 0; padding: .5rem .2rem; min-height: 44px;
  color: #3f7894; font-size: .9rem; text-decoration: underline; text-underline-offset: 4px;
}

.hello { font-style: normal; display: flex; flex-direction: column; gap: .15rem; font-size: .92rem; border-left: 3px solid #cfe4ee; padding-left: .9rem; }
.hello-label { font-size: .78rem; font-weight: 700; color: #6b8ea0; text-transform: uppercase; letter-spacing: .12em; }
.hello a { align-self: flex-start; padding: .2rem 0; min-height: 28px; text-underline-offset: 3px; text-decoration-color: #9cc7da; }
.hello a:hover { text-decoration-color: currentColor; }
.hello-mail { font-weight: 700; color: #1d3f53; }

.home-link { display: inline-block; margin: 0 0 2.4rem; font-weight: 700; padding: .4rem 0; text-underline-offset: 4px; }

.penguin { position: relative; margin: 0; justify-self: center; width: min(460px, 100%); }
.penguin picture { display: block; position: relative; z-index: 1; }
.penguin img { display: block; width: 100%; height: auto; user-select: none; }
.snowbank {
  position: absolute; left: 6%; right: 6%; bottom: 4%; height: 15%;
  background: #ffffff; border-radius: 50%;
  box-shadow: 0 10px 30px rgba(60, 120, 150, .12);
  z-index: 0;
}
.penguin.shuffle picture { animation: shuffle .5s ease-out; }
@keyframes shuffle {
  0% { transform: translateY(0) rotate(0); }
  40% { transform: translateY(-10px) rotate(-2deg); }
  100% { transform: translateY(0) rotate(0); }
}

@media (max-width: 760px) {
  .storybook {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem; padding: 1.6rem 1.25rem 2.5rem; align-items: start;
  }
  .penguin { order: -1; width: min(300px, 82%); }
  .site-name { margin-bottom: .8rem; }
  .lede { margin-bottom: 1.4rem; }
}
@media (max-width: 360px) {
  .storybook { padding: 1.2rem 1rem 2rem; }
  .outfit-steps li { font-size: .76rem; }
}
@media (prefers-reduced-motion: reduce) {
  .snowfall { display: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
