:root { color-scheme: dark; --paper: #0f0f23; --ink: #ccc; --green: #68ca78; --bright: #99ff99; --gold: #ffff66; --dim: #9b9bad; }
* { box-sizing: border-box; }
body { display: flex; flex-direction: column; margin: 0; min-height: 100svh; background: var(--paper); color: var(--ink); font: 17px/1.6 "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
main { max-width: 72rem; padding: 2rem clamp(1.2rem, 5vw, 5rem); }
footer { margin-top: auto; padding: 0 clamp(1.2rem, 5vw, 5rem) 1rem; text-align: right; color: var(--dim); font-size: .875rem; }
footer a { white-space: nowrap; }
header { color: var(--green); font-size: 1rem; }
.spark { color: var(--gold); text-shadow: 0 0 9px #ffff6680; }
.year { color: var(--dim); }
.edition { color: var(--gold); }
.intro { container-type: inline-size; }
.about { max-width: 72ch; }
.about h1 { margin: 2rem 0 1rem; font-size: 2rem; }
.about p a { text-decoration: underline; text-underline-offset: .15em; }
.season { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); align-items: center; gap: 1rem; margin: 3rem 0 2.3rem; }
.date { color: var(--dim); font-size: .875rem; margin: 0 0 .55rem; }
h1 { margin: 0; font-weight: 400; font-size: clamp(1rem,8cqi,3rem); white-space: nowrap; letter-spacing: -.06em; line-height: 1.13; color: #eee; }
.lead { max-width: 43ch; margin: 1.1rem 0; }
a, button { color: var(--green); cursor: pointer; font: inherit; text-decoration: none; }
a:hover, button:hover { color: var(--bright); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.winter { color: #527b64; margin: 0; justify-self: start; font: 14px/1.12 "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
.winter em { color: #83c991; font-style: normal; }
.winter .snow { color: #9092aa; }
.winter .bark { color: #c29d79; }
.winter b { color: #e3d588; text-shadow: 0 0 2px #e3d58830; }
.tree-scene { display: grid; align-items: center; align-self: stretch; padding: .7rem; }
.twinkle {
  display: inline-block;
  position: relative;
  font-style: normal;
  --glint: #e5efff;
  --radius: .70em;
  transition: color .53s ease-out, text-shadow .57s ease-out;
}
.tree-node { --glint: #d0efc6; --radius: .78em; }
.winter b.twinkle { --glint: #fff0b4; --radius: 1.03em; }
.twinkle::after {
  content: "";
  position: absolute;
  pointer-events: none;
  top: 48%;
  left: 50%;
  width: var(--radius);
  height: var(--radius);
  background: var(--glint);
  clip-path: polygon(50% 0%, 59% 40%, 100% 50%, 59% 59%, 50% 100%, 41% 60%, 0 50%, 41% 40%);
  opacity: 0;
  transform: translate(-50%, -50%) scale(.45);
  transition: opacity .7s ease-out, transform .7s ease-out;
}
.twinkle.is-lit {
  color: var(--glint);
  text-shadow: 0 0 5px var(--glint);
}
.twinkle.is-lit::after {
  opacity: .86;
  transform: translate(-50%, -50%) scale(1);
  transition-duration: .34s;
}
@media (prefers-reduced-motion: reduce) {
  .twinkle, .twinkle::after { transition: none; }
}
article { max-width: 59ch; scroll-margin-top: 1.5rem; border-top: 1px dashed #47465a; padding-top: 1.55rem; }
article:focus { outline: none; }
.dayline { display: flex; align-items: baseline; flex-wrap: wrap; gap: 1ch; }
h2 { margin: 0; font-weight: normal; font-size: 1.13rem; line-height: 1.45; color: #eee; }
#stars { color: var(--gold); letter-spacing: .08em; }
article p { margin: .85rem 0; }
article section { margin: 2rem 0; }
h3 { font-size: 1rem; color: #eee; font-weight: normal; margin: 0 0 .5rem; }
@media(max-width: 720px) {
  main { padding-top: 1.25rem; }
  .season { grid-template-columns: 1fr; gap: 1.5rem; margin: 2.1rem 0 1.6rem; }
  .winter { font-size: clamp(10px, 3vw, 13px); }
}

h3 { margin: 1.7rem 0 .55rem; font-size: 1rem; }
form label, textarea { display: block; }
textarea { width: 100%; padding: .65rem; margin: .5rem 0; color: var(--ink); background: #17172b; border: 1px solid #515168; font: inherit; }
button { background: none; border: 0; padding: .4rem 0; }
textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.stars { color: var(--gold); }
@media (max-width: 420px) {
  #day-title { font-size: clamp(.86rem, 4.2vw, 1rem); }
}
.archive { margin: 2rem 0; }
.archive h1 { margin-bottom: 1rem; font-size: 2rem; }
nav + article { margin-top: 1.5rem; }
