/* =========================================================
   朝夕 · OUR LITTLE DAYS
   A warm, local-first love journal
   ========================================================= */

:root {
  --paper: #f8f1e9;
  --paper-deep: #f2e6da;
  --paper-warm: #f5e9dd;
  --card: #fffaf4;
  --card-soft: rgba(255, 251, 246, 0.72);
  --ink: #453130;
  --ink-deep: #342322;
  --ink-soft: #806b66;
  --ink-faint: #a38d84;
  --rose: #b85f65;
  --rose-deep: #8d4a51;
  --rose-soft: #f2d8d5;
  --rose-wash: #f9ece7;
  --sage: #77836d;
  --sage-soft: #e8eadf;
  --gold: #b98b55;
  --gold-soft: #f2e5ce;
  --line: rgba(91, 58, 51, 0.12);
  --line-strong: rgba(91, 58, 51, 0.19);
  --font-display: "Iowan Old Style", "Palatino Linotype", "Songti SC", "STSong", "Noto Serif CJK SC", "SimSun", serif;
  --font-body: "Avenir Next", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-hand: "Segoe Print", "Bradley Hand", "Kaiti SC", "STKaiti", "KaiTi", cursive;
  --shadow-soft: 0 24px 60px -38px rgba(93, 53, 46, 0.4);
  --shadow-card: 0 16px 45px -34px rgba(93, 53, 46, 0.34);
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --sidebar-width: 260px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked {
  overflow: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  max-width: 100%;
}

button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

::selection {
  background: rgba(184, 95, 101, 0.22);
  color: var(--ink-deep);
}

:focus-visible {
  outline: 2px solid rgba(141, 74, 81, 0.58);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.svg-sprite {
  position: absolute;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden;
}

svg:not(.scene) {
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}

/* ---------- atmosphere ---------- */

.paper-grain {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.16;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.76' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E");
}

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

.ambient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.ambient-blob--one {
  top: -24vw;
  right: -15vw;
  width: 54vw;
  height: 54vw;
  background: radial-gradient(circle, rgba(236, 202, 186, 0.46), rgba(236, 202, 186, 0) 68%);
}

.ambient-blob--two {
  bottom: -28vw;
  left: 20vw;
  width: 58vw;
  height: 58vw;
  background: radial-gradient(circle, rgba(231, 212, 192, 0.3), rgba(231, 212, 192, 0) 68%);
}

.ambient-star {
  position: absolute;
  color: rgba(184, 95, 101, 0.3);
  font-family: var(--font-display);
}

.ambient-star--one {
  top: 14%;
  right: 7%;
  font-size: 17px;
}

.ambient-star--two {
  top: 38%;
  left: 22%;
  font-size: 24px;
  color: rgba(185, 139, 85, 0.3);
}

/* ---------- shell ---------- */

.app {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  width: var(--sidebar-width);
  height: 100vh;
  padding: 34px 24px 22px;
  overflow: hidden;
  border-right: 1px solid rgba(103, 69, 57, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.2), transparent 32%),
    linear-gradient(160deg, #f5e9dd 0%, #f0e1d4 100%);
}

.sidebar::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 5px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
}

.brand-mark {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(141, 74, 81, 0.45);
  border-radius: 50%;
  color: var(--rose-deep);
  font-family: var(--font-display);
  font-size: 23px;
  line-height: 1;
  background: rgba(255, 251, 246, 0.38);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(141, 74, 81, 0.16);
  border-radius: inherit;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-copy strong {
  color: var(--ink-deep);
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.brand-copy small {
  margin-top: 7px;
  color: var(--ink-faint);
  font-family: var(--font-display);
  font-size: 7px;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

.sidebar-kicker {
  margin: 32px 0 12px 13px;
  color: var(--ink-faint);
  font-size: 9px;
  letter-spacing: 0.22em;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 49px;
  padding: 7px 12px;
  border-radius: 15px;
  color: var(--ink-soft);
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.nav-link:hover {
  color: var(--ink-deep);
  background: rgba(255, 251, 246, 0.45);
}

.nav-link.is-active {
  color: var(--ink-deep);
  background: rgba(255, 251, 246, 0.9);
  box-shadow: 0 10px 30px -22px rgba(74, 43, 37, 0.55);
}

.nav-link.is-active::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 50%;
  width: 3px;
  height: 23px;
  border-radius: 0 4px 4px 0;
  background: var(--rose);
  transform: translateY(-50%);
}

.nav-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid transparent;
  border-radius: 50%;
  color: var(--ink-faint);
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.nav-icon svg {
  width: 17px;
  height: 17px;
}

.nav-link.is-active .nav-icon {
  color: var(--rose-deep);
  border-color: rgba(184, 95, 101, 0.18);
  background: var(--rose-wash);
}

.nav-dot {
  width: 4px;
  height: 4px;
  margin-left: auto;
  border-radius: 50%;
  background: transparent;
}

.nav-link.is-active .nav-dot {
  background: var(--rose);
}

.sidebar-decoration {
  width: 190px;
  margin: auto 0 0 3px;
  opacity: 0.88;
}

.sidebar-decoration svg {
  display: block;
  width: 100%;
  height: auto;
}

.sidebar-verse {
  position: relative;
  margin: 4px 8px 22px;
  padding: 15px 0 0;
  border-top: 1px solid rgba(103, 69, 57, 0.12);
}

.verse-open {
  position: absolute;
  top: 2px;
  left: -3px;
  color: rgba(184, 95, 101, 0.3);
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1;
}

.sidebar-verse p {
  margin: 5px 0 0 26px;
  color: #6e5650;
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 1.9;
  letter-spacing: 0.03em;
}

.verse-sign {
  display: block;
  margin: 9px 0 0 26px;
  color: var(--ink-faint);
  font-family: var(--font-display);
  font-size: 7px;
  letter-spacing: 0.18em;
}

.sidebar-bottom {
  padding-top: 15px;
  border-top: 1px solid rgba(103, 69, 57, 0.1);
}

.couple-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 5px 3px;
  border: 0;
  border-radius: 13px;
  text-align: left;
  background: transparent;
  transition: background-color 180ms ease;
}

.couple-chip:hover {
  background: rgba(255, 251, 246, 0.48);
}

.avatar-stack {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  padding-left: 7px;
}

.avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 29px;
  height: 29px;
  margin-left: -7px;
  border: 2px solid #f2e4d7;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 10px;
}

.avatar--her {
  color: #84434a;
  background: #efd0cb;
}

.avatar--me {
  color: #56614f;
  background: #dde2d4;
}

.couple-chip-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.4;
}

.couple-chip-copy strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.couple-chip-copy small {
  margin-top: 2px;
  color: var(--ink-faint);
  font-size: 8.5px;
  letter-spacing: 0.02em;
}

.couple-chip-copy b {
  color: var(--rose-deep);
  font-family: var(--font-display);
  font-size: 10px;
}

.couple-chip-gear {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-left: auto;
  color: var(--ink-faint);
  border-radius: 50%;
  transition: color 180ms ease, background-color 180ms ease;
}

.couple-chip:hover .couple-chip-gear {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.46);
}

.couple-chip-gear svg {
  width: 14px;
  height: 14px;
}

.main {
  grid-column: 2;
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1320px;
  height: 86px;
  margin: 0 auto;
  padding: 0 52px;
}

.topbar-mobile-brand {
  display: none;
  align-items: center;
  gap: 9px;
}

.topbar-mobile-brand .brand-mark {
  width: 35px;
  height: 35px;
  font-size: 18px;
}

.topbar-mobile-brand span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.topbar-mobile-brand strong {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.1em;
}

.topbar-mobile-brand small {
  margin-top: 4px;
  color: var(--ink-faint);
  font-size: 5.5px;
  letter-spacing: 0.16em;
}

.topbar-date {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8e9b80;
  box-shadow: 0 0 0 4px rgba(142, 155, 128, 0.12);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.local-note {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-faint);
  font-size: 9px;
  letter-spacing: 0.05em;
}

.local-note svg {
  width: 11px;
  height: 11px;
  color: #88957d;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-soft);
  background: rgba(255, 251, 246, 0.55);
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.icon-button:hover {
  color: var(--rose-deep);
  border-color: rgba(184, 95, 101, 0.25);
  background: var(--card);
  transform: rotate(8deg);
}

.icon-button svg {
  width: 15px;
  height: 15px;
}

.page-wrap {
  width: 100%;
  max-width: 1320px;
  min-height: calc(100vh - 160px);
  margin: 0 auto;
  padding: 0 52px;
}

.page {
  display: none;
}

.page.is-active {
  display: block;
  animation: page-in 560ms var(--ease-spring) both;
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- shared typography & bits ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink-faint);
  font-family: var(--font-display);
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.eyebrow-line {
  display: inline-block;
  width: 25px;
  height: 1px;
  background: rgba(141, 74, 81, 0.44);
}

.eyebrow-cn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-faint);
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.eyebrow-cn::before {
  content: "·";
  color: rgba(141, 74, 81, 0.52);
}

