:root {
  color-scheme: dark;
  --canvas: #080a09;
  --text: #f3f3ee;
  --secondary: #b5b9b1;
  --edge: #313832;
  --mark: #c8c3b7;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--canvas);
  color: var(--text);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: 5px; }
a:focus-visible { outline: 2px solid var(--text); outline-offset: 7px; border-radius: 2px; }
::selection { background: var(--text); color: var(--canvas); }
.site-shell { max-width: 1280px; margin: 0 auto; padding: 0 64px; }
.site-header { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--edge); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: 30px; font-weight: 550; letter-spacing: -1.4px; }
.brand img { display: block; }
.status { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; color: var(--secondary); }
.status > span { width: 6px; height: 6px; border-radius: 50%; background: var(--mark); flex: 0 0 auto; }
.hero { display: grid; grid-template-columns: 1.65fr 1fr; gap: 36px; align-items: center; padding: 100px 0 96px; }
.eyebrow { color: var(--secondary); font-size: 14px; letter-spacing: .065em; margin: 0 0 27px; }
h1 { font-size: clamp(3.4rem, 6.3vw, 5.25rem); line-height: 1.06; font-weight: 450; letter-spacing: -.065em; margin: 0 0 30px; }
h1 em { font-family: Georgia, "Times New Roman", serif; font-weight: 400; color: var(--mark); letter-spacing: -.06em; }
.intro { max-width: 475px; font-size: 18px; line-height: 1.7; color: var(--secondary); margin: 0; }
.launch-note { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--secondary); margin: 30px 0 0; line-height: 1.6; }
.note-line { width: 24px; height: 1px; background: var(--mark); flex: 0 0 auto; }
.rain-garden { width: min(100%, 420px); min-width: 0; justify-self: center; text-align: center; }
.garden-scene { position: relative; width: 100%; aspect-ratio: 1; }
.garden-canvas, .garden-poster { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.garden-canvas { visibility: hidden; }
.garden-poster { object-fit: cover; }
.garden-ready .garden-canvas { visibility: visible; }
.garden-ready .garden-poster { visibility: hidden; }
.garden-controls { min-height: 102px; display: flex; align-items: center; flex-direction: column; gap: 8px; }
.garden-controls button { font: inherit; font-size: 14px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.garden-water, .garden-reset { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 48px; padding: 12px 22px; border: 1px solid #484c42; border-radius: 99px; background: #151a15; color: var(--text); transition: background .2s, border-color .2s; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.garden-water { touch-action: none; }
.garden-water:hover, .garden-reset:hover { background: #212820; border-color: #737d6c; }
.garden-water[aria-pressed="true"] { background: #303b2d; border-color: #a5b39a; }
.garden-controls button:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
.garden-controls button:disabled { cursor: default; opacity: .4; }
.garden-controls .garden-auto { min-height: 44px; padding: 10px 16px; border: 0; background: none; color: var(--secondary); font-size: 12px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--edge); }
.garden-auto:hover { color: var(--text); }
.rain-garden [hidden] { display: none; }
.garden-fallback { font-size: 14px; color: var(--secondary); line-height: 1.6; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
footer { border-top: 1px solid var(--edge); padding: 26px 0 32px; display: flex; align-items: baseline; justify-content: space-between; gap: 24px; color: var(--secondary); font-size: 12px; line-height: 1.7; }
footer p { margin: 0; font-size: 14px; }
footer a { text-decoration-color: var(--edge); }
footer a:hover { color: var(--text); text-decoration-color: var(--text); }

@media (min-width: 1440px) {
  .hero { padding-top: 120px; padding-bottom: 116px; }
}
@media (max-width: 850px) {
  .site-shell { padding: 0 32px; }
  .hero { grid-template-columns: 1fr; gap: 48px; padding: 72px 0; }
  .rain-garden { width: min(100%, 380px); }
  footer { flex-direction: column; gap: 8px; }
}
@media (max-width: 600px) {
  .site-shell { padding: 0 24px; }
  .site-header { min-height: 88px; }
  .brand { font-size: 27px; }
  .brand img { width: 30px; height: 30px; }
  .status { font-size: 12px; }
  .hero { grid-template-columns: 1fr; padding: 32px 0 40px; gap: 0; }
  .hero-copy { display: contents; }
  .hero-copy .eyebrow { order: 0; margin-bottom: 18px; }
  .hero-copy h1 { order: 1; margin-bottom: 0; }
  .rain-garden { order: 2; width: min(100%, 360px); margin-top: 24px; }
  .garden-controls { min-height: 96px; }
  .hero-copy .intro { order: 3; margin-top: 22px; }
  .hero-copy .launch-note { order: 4; margin-top: 20px; }
  h1 { font-size: clamp(2.8rem, 10.4vw, 3.9rem); }
  .eyebrow { font-size: 13px; letter-spacing: .035em; }
  .intro { font-size: 17px; }
}
@media (max-width: 350px) {
  .site-shell { padding: 0 18px; }
  .site-header { gap: 12px; }
  .brand { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .garden-water, .garden-reset { transition: none; }
}
