/* Hidden ornaments: one dark evergreen look for /o/ and every year page.
   Fonts are local system stacks only, so the pages work offline. */
:root {
  color-scheme: dark;
  --pine: #11241c;
  --pine-2: #183126;
  --pine-3: #21402f;
  --line: #2f5240;
  --snow: #f2ead9;
  --muted: #a7b7a6;
  --brass: #d9a84e;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-hand: "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  padding: 0 max(16px, env(safe-area-inset-left, 0px)) 48px max(16px, env(safe-area-inset-right, 0px));
  background: var(--pine);
  color: var(--snow);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}
a { color: var(--brass); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; text-wrap: balance; margin: 0; line-height: 1.12; }
.wrap { max-width: 640px; margin: 0 auto; }
.label { margin: 0; font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.skip-link { position: absolute; top: -5rem; left: 1rem; padding: .75rem 1rem; background: var(--snow); color: var(--pine); z-index: 2; }
.skip-link:focus { top: 1rem; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* String lights */
.lights { max-width: 640px; margin: 4px auto 0; }
.lights svg { width: 100%; height: 34px; display: block; }
.bulb { animation: twinkle 3.2s ease-in-out infinite; }
.bulb:nth-child(3n) { animation-delay: -1.1s; }
.bulb:nth-child(3n+1) { animation-delay: -2.2s; }
@keyframes twinkle { 50% { opacity: .45; } }
.sway { transform-origin: 60px 0; animation: sway 5s ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@media (prefers-reduced-motion: reduce) { .bulb, .sway { animation: none; } }

.back { display: inline-block; margin: 18px 0 4px; font-size: .9rem; text-decoration: none; }
.intro { display: grid; gap: 10px; padding-top: 10px; margin-bottom: 28px; }
.intro h1 { font-size: clamp(2.2rem, 8vw, 3.2rem); }
.intro h1 em { color: var(--brass); }
.intro p:not(.label) { margin: 0; color: var(--muted); max-width: 34em; }

/* Gallery tiles */
.years { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 16px; }
.year {
  display: grid; justify-items: center; gap: 6px; text-align: center;
  padding: 18px 12px 16px; border-radius: 10px;
  background: var(--pine-2); border: 1px solid var(--line);
  color: var(--snow); text-decoration: none;
  transition: border-color .2s, transform .2s;
}
.year:hover { border-color: var(--brass); transform: translateY(-2px); }
.year svg { width: 70px; height: 120px; }
.year .yr { font-family: var(--font-mono); font-size: 1.4rem; font-variant-numeric: tabular-nums; color: var(--brass); }
.year .nm { font-family: var(--font-display); font-size: 1.15rem; }
.year small { color: var(--muted); font-size: .82rem; }

/* Year placeholder */
.placeholder { display: grid; justify-items: center; gap: 14px; text-align: center; padding: 28px 20px 32px; border-radius: 10px; background: radial-gradient(ellipse at 50% 30%, rgba(217,168,78,.16), transparent 65%), var(--pine-2); border: 1px solid var(--line); }
.placeholder svg { width: 120px; height: 200px; }
.placeholder p { margin: 0; max-width: 30em; color: var(--muted); }
.placeholder .sign { font-family: var(--font-hand); font-size: 1.3rem; color: var(--brass); }

footer { margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; color: var(--muted); font-size: .85rem; }
footer a { color: var(--muted); }
footer a:hover { color: var(--snow); }