.title-period {
  color: var(--rose);
}

em {
  font-style: normal;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 19px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: transform 200ms var(--ease-spring), background-color 200ms ease, border-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}

.button svg {
  width: 15px;
  height: 15px;
}

.button--primary {
  color: #fff9f2;
  background: var(--rose-deep);
  border-color: var(--rose-deep);
  box-shadow: 0 12px 26px -15px rgba(107, 55, 60, 0.7);
}

.button--primary:hover {
  background: #7e3f47;
  border-color: #7e3f47;
  transform: translateY(-2px);
  box-shadow: 0 17px 30px -16px rgba(107, 55, 60, 0.72);
}

.button--primary:active {
  transform: translateY(0);
}

.button--text {
  min-height: 40px;
  padding: 9px 2px;
  border: 0;
  border-radius: 0;
  color: var(--ink-soft);
  background: transparent;
}

.button--text svg {
  width: 14px;
  height: 14px;
  transition: transform 200ms var(--ease-spring);
}

.button--text:hover {
  color: var(--rose-deep);
}

.button--text:hover svg {
  transform: translateX(4px);
}

.button--ghost {
  color: var(--ink-soft);
  border-color: var(--line);
  background: rgba(255, 251, 246, 0.52);
}

.button--ghost:hover {
  border-color: var(--line-strong);
  background: var(--card);
}

.button--danger {
  color: #fff8f2;
  border-color: #9a4e50;
  background: #9a4e50;
}

.button--danger:hover {
  background: #864245;
  border-color: #864245;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 0;
  border: 0;
  color: var(--ink-soft);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  background: transparent;
  transition: color 180ms ease;
}

.text-link svg {
  width: 13px;
  height: 13px;
  transition: transform 200ms var(--ease-spring);
}

.text-link:hover {
  color: var(--rose-deep);
}

.text-link:hover svg {
  transform: translateX(4px);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, 0.88fr);
  gap: 30px;
  align-items: center;
  min-height: 578px;
  padding: 38px 0 34px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 8%;
  left: 38%;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 221, 207, 0.72), rgba(244, 221, 207, 0) 70%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 4;
  padding: 8px 0 10px clamp(0px, 1vw, 16px);
}

.hero-eyebrow {
  animation: rise-in 700ms 80ms var(--ease-spring) both;
}

.hero-title {
  margin: 23px 0 20px;
  color: var(--ink-deep);
  font-family: var(--font-display);
  font-size: clamp(54px, 5.3vw, 76px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.075em;
  animation: rise-in 800ms 130ms var(--ease-spring) both;
}

.emphasis {
  position: relative;
  display: inline-block;
  color: var(--rose-deep);
}

.emphasis::after {
  content: "";
  position: absolute;
  right: 1%;
  bottom: -2px;
  left: -1%;
  height: 12px;
  opacity: 0.5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 16' preserveAspectRatio='none'%3E%3Cpath d='M2 11C44 5 108 3 218 8' fill='none' stroke='%23b36868' stroke-width='2.2' stroke-linecap='round'/%3E%3Cpath d='M8 14C60 9 135 8 205 11' fill='none' stroke='%23c58a78' stroke-width='1' stroke-linecap='round' opacity='.6'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.hero-lead {
  max-width: 492px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 2;
  letter-spacing: 0.015em;
  animation: rise-in 800ms 190ms var(--ease-spring) both;
}

.hero-lead .desktop-break {
  display: block;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 30px;
  animation: rise-in 800ms 250ms var(--ease-spring) both;
}

.hero-actions .button--text {
  font-size: 12px;
}

.since-line {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-top: 38px;
  animation: rise-in 800ms 310ms var(--ease-spring) both;
}

.since-rule {
  width: 1px;
  height: 42px;
  margin-top: 2px;
  background: linear-gradient(180deg, rgba(141, 74, 81, 0.4), transparent);
}

.since-line p {
  margin: 0;
  color: var(--ink-faint);
  font-size: 9.5px;
  line-height: 1.8;
  letter-spacing: 0.045em;
}

.since-line strong {
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.since-line span {
  color: var(--ink-faint);
}

.since-line b {
  color: var(--rose-deep);
  font-family: var(--font-display);
  font-weight: 500;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- hero illustration ---------- */

.hero-visual {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 476px;
  min-height: 516px;
  margin: 0 auto;
  animation: art-in 1000ms 180ms var(--ease-spring) both;
}

@keyframes art-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-visual::before {
  content: "";
  position: absolute;
  top: 5%;
  right: 0;
  width: 85%;
  aspect-ratio: 1;
  border-radius: 48% 52% 45% 55% / 52% 43% 57% 48%;
  background: linear-gradient(145deg, rgba(241, 213, 198, 0.8), rgba(245, 229, 215, 0.42));
  transform: rotate(13deg);
}

.hero-visual::after {
  content: "";
  position: absolute;
  right: 8%;
  bottom: 20px;
  width: 240px;
  height: 36px;
  border-radius: 50%;
  background: rgba(112, 66, 55, 0.12);
  filter: blur(18px);
}

.art-frame {
  position: relative;
  z-index: 2;
  width: min(76%, 365px);
  margin: 0 11% 0 auto;
  padding-top: 4px;
}

.scene {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 28px 32px rgba(101, 58, 47, 0.17));
}

.couple {
  transform-origin: 250px 500px;
  animation: breathe 7s ease-in-out infinite;
}

@keyframes breathe {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

.art-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 10px;
  color: rgba(112, 76, 66, 0.65);
  font-family: var(--font-display);
  font-size: 6.5px;
  letter-spacing: 0.16em;
}

.art-caption i {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(184, 95, 101, 0.5);
}

.art-caption b {
  font-weight: 500;
  letter-spacing: 0.12em;
}

.art-orbit {
  position: absolute;
  top: 6%;
  right: 2%;
  width: 79%;
  aspect-ratio: 1;
  border: 1px dashed rgba(150, 103, 84, 0.23);
  border-radius: 50%;
  transform: rotate(-12deg);
}

.art-orbit::before {
  content: "";
  position: absolute;
  top: 13%;
  left: 2%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(184, 95, 101, 0.5);
}

.art-orbit::after {
  content: "";
  position: absolute;
  right: 10%;
  bottom: 7%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(185, 139, 85, 0.58);
}

.art-spark {
  position: absolute;
  z-index: 3;
  color: rgba(141, 74, 81, 0.5);
  font-family: var(--font-display);
}

.art-spark--one {
  top: 7%;
  left: 9%;
  font-size: 18px;
}

.art-spark--two {
  top: 25%;
  right: -2%;
  font-size: 13px;
  color: rgba(185, 139, 85, 0.6);
}

.art-handwriting {
  position: absolute;
  top: 9%;
  right: 2%;
  z-index: 4;
  color: rgba(122, 84, 72, 0.62);
  font-family: var(--font-hand);
  font-size: 10px;
  letter-spacing: 0.02em;
  transform: rotate(7deg);
}

.polaroid {
  position: absolute;
  bottom: 28px;
  left: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  width: 158px;
  min-height: 117px;
  padding: 24px 15px 14px;
  background: #fffbf5;
  box-shadow: 0 20px 35px -22px rgba(85, 48, 40, 0.42);
  transform: rotate(-7deg);
  transition: transform 350ms var(--ease-spring);
}

.polaroid:hover {
  transform: rotate(-3deg) translateY(-4px);
}

.polaroid-tape {
  position: absolute;
  top: -10px;
  left: 50%;
  width: 56px;
  height: 19px;
  background: rgba(225, 201, 177, 0.55);
  box-shadow: 0 1px 1px rgba(255, 255, 255, 0.25) inset;
  transform: translateX(-50%) rotate(2deg);
}

.polaroid-script {
  color: var(--rose-deep);
  font-family: var(--font-hand);
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.polaroid-cn {
  margin-top: 6px;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.polaroid-date {
  margin-top: 13px;
  color: var(--ink-faint);
  font-family: var(--font-display);
  font-size: 6.5px;
  letter-spacing: 0.2em;
}

.polaroid-heart {
  position: absolute;
  right: 14px;
  bottom: 15px;
  width: 12px;
  height: 12px;
  color: rgba(184, 95, 101, 0.62);
}

.days-stamp {
  position: absolute;
  right: -1%;
  bottom: 36px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 116px;
  height: 116px;
  border: 1px solid rgba(164, 112, 95, 0.33);
  border-radius: 50%;
  color: var(--ink-soft);
  background: #f7eadd;
  box-shadow: inset 0 0 0 5px #f7eadd, inset 0 0 0 6px rgba(164, 112, 95, 0.16), 0 13px 25px -20px rgba(82, 47, 38, 0.55);
  transform: rotate(7deg);
}

.days-stamp span {
  font-size: 9px;
  letter-spacing: 0.13em;
}

.days-stamp strong {
  margin: 0;
  color: var(--rose-deep);
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.days-stamp small {
  margin-top: 4px;
  color: rgba(112, 76, 66, 0.52);
  font-family: var(--font-display);
  font-size: 5px;
  letter-spacing: 0.16em;
}

/* ---------- stats ribbon ---------- */

.stats-ribbon {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 6px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat-cell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-width: 0;
  padding: 19px 21px;
  border: 0;
  border-right: 1px solid var(--line);
  text-align: left;
  background: transparent;
  transition: background-color 220ms ease;
}

.stat-cell:last-child {
  border-right: 0;
}

.stat-cell:hover {
  background: rgba(255, 250, 244, 0.58);
}

.stat-number {
  color: var(--rose-deep);
  font-family: var(--font-display);
  font-size: 31px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}

.stat-cell:last-child .stat-number {
  color: #9b7456;
}

.stat-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.5;
}

.stat-copy strong {
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.stat-copy small {
  overflow: hidden;
  margin-top: 2px;
  color: var(--ink-faint);
  font-size: 8px;
  letter-spacing: 0.015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat-arrow {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  color: var(--ink-faint);
  border-radius: 50%;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 200ms ease, transform 200ms ease;
}

.stat-cell:hover .stat-arrow {
  opacity: 0.9;
  transform: translateX(0);
}

.stat-arrow svg {
  width: 12px;
  height: 12px;
}

/* ---------- home panels ---------- */

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(310px, 0.82fr);
  gap: 22px;
  margin-top: 28px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card-soft);
  box-shadow: var(--shadow-card);
}

.recent-panel {
  min-height: 342px;
  padding: 27px 28px 17px;
}

.panel-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 9px;
}

.panel-heading .eyebrow {
  margin-bottom: 7px;
}

.panel-heading h2 {
  margin: 0;
  color: var(--ink-deep);
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.045em;
}

.recent-list {
  margin-top: 5px;
}

.recent-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto 15px;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 15px 0;
  border: 0;
  border-bottom: 1px dashed rgba(91, 58, 51, 0.12);
  text-align: left;
  background: transparent;
}

.recent-item:last-child {
  border-bottom: 0;
}

.recent-emoji {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(184, 95, 101, 0.11);
  border-radius: 50%;
  background: var(--rose-wash);
  font-size: 17px;
}

.recent-item.is-dislike .recent-emoji {
  border-color: rgba(132, 109, 85, 0.13);
  background: #f3ebe1;
  filter: saturate(0.75);
}

.recent-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.45;
}

.recent-title {
  overflow: hidden;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 180ms ease;
}

.recent-note {
  overflow: hidden;
  margin-top: 3px;
  color: var(--ink-faint);
  font-size: 8.5px;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-type {
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--rose-deep);
  font-size: 8px;
  letter-spacing: 0.06em;
  background: var(--rose-wash);
  white-space: nowrap;
}

.recent-item.is-dislike .recent-type {
  color: #8c6e50;
  background: var(--gold-soft);
}

.recent-arrow {
  width: 13px;
  height: 13px;
  color: var(--ink-faint);
  opacity: 0.45;
  transition: transform 180ms var(--ease-spring), opacity 180ms ease;
}

.recent-item:hover .recent-title {
  color: var(--rose-deep);
}

.recent-item:hover .recent-arrow {
  opacity: 1;
  transform: translateX(3px);
}

.recent-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 230px;
  color: var(--ink-faint);
  font-size: 12px;
  text-align: center;
}

