/* Direction: Tend — oat-cream notebook paper, soft serif headings, one terracotta accent */
/* Completed by the platform from the short form: both modes, every
   palette token, each text-on-ground pair at its floor. To restyle, write the
   short form again (the decisions in one :root) and it is completed again. */

:root {
  --canvas: #f7f0e3;
  --surface: #fffdf7;
  --surface-2: #f1e7d6;
  --border: #ddd0b9;
  --border-strong: #b5aba1;
  --ink: #2b241b;
  --muted: #6f6150;
  --accent: #bb5029;
  --accent-hover: #9f4423;
  --accent-ink: #ffffff;
  --accent-text: #a1411c;
  --accent-strong: #8c3917;
  --accent-soft: #f7e3d8;
  --accent-border: #dca88f;
  --success: #41633a;
  --success-ink: #ffffff;
  --success-soft: #e1dfcf;
  --success-strong: #41633a;
  --warning: #8d6315;
  --warning-ink: #ffffff;
  --warning-soft: #eadfca;
  --warning-strong: #825b13;
  --danger: #9e3527;
  --danger-ink: #ffffff;
  --danger-soft: #ecdacc;
  --danger-strong: #9e3527;
  --chart-1: #bb5029;
  --chart-2: #9d8b17;
  --chart-3: #0d7049;
  --chart-4: #1993b0;
  --chart-5: #4e4dac;
  --chart-6: #c665aa;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --display-weight: 600;
  --display-tracking: -0.01em;
  --radius-card: 10px;
  --radius-btn: 9px;
  --radius-input: 9px;
  --shadow-card: 0 1px 0 rgba(0, 0, 0, 0.02);
  --card-pad: 1.25rem;
  --x-rule: rgba(43, 36, 27, 0.08);
  --x-on-photo: #fffaf2;
  --font-mono: "JetBrains Mono Variable", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-sans: "Inter", system-ui, sans-serif;
  --eyebrow-tracking: 0.08em;
}

html[data-theme="dark"] {
  --canvas: #130804;
  --surface: #2b211d;
  --surface-2: #1f1411;
  --border: #342b27;
  --border-strong: #5a524f;
  --ink: #f7f0e3;
  --muted: #9c938a;
  --accent: #bb5029;
  --accent-hover: #c56a49;
  --accent-ink: #ffffff;
  --accent-text: #ca7758;
  --accent-strong: #ca7758;
  --accent-soft: #38180c;
  --accent-border: #5f2815;
  --success: #41633a;
  --success-ink: #ffffff;
  --success-soft: #1d1c10;
  --success-strong: #779071;
  --warning: #8d6315;
  --warning-ink: #ffffff;
  --warning-soft: #2e1c08;
  --warning-strong: #a68649;
  --danger: #9e3527;
  --danger-ink: #ffffff;
  --danger-soft: #32120c;
  --danger-strong: #ba6f64;
  --chart-1: #bb5029;
  --chart-2: #a39121;
  --chart-3: #039862;
  --chart-4: #2499b6;
  --chart-5: #7073d6;
  --chart-6: #c665aa;
}

/* Tend — paper texture, the dose ring, and the small motions */

.page-in {
  animation: page-in 0.45s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}
@keyframes page-in {
  from {
    opacity: 0.55;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.lift {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.lift:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 38%, var(--border));
  box-shadow: 0 14px 28px -22px rgba(0, 0, 0, 0.5);
}

.ring-arc {
  transition: stroke-dashoffset 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tick-mark {
  display: inline-flex;
}
.just-ticked .tick-mark {
  animation: tick-pop 0.55s cubic-bezier(0.2, 1.6, 0.4, 1) both;
}
.just-ticked .dose-name {
  animation: dose-settle 0.7s ease both;
}
.just-ticked.dose-row {
  animation: row-flash 1s ease both;
}
@keyframes tick-pop {
  0% {
    transform: scale(0.35) rotate(-14deg);
  }
  60% {
    transform: scale(1.2) rotate(2deg);
  }
  100% {
    transform: none;
  }
}
@keyframes dose-settle {
  0% {
    opacity: 1;
    transform: translateX(0);
  }
  40% {
    opacity: 0.6;
    transform: translateX(3px);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
@keyframes row-flash {
  0% {
    background-color: var(--accent-soft);
  }
  100% {
    background-color: transparent;
  }
}

.paper-rules {
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0 33px,
    var(--x-rule) 33px 34px
  );
}
.paper-grain {
  background-image: radial-gradient(var(--x-rule) 1px, transparent 1px);
  background-size: 18px 18px;
}
.timeline-line {
  background: linear-gradient(to bottom, var(--border) 0%, var(--border) 85%, transparent 100%);
}
.tab-bar {
  box-shadow: 0 -14px 26px -24px rgba(0, 0, 0, 0.6);
}

html.reduced-motion .page-in,
html.reduced-motion .just-ticked .tick-mark,
html.reduced-motion .just-ticked .dose-name,
html.reduced-motion .just-ticked.dose-row {
  animation: none;
}
html.reduced-motion .lift:hover {
  transform: none;
}
html.reduced-motion .ring-arc {
  transition: none;
}
