:root {
  --paper: #f4f1e9;
  --paper-high: #fdfbf5;
  --ink: #1b1811;
  --muted: #5f5a4c;
  --line: #ddd7c5;
  --spruce: #2e5c46;
  --spruce-deep: #234a38;
  --petal: #e7a8bb;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --body: "Avenir Next", Avenir, "Helvetica Neue", system-ui, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--spruce); color: #eef4ef; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--spruce); outline-offset: 4px; border-radius: 2px; }

.site-header {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 50%;
  width: min(1180px, calc(100% - 64px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: baseline;
  gap: 24px;
  padding-top: 34px;
}
.wordmark { font-family: var(--display); font-size: 1.7rem; text-decoration: none; letter-spacing: -.02em; }
.identity { margin: 0; color: var(--muted); font-family: var(--mono); font-size: .68rem; letter-spacing: .11em; text-transform: uppercase; }
.quiet-link { justify-self: end; color: var(--muted); font-size: .86rem; text-decoration: none; transition: color 160ms ease; }
.quiet-link:hover { color: var(--ink); }

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(480px, 1.1fr);
  align-items: center;
  gap: 24px;
  padding: 124px max(32px, calc((100vw - 1180px) / 2)) 72px;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background: radial-gradient(70% 62% at 12% 34%, #fdfbf5 0%, rgba(253,251,245,.72) 45%, transparent 78%);
}
.hero-copy { position: relative; z-index: 2; max-width: 590px; animation: arrive 900ms var(--ease) both; }
.eyebrow, .section-label {
  margin: 0 0 22px;
  color: var(--spruce);
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -.025em; }
h1 { margin: 0; font-size: clamp(3.6rem, 7.2vw, 7.6rem); line-height: .88; }
h1 em { color: var(--spruce); font-weight: 400; }
.lede { max-width: 33rem; margin: 32px 0 0; color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.16rem); text-wrap: balance; }
.primary-action {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  margin-top: 34px;
  padding: 14px 20px;
  border-radius: 10px;
  background: var(--spruce);
  color: #eef4ef;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms var(--ease);
}
.primary-action:hover { background: var(--spruce-deep); }
.primary-action:active { transform: scale(.97); }

.garden-wrap { position: absolute; z-index: -1; inset: 2% -4% -8% 42%; animation: garden-in 1200ms 120ms var(--ease) both; }
.garden { width: 100%; height: 100%; display: block; overflow: visible; }
.trunk, .bough, .twig { fill: none; stroke: #59473b; stroke-linecap: round; }
.trunk { stroke-width: 17; }
.bough { stroke-width: 9; }
.bough.slim { stroke-width: 5; }
.twig { stroke-width: 2.5; opacity: .82; }
.water-line { fill: none; stroke: #6f9a87; stroke-width: 2; opacity: .24; animation: drift 13s ease-in-out infinite; }
.line-b { animation-delay: -6s; }
.ripple { fill: none; stroke: #6f9a87; stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: ripple 8s var(--ease) infinite; }
.ripple-b { animation-delay: -4s; }
.tree { transform-origin: 78% 68%; animation: breathe 11s ease-in-out infinite; }
.seal { transform-box: fill-box; transform-origin: top center; animation: sway 7s ease-in-out infinite; }
.petal { opacity: 0; animation: fall 12s linear infinite; }
.petal-a { transform: translate(420px, 250px); }
.petal-b { transform: translate(535px, 210px); animation-delay: -4s; }
.petal-c { transform: translate(335px, 300px); animation-delay: -8s; }

.begin { width: min(1180px, calc(100% - 64px)); margin: 0 auto; padding: 120px 0 132px; border-top: 1px solid var(--line); }
.begin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.begin h2 { margin: 0; font-size: clamp(3rem, 5vw, 5.4rem); line-height: .98; }
.edit-note { max-width: 520px; padding-top: 8px; }
.edit-note > p { margin: 0 0 38px; color: var(--muted); font-size: 1.05rem; }
dl { margin: 0; border-top: 1px solid var(--line); }
dl div { display: flex; justify-content: space-between; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
dt { color: var(--muted); font-size: .88rem; }
dd { margin: 0; }
code { color: var(--spruce); font-family: var(--mono); font-size: .78rem; }

footer {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
footer p { margin: 0; }
footer span { color: var(--ink); }

@keyframes arrive { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes garden-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: scale(1); } }
@keyframes breathe { 0%, 100% { transform: rotate(-.35deg); } 50% { transform: rotate(.35deg); } }
@keyframes sway { 0%, 100% { transform: rotate(-1.2deg); } 50% { transform: rotate(1.2deg); } }
@keyframes drift { 0%, 100% { transform: translateX(-16px); } 50% { transform: translateX(16px); } }
@keyframes ripple { 0% { opacity: 0; transform: scale(.25); } 12% { opacity: .28; } 55%, 100% { opacity: 0; transform: scale(1); } }
@keyframes fall { 0% { opacity: 0; translate: 0 0; rotate: 0deg; } 8% { opacity: .8; } 86% { opacity: .6; } 100% { opacity: 0; translate: -80px 310px; rotate: 410deg; } }

@media (hover: hover) and (pointer: fine) {
  .quiet-link:hover span, .primary-action:hover span { display: inline-block; transform: translate(2px, 2px); }
}

@media (max-width: 820px) {
  .site-header { width: min(100% - 40px, 1180px); grid-template-columns: 1fr 1fr; }
  .identity { display: none; }
  .seal { display: none; }
  .hero { min-height: 940px; grid-template-columns: 1fr; align-items: start; padding: 138px 20px 48px; }
  .hero-copy { max-width: 560px; }
  h1 { font-size: clamp(3.45rem, 15vw, 5.8rem); }
  .garden-wrap { inset: 39% -31% -3% 3%; }
  .begin { width: calc(100% - 40px); padding: 84px 0 96px; }
  .begin-grid { grid-template-columns: 1fr; gap: 42px; }
  footer { width: calc(100% - 40px); flex-direction: column; gap: 8px; }
}

@media (max-width: 470px) {
  .quiet-link { font-size: 0; }
  .quiet-link span { font-size: 1rem; }
  .hero { min-height: 860px; }
  .garden-wrap { inset: 43% -52% -4% -5%; }
  .primary-action { width: 100%; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
