:root {
  --paper: #e6ece3;
  --ink: #1d2b24;
  --ink-soft: #4d5f55;
  --rule: #c3cfc0;
  --stem: #3f6b4f;
  --leaf: #6f9a63;
  --bloom-a: #e0748f;
  --bloom-b: #e9b949;
  --bloom-c: #8a7fd0;
  --heart: #f6e7b0;
  --link: #2f6a4c;
  --measure: 34rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14211b;
    --ink: #e3ebe2;
    --ink-soft: #9fb2a5;
    --rule: #2c3d34;
    --stem: #7fb38a;
    --leaf: #5d8f5b;
    --bloom-a: #f08ea6;
    --bloom-b: #f0c862;
    --bloom-c: #a79ce6;
    --heart: #fff1c2;
    --link: #9fd6b0;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.1875rem/1.62 "Alegreya", Georgia, serif;
  font-kerning: normal;
}
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--bloom-b); outline-offset: 3px; border-radius: 2px; }

.top, .foot, main { max-width: 46rem; margin: 0 auto; padding: 0 1.25rem; }
.top {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding-top: 1.75rem; font-family: "Alegreya Sans", system-ui, sans-serif; font-size: 0.95rem;
}
.top .home { color: var(--ink); text-decoration: none; font-weight: 500; }
.top nav a { color: var(--ink-soft); }

.home-main { padding-top: 3.5rem; }
.intro h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1.05; font-weight: 600; margin: 0 0 1rem; letter-spacing: -0.01em; max-width: 14ch; }
.intro p { max-width: var(--measure); color: var(--ink-soft); margin: 0; font-size: 1.15rem; }

.garden-wrap { margin: 2.5rem -0.5rem 3rem; }
.garden { display: block; width: 100%; height: auto; overflow: visible; }
.garden figcaption, .garden-wrap figcaption { font-family: "Alegreya Sans", system-ui, sans-serif; font-size: 0.9rem; color: var(--ink-soft); padding: 0 0.5rem; }
.ground { fill: none; stroke: var(--rule); stroke-width: 2; stroke-linecap: round; }
.plant .hit { fill: transparent; }
.plant .stem { fill: none; stroke: var(--stem); stroke-width: 2.6; stroke-linecap: round; }
.plant .leaf { fill: var(--leaf); }
.plant .heart { fill: var(--heart); }
.plant .stalk { stroke: var(--stem); stroke-width: 1.6; }
.plant .curl { fill: none; stroke-width: 2.2; stroke-linecap: round; }
.plant { cursor: pointer; }
.plant .foliage, .plant .crown { transform-box: fill-box; transform-origin: 50% 100%; transition: transform 0.35s ease; }
.plant:hover .crown, .plant:focus-visible .crown { transform: scale(1.18) rotate(-4deg); }
.plant:hover .stem, .plant:focus-visible .stem { stroke-width: 3.4; }
.plant:focus { outline: none; }
.plant:focus-visible .hit { fill: color-mix(in srgb, var(--bloom-b) 18%, transparent); }

/* the one orchestrated moment: today's plant grows in */
@media (prefers-reduced-motion: no-preference) {
  .plant.newest .stem { stroke-dasharray: 1; stroke-dashoffset: 1; animation: grow 1.4s 0.2s cubic-bezier(.3,.6,.3,1) forwards; }
  .plant.newest .foliage { transform: scale(0); animation: pop 0.6s 1.1s ease-out forwards; }
  .plant.newest .crown { transform: scale(0); animation: pop 0.7s 1.45s cubic-bezier(.3,1.6,.5,1) forwards; }
  @keyframes grow { to { stroke-dashoffset: 0; } }
  @keyframes pop { to { transform: scale(1); } }
}

.day { margin-bottom: 2.5rem; }
.day h2 time { font-weight: 400; margin-left: 0.6rem; }
.day h2 { font-family: "Alegreya Sans", system-ui, sans-serif; font-size: 0.95rem; font-weight: 500; color: var(--ink-soft); margin: 0 0 0.75rem; padding-bottom: 0.4rem; border-bottom: 1px solid var(--rule); }
.entries { list-style: none; margin: 0; padding: 0; }
.entries li { padding: 0.6rem 0 0.9rem; display: grid; grid-template-columns: 1fr auto; column-gap: 1rem; }
.entries a { text-decoration: none; color: var(--ink); }
.entries .t { font-size: 1.45rem; font-weight: 600; line-height: 1.2; }
.entries a:hover .t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.entries p { grid-column: 1 / -1; margin: 0.25rem 0 0; max-width: var(--measure); color: var(--ink-soft); }
.k { font-family: "Alegreya Sans", system-ui, sans-serif; font-size: 0.85rem; color: var(--ink-soft); align-self: baseline; }

.entry { padding-top: 3.5rem; }
.entry article { max-width: var(--measure); }
.entry h1 { font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.1; font-weight: 600; margin: 0.25rem 0 1.5rem; }
.entry h2 { font-size: 1.4rem; margin: 2.2rem 0 0.6rem; }
.entry .meta { font-family: "Alegreya Sans", system-ui, sans-serif; font-size: 0.95rem; color: var(--ink-soft); margin: 0; display: flex; gap: 0.9rem; }
.entry ul { padding-left: 1.2rem; }
.entry li { margin: 0.35rem 0; }
.entry blockquote { margin: 1.5rem 0; padding-left: 1rem; border-left: 3px solid var(--bloom-b); color: var(--ink-soft); }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85em; }
pre { overflow-x: auto; padding: 1rem; background: color-mix(in srgb, var(--ink) 6%, transparent); border-radius: 4px; }
.pager { max-width: var(--measure); display: flex; justify-content: space-between; gap: 1rem; margin: 3rem 0 0; padding-top: 1rem; border-top: 1px solid var(--rule); font-family: "Alegreya Sans", system-ui, sans-serif; font-size: 0.95rem; }

.foot { margin-top: 4rem; padding-bottom: 2.5rem; font-family: "Alegreya Sans", system-ui, sans-serif; font-size: 0.88rem; color: var(--ink-soft); }
.foot p { border-top: 1px solid var(--rule); padding-top: 1rem; margin: 0; }
.foot a { color: var(--ink-soft); }

@media (max-width: 540px) {
  body { font-size: 1.08rem; }
  .home-main, .entry { padding-top: 2.25rem; }
  .entries .t { font-size: 1.3rem; }
}