.home-side {
  display: grid;
  gap: 18px;
  grid-template-rows: 1fr auto;
}

.quote-card {
  position: relative;
  min-height: 196px;
  padding: 25px 26px 18px;
  overflow: hidden;
  border-radius: 24px;
  color: #fbeddf;
  background:
    radial-gradient(circle at 97% 7%, rgba(255, 235, 216, 0.16), transparent 31%),
    linear-gradient(140deg, #8b4b50, #744047);
  box-shadow: 0 24px 40px -32px rgba(84, 42, 40, 0.8);
}

.quote-card::before {
  content: "“";
  position: absolute;
  right: 16px;
  bottom: -59px;
  color: rgba(255, 241, 224, 0.08);
  font-family: var(--font-display);
  font-size: 190px;
  line-height: 1;
  pointer-events: none;
}

.quote-card::after {
  content: "";
  position: absolute;
  top: 16px;
  right: 18px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 236, 217, 0.14);
  border-radius: 50%;
}

.quote-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quote-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(251, 237, 223, 0.64);
  font-size: 8.5px;
  letter-spacing: 0.16em;
}

.quote-label svg {
  width: 12px;
  height: 12px;
  color: #e5c5a6;
}

.quote-refresh {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  padding: 0;
  border: 1px solid rgba(255, 241, 227, 0.2);
  border-radius: 50%;
  color: rgba(251, 237, 223, 0.68);
  background: rgba(255, 255, 255, 0.03);
  transition: color 180ms ease, background-color 180ms ease, transform 300ms ease;
}

.quote-refresh:hover {
  color: #fff6e9;
  background: rgba(255, 255, 255, 0.12);
  transform: rotate(42deg);
}

.quote-refresh svg {
  width: 12px;
  height: 12px;
}

.quote-card blockquote {
  position: relative;
  z-index: 1;
  min-height: 52px;
  margin: 18px 0 14px;
  color: #fff7eb;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.03em;
}

.quote-card blockquote.is-changing {
  animation: quote-change 400ms var(--ease-spring) both;
}

