@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Lora;
  src: url("fonts/lora.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  --background: #f3f4f0;
  --ink: #344037;
  --muted: #657064;
  --green: #4b6552;
  --line: #d9dfd5;
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: var(--background);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 280px;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 5px;
}
[hidden] {
  display: none !important;
}
svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.icon-definitions {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.page {
  max-width: 1120px;
  padding: 0 44px;
  margin: 0 auto;
}
.site-header {
  min-height: 100px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
}
.brand svg {
  width: 26px;
  height: 26px;
  color: var(--green);
}
.garden {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 100px;
  align-items: start;
  padding: 64px 0 52px;
}
.note-column {
  padding-top: 45px;
}
h1 {
  font-family: Lora, Georgia, serif;
  font-size: clamp(36px, 4.4vw, 52px);
  line-height: 1.25;
  letter-spacing: -1.5px;
  font-weight: 400;
  margin: 0 0 18px;
}
.intro {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0;
}
.daily-note {
  margin-top: 48px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.note-label {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.daily-message {
  font-family: Lora, Georgia, serif;
  font-size: clamp(23px, 2.3vw, 28px);
  line-height: 1.65;
  font-weight: 400;
  margin: 23px 0 28px;
  min-height: 138px;
  overflow-wrap: anywhere;
}
.note-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.note-footer > span {
  font-size: 13px;
  color: var(--muted);
}
.another-note {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: none;
  padding: 7px 0 7px 7px;
  font-size: 12px;
  color: var(--muted);
}
.another-note:hover {
  color: var(--ink);
}
.another-note svg {
  width: 14px;
  height: 14px;
}
.flower-column {
  max-width: 450px;
  width: 100%;
  justify-self: end;
}
.flower-scene {
  height: 408px;
  position: relative;
  background: #e6ebe2;
  border-radius: 5px;
  overflow: hidden;
}
.scene-caption {
  position: absolute;
  left: 0;
  right: 0;
  top: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 11px;
  color: var(--green);
  z-index: 1;
}
.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.flower-scene[data-state="loading"] .scene-caption,
.flower-scene[data-state="unknown"] .scene-caption {
  color: var(--muted);
}
.flower-scene[data-state="thirsty"] .scene-caption,
.flower-scene[data-state="wilted"] .scene-caption {
  color: #805638;
}
.flower-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 12px 0 15px;
  transition: opacity 0.25s;
}
.flower-scene[data-state="loading"] .flower-image,
.flower-scene[data-state="unknown"] .flower-image {
  opacity: 0.5;
}
.flower-care {
  padding: 23px 0 0;
}
.health-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  font-size: 12px;
}
.health-value {
  color: var(--green);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.health-track {
  height: 4px;
  margin: 11px 0 22px;
  border-radius: 3px;
  background: #dce1d8;
  overflow: hidden;
}
.health-fill {
  height: 100%;
  width: 0;
  background: var(--green);
  border-radius: inherit;
  transition:
    width 0.7s ease,
    background-color 0.3s;
}
.water-button {
  width: 100%;
  min-height: 50px;
  background: var(--green);
  color: #fbfcf9;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--green);
  border-radius: 4px;
  padding: 12px 16px;
  font-size: 13px;
  transition: background 0.2s;
}
.water-button:hover:enabled {
  background: #3c5342;
}
.water-button:disabled {
  background: #e2e6df;
  border-color: #d8dfd4;
  color: #616b60;
}
.water-button svg {
  width: 18px;
  height: 18px;
}
.water-amount {
  font-size: 11px;
  padding-left: 13px;
  margin-left: auto;
  border-left: 1px solid #ffffff4a;
}
.feedback {
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
  color: var(--green);
  margin: 10px 0 0;
  min-height: 19px;
}
.feedback[data-error="true"] {
  color: #913d4a;
}
.retry-button {
  min-height: 44px;
  background: transparent;
  color: var(--green);
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 6px auto;
  padding: 6px;
  font-size: 12px;
}
.retry-button svg {
  width: 15px;
  height: 15px;
}
.care-note {
  font-size: 11px;
  line-height: 1.85;
  color: var(--muted);
  text-align: center;
  margin: 7px 0;
}
.revival-panel {
  margin: 10px 0 15px;
}
.revive-button {
  width: 100%;
  min-height: 48px;
  padding: 10px 16px;
  color: var(--green);
  background: transparent;
  border: 1px solid var(--green);
  border-radius: 4px;
  font-size: 13px;
}
.revive-button:hover:enabled {
  background: #e6ebe2;
}
.revive-button:disabled {
  color: var(--muted);
  border-color: var(--line);
}
.revival-info {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
  text-align: center;
  margin: 10px 0 0;
}
.last-update {
  font-size: 10px;
  text-align: center;
  color: var(--muted);
  margin: 10px 0 0;
}
.water-drops {
  position: absolute;
  inset: 70px 0 90px;
  pointer-events: none;
}
.water-drops i {
  position: absolute;
  top: 15%;
  left: 38%;
  width: 6px;
  height: 11px;
  background: #86a8b7;
  border-radius: 70% 30% 60% 40%;
  opacity: 0;
  transform: rotate(25deg);
}
.water-drops i:nth-child(2) {
  left: 46%;
  top: 10%;
  animation-delay: 0.12s;
}
.water-drops i:nth-child(3) {
  left: 54%;
  animation-delay: 0.25s;
}
.water-drops i:nth-child(4) {
  left: 62%;
  top: 9%;
  animation-delay: 0.38s;
}
.water-drops i:nth-child(5) {
  left: 49%;
  top: 5%;
  animation-delay: 0.5s;
}
.is-watered .water-drops i {
  animation: water-drop 1.1s ease-in both;
}
.note-change {
  animation: note-change 0.25s ease-out;
}
.noscript {
  padding: 20px;
  text-align: center;
  color: var(--ink);
}
@keyframes water-drop {
  0% {
    opacity: 0;
    transform: translateY(-10px) rotate(25deg);
  }
  20% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    transform: translateY(210px) rotate(25deg);
  }
}
@keyframes note-change {
  from {
    opacity: 0.2;
  }
  to {
    opacity: 1;
  }
}
@media (min-width: 1400px) {
  .page {
    padding-top: 15px;
  }
  .garden {
    padding-top: 80px;
  }
}
@media (max-width: 950px) {
  .page {
    padding: 0 30px;
  }
  .garden {
    column-gap: 48px;
  }
  .flower-scene {
    height: 380px;
  }
  .note-column {
    padding-top: 32px;
  }
}
@media (max-width: 680px) {
  .page {
    padding: 0 24px;
    max-width: 490px;
  }
  .site-header {
    min-height: 80px;
  }
  .brand {
    font-size: 13px;
  }
  .garden {
    grid-template-columns: 1fr;
    gap: 35px;
    padding: 34px 0 32px;
  }
  .note-column {
    padding-top: 0;
  }
  h1 {
    font-size: 39px;
    letter-spacing: -1px;
    margin-bottom: 12px;
  }
  .intro {
    font-size: 13px;
  }
  .daily-note {
    margin-top: 29px;
    padding-top: 21px;
  }
  .daily-message {
    font-size: 24px;
    min-height: 80px;
    margin: 20px 0 16px;
  }
  .flower-column {
    justify-self: center;
  }
  .flower-scene {
    height: 355px;
  }
  .flower-care {
    padding-top: 21px;
  }
  .scene-caption {
    top: 23px;
  }
}
@media (max-width: 350px) {
  .page {
    padding: 0 19px;
  }
  h1 {
    font-size: 33px;
  }
  .daily-message {
    font-size: 22px;
  }
  .flower-scene {
    height: 320px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
