/* A storybook: parchment cards laid over the Grovekins' wood. One deliberate look. */
@font-face { font-family: "Cinzel GK"; src: url("fonts/cinzel-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Crimson GK"; src: url("fonts/crimson-pro-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Crimson GK"; src: url("fonts/crimson-pro-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --night: #1d2419;
  --parchment: #f6edd6;
  --gold: #e2b04a;
  --ink: #221c12;
  --moss: #4a5c2c;
  --head: "Cinzel GK", "Cinzel", Georgia, serif;
  --body: "Crimson GK", "Crimson Pro", Georgia, serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--night); color: var(--ink); font: 20px/1.5 var(--body); }

/* the little ones stay in the background the whole way down the page */
.woods { position: fixed; inset: 0; z-index: -1; background: linear-gradient(rgba(29, 36, 25, .38), rgba(29, 36, 25, .55)), url("img/little-log.jpg") center bottom / cover no-repeat; }

.wrap { max-width: 760px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.hero { background: var(--night); color: var(--parchment); text-align: center; }
.hero .wrap { padding-block: 22px 14px; }
h1 { font: 700 clamp(30px, 8vw, 54px)/1.1 var(--head); margin: 0; text-wrap: balance; }
.lead { margin: 6px 0 0; color: var(--gold); font-weight: 600; font-size: 22px; }
.wide { display: block; width: 100%; max-width: 1100px; height: auto; margin-inline: auto; }

main.wrap { display: flex; flex-direction: column; gap: 18px; padding-block: 28px 40px; }
.card { background: var(--parchment); border: 4px solid var(--gold); border-radius: 22px; padding: 20px; }
.card p { margin: 0 0 12px; }
.card > :last-child, .card div > :last-child { margin-bottom: 0; }
h2 { font: 700 30px/1.15 var(--head); margin: 0 0 4px; }
h3 { font: 700 18px/1.25 var(--head); margin: 18px 0 6px; color: var(--moss); }
.tag { font-weight: 600; color: var(--moss); }
.spot { border-top: 2px dashed var(--gold); padding-top: 12px; margin-top: 14px; }

.friend { display: grid; gap: 14px; }
.friend > img { width: min(100%, 300px); height: auto; margin-inline: auto; border-radius: 16px; }
.friend > div { min-width: 0; }
@media (min-width: 640px) {
  .friend { grid-template-columns: 240px minmax(0, 1fr); align-items: start; }
  .friend > img { width: 240px; position: sticky; top: 16px; }
}

.little { display: flex; flex-direction: column; gap: 12px; }
.little .wide { border: 4px solid var(--gold); border-radius: 22px; }
.count { margin: 0; align-self: center; background: var(--night); color: var(--parchment); padding: 6px 18px; border-radius: 999px; font-weight: 600; text-align: center; }

.big { list-style: none; margin: 12px 0 18px; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.big li { display: flex; gap: 14px; align-items: flex-start; }
.big img { width: 92px; height: 92px; border-radius: 50%; flex: none; }
.big div { min-width: 0; }
.big h3 { margin-top: 0; }

.button { display: block; text-align: center; background: var(--moss); color: var(--parchment); text-decoration: none; font-weight: 600; font-size: 22px; padding: 14px 18px; border-radius: 999px; margin-top: 16px; }
.button:focus-visible, a:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.grownups { font-size: 17px; }
.grownups a { color: var(--moss); font-weight: 600; }

/* little ones marching along between the stories, feet resting on the card below */
.parade { display: flex; justify-content: space-around; align-items: flex-end; margin-bottom: -24px; position: relative; z-index: 1; pointer-events: none; padding-top: 22px; }
.parade img { height: 96px; width: auto; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .45)); animation: bob 2.6s ease-in-out infinite; }
.parade img:nth-child(2) { height: 82px; animation-delay: -.9s; }
.parade img:nth-child(3) { animation-delay: -1.7s; }
@keyframes bob { 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .parade img { animation: none; } }