@keyframes quote-change {
  0% {
    opacity: 0;
    transform: translateY(5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.quote-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  color: rgba(251, 237, 223, 0.52);
  font-family: var(--font-display);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.quote-bottom b {
  color: rgba(255, 240, 223, 0.8);
  font-weight: 500;
}

.quote-flower {
  width: 57px;
  height: auto;
  color: rgba(246, 226, 207, 0.48);
  margin: -5px -2px -5px 0;
}

.anniversary-card {
  position: relative;
  min-height: 149px;
  padding: 20px 23px 16px;
  overflow: hidden;
  border: 1px solid rgba(174, 127, 93, 0.2);
  border-radius: 24px;
  background: linear-gradient(140deg, #f6e8d7, #f1dfcd);
}

.anniv-orbit {
  position: absolute;
  top: -35px;
  right: -30px;
  width: 145px;
  height: 145px;
  border: 1px solid rgba(165, 117, 81, 0.18);
  border-radius: 50%;
}

.anniv-orbit::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(165, 117, 81, 0.16);
  border-radius: 50%;
}

.anniv-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.anniv-top .eyebrow {
  color: rgba(134, 94, 66, 0.7);
  font-size: 7.5px;
}

.anniv-icon {
  width: 13px;
  height: 13px;
  color: rgba(141, 93, 62, 0.5);
}

.anniv-count {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 4px;
  color: #815a3f;
}

.anniv-count strong {
  font-family: var(--font-display);
  font-size: 43px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
}

.anniv-count span {
  font-size: 9px;
  letter-spacing: 0.08em;
}

.anniversary-card h3 {
  margin: 4px 0 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.anniversary-card p {
  margin: 2px 0 0;
  color: rgba(121, 87, 61, 0.68);
  font-size: 8.5px;
  letter-spacing: 0.04em;
}

.anniv-hearts {
  position: absolute;
  right: 23px;
  bottom: 18px;
  display: flex;
  gap: 3px;
  color: rgba(171, 96, 91, 0.34);
  font-size: 8px;
}

.anniv-hearts span:nth-child(2) {
  transform: translateY(-3px);
}

/* ---------- page headers ---------- */

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding: 43px 0 28px;
}

.page-title-group .eyebrow {
  margin-bottom: 14px;
}

.page-title-group h1 {
  margin: 0;
  color: var(--ink-deep);
  font-family: var(--font-display);
  font-size: clamp(43px, 4.3vw, 57px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.06em;
}

.page-title-group p {
  margin: 11px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.header-note {
  margin-left: 12px;
  color: var(--ink-faint);
  font-size: 10px;
}

.page-header .button {
  margin-bottom: 3px;
}

/* ---------- preference controls ---------- */

.pref-controls {
  padding: 17px 20px 14px;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: rgba(255, 250, 244, 0.6);
  box-shadow: 0 18px 40px -42px rgba(93, 53, 46, 0.5);
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.filter-label {
  flex: 0 0 auto;
  color: var(--ink-faint);
  font-size: 10px;
  letter-spacing: 0.11em;
  white-space: nowrap;
}

.segmented {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(91, 58, 51, 0.07);
  border-radius: 999px;
  background: #f1e5da;
}

.segmented button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 29px;
  padding: 5px 11px;
  border: 0;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 10.5px;
  line-height: 1;
  white-space: nowrap;
  background: transparent;
  transition: color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.segmented button:hover {
  color: var(--ink);
}

.segmented button.is-active {
  color: var(--ink-deep);
  background: #fffbf6;
  box-shadow: 0 3px 10px -5px rgba(87, 52, 43, 0.35);
}

.filter-avatar {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  margin-left: -3px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 7.5px;
  line-height: 1;
}

.filter-avatar--her {
  color: #84434a;
  background: #efd0cb;
}

.filter-avatar--me {
  color: #56614f;
  background: #dde2d4;
}

.filter-divider {
  width: 1px;
  height: 24px;
  margin: 0 1px;
  background: var(--line);
}

.mood-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.mood-dot--like {
  background: #bf7778;
}

.mood-dot--dislike {
  background: #b59a77;
}

.search-field {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 1 240px;
  min-width: 150px;
  height: 35px;
  margin-left: auto;
  padding: 0 11px;
  border: 1px solid rgba(91, 58, 51, 0.1);
  border-radius: 999px;
  color: var(--ink-faint);
  background: rgba(255, 252, 248, 0.7);
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.search-field:focus-within {
  border-color: rgba(184, 95, 101, 0.38);
  background: #fffbf6;
  box-shadow: 0 0 0 3px rgba(184, 95, 101, 0.07);
}

.search-field > svg {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
}

.search-field input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 7px;
  border: 0;
  outline: 0;
  color: var(--ink);
  font-size: 11px;
  background: transparent;
}

.search-field input::placeholder {
  color: var(--ink-faint);
}

.search-field input::-webkit-search-cancel-button {
  display: none;
}

.search-clear {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--ink-faint);
  background: rgba(91, 58, 51, 0.07);
}

.search-clear svg {
  width: 9px;
  height: 9px;
}

.category-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.category-filter button {
  min-height: 25px;
  padding: 4px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 9.5px;
  line-height: 1;
  background: transparent;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.category-filter button:hover {
  color: var(--ink-deep);
  border-color: var(--line);
  background: rgba(255, 251, 246, 0.7);
}

.category-filter button.is-active {
  color: var(--rose-deep);
  border-color: rgba(184, 95, 101, 0.17);
  background: var(--rose-wash);
}

.pref-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 19px 3px 13px;
}

.pref-meta p {
  margin: 0;
  color: var(--ink-faint);
  font-size: 9.5px;
  letter-spacing: 0.03em;
}

.pref-meta strong {
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
}

.meta-hint {
  opacity: 0.8;
}

/* ---------- preference cards ---------- */

.pref-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pref-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 235px;
  padding: 19px 20px 15px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: rgba(255, 251, 246, 0.8);
  box-shadow: 0 14px 38px -38px rgba(80, 47, 38, 0.5);
  animation: card-in 500ms var(--ease-spring) both;
  transition: transform 250ms var(--ease-spring), border-color 200ms ease, box-shadow 250ms ease, background-color 200ms ease;
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pref-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 2px;
  border-radius: 0 0 3px 3px;
  background: var(--owner-color, var(--rose));
  opacity: 0.72;
}

.pref-card[data-owner="her"] {
  --owner-color: #b9686d;
  --owner-wash: #f8e8e4;
}

.pref-card[data-owner="me"] {
  --owner-color: #849179;
  --owner-wash: #edf0e7;
}

.pref-card[data-owner="us"] {
  --owner-color: #b38a5c;
  --owner-wash: #f5ead9;
}

.pref-card:hover {
  border-color: rgba(125, 78, 66, 0.2);
  background: #fffbf6;
  box-shadow: 0 22px 48px -34px rgba(80, 47, 38, 0.38);
  transform: translateY(-4px);
}

.pref-card.is-dislike {
  background: rgba(247, 242, 235, 0.78);
  border-style: dashed;
}

.pref-card.is-dislike:hover {
  background: #fbf7f0;
}

.pref-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.owner-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--ink-soft);
  font-size: 9px;
  letter-spacing: 0.02em;
}

.owner-mini {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  border: 1px solid rgba(91, 58, 51, 0.07);
  border-radius: 50%;
  color: var(--owner-color);
  font-family: var(--font-display);
  font-size: 8px;
  background: var(--owner-wash);
}

.type-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  color: var(--rose-deep);
  font-size: 7.5px;
  letter-spacing: 0.04em;
  background: var(--rose-wash);
}

.type-pill svg {
  width: 8px;
  height: 8px;
}

.pref-card.is-dislike .type-pill {
  color: #8b6d52;
  background: #efe3d5;
}

.pref-card.is-dislike .type-pill svg {
  transform: rotate(45deg);
}

.pref-card-body {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 17px;
}

.pref-symbol {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 43px;
  height: 43px;
  border: 1px solid rgba(91, 58, 51, 0.06);
  border-radius: 50%;
  background: var(--owner-wash);
  font-size: 19px;
  line-height: 1;
}

.pref-card.is-dislike .pref-symbol {
  filter: saturate(0.55);
  opacity: 0.88;
}

.pref-card-text {
  min-width: 0;
}

.pref-card-text h3 {
  overflow: hidden;
  margin: 1px 0 0;
  color: var(--ink-deep);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pref-card.is-dislike .pref-card-text h3 {
  color: #5d4b45;
}

.pref-card-text p {
  display: -webkit-box;
  min-height: 43px;
  margin: 6px 0 0;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 11.5px;
  line-height: 1.85;
  letter-spacing: 0.005em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pref-card-text p.is-empty {
  color: var(--ink-faint);
  font-style: italic;
}

.pref-card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.category-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border: 1px solid rgba(91, 58, 51, 0.08);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 7.5px;
  line-height: 1.4;
  white-space: nowrap;
}

.category-tag::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--owner-color, var(--rose));
  opacity: 0.7;
}

.tag-item {
  overflow: hidden;
  max-width: 86px;
  color: var(--ink-faint);
  font-size: 7.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tag-item::before {
  content: "#";
  opacity: 0.58;
}

.tag-more {
  color: var(--ink-faint);
  font-size: 7.5px;
}

.card-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 2px;
  opacity: 0.88;
  transition: opacity 180ms ease;
}

.pref-card:hover .card-actions,
.pref-card:focus-within .card-actions {
  opacity: 1;
}

.card-action {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(91, 58, 51, 0.08);
  border-radius: 50%;
  color: var(--ink-soft);
  background: rgba(255, 252, 247, 0.74);
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.card-action:hover {
  color: var(--rose-deep);
  border-color: rgba(184, 95, 101, 0.16);
  background: var(--rose-wash);
}

.card-action--delete:hover {
  color: #93544f;
  border-color: rgba(147, 84, 79, 0.16);
  background: #f1e1d9;
}

.card-action svg {
  width: 12px;
  height: 12px;
}

/* ---------- empty states ---------- */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  margin-top: 4px;
  padding: 40px 24px;
  border: 1px dashed rgba(91, 58, 51, 0.17);
  border-radius: 22px;
  text-align: center;
  background: rgba(255, 252, 248, 0.37);
}

.empty-art {
  position: relative;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin-bottom: 20px;
  border: 1px solid rgba(184, 95, 101, 0.14);
  border-radius: 50%;
  color: var(--rose);
  background: var(--rose-wash);
}

.empty-art::before,
.empty-art::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(184, 95, 101, 0.1);
  border-radius: 50%;
}

.empty-art::before {
  inset: -9px;
}

.empty-art::after {
  inset: 12px;
}

.empty-art svg {
  width: 25px;
  height: 25px;
}

.empty-state h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.empty-state p {
  max-width: 330px;
  margin: 8px 0 18px;
  color: var(--ink-faint);
  font-size: 10.5px;
  line-height: 1.85;
}

.empty-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

/* ---------- timeline ---------- */

.story-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 158px;
  padding: 26px 152px 26px 31px;
  overflow: hidden;
  border: 1px solid rgba(135, 89, 71, 0.16);
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 0%, rgba(255, 249, 239, 0.5), transparent 35%),
    linear-gradient(135deg, #eddbcc, #e7cec0);
}

.story-banner-copy {
  position: relative;
  z-index: 1;
}

.story-since {
  color: rgba(116, 77, 60, 0.62);
  font-family: var(--font-display);
  font-size: 7.5px;
  letter-spacing: 0.2em;
}

.story-since b {
  font-weight: 500;
}

.story-banner-copy p {
  margin: 10px 0 0;
  color: #5a3e38;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.65;
  letter-spacing: -0.03em;
}

.story-banner-copy em {
  position: relative;
  color: var(--rose-deep);
}

.story-banner-copy em::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 1px;
  background: rgba(141, 74, 81, 0.35);
}

.story-banner-stat {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex: 0 0 auto;
  padding-right: 3px;
  text-align: right;
}

.story-banner-stat strong {
  color: var(--rose-deep);
  font-family: var(--font-display);
  font-size: 39px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}

.story-banner-stat span {
  margin-top: 5px;
  color: rgba(105, 72, 59, 0.67);
  font-size: 8.5px;
  letter-spacing: 0.03em;
}

.story-banner-stat i {
  position: absolute;
  top: -8px;
  right: -18px;
  color: rgba(156, 82, 80, 0.18);
  font-size: 31px;
  font-style: normal;
}

