@font-face {
  font-family: "WeekDinner WenKai";
  src: url("/fonts/weekdinner-wenkai-v1.530.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --font-life: "WeekDinner WenKai", "Kaiti SC", KaiTi, "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
  font-family: var(--font-life);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .life-name, .meal-name, .auth-brand span, .auth-form-wrap h2 {
  font-family: var(--font-life);
  font-weight: 400;
}

h1, .story-copy h1, .auth-form-wrap h2 { letter-spacing: .025em; }
.life-name { letter-spacing: .08em; }
.meal-name { line-height: 1.6; letter-spacing: .02em; }
.intro { font-size: 15px; line-height: 1.9; }
.meal-sides { font-size: 14px; }
.card-footer, .muted { font-size: 12px; }
.step-instructions { font-size: 15px; line-height: 1.95; }
.grocery-item { font-size: 14px; }
.auth-description, .auth-form-wrap label { font-size: 14px; }
.auth-brand span { font-size: 13px; }
.auth-switch, .auth-footnote { font-size: 13px; }

.ambient-light {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  contain: strict;
}

.ambient-light span {
  position: absolute;
  width: min(76vw, 1000px);
  height: min(85vh, 820px);
  border-radius: 50%;
}

.sunlight-one {
  top: -25%;
  left: -17%;
  background: radial-gradient(ellipse, #ffdf8b26 0%, #ffeabf14 35%, #fff0 70%);
}

.sunlight-two {
  top: 6%;
  right: -24%;
  background: radial-gradient(ellipse, #ffcbaa20 0%, #ffe7d012 38%, #fff0 70%);
}

.sunlight-three {
  bottom: -43%;
  left: 21%;
  background: radial-gradient(ellipse, #ffe5a624 0%, #fff2d110 40%, #fff0 70%);
}

.kitchen { position: relative; z-index: 1; }
.is-page-hidden .ambient-light span { animation-play-state: paused; }

.primary-button, .sage-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.primary-button::after, .sage-button::after {
  content: "";
  position: absolute;
  inset: -50% -30%;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, #fff3 50%, transparent 65%);
  transform: translateX(-110%);
}

.primary-button:active:not(:disabled), .sage-button:active:not(:disabled) {
  transform: translateY(1px) scale(.97);
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .meal-card:hover .dish-artwork {
    transform: translate(var(--art-x, 0px), var(--art-y, 0px)) rotate(var(--art-rotation, 0deg)) scale(1.035);
    transition: transform .55s cubic-bezier(.2, .8, .2, 1), opacity .4s ease;
  }

  .primary-button:hover:not(:disabled)::after, .sage-button:hover:not(:disabled)::after,
  .primary-button:focus-visible:not(:disabled)::after, .sage-button:focus-visible:not(:disabled)::after {
    animation: button-sheen .85s ease-out;
  }

  .dish-refresh:hover:not(:disabled) {
    box-shadow: 0 0 16px 4px #ef9e3220;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .ambient-light span { animation: sunlight-drift 26s ease-in-out infinite alternate; }
  .ambient-light .sunlight-two { animation-duration: 32s; animation-delay: -11s; animation-direction: alternate-reverse; }
  .ambient-light .sunlight-three { animation-duration: 36s; animation-delay: -19s; }

  .life-header, .hero > div, .auth-brand, .story-copy, .auth-form-wrap {
    animation: life-arrive .7s cubic-bezier(.16, 1, .3, 1) both;
  }

  .hero > div:first-child, .story-copy { animation-delay: .07s; }
  .hero-actions, .auth-form-wrap { animation-delay: .14s; }
  .table-illustration { animation: life-arrive 1s cubic-bezier(.16, 1, .3, 1) .14s both; }
}

@keyframes sunlight-drift {
  from { transform: translate3d(-3%, -2%, 0) scale(.94); }
  to { transform: translate3d(7%, 5%, 0) scale(1.06); }
}

@keyframes life-arrive {
  from { opacity: 0; translate: 0 12px; }
  to { opacity: 1; translate: 0 0; }
}

@keyframes button-sheen {
  to { transform: translateX(110%); }
}

@media (max-width: 520px) {
  .ambient-light span { width: 110vw; height: 60vh; }
  .ambient-light .sunlight-one { left: -45%; top: -10%; }
  .ambient-light .sunlight-two { right: -65%; top: 20%; }
  .ambient-light .sunlight-three { display: none; }
  .meal-sides { font-size: 12px; }
  .card-footer { font-size: 11px; }
  .step-instructions { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .meal-card:hover .dish-artwork { transform: none; }
  .primary-button::after, .sage-button::after { content: none; }
}
