:root {
  color-scheme: light;
  --paper: #f7f3eb;
  --paper-glow: #fffdf8;
  --ink: #182c46;
  --muted: #667085;
  --accent: #25618b;
  --accent-deep: #18496c;
  --gold: #d99744;
  --hairline: rgba(24, 44, 70, 0.1);
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--paper); }

body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, .92) 0, rgba(255, 255, 255, .45) 32%, transparent 65%),
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button { font: inherit; }

.page-shell {
  width: min(100%, 46rem);
  min-height: 100svh;
  margin: 0 auto;
  padding: max(1.25rem, env(safe-area-inset-top)) 1.25rem max(1rem, env(safe-area-inset-bottom));
  display: grid;
  grid-template-rows: 1fr auto;
}

.reminder-card {
  min-height: calc(100svh - 5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1rem, 3vh, 2rem) 0 clamp(1.25rem, 4vh, 2.5rem);
  text-align: center;
  animation: arrive .7s cubic-bezier(.22, 1, .36, 1) both;
}

.eyebrow,
.section-label,
.brand {
  margin: 0;
  font-size: .72rem;
  line-height: 1.3;
  font-weight: 750;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.eyebrow { color: var(--ink); }
.section-label { color: var(--muted); }

.message-area {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: clamp(1rem, 3vh, 2rem) 0;
}

.sparkle-wrap {
  width: 3rem;
  height: 3rem;
  margin: clamp(1rem, 2.5vh, 1.5rem) 0 clamp(.85rem, 2vh, 1.25rem);
  display: grid;
  place-items: center;
  border: 1px solid rgba(217, 151, 68, .24);
  border-radius: 50%;
  background: rgba(255, 255, 255, .62);
  box-shadow: 0 10px 30px rgba(76, 61, 42, .07);
}

.sparkle { width: 1.3rem; fill: var(--gold); }
.sparkle-wrap.twinkle { animation: twinkle .65s ease both; }

.quote-stage {
  width: 100%;
  min-height: clamp(9rem, 26vh, 13rem);
  display: grid;
  place-items: center;
}

.quote {
  max-width: 22ch;
  margin: 0;
  font-size: clamp(1.85rem, 7.2vw, 3.15rem);
  line-height: 1.16;
  font-weight: 650;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.quote.is-changing { animation: changeQuote .5s ease both; }

.affirmation {
  margin: clamp(1rem, 2.6vh, 1.5rem) 0 0;
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.5;
}

.another-button {
  min-width: 13.25rem;
  min-height: 3.5rem;
  padding: .95rem 1.35rem;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  color: white;
  background: var(--accent);
  box-shadow: 0 10px 24px rgba(37, 97, 139, .2), inset 0 1px 0 rgba(255,255,255,.18);
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.another-button svg {
  width: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.another-button:hover { background: var(--accent-deep); transform: translateY(-1px); }
.another-button:active { transform: translateY(1px) scale(.985); box-shadow: 0 4px 12px rgba(37, 97, 139, .2); }
.another-button:focus-visible { outline: 3px solid rgba(217, 151, 68, .55); outline-offset: 4px; }
.another-button:disabled { cursor: wait; opacity: .82; }

.brand {
  padding-top: .9rem;
  border-top: 1px solid var(--hairline);
  color: rgba(24, 44, 70, .46);
  text-align: center;
  font-size: .61rem;
}

@keyframes arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes changeQuote { 0%, 100% { opacity: 1; transform: none; } 45% { opacity: 0; transform: translateY(5px); } 55% { opacity: 0; transform: translateY(-5px); } }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); } 45% { transform: scale(1.12) rotate(8deg); box-shadow: 0 10px 34px rgba(217, 151, 68, .22); } }

@media (min-width: 48rem) {
  .page-shell { padding-inline: 2rem; }
  .reminder-card { min-height: calc(100svh - 5.5rem); }
}

@media (max-height: 40rem) {
  .reminder-card { padding-block: .5rem 1rem; }
  .message-area { margin-block: .65rem; }
  .sparkle-wrap { margin-block: .65rem; width: 2.6rem; height: 2.6rem; }
  .quote-stage { min-height: 7.5rem; }
  .quote { font-size: clamp(1.65rem, 6.5vw, 2.2rem); }
  .affirmation { margin-top: .65rem; }
}

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