.story-banner-flower {
  position: absolute;
  right: 31px;
  bottom: -20px;
  width: 147px;
  height: 147px;
  color: rgba(119, 80, 62, 0.31);
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 37px auto 6px;
  padding: 2px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 19px;
  bottom: 30px;
  left: 127px;
  width: 1px;
  background: linear-gradient(180deg, rgba(184, 95, 101, 0.34), rgba(184, 95, 101, 0.11) 85%, transparent);
}

.memory-item {
  display: grid;
  grid-template-columns: 92px 30px minmax(0, 1fr);
  gap: 0 20px;
  align-items: start;
  margin-bottom: 26px;
  animation: card-in 550ms var(--ease-spring) both;
}

.memory-date {
  padding-top: 17px;
  text-align: right;
}

.memory-date span {
  display: block;
  color: var(--ink-faint);
  font-family: var(--font-display);
  font-size: 7.5px;
  letter-spacing: 0.14em;
}

.memory-date strong {
  display: block;
  margin-top: 3px;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.memory-node {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding-top: 23px;
}

.memory-dot {
  position: relative;
  display: block;
  width: 9px;
  height: 9px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 0 1px rgba(184, 95, 101, 0.35);
}

.memory-dot::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(184, 95, 101, 0.12);
  border-radius: 50%;
}

.memory-card {
  position: relative;
  padding: 21px 23px 21px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 251, 246, 0.78);
  box-shadow: 0 18px 44px -40px rgba(80, 47, 38, 0.46);
  transition: border-color 200ms ease, transform 240ms var(--ease-spring), box-shadow 240ms ease;
}

.memory-card:hover {
  border-color: rgba(125, 78, 66, 0.2);
  box-shadow: 0 23px 48px -34px rgba(80, 47, 38, 0.3);
  transform: translateX(3px);
}

.memory-inner {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.memory-emoji {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 43px;
  height: 43px;
  border: 1px solid rgba(184, 95, 101, 0.1);
  border-radius: 50%;
  background: var(--rose-wash);
  font-size: 18px;
}

.memory-copy {
  min-width: 0;
  padding-right: 35px;
}

.memory-copy h3 {
  margin: 2px 0 0;
  color: var(--ink-deep);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.025em;
}

.memory-copy p {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 11.5px;
  line-height: 1.9;
}

.memory-copy p.is-empty {
  color: var(--ink-faint);
  font-style: italic;
}

.memory-weekday {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
  color: var(--ink-faint);
  font-size: 7.5px;
  letter-spacing: 0.08em;
}

.memory-weekday::before {
  content: "";
  width: 13px;
  height: 1px;
  background: rgba(141, 74, 81, 0.3);
}

.memory-actions {
  position: absolute;
  top: 15px;
  right: 14px;
  display: flex;
  opacity: 0.72;
  transition: opacity 180ms ease;
}

.memory-card:hover .memory-actions,
.memory-card:focus-within .memory-actions {
  opacity: 1;
}

.memory-number {
  position: absolute;
  right: 22px;
  bottom: 11px;
  color: rgba(121, 86, 73, 0.1);
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.06em;
}

.empty-state--timeline,
.empty-state--wish {
  margin-top: 0;
}

/* ---------- wishes ---------- */

.wish-banner {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  min-height: 190px;
  padding: 28px 37px;
  overflow: hidden;
  border: 1px solid rgba(137, 92, 72, 0.17);
  border-radius: 26px;
  background:
    radial-gradient(circle at 4% 90%, rgba(255, 251, 242, 0.6), transparent 32%),
    linear-gradient(135deg, #f2e3d4, #edd6c8);
}

.wish-banner::before {
  content: "";
  position: absolute;
  right: 13%;
  top: -82px;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(160, 112, 84, 0.14);
  border-radius: 50%;
}

.wish-banner::after {
  content: "";
  position: absolute;
  left: 36%;
  bottom: -42%;
  width: 260px;
  height: 260px;
  border: 1px dashed rgba(160, 112, 84, 0.12);
  border-radius: 50%;
}

.wish-ring {
  position: relative;
  z-index: 1;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(var(--rose) calc(var(--progress) * 1%), rgba(255, 250, 241, 0.55) 0);
  box-shadow: 0 12px 30px -23px rgba(100, 57, 49, 0.55);
}

.wish-ring::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(160, 112, 84, 0.17);
  border-radius: 50%;
}

.wish-ring-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #f6eadc;
}

.wish-ring-inner strong {
  color: var(--rose-deep);
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}

.wish-ring-inner span {
  margin-top: 5px;
  color: rgba(116, 77, 60, 0.68);
  font-size: 8px;
  letter-spacing: 0.04em;
}

.wish-ring-inner b {
  font-weight: 600;
}

.wish-banner-copy {
  position: relative;
  z-index: 1;
}

.wish-kicker {
  color: rgba(116, 77, 60, 0.62);
  font-family: var(--font-display);
  font-size: 7.5px;
  letter-spacing: 0.2em;
}

.wish-banner-copy h2 {
  margin: 9px 0 0;
  color: #563b35;
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.045em;
}

.wish-banner-copy em {
  color: var(--rose-deep);
}

.wish-banner-copy p {
  margin: 9px 0 0;
  color: rgba(105, 72, 59, 0.63);
  font-size: 9.5px;
  letter-spacing: 0.03em;
}

.wish-stamp {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 103px;
  height: 103px;
  border: 1px dashed rgba(141, 74, 81, 0.36);
  border-radius: 50%;
  color: rgba(141, 74, 81, 0.72);
  transform: rotate(8deg);
}

.wish-stamp span {
  font-family: var(--font-display);
  font-size: 7px;
  letter-spacing: 0.17em;
}

.wish-stamp svg {
  width: 21px;
  height: 21px;
  margin: 6px 0 5px;
  stroke-width: 1.2;
}

.wish-stamp small {
  font-size: 8px;
  letter-spacing: 0.06em;
}

.wish-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 25px 2px 15px;
}

.segmented--wish button {
  min-height: 30px;
  padding: 5px 13px;
}

.wish-tip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  color: var(--ink-faint);
  font-size: 9px;
  letter-spacing: 0.03em;
}

.wish-tip svg {
  width: 12px;
  height: 12px;
  color: rgba(119, 131, 109, 0.7);
}

.wish-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.wish-card {
  position: relative;
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: start;
  min-height: 132px;
  padding: 21px 21px 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 251, 246, 0.8);
  box-shadow: 0 14px 35px -40px rgba(80, 47, 38, 0.5);
  animation: card-in 500ms var(--ease-spring) both;
  transition: border-color 200ms ease, transform 240ms var(--ease-spring), background-color 200ms ease;
}

.wish-card:hover {
  border-color: rgba(125, 78, 66, 0.18);
  transform: translateY(-3px);
}

.wish-card.is-done {
  background: rgba(246, 242, 233, 0.7);
  border-style: dashed;
}

.wish-check {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  margin-top: 2px;
  padding: 0;
  border: 1px solid rgba(141, 74, 81, 0.27);
  border-radius: 50%;
  color: transparent;
  background: transparent;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.wish-check:hover {
  border-color: var(--rose);
  transform: scale(1.08);
}

.wish-check svg {
  width: 12px;
  height: 12px;
  stroke-width: 2;
}

.wish-card.is-done .wish-check {
  color: #fff9f0;
  border-color: var(--gold);
  background: var(--gold);
}

.wish-content {
  min-width: 0;
}

.wish-content h3 {
  margin: 1px 0 0;
  color: var(--ink-deep);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.02em;
  transition: color 180ms ease;
}

.wish-card.is-done .wish-content h3 {
  color: var(--ink-faint);
  text-decoration: line-through;
  text-decoration-color: rgba(141, 74, 81, 0.24);
}

.wish-content p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.8;
}

.wish-card.is-done .wish-content p {
  color: var(--ink-faint);
}

.wish-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  color: var(--ink-faint);
  font-size: 8px;
  letter-spacing: 0.025em;
}

.wish-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.wish-meta svg {
  width: 10px;
  height: 10px;
}

.wish-done-label {
  color: #a68355;
}

.wish-actions {
  display: flex;
  opacity: 0.72;
  transition: opacity 180ms ease;
}

.wish-card:hover .wish-actions,
.wish-card:focus-within .wish-actions {
  opacity: 1;
}

.wish-number {
  position: absolute;
  right: 18px;
  bottom: 9px;
  color: rgba(121, 86, 73, 0.09);
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
}

.wish-card.is-done .wish-number {
  color: rgba(167, 133, 84, 0.13);
}

/* ---------- footer & mobile nav ---------- */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 37px 52px 30px;
  color: var(--ink-faint);
  font-family: var(--font-display);
  font-size: 7.5px;
  letter-spacing: 0.15em;
  text-align: center;
}

.footer-heart {
  color: rgba(184, 95, 101, 0.43);
  font-size: 9px;
}

.mobile-nav {
  display: none;
}

/* ---------- modals ---------- */

