:root {
  --paper: #f8f3e9;
  --ink: #263f34;
  --accent: #ac5969;
  --rose: #e0a0ae;
  --gold: #e8c47d;
  --green: #7b9475;
  --muted: #657064;
  --line: #dcd6c8;
  --panel: #fffaf1;
  --hill1: #dbe1bd;
  --hill2: #b9c9a3;
  --hill3: #9bb28f;
  --sky: #f0ead7;
  --shadow: 0 24px 65px #3d483215;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color-scheme: light;
}
:root[data-theme='night'] {
  --paper: #192e29 !important;
  --ink: #f0e8d7 !important;
  --accent: #e6a2af !important;
  --rose: #d998ac !important;
  --gold: #e9c77e !important;
  --green: #a1b994 !important;
  --muted: #c3c9b9;
  --line: #40534a;
  --panel: #263e35;
  --hill1: #526d58;
  --hill2: #3d5e4c;
  --hill3: #304f42;
  --sky: #324a44;
  --shadow: 0 24px 65px #0003;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  transition:
    background 0.4s,
    color 0.4s;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 12;
  opacity: 0.13;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23888888' filter='url(%23n)' opacity='.3' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
button {
  border: 0;
  background: none;
}
h1,
h2,
p {
  margin: 0;
}
h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1.01;
}
h2 {
  font-size: clamp(35px, 5vw, 58px);
}
em {
  font-weight: 400;
  color: var(--accent);
}
.wrap {
  width: min(1180px, calc(100% - 96px));
  margin-inline: auto;
}
.nav {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-family: var(--serif);
  font-size: 25px;
  letter-spacing: -1.3px;
  display: flex;
  gap: 9px;
  align-items: center;
}
.mark {
  font: 26px var(--sans);
  color: var(--accent);
}
.nav-actions {
  display: flex;
  gap: 10px;
}
.icon-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 12px;
}
.icon-button > span:first-child {
  font-size: 19px;
  line-height: 1;
}
.icon-button:hover,
.secondary:hover {
  border-color: var(--accent);
}
.eyebrow {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.18em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.5;
}
.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px #819a7830;
  flex: none;
  animation: pulse 2.8s infinite;
}
.hero {
  min-height: 660px;
  display: grid;
  grid-template-columns: 1fr 0.94fr;
  align-items: center;
  gap: 45px;
  padding-block: 56px 72px;
}
.hero-copy {
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: clamp(65px, 8.4vw, 116px);
  margin: 23px 0;
  letter-spacing: -0.075em;
}
.hero h1 em {
  display: inline-block;
}
.hero-description {
  max-width: 410px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}