.modal-root:empty {
  display: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
  overflow-y: auto;
  background: rgba(58, 38, 34, 0.35);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  opacity: 0;
  transition: opacity 220ms ease;
}

.modal-backdrop.is-open {
  opacity: 1;
}

.modal {
  position: relative;
  width: min(598px, 100%);
  max-height: min(88vh, 850px);
  margin: auto;
  padding: 28px 30px 25px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid rgba(110, 71, 58, 0.16);
  border-radius: 27px;
  background:
    radial-gradient(circle at 100% 0, rgba(240, 215, 201, 0.46), transparent 28%),
    #fffaf4;
  box-shadow: 0 35px 90px -35px rgba(51, 30, 26, 0.48);
  opacity: 0;
  transform: translateY(17px) scale(0.985);
  transition: opacity 240ms var(--ease-spring), transform 300ms var(--ease-spring);
}

.modal-backdrop.is-open .modal {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.modal::-webkit-scrollbar {
  width: 6px;
}

.modal::-webkit-scrollbar-thumb {
  border-radius: 6px;
  background: rgba(91, 58, 51, 0.15);
}

.modal--small {
  width: min(440px, 100%);
}

.modal--settings {
  width: min(645px, 100%);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.modal-header .eyebrow {
  margin-bottom: 8px;
  font-size: 8px;
}

.modal-title {
  margin: 0;
  color: var(--ink-deep);
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.045em;
}

.modal-subtitle {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 10.5px;
  line-height: 1.8;
}

.modal-close {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: -3px -5px 0 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-soft);
  background: rgba(255, 252, 247, 0.65);
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.modal-close:hover {
  color: var(--ink-deep);
  background: #f2e4d8;
  transform: rotate(90deg);
}

.modal-close svg {
  width: 13px;
  height: 13px;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-section-label {
  margin: 0 0 7px;
  color: var(--ink-faint);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.field > label,
.field-label {
  color: var(--ink-soft);
  font-size: 9.5px;
  letter-spacing: 0.055em;
}

.field > label b {
  color: var(--rose);
  font-weight: 500;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 42px;
  padding: 10px 13px;
  border: 1px solid rgba(91, 58, 51, 0.13);
  border-radius: 11px;
  outline: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.6;
  background: rgba(255, 253, 249, 0.9);
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.field textarea {
  min-height: 89px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #b7a59b;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(184, 95, 101, 0.45);
  background: #fffdfa;
  box-shadow: 0 0 0 3px rgba(184, 95, 101, 0.075);
}

.field input.is-invalid,
.field textarea.is-invalid {
  border-color: rgba(154, 78, 80, 0.55);
}

.field-hint {
  color: var(--ink-faint);
  font-size: 8px;
  letter-spacing: 0.015em;
}

.field-hint.is-error {
  color: #9a4e50;
}

.field-row-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.field-row-inline > label {
  color: var(--ink-soft);
  font-size: 9.5px;
}

.type-choice,
.owner-choice,
.mood-choice {
  display: grid;
  gap: 8px;
}

.type-choice {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.owner-choice {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mood-choice {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.choice-option {
  position: relative;
  display: block;
  cursor: pointer;
}

.choice-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.choice-content {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 47px;
  padding: 8px 12px;
  border: 1px solid rgba(91, 58, 51, 0.12);
  border-radius: 12px;
  color: var(--ink-soft);
  background: rgba(255, 253, 249, 0.62);
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.choice-option input:checked + .choice-content {
  border-color: rgba(184, 95, 101, 0.48);
  color: var(--ink-deep);
  background: var(--rose-wash);
  box-shadow: inset 0 0 0 1px rgba(184, 95, 101, 0.1);
}

.choice-option input:focus-visible + .choice-content {
  outline: 2px solid rgba(141, 74, 81, 0.48);
  outline-offset: 2px;
}

.choice-option--dislike input:checked + .choice-content {
  border-color: rgba(161, 129, 98, 0.4);
  background: #f3eadf;
}

.choice-option--owner .choice-content {
  justify-content: center;
  min-height: 43px;
  padding: 7px;
  font-size: 10.5px;
}

.choice-symbol {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: var(--rose-deep);
  background: rgba(255, 251, 244, 0.7);
  font-family: var(--font-display);
  font-size: 10px;
}

.choice-symbol svg {
  width: 12px;
  height: 12px;
}

.choice-option--dislike .choice-symbol {
  color: #8b6c51;
}

.choice-label {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.choice-label strong {
  font-size: 10.5px;
  font-weight: 500;
}

.choice-label small {
  margin-top: 2px;
  color: var(--ink-faint);
  font-size: 8px;
}

.mood-choice .choice-option {
  text-align: center;
}

.mood-choice .choice-content {
  justify-content: center;
  min-height: 40px;
  padding: 5px;
  font-size: 18px;
  border-radius: 10px;
}

.modal-section {
  padding-top: 17px;
  border-top: 1px dashed var(--line);
}

.modal-section-title {
  margin: 0 0 12px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.015em;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 7px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.modal-footer .modal-footer-hint {
  margin-right: auto;
  color: var(--ink-faint);
  font-size: 8px;
}

.modal-footer .button {
  min-height: 39px;
  padding: 9px 17px;
  font-size: 11px;
}

.settings-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 19px;
  padding: 14px 16px;
  border: 1px solid rgba(91, 58, 51, 0.09);
  border-radius: 15px;
  background: rgba(248, 238, 226, 0.55);
}

.settings-summary .avatar-stack {
  padding-left: 5px;
}

.settings-summary .avatar {
  width: 34px;
  height: 34px;
  font-size: 11px;
  border-color: #fbf4ed;
}

.settings-summary-copy {
  display: flex;
  flex-direction: column;
}

.settings-summary-copy strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
}

.settings-summary-copy small {
  margin-top: 2px;
  color: var(--ink-faint);
  font-size: 8px;
  letter-spacing: 0.02em;
}

.data-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.data-button {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 47px;
  padding: 9px 11px;
  border: 1px solid rgba(91, 58, 51, 0.11);
  border-radius: 11px;
  color: var(--ink-soft);
  text-align: left;
  background: rgba(255, 253, 249, 0.69);
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.data-button:hover {
  color: var(--ink-deep);
  border-color: rgba(184, 95, 101, 0.3);
  background: #fffbf6;
}

.data-button svg {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  color: var(--rose-deep);
}

.data-button span {
  display: flex;
  flex-direction: column;
  font-size: 9px;
  line-height: 1.4;
}

.data-button small {
  margin-top: 2px;
  color: var(--ink-faint);
  font-size: 7px;
  letter-spacing: 0;
}

.data-button--danger svg {
  color: #98635a;
}

.data-note {
  margin: 10px 0 0;
  color: var(--ink-faint);
  font-size: 8px;
  line-height: 1.7;
}

.demo-clear {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  padding: 0;
  border: 0;
  color: var(--ink-faint);
  font-size: 8px;
  text-decoration: underline;
  text-underline-offset: 3px;
  background: transparent;
}

.demo-clear:hover {
  color: var(--rose-deep);
}

.settings-hint {
  margin: 0;
  color: var(--ink-faint);
  font-size: 8px;
  line-height: 1.8;
}

.confirm-copy {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11.5px;
  line-height: 1.9;
}

.confirm-copy b {
  color: var(--ink);
  font-weight: 500;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.confirm-actions .button {
  min-height: 39px;
  padding: 9px 17px;
  font-size: 11px;
}

/* ---------- toast ---------- */

.toast-root {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 700;
  display: flex;
  flex-direction: column;
  gap: 9px;
  align-items: flex-end;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: min(360px, calc(100vw - 36px));
  padding: 11px 16px;
  border: 1px solid rgba(255, 243, 230, 0.1);
  border-radius: 13px;
  color: #fff8ee;
  font-size: 10.5px;
  line-height: 1.6;
  background: rgba(63, 45, 41, 0.94);
  box-shadow: 0 16px 35px -18px rgba(45, 28, 24, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: toast-in 320ms var(--ease-spring) both;
}

.toast.is-leaving {
  animation: toast-out 220ms ease both;
}

.toast-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  color: #4d3a34;
  background: #d8c3a3;
}

.toast.is-error .toast-icon {
  background: #d59b91;
}

.toast-icon svg {
  width: 10px;
  height: 10px;
  stroke-width: 2;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
  }
}

/* ---------- responsive ---------- */

@media (max-width: 1240px) {
  :root {
    --sidebar-width: 236px;
  }

  .sidebar {
    padding-right: 20px;
    padding-left: 20px;
  }

  .nav-link.is-active::before {
    left: -20px;
  }

  .topbar,
  .page-wrap,
  .site-footer {
    padding-right: 38px;
    padding-left: 38px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(350px, 0.8fr);
    gap: 15px;
  }

  .hero-title {
    font-size: clamp(51px, 5vw, 66px);
  }

  .hero-visual {
    min-height: 486px;
  }

  .polaroid {
    width: 145px;
  }

  .days-stamp {
    width: 105px;
    height: 105px;
  }

  .home-grid {
    grid-template-columns: minmax(0, 1.36fr) minmax(290px, 0.8fr);
  }

  .pref-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-cell {
    gap: 10px;
    padding-right: 15px;
    padding-left: 15px;
  }

  .stat-copy small {
    font-size: 7.5px;
  }
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 360px;
  }

  .hero-lead .desktop-break {
    display: none;
  }

  .hero-title {
    font-size: clamp(48px, 4.7vw, 59px);
  }

  .hero-visual {
    min-height: 450px;
  }

  .art-frame {
    margin-right: 9%;
  }

  .polaroid {
    bottom: 12px;
    left: -2px;
    width: 137px;
    min-height: 105px;
  }

  .days-stamp {
    right: 0;
    bottom: 16px;
    width: 96px;
    height: 96px;
  }

  .days-stamp strong {
    font-size: 29px;
  }

  .art-handwriting {
    right: 0;
  }

  .home-grid {
    grid-template-columns: minmax(0, 1.22fr) minmax(275px, 0.82fr);
  }

  .recent-panel {
    padding-right: 23px;
    padding-left: 23px;
  }

  .filter-row {
    flex-wrap: wrap;
  }

  .search-field {
    flex-basis: 100%;
    order: 9;
    width: 100%;
    margin-left: 0;
    margin-top: 3px;
  }

  .story-banner {
    padding-right: 128px;
  }

  .story-banner-copy p {
    font-size: 20px;
  }

  .wish-banner {
    gap: 22px;
    padding-right: 29px;
    padding-left: 29px;
  }

  .wish-banner-copy h2 {
    font-size: 24px;
  }
}

@media (max-width: 960px) {
  :root {
    --sidebar-width: 0px;
  }

  .sidebar {
    display: none;
  }

  .app {
    display: block;
  }

  .main {
    grid-column: auto;
  }

  .topbar {
    height: 74px;
    padding: 0 28px;
  }

  .topbar-mobile-brand {
    display: flex;
  }

  .topbar-date {
    margin-left: auto;
    margin-right: 18px;
  }

  .topbar-actions {
    gap: 11px;
  }

  .local-note {
    display: none;
  }

  .page-wrap {
    max-width: 900px;
    min-height: calc(100vh - 155px);
    padding: 0 28px;
  }

  .site-footer {
    max-width: 900px;
    padding: 31px 28px 100px;
  }

  .mobile-nav {
    position: fixed;
    right: 18px;
    bottom: 14px;
    left: 18px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 64px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 248, 240, 0.12);
    border-radius: 22px;
    background: rgba(67, 46, 41, 0.94);
    box-shadow: 0 20px 45px -20px rgba(59, 37, 33, 0.55);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
  }

  .mobile-nav a {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 50px;
    border-radius: 14px;
    color: rgba(255, 243, 231, 0.53);
    font-size: 8px;
    letter-spacing: 0.03em;
    transition: color 180ms ease, background-color 180ms ease;
  }

  .mobile-nav a svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.65;
  }

  .mobile-nav a.is-active {
    color: #fff5e8;
    background: rgba(255, 245, 233, 0.09);
  }

  .mobile-nav a.is-active::after {
    content: "";
    position: absolute;
    bottom: 4px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #dba89b;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
    min-height: 520px;
    padding-top: 29px;
  }

  .hero-title {
    font-size: clamp(49px, 7vw, 64px);
  }

  .hero-visual {
    min-height: 432px;
  }

  .art-frame {
    width: min(78%, 322px);
    margin-right: 9%;
  }

  .polaroid {
    bottom: 4px;
    width: 130px;
    padding-top: 21px;
    padding-bottom: 11px;
  }

  .polaroid-script {
    font-size: 17px;
  }

  .days-stamp {
    width: 90px;
    height: 90px;
    bottom: 13px;
  }

  .days-stamp strong {
    font-size: 27px;
  }

  .art-handwriting {
    display: none;
  }

  .hero-actions {
    gap: 16px;
  }

  .home-grid {
    grid-template-columns: 1fr;
  }

  .home-side {
    grid-template-columns: 1.2fr 0.8fr;
    grid-template-rows: auto;
  }

  .quote-card,
  .anniversary-card {
    min-height: 186px;
  }

  .stats-ribbon {
    margin-top: 1px;
  }

  .pref-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-header {
    padding-top: 34px;
  }

  .wish-grid {
    gap: 13px;
  }
}

@media (max-width: 760px) {
  .topbar {
    padding: 0 22px;
  }

  .topbar-date {
    display: none;
  }

  .topbar-actions {
    margin-left: auto;
  }

  .page-wrap {
    max-width: 680px;
    padding: 0 22px;
  }

  .site-footer {
    max-width: 680px;
    padding-right: 22px;
    padding-left: 22px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 10px;
    padding: 30px 0 34px;
  }

  .hero::before {
    top: 35%;
    left: 46%;
    width: 300px;
    height: 300px;
  }

  .hero-copy {
    padding-left: 0;
  }

  .hero-title {
    font-size: clamp(50px, 12.5vw, 68px);
    margin-top: 19px;
  }

  .hero-lead {
    max-width: 420px;
    font-size: 12.5px;
  }

  .hero-actions {
    margin-top: 23px;
  }

  .since-line {
    margin-top: 27px;
  }

  .hero-visual {
    width: min(100%, 400px);
    min-height: 425px;
    margin-top: 16px;
  }

  .art-frame {
    width: min(74%, 300px);
    margin-right: 13%;
  }

  .art-orbit {
    right: 7%;
    width: 76%;
  }

  .hero-visual::before {
    right: 7%;
    width: 79%;
  }

  .polaroid {
    bottom: 9px;
    left: 2%;
    width: 128px;
  }

  .days-stamp {
    right: 4%;
    bottom: 20px;
    width: 90px;
    height: 90px;
  }

  .stats-ribbon {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-cell:nth-child(2) {
    border-right: 0;
  }

  .stat-cell:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .stat-cell {
    padding: 16px 12px;
  }

  .stat-copy small {
    font-size: 7.5px;
  }

  .home-grid {
    gap: 15px;
    margin-top: 20px;
  }

  .recent-panel {
    padding: 22px 20px 12px;
  }

  .panel-heading h2 {
    font-size: 23px;
  }

  .home-side {
    grid-template-columns: 1fr;
  }

  .quote-card,
  .anniversary-card {
    min-height: auto;
  }

  .quote-card {
    padding: 23px 23px 17px;
  }

  .quote-card blockquote {
    font-size: 17px;
  }

  .page-header {
    align-items: flex-start;
    padding: 29px 0 22px;
  }

  .page-title-group h1 {
    font-size: 43px;
  }

  .page-title-group p {
    max-width: 270px;
    font-size: 11px;
    line-height: 1.8;
  }

  .header-note {
    display: block;
    margin: 4px 0 0;
  }

  .page-header .button {
    min-height: 40px;
    padding: 9px 13px;
    font-size: 10.5px;
  }

  .pref-controls {
    padding: 14px 15px 12px;
  }

  .filter-row {
    gap: 9px;
  }

  .filter-divider {
    display: none;
  }

  .segmented button {
    padding-right: 9px;
    padding-left: 9px;
    font-size: 10px;
  }

  .search-field {
    flex-basis: 100%;
  }

  .category-row {
    align-items: flex-start;
    gap: 8px;
  }

  .category-filter {
    gap: 3px;
  }

  .category-filter button {
    padding-right: 8px;
    padding-left: 8px;
  }

  .pref-meta {
    padding-top: 15px;
  }

  .meta-hint {
    display: none;
  }

  .pref-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .pref-card {
    min-height: 209px;
  }

  .story-banner {
    align-items: flex-start;
    min-height: 170px;
    padding: 23px 24px;
  }

  .story-banner-copy p {
    font-size: 18px;
  }

  .story-banner-stat {
    position: absolute;
    right: 25px;
    bottom: 20px;
  }

  .story-banner-stat strong {
    font-size: 28px;
  }

  .story-banner-stat span {
    font-size: 7.5px;
  }

  .story-banner-flower {
    right: 14px;
    bottom: -26px;
    width: 110px;
    height: 110px;
  }

  .timeline {
    margin-top: 27px;
  }

  .timeline::before {
    left: 9px;
    top: 12px;
    bottom: 18px;
  }

  .memory-item {
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 0 12px;
    margin-bottom: 18px;
  }

  .memory-date {
    display: none;
  }

  .memory-node {
    grid-column: 1;
    padding-top: 22px;
  }

  .memory-card {
    grid-column: 2;
    padding: 18px 17px;
  }

  .memory-inner {
    gap: 11px;
  }

  .memory-emoji {
    width: 37px;
    height: 37px;
    font-size: 16px;
  }

  .memory-copy {
    padding-right: 26px;
  }

  .memory-copy h3 {
    font-size: 18px;
  }

  .memory-actions {
    top: 9px;
    right: 8px;
  }

  .story-banner-stat i {
    display: none;
  }

  .wish-banner {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    min-height: 165px;
    padding: 22px;
    gap: 18px;
  }

  .wish-ring {
    width: 97px;
    height: 97px;
  }

  .wish-ring-inner {
    width: 79px;
    height: 79px;
  }

  .wish-ring-inner strong {
    font-size: 29px;
  }

  .wish-ring-inner span {
    font-size: 7px;
  }

  .wish-banner-copy h2 {
    font-size: 20px;
    line-height: 1.5;
  }

  .wish-banner-copy p {
    display: none;
  }

  .wish-stamp {
    display: none;
  }

  .wish-toolbar {
    padding-top: 19px;
  }

  .wish-tip {
    display: none;
  }

  .wish-grid {
    grid-template-columns: 1fr;
  }

  .wish-card {
    min-height: 116px;
    padding: 18px 17px 16px;
  }

  .modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .modal {
    width: 100%;
    max-height: 91vh;
    padding: 24px 22px calc(20px + env(safe-area-inset-bottom));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 25px 25px 0 0;
    transform: translateY(28px) scale(1);
  }

  .modal--small,
  .modal--settings {
    width: 100%;
  }

  .modal-title {
    font-size: 25px;
  }

  .data-actions {
    grid-template-columns: 1fr;
  }

  .data-button {
    min-height: 43px;
  }

  .data-button span {
    flex-direction: row;
    align-items: baseline;
    gap: 5px;
  }

  .data-button small {
    margin-top: 0;
  }

  .toast-root {
    right: 16px;
    bottom: 88px;
    left: 16px;
    align-items: center;
  }

  .toast {
    width: fit-content;
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .filter-label {
    display: none;
  }

  .filter-row {
    gap: 9px 7px;
  }

  .category-row {
    align-items: flex-start;
  }

  .search-field {
    margin-top: 1px;
  }
}

@media (max-width: 480px) {
  .topbar {
    height: 68px;
    padding: 0 17px;
  }

  .page-wrap {
    padding: 0 17px;
  }

  .site-footer {
    gap: 7px;
    padding: 25px 17px 94px;
    font-size: 6.5px;
    letter-spacing: 0.09em;
  }

  .hero {
    padding-top: 23px;
  }

  .hero-title {
    margin-top: 16px;
    font-size: clamp(43px, 12.7vw, 55px);
    line-height: 1.23;
  }

  .hero-eyebrow {
    gap: 8px;
    font-size: 8px;
    letter-spacing: 0.15em;
  }

  .eyebrow-cn {
    font-size: 8px;
  }

  .hero-lead {
    font-size: 11.5px;
    line-height: 1.9;
  }

  .hero-actions {
    flex-wrap: wrap;
    gap: 8px 17px;
  }

  .button {
    min-height: 41px;
    padding: 9px 16px;
    font-size: 11px;
  }

  .hero-actions .button--text {
    font-size: 11px;
  }

  .hero-visual {
    min-height: 376px;
  }

  .art-frame {
    width: 73%;
    margin-right: 13%;
  }

  .art-caption {
    font-size: 5.5px;
    letter-spacing: 0.1em;
  }

  .polaroid {
    bottom: 3px;
    left: 1%;
    width: 113px;
    min-height: 94px;
    padding: 19px 12px 10px;
  }

  .polaroid-script {
    font-size: 15px;
  }

  .polaroid-cn {
    font-size: 8px;
  }

  .polaroid-date {
    margin-top: 9px;
    font-size: 5.5px;
  }

  .days-stamp {
    right: 1%;
    bottom: 13px;
    width: 82px;
    height: 82px;
  }

  .days-stamp strong {
    font-size: 25px;
  }

  .days-stamp span {
    font-size: 8px;
  }

  .stat-number {
    font-size: 27px;
  }

  .stat-cell {
    gap: 9px;
    padding: 14px 10px;
  }

  .stat-copy strong {
    font-size: 9.5px;
  }

  .stat-copy small {
    font-size: 7px;
  }

  .stat-arrow {
    display: none;
  }

  .panel-heading h2 {
    font-size: 21px;
  }

  .panel-heading .text-link {
    font-size: 9px;
  }

  .recent-panel {
    padding: 19px 16px 9px;
  }

  .recent-item {
    grid-template-columns: 35px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 13px 0;
  }

  .recent-emoji {
    width: 35px;
    height: 35px;
    font-size: 15px;
  }

  .recent-title {
    font-size: 13.5px;
  }

  .recent-arrow {
    display: none;
  }

  .recent-type {
    padding: 3px 7px;
    font-size: 7.5px;
  }

  .quote-card {
    border-radius: 21px;
  }

  .quote-card blockquote {
    font-size: 16px;
  }

  .page-header {
    gap: 13px;
    padding-top: 24px;
  }

  .page-title-group .eyebrow {
    margin-bottom: 10px;
    font-size: 8px;
    letter-spacing: 0.14em;
  }

  .page-title-group h1 {
    font-size: 38px;
  }

  .page-title-group p {
    margin-top: 8px;
    font-size: 10.5px;
  }

  .page-header .button {
    gap: 5px;
    min-height: 37px;
    padding: 8px 11px;
    font-size: 9.5px;
  }

  .page-header .button svg {
    width: 12px;
    height: 12px;
  }

  .pref-controls {
    padding: 12px;
  }

  .filter-label {
    width: 24px;
    font-size: 8.5px;
  }

  .segmented button {
    min-height: 27px;
    padding: 4px 8px;
    font-size: 9px;
  }

  .segmented {
    padding: 2px;
  }

  .filter-avatar {
    width: 15px;
    height: 15px;
    font-size: 6.5px;
  }

  .category-row {
    margin-top: 10px;
    padding-top: 10px;
  }

  .category-filter button {
    min-height: 23px;
    padding: 3px 7px;
    font-size: 8.5px;
  }

  .pref-meta {
    padding: 13px 2px 10px;
  }

  .pref-meta p {
    font-size: 8.5px;
  }

  .pref-card {
    min-height: 213px;
    padding: 17px 17px 13px;
  }

  .pref-card-body {
    margin-top: 14px;
  }

  .pref-symbol {
    width: 40px;
    height: 40px;
    font-size: 17px;
  }

  .pref-card-text h3 {
    font-size: 17px;
  }

  .pref-card-text p {
    font-size: 10px;
    line-height: 1.8;
  }

  .story-banner {
    min-height: 178px;
    padding: 20px 20px;
  }

  .story-banner-copy p {
    font-size: 17px;
    line-height: 1.7;
  }

  .story-banner-stat {
    right: 20px;
    bottom: 17px;
  }

  .story-banner-flower {
    width: 90px;
    height: 90px;
    opacity: 0.8;
  }

  .memory-card {
    padding: 16px 14px;
    border-radius: 17px;
  }

  .memory-inner {
    gap: 9px;
  }

  .memory-copy h3 {
    font-size: 17px;
  }

  .memory-copy p {
    font-size: 9.5px;
    line-height: 1.8;
  }

  .memory-emoji {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }

  .wish-banner {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 15px;
    padding: 20px;
  }

  .wish-ring {
    width: 84px;
    height: 84px;
  }

  .wish-ring-inner {
    width: 68px;
    height: 68px;
  }

  .wish-ring-inner strong {
    font-size: 25px;
  }

  .wish-banner-copy h2 {
    font-size: 19px;
  }

  .wish-banner-copy {
    display: flex;
    flex-direction: column;
  }

  .wish-kicker {
    order: -1;
  }

  .wish-card {
    grid-template-columns: 24px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 16px 14px;
  }

  .wish-check {
    width: 23px;
    height: 23px;
  }

  .wish-content h3 {
    font-size: 17px;
  }

  .modal {
    padding: 21px 18px calc(17px + env(safe-area-inset-bottom));
  }

  .modal-title {
    font-size: 23px;
  }

  .modal-subtitle {
    font-size: 9.5px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .type-choice,
  .owner-choice {
    gap: 6px;
  }

  .choice-content {
    min-height: 44px;
    padding: 7px 9px;
  }

  .choice-label strong {
    font-size: 10px;
  }

  .choice-label small {
    font-size: 7.5px;
  }

  .mood-choice {
    gap: 5px;
  }

  .mood-choice .choice-content {
    min-height: 36px;
    font-size: 16px;
  }

  .modal-footer {
    gap: 7px;
  }

  .modal-footer .modal-footer-hint {
    display: none;
  }

  .modal-footer .button {
    flex: 1;
    padding-right: 10px;
    padding-left: 10px;
  }

  .settings-summary {
    padding: 12px;
  }

  .confirmation-title {
    margin-top: 2px;
  }
}

@media (max-height: 820px) and (min-width: 961px) {
  .sidebar-decoration {
    display: none;
  }

  .sidebar-verse {
    margin-top: auto;
  }
}

@media (max-height: 720px) and (min-width: 961px) {
  .sidebar-verse {
    display: none;
  }

  .sidebar-bottom {
    margin-top: auto;
  }
}

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