.date-line {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 27px;
  font-size: 13px;
  font-weight: 650;
}
.date-icon {
  color: var(--accent);
  font-size: 22px;
}
.date-line .line {
  width: 33px;
  height: 1px;
  background: var(--line);
}
#date-note {
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.hero-links {
  display: flex;
  align-items: center;
  gap: 21px;
  margin-top: 31px;
  flex-wrap: wrap;
}
.primary,
.secondary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding: 13px 20px;
  min-height: 48px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 650;
  transition:
    transform 0.2s,
    background 0.2s,
    border 0.2s;
  line-height: 1.35;
}
.primary {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}
.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px #233e3420;
}
.primary span {
  font-size: 17px;
}
.secondary {
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
}
.text-link,
.plain {
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--accent);
}
.text-link:hover,
.plain:hover {
  color: var(--accent);
}
.hero-art {
  height: 520px;
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  perspective: 800px;
}
.art-paper {
  position: absolute;
  inset: 2% 7% 3%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 49% 49% 5px 5px;
  box-shadow: var(--shadow);
  transform: rotate(3deg);
  z-index: -1;
}
.art-orbit {
  position: absolute;
  inset: 8% 13% 9%;
  border: 1px solid #bd9c745c;
  border-radius: 50%;
  transform: rotate(-12deg);
  z-index: -1;
}
.hero-art svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(2px 5px 3px #36503b14);
  animation: sway 7s ease-in-out infinite;
  transform-origin: 50% 85%;
}
.art-caption,
.art-index {
  position: absolute;
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--muted);
  font-weight: 650;
}
.art-caption {
  top: 17%;
  left: 4%;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.art-index {
  right: 13%;
  bottom: 6%;
}
.art-seal {
  position: absolute;
  right: 1%;
  bottom: 15%;
  width: 106px;
  height: 106px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(13deg);
  background: var(--paper);
  box-shadow: 0 4px 15px #263f3415;
  color: var(--accent);
  gap: 3px;
}
.art-seal b {
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
}
.art-seal span {
  font-size: 8px;
  letter-spacing: 0.1em;
}
.countdown {
  background: var(--ink);
  color: var(--paper);
  padding: 44px 52px 37px;
  border-radius: 7px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.countdown::after {
  content: '✳';
  position: absolute;
  right: -40px;
  top: -200px;
  font-size: 400px;
  line-height: 1;
  color: var(--paper);
  opacity: 0.035;
  pointer-events: none;
}
.count-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 15px;
}
.countdown .eyebrow,
.countdown .count-status {
  color: var(--paper);
  opacity: 0.7;
}
.countdown h2 {
  font-size: clamp(30px, 4vw, 49px);
  margin-top: 10px;
}
.countdown h2 em {
  color: #e6a4ad;
}
:root[data-theme='night'] .countdown h2 em {
  color: #a24e64;
}
.count-status {
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.12em;
  display: flex;
  gap: 9px;
  align-items: center;
  white-space: nowrap;
}
.clock {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 32px 0 27px;
  border-top: 1px solid color-mix(in srgb, var(--paper), transparent 78%);
  border-bottom: 1px solid color-mix(in srgb, var(--paper), transparent 78%);
}
.time-cell {
  padding: 19px 4px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.time-cell:not(:last-child) {
  border-right: 1px solid color-mix(in srgb, var(--paper), transparent 78%);
}
.time-cell strong {
  font: 400 clamp(45px, 8vw, 96px)/1 var(--serif);
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -0.065em;
}
.time-cell span,
.progress-label {
  font-size: 9px;
  letter-spacing: 0.17em;
  font-weight: 650;
  opacity: 0.72;
}
.progress-label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.progress-track {
  height: 5px;
  background: color-mix(in srgb, var(--paper), transparent 83%);
  border-radius: 8px;
  margin-top: 10px;
  overflow: hidden;
}
.progress-track div {
  height: 100%;
  background: #e9a7b2;
  width: 0;
  transition: width 1s linear;
  border-radius: 8px;
}
:root[data-theme='night'] .progress-track div {
  background: #a24e64;
}
.count-foot {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  margin-top: 19px;
  opacity: 0.8;
}
.garden,
.notes,
.letter {
  padding-top: 104px;
}
.garden-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 28px;
}
.garden h2,
.section-top h2,
.letter h2 {
  margin: 9px 0 12px;
}
.garden-head p:not(.eyebrow),
.section-top p:not(.eyebrow),
.letter-copy > p:not(.eyebrow):not(.tiny) {
  color: var(--muted);
  max-width: 560px;
}
.garden-counter {
  display: flex;
  flex-direction: column;
  align-items: end;
  white-space: nowrap;
}
.garden-counter span {
  font: 46px/0.95 var(--serif);
  color: var(--accent);
}
.garden-counter small {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-top: 8px;
}
.garden-layout {
  display: grid;
  grid-template-columns: 1fr 278px;
  gap: 17px;
}
.garden-stage {
  height: 365px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(var(--sky), var(--panel));
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: crosshair;
  touch-action: pan-y;
}
.garden-sun {
  position: absolute;
  width: 94px;
  height: 94px;
  top: 28px;
  right: 10%;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0.63;
  box-shadow: 0 0 45px #edcd8054;
}
.garden-stage > svg {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.garden-plant-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.planted {
  position: absolute;
  transform: translate(-50%, -93%);
  transform-origin: 50% 93%;
  animation: grow 0.65s cubic-bezier(0.16, 0.84, 0.35, 1.2) both;
}
.planted svg {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(2px 3px 1px #394b3022);
}
.garden-hint {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  color: var(--muted);
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  pointer-events: none;
}
.garden-hint span {
  font-size: 34px;
  color: var(--accent);
  font-style: normal;
}
.garden-hint[hidden] {
  display: none;
}
.garden-coordinate {
  position: absolute;
  bottom: 10px;
  left: 12px;
  font-size: 8px;
  letter-spacing: 0.13em;
  color: var(--ink);
  opacity: 0.7;
  pointer-events: none;
}
.garden-tools {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.flower-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
}
.flower-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 5px 4px 7px;
  font-size: 11px;
  gap: 2px;
  min-height: 67px;
}
.flower-option svg {
  width: 36px;
  height: 36px;
}
.flower-option[aria-pressed='true'] {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--rose), transparent 87%);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.full {
  width: 100%;
  min-height: 39px;
  padding: 9px 10px;
}
.garden-bottom {
  display: flex;
  justify-content: space-between;
}
.tiny {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.5;
}
.garden-tools .tiny {
  margin-top: auto;
}
.section-top {
  margin-bottom: 25px;
}
.note-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}
.note-card {
  text-align: left;
  min-height: 210px;
  position: relative;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  background: var(--panel);
}
.note-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.note-card::after {
  content: attr(data-symbol);
  position: absolute;
  right: -14px;
  top: -42px;
  font-size: 185px;
  line-height: 1;
  color: var(--card-color);
  opacity: 0.13;
  pointer-events: none;
}
.note-card .card-symbol {
  font-size: 40px;
  color: var(--accent);
  line-height: 1;
}
.note-card .card-label {
  font: 29px/1.05 var(--serif);
  letter-spacing: -0.045em;
  margin-top: 20px;
}
.note-card .card-action {
  font-size: 10px;
  letter-spacing: 0.12em;
  font-weight: 650;
  color: var(--muted);
  margin-top: 13px;
}
.letter {
  padding-bottom: 80px;
}
.letter-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 7px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 340px;
  padding: 45px 54px;
  gap: 30px;
}
.letter-copy .primary {
  margin: 23px 0 12px;
}
.letter-copy .tiny {
  letter-spacing: 0.13em;
}
.envelope-art {
  height: 250px;
  display: grid;
  place-items: center;
  position: relative;
}
.envelope {
  position: relative;
  width: min(300px, 86%);
  aspect-ratio: 1.45;
  background: #d9b2a7;
  border: 1px solid #ba8e83;
  box-shadow: 0 20px 35px #54342b26;
  transform: rotate(-8deg);
  border-radius: 4px;
}
.envelope-paper {
  position: absolute;
  left: 9%;
  top: -18%;
  width: 82%;
  height: 95%;
  background: #fff6e3;
  color: #8f575c;
  border: 1px solid #e0ceae;
  box-shadow: 0 2px 7px #704f4320;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  transform: rotate(5deg);
  font: italic 28px var(--serif);
}
.envelope-front {
  position: absolute;
  inset: 0;
  background: #edc8bc;
  clip-path: polygon(0 0, 50% 55%, 100% 0, 100% 100%, 0 100%);
}
.envelope-front::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #dca99b;
  clip-path: polygon(0 100%, 50% 38%, 100% 100%);
}
.wax {
  position: absolute;
  top: 43%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #a64f60;
  color: #ebadb0;
  font-size: 27px;
  box-shadow: 0 3px 5px #79434e80;
  border: 3px double #d18a93;
}
.envelope-caption {
  position: absolute;
  bottom: 0;
  font-size: 9px;
  letter-spacing: 0.13em;
  color: var(--muted);
}
.celebration {
  text-align: center;
  margin-bottom: 65px;
  padding: 40px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 7px;
}
.celebration[hidden] {
  display: none;
}
.celebration .eyebrow {
  justify-content: center;
}
.celebration h2 {
  margin: 12px 0;
}
.celebration > p:not(.eyebrow) {
  max-width: 580px;
  margin: 12px auto;
  color: var(--muted);
}
.cake-button {
  display: block;
  width: 230px;
  margin: 15px auto 0;
  transition: transform 0.2s;
}
.cake-button:hover {
  transform: scale(1.04);
}
.cake-button .flames {
  animation: flicker 1s infinite alternate;
  transform-origin: center;
}
.cake-button.blown .flames {
  opacity: 0;
  animation: none;
}
.footer {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-block: 24px 40px;
}
.footer p {
  font-size: 12px;
  color: var(--muted);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  color: var(--ink);
  padding: 36px;
  width: min(490px, calc(100% - 30px));
  box-shadow: 0 30px 100px #0004;
  max-height: 85vh;
  overflow: auto;
}
dialog::backdrop {
  background: #192d28a0;
  backdrop-filter: blur(4px);
}
.modal-close {
  position: absolute;
  right: 10px;
  top: 7px;
  font-size: 29px;
  line-height: 1;
}
.modal-symbol {
  font-size: 45px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 15px;
}
dialog h2 {
  font-size: 39px;
  margin: 10px 0 20px;
}
#modal-content p {
  margin-bottom: 13px;
  color: var(--muted);
  white-space: pre-line;
}
dialog .primary {
  margin-top: 12px;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  padding: 12px 20px;
  border-radius: 7px;
  background: var(--ink);
  color: var(--paper);
  z-index: 50;
  box-shadow: var(--shadow);
  font-size: 13px;
  text-align: center;
}
.confetti,
#petals {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 15;
}
.confetti i {
  position: absolute;
  top: -25px;
  left: var(--x);
  width: var(--w);
  height: var(--w);
  background: var(--c);
  border-radius: 60% 0 60% 0;
  animation: fall var(--d) var(--delay) ease-in forwards;
}
.floating-petal {
  position: absolute;
  top: -25px;
  left: var(--x);
  width: 10px;
  height: 16px;
  border-radius: 80% 0 80% 0;
  background: var(--rose);
  opacity: 0.28;
  animation: drift var(--d) var(--delay) linear infinite;
}
.skip {
  position: absolute;
  left: 10px;
  top: -100px;
  z-index: 30;
  background: var(--panel);
  padding: 8px;
}
.skip:focus {
  top: 10px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.noscript {
  text-align: center;
  padding: 15px;
}
.preview-banner {
  background: #f4d7a1;
  color: #523b26;
  text-align: center;
  font-size: 12px;
  padding: 7px 12px;
}
.preview-banner a {
  text-decoration: underline;
}
@keyframes pulse {
  50% {
    box-shadow: 0 0 0 7px #819a7810;
  }
}
@keyframes sway {
  50% {
    transform: rotate(1.6deg) translateY(-3px);
  }
}
@keyframes grow {
  from {
    transform: translate(-50%, -93%) scale(0.12);
    opacity: 0.1;
  }
  to {
    transform: translate(-50%, -93%) scale(1);
    opacity: 1;
  }
}
@keyframes fall {
  to {
    transform: translate(var(--dx), 110vh) rotate(700deg);
    opacity: 0.15;
  }
}
@keyframes drift {
  to {
    transform: translate(80px, 110vh) rotate(270deg);
  }
}
@keyframes flicker {
  to {
    transform: scaleY(0.91);
    opacity: 0.7;
  }
}
@media (max-width: 900px) {
  .wrap {
    width: calc(100% - 56px);
  }
  .hero {
    gap: 15px;
    min-height: 520px;
    padding-block: 40px;
  }
  .hero-art {
    height: 430px;
  }
  .hero h1 {
    font-size: clamp(58px, 9.5vw, 90px);
  }
  .countdown {
    padding: 35px;
  }
  .garden-layout {
    grid-template-columns: 1fr 240px;
  }
  .garden-tools {
    padding: 14px;
  }
  .letter-panel {
    padding: 35px;
  }
  .garden,
  .notes,
  .letter {
    padding-top: 75px;
  }
}
@media (max-width: 650px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .nav {
    height: 66px;
  }
  .wordmark {
    font-size: 21px;
  }
  .nav-actions {
    gap: 7px;
  }
  .icon-button {
    padding: 8px 10px;
  }
  .control-label {
    display: none;
  }
  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    padding-block: 38px 34px;
    min-height: 0;
  }
  .hero h1 {
    font-size: clamp(62px, 13.6vw, 90px);
    margin: 16px 0;
  }
  .hero-description {
    font-size: 15px;
  }
  .hero-art {
    height: 340px;
    max-width: 430px;
    width: 100%;
    margin-inline: auto;
  }
  .art-seal {
    width: 79px;
    height: 79px;
    right: 4%;
  }
  .art-seal span {
    font-size: 6px;
  }
  .art-seal b {
    font-size: 25px;
  }
  .hero-links {
    gap: 15px;
    margin-top: 22px;
  }
  .date-line {
    margin-top: 16px;
  }
  .countdown {
    padding: 23px 17px;
  }
  .count-head {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }
  .clock {
    margin: 20px 0;
  }
  .time-cell {
    padding: 13px 2px 16px;
  }
  .time-cell strong {
    font-size: clamp(35px, 10vw, 59px);
  }
  .time-cell span,
  .progress-label {
    font-size: 8px;
    letter-spacing: 0.07em;
  }
  .progress-label span:first-child {
    display: none;
  }
  .count-foot {
    font-size: 13px;
  }
  .garden,
  .notes,
  .letter {
    padding-top: 60px;
  }
  .garden-head {
    align-items: start;
    gap: 10px;
  }
  .garden-counter span {
    font-size: 35px;
  }
  .garden-counter small {
    font-size: 7px;
    letter-spacing: 0.06em;
  }
  .garden-head p:not(.eyebrow) {
    font-size: 13px;
  }
  .garden-layout {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .garden-stage {
    height: 300px;
  }
  .garden-tools {
    padding: 15px;
  }
  .flower-options {
    grid-template-columns: repeat(4, 1fr);
  }
  .flower-option {
    font-size: 10px;
  }
  .note-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .note-card {
    min-height: 145px;
    padding: 17px;
  }
  .note-card .card-label {
    font-size: 26px;
    margin-top: 10px;
  }
  .note-card .card-symbol {
    font-size: 30px;
  }
  .note-card::after {
    font-size: 150px;
  }
  .letter-panel {
    grid-template-columns: 1fr;
    padding: 26px 22px;
    gap: 20px;
  }
  .envelope-art {
    height: 210px;
  }
  .letter {
    padding-bottom: 45px;
  }
  .footer {
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 25px;
  }
  .footer p {
    order: 3;
    width: 100%;
  }
  .celebration {
    padding: 25px 15px;
  }
  .celebration h2 {
    font-size: 42px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
  .floating-petal,
  .confetti {
    display: none;
  }
}
[hidden] {
  display: none !important;
}
#modal-content {
  overflow-wrap: anywhere;
}
.hero-art svg {
  pointer-events: none;
}
/* Second edition: restrained typography, a living calendar, and botanical detail. */
.hero {
  min-height: 570px;
  padding-block: 35px 44px;
}
.hero h1 {
  font-size: clamp(70px, 9vw, 124px);
  line-height: 0.97;
  margin: 19px 0 25px;
}
.hero-art {
  height: 475px;
}
.hero .date-line {
  margin-top: 0;
}
.hero-links {
  margin-top: 26px;
}
.art-seal {
  width: 90px;
  height: 90px;
  right: 6%;
  bottom: 12%;
}
.art-seal b {
  font-family: var(--serif);
  font-size: 36px;
}
.art-paper {
  background: radial-gradient(
    ellipse at 45% 40%,
    var(--panel),
    color-mix(in srgb, var(--paper), var(--gold) 9%)
  );
  border-radius: 48% 48% 8px 8px;
}
.art-orbit {
  inset: 8% 16%;
  border-style: solid;
}
.hero-art::after {
  content: '';
  position: absolute;
  inset: 4% 10%;
  border: 1px solid color-mix(in srgb, var(--accent), transparent 83%);
  border-radius: 49% 49% 5px 5px;
  transform: rotate(-4deg);
  pointer-events: none;
  z-index: -1;
}
.countdown {
  padding-block: 36px 32px;
}
.countdown .clock {
  margin: 24px 0 21px;
}
.count-status {
  opacity: 1 !important;
}
.countdown.arrived {
  background: var(--ink);
}
.countdown.arrived .time-cell strong {
  opacity: 0.62;
}
.garden,
.letter {
  padding-top: 78px;
}
.garden-head {
  margin-bottom: 22px;
}
.garden-stage {
  height: 390px;
  background:
    radial-gradient(
      ellipse at 80% 16%,
      color-mix(in srgb, var(--gold), transparent 74%),
      transparent 34%
    ),
    linear-gradient(160deg, var(--sky), var(--panel));
  border-radius: 12px;
}
.garden-sun {
  box-shadow: 0 0 75px 22px #edcd8030;
  width: 76px;
  height: 76px;
  top: 33px;
}
.garden-stars {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 16%, #f5e5b6 0 1px, transparent 2px),
    radial-gradient(circle at 31% 9%, #f5e5b6 0 1px, transparent 2px),
    radial-gradient(circle at 52% 20%, #f5e5b6 0 1px, transparent 2px),
    radial-gradient(circle at 74% 8%, #f5e5b6 0 1px, transparent 2px),
    radial-gradient(circle at 43% 34%, #f5e5b6 0 1px, transparent 2px),
    radial-gradient(circle at 93% 27%, #f5e5b6 0 1px, transparent 2px);
  opacity: 0;
  transition: opacity 0.7s;
}
:root[data-theme='night'] .garden-stars {
  opacity: 1;
}
:root[data-theme='night'] .garden-sun {
  background: #f4e7c7;
  box-shadow: 0 0 45px #f4e7c735;
}
.garden-tools {
  border-radius: 12px;
  gap: 12px;
  padding: 20px;
}
.flower-option {
  border-radius: 8px;
  min-height: 99px;
  gap: 1px;
}
.flower-option small {
  font: italic 12px var(--serif);
  color: var(--muted);
}
.flower-option svg {
  width: 41px;
  height: 41px;
}
.flower-option span {
  font-weight: 600;
}
.garden-tools #undo {
  text-align: center;
}
.garden-tools .tiny {
  margin-top: 0;
}
.garden-counter span {
  font-size: clamp(30px, 4vw, 46px);
}
.garden-calendar {
  margin-top: 17px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 18px 22px;
  border-radius: 12px;
}
.calendar-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}
.calendar-head span:first-child {
  font: italic 19px var(--serif);
  color: var(--ink);
}
.calendar-days {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(47px, 1fr));
  gap: 5px;
}
.calendar-day {
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 5px 2px 7px;
  border: 1px solid transparent;
  border-radius: 7px;
  min-width: 0;
}
.calendar-day[aria-pressed='true'] {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--rose), transparent 86%);
}
.calendar-day[data-state='available'] {
  color: var(--accent);
}
.calendar-day[data-state='planted'] {
  opacity: 1;
}
.calendar-day[data-state='locked'] {
  opacity: 0.48;
}
.calendar-flower {
  height: 28px;
  width: 28px;
  display: grid;
  place-items: center;
  font-size: 24px;
  line-height: 1;
}
.calendar-flower svg {
  width: 27px;
  height: 27px;
}
.calendar-day small {
  font-size: 9px;
  white-space: nowrap;
  color: var(--muted);
}
.letter-panel {
  border-radius: 12px;
  min-height: 300px;
}
.letter-copy h2 {
  max-width: 390px;
}
.footer-date {
  font-size: 12px;
  color: var(--muted);
}
.sound-playing #sound {
  border-color: var(--accent);
}
.sound-playing #sound > span:first-child {
  color: var(--accent);
  animation: music-pulse 3s ease-in-out infinite;
}
.floating-petal {
  opacity: 0.19;
  width: 8px;
  height: 13px;
}
.celebration {
  margin-top: 0;
}
.celebration .cake-button {
  margin-top: 24px;
}
@keyframes music-pulse {
  50% {
    opacity: 0.45;
  }
}
@media (max-width: 900px) {
  .hero {
    min-height: 460px;
  }
  .hero-art {
    height: 410px;
  }
  .garden-stage {
    height: 360px;
  }
  .garden-tools {
    padding: 14px;
  }
  .calendar-days {
    grid-template-columns: repeat(11, 1fr);
  }
}
@media (max-width: 650px) {
  .hero {
    min-height: 0;
    padding-block: 34px 27px;
    gap: 12px;
  }
  .hero h1 {
    font-size: clamp(63px, 15vw, 91px);
    margin: 14px 0 21px;
  }
  .hero-art {
    height: 305px;
  }
  .hero-links {
    margin-top: 18px;
  }
  .art-seal {
    width: 67px;
    height: 67px;
    right: 6%;
  }
  .art-seal b {
    font-size: 27px;
  }
  .art-seal span {
    font-size: 7px;
  }
  .countdown {
    padding-block: 24px 23px;
  }
  .countdown .clock {
    margin: 18px 0;
  }
  .garden,
  .letter {
    padding-top: 57px;
  }
  .garden-head {
    gap: 7px;
  }
  .garden-head h2 {
    font-size: clamp(33px, 8vw, 46px);
  }
  .garden-counter span {
    font-size: 29px;
  }
  .garden-counter small {
    font-size: 8px;
  }
  .garden-stage {
    height: 300px;
  }
  .garden-tools {
    padding: 14px;
    gap: 10px;
  }
  .flower-option {
    min-height: 85px;
  }
  .flower-option svg {
    width: 33px;
    height: 33px;
  }
  .flower-option small {
    font-size: 11px;
  }
  .calendar-days {
    grid-template-columns: repeat(7, 1fr);
  }
  .garden-calendar {
    padding: 14px 12px;
  }
  .calendar-head span:first-child {
    font-size: 17px;
  }
  .calendar-head span:last-child {
    font-size: 11px;
  }
  .letter-panel {
    min-height: 0;
  }
  .footer-date {
    order: 3;
    width: 100%;
  }
  .time-cell strong {
    font-size: clamp(37px, 10vw, 58px);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
@media (min-width: 651px) {
  .calendar-days {
    grid-template-columns: repeat(11, minmax(0, 1fr));
  }
}
@media (max-width: 650px) {
  .calendar-days {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
.calendar-day[data-state='locked'] {
  opacity: 0.75;
}
.calendar-day[data-state='locked'] .calendar-flower {
  opacity: 0.6;
}
.calendar-day[data-state='available']:hover {
  background: color-mix(in srgb, var(--rose), transparent 87%);
}
.garden-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 45px #263f3409;
  border-radius: inherit;
  z-index: 100;
}

/* Living atmosphere — visitor-local clock. */
@property --paper {
  syntax: '<color>';
  inherits: true;
  initial-value: #f8f3e9;
}
@property --ink {
  syntax: '<color>';
  inherits: true;
  initial-value: #263f34;
}
@property --accent {
  syntax: '<color>';
  inherits: true;
  initial-value: #ac5969;
}
@property --rose {
  syntax: '<color>';
  inherits: true;
  initial-value: #e0a0ae;
}
@property --gold {
  syntax: '<color>';
  inherits: true;
  initial-value: #e8c47d;
}
@property --green {
  syntax: '<color>';
  inherits: true;
  initial-value: #7b9475;
}
@property --muted {
  syntax: '<color>';
  inherits: true;
  initial-value: #657064;
}
@property --line {
  syntax: '<color>';
  inherits: true;
  initial-value: #dcd6c8;
}
@property --panel {
  syntax: '<color>';
  inherits: true;
  initial-value: #fffaf1;
}
@property --hill1 {
  syntax: '<color>';
  inherits: true;
  initial-value: #dbe1bd;
}
@property --hill2 {
  syntax: '<color>';
  inherits: true;
  initial-value: #b9c9a3;
}
@property --hill3 {
  syntax: '<color>';
  inherits: true;
  initial-value: #9bb28f;
}
@property --sky {
  syntax: '<color>';
  inherits: true;
  initial-value: #f0ead7;
}
@property --horizon {
  syntax: '<color>';
  inherits: true;
  initial-value: #fffaf1;
}
@property --sky-glow {
  syntax: '<color>';
  inherits: true;
  initial-value: #e8c47d42;
}
@property --sun-color {
  syntax: '<color>';
  inherits: true;
  initial-value: #e8c47d;
}
:root.atmosphere-ready {
  transition:
    --paper 1.2s ease-in-out,
    --ink 1.2s ease-in-out,
    --accent 1.2s ease-in-out,
    --rose 1.2s ease-in-out,
    --gold 1.2s ease-in-out,
    --green 1.2s ease-in-out,
    --muted 1.2s ease-in-out,
    --line 1.2s ease-in-out,
    --panel 1.2s ease-in-out,
    --hill1 1.2s ease-in-out,
    --hill2 1.2s ease-in-out,
    --hill3 1.2s ease-in-out,
    --sky 1.2s ease-in-out,
    --horizon 1.2s ease-in-out,
    --sky-glow 1.2s ease-in-out,
    --sun-color 1.2s ease-in-out;
}
:root {
  --horizon: var(--panel);
  --sky-glow: color-mix(in srgb, var(--gold), transparent 74%);
  --sun-color: var(--gold);
  --sun-top: 33px;
  --sun-right: 10%;
  --sun-glow: #edcd8030;
  --sun-opacity: 0.63;
}
:root[data-phase='dawn'] {
  --paper: #f8eee5 !important;
  --ink: #30463c !important;
  --accent: #a05569 !important;
  --rose: #dfa2ae !important;
  --gold: #edc48e !important;
  --green: #8a9a7e !important;
  --muted: #6e6d60;
  --line: #e2cfc5;
  --panel: #fff6ee;
  --hill1: #d4d9b7;
  --hill2: #b5c2a4;
  --hill3: #96ab90;
  --sky: #e8cbd0;
  --horizon: #f9e6c8;
  --sky-glow: #ffe2b47d;
  --sun-color: #f8d29d;
  --sun-top: 23%;
  --sun-right: 16%;
  --sun-glow: #ffcd9370;
  --sun-opacity: 0.82;
}
:root[data-phase='sunset'] {
  --paper: #f5e5df !important;
  --ink: #3f4438 !important;
  --accent: #96556c !important;
  --rose: #d69aaa !important;
  --gold: #e7bb83 !important;
  --green: #8c997e !important;
  --muted: #706158;
  --line: #dec9c3;
  --panel: #fcf0e7;
  --hill1: #c5c8af;
  --hill2: #a5b39b;
  --hill3: #869b83;
  --sky: #cbb7cd;
  --horizon: #f4c6a3;
  --sky-glow: #ffd0a18c;
  --sun-color: #ffe0a9;
  --sun-top: 28%;
  --sun-right: 13%;
  --sun-glow: #ffc28778;
  --sun-opacity: 0.9;
}
:root[data-phase='night'] {
  --sky: #293d43;
  --horizon: #344c43;
  --sky-glow: #c7d9c31a;
  --sun-color: #f4e7c7;
  --sun-glow: #f4e7c738;
  --sun-opacity: 0.88;
}
:root.atmosphere-ready body {
  transition: none;
}
.garden-stage {
  background:
    radial-gradient(ellipse at 80% 16%, var(--sky-glow), transparent 34%),
    linear-gradient(160deg, var(--sky), var(--horizon));
}
.garden-sun,
:root[data-theme='night'] .garden-sun {
  top: var(--sun-top);
  right: var(--sun-right);
  background: var(--sun-color);
  opacity: var(--sun-opacity);
  box-shadow: 0 0 75px 22px var(--sun-glow);
  transition:
    top 1.2s ease-in-out,
    right 1.2s ease-in-out,
    opacity 1.2s ease-in-out,
    box-shadow 1.2s ease-in-out;
}
.garden-sun::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  background:
    radial-gradient(circle at 35% 35%, #a9af9628 0 12%, transparent 13%),
    radial-gradient(circle at 65% 62%, #a9af9624 0 16%, transparent 17%),
    radial-gradient(circle at 39% 75%, #a9af9626 0 7%, transparent 8%);
  transition: opacity 1.2s ease-in-out;
}
:root[data-phase='night'] .garden-sun::after {
  opacity: 1;
}
.garden-fireflies {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.garden-fireflies i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #f9edb0;
  box-shadow: 0 0 7px 2px #f7dda373;
  animation: firefly var(--duration) var(--delay) ease-in-out infinite;
  animation-play-state: paused;
}
:root[data-phase='night'] .garden-fireflies {
  opacity: 0.82;
}
:root[data-phase='night'] .garden-fireflies i {
  animation-play-state: running;
}
:root[data-phase='night'] .planted svg {
  filter: drop-shadow(0 0 4px #e9dca02b);
}
@keyframes firefly {
  0%,
  100% {
    transform: translate(0, 0);
    opacity: 0.18;
  }
  35% {
    transform: translate(8px, -13px);
    opacity: 0.95;
  }
  68% {
    transform: translate(-5px, -22px);
    opacity: 0.35;
  }
}
@media (prefers-reduced-motion: reduce) {
  :root.atmosphere-ready {
    transition: none !important;
  }
  .garden-fireflies i {
    animation: none !important;
    opacity: 0.65;
  }
}
/* Prevent accidental text selection during interaction */
body {
  -webkit-user-select: none;
  user-select: none;
}

/* Remove the default mobile tap highlight */
button,
a,
[role='button'] {
  -webkit-tap-highlight-color: transparent;
}

/* Preserve text selection in the birthday letter */
#letter p {
  -webkit-user-select: text;
  user-select: text;
}
