:root {
    color-scheme: light;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: #f5e8dc;
}

body {
    min-width: 320px;
    min-height: 100%;
    margin: 0;
    overflow-x: hidden;
    background: #f5e8dc;
    color: #3e2f39;
    font-family: ui-rounded, "SF Pro Rounded", "Avenir Next", "Segoe UI", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

button {
    color: inherit;
    font: inherit;
}

button:focus-visible,
[tabindex="-1"]:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--accent) 72%, white);
    outline-offset: 4px;
}

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

[hidden] {
    display: none !important;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.app-shell {
    --ink: #3e2f39;
    --muted: #74636a;
    --faint: #927d83;
    --accent: #ad5e70;
    --accent-strong: #8d465a;
    --accent-soft: #f2d6d2;
    --surface: rgba(255, 250, 247, 0.63);
    --surface-strong: rgba(255, 252, 249, 0.82);
    --border: rgba(255, 255, 255, 0.64);
    --shadow: rgba(98, 57, 58, 0.16);
    --scene-bg: #f5e8dc;
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    background: var(--scene-bg);
    color: var(--ink);
    transition: background-color 900ms ease, color 700ms ease;
}

.app-shell[data-theme="night"] {
    --ink: #f7edf6;
    --muted: #c6b8ce;
    --faint: #a79ab8;
    --accent: #ffb8c9;
    --accent-strong: #ffd0dc;
    --accent-soft: rgba(255, 184, 201, 0.14);
    --surface: rgba(22, 25, 59, 0.63);
    --surface-strong: rgba(28, 30, 68, 0.84);
    --border: rgba(255, 255, 255, 0.17);
    --shadow: rgba(1, 3, 20, 0.42);
    --scene-bg: #141735;
}

.scene,
.scene-vignette {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.scene {
    z-index: 0;
    opacity: 1;
    transition: opacity 1200ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.scene-day {
    background:
        radial-gradient(circle at 79% 13%, rgba(255, 251, 214, 0.68) 0 4%, transparent 19%),
        linear-gradient(160deg, #8dbdc5 0%, #b8d7d2 34%, #f4c8a4 72%, #f5dcbf 100%);
}

.scene-night {
    opacity: 0;
    background:
        radial-gradient(ellipse at 50% 112%, rgba(114, 76, 143, 0.36), transparent 48%),
        radial-gradient(ellipse at 88% 10%, rgba(65, 62, 132, 0.46), transparent 42%),
        linear-gradient(164deg, #09122f 0%, #17183f 48%, #2d214d 100%);
}

.app-shell[data-theme="night"] .scene-day {
    opacity: 0;
}

.app-shell[data-theme="night"] .scene-night {
    opacity: 1;
}

.scene-vignette {
    z-index: 1;
    background: radial-gradient(ellipse at center, transparent 35%, rgba(40, 19, 35, 0.12) 100%);
    opacity: 0.58;
}

.app-shell[data-theme="night"] .scene-vignette {
    background: radial-gradient(ellipse at center, transparent 28%, rgba(0, 0, 12, 0.31) 100%);
    opacity: 0.8;
}

.day-haze {
    position: absolute;
    border-radius: 50%;
    filter: blur(18px);
    opacity: 0.45;
}

.day-haze--one {
    top: 18%;
    left: -8%;
    width: 48vw;
    height: 24vw;
    min-width: 300px;
    min-height: 160px;
    background: rgba(255, 252, 232, 0.55);
}

.day-haze--two {
    right: -15%;
    bottom: -3%;
    width: 60vw;
    height: 31vw;
    min-width: 380px;
    min-height: 190px;
    background: rgba(255, 199, 166, 0.35);
}

.sun-system {
    position: absolute;
    top: 7vh;
    right: 7vw;
    width: 190px;
    height: 190px;
    transform: translateZ(0);
}

.sun-rays,
.sun {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.sun-rays--outer {
    width: 300px;
    height: 300px;
    opacity: 0.54;
    background: repeating-conic-gradient(
        from 7deg,
        rgba(255, 251, 207, 0.04) 0deg 11deg,
        rgba(255, 241, 183, 0.31) 12deg 14deg,
        rgba(255, 251, 207, 0.04) 15deg 30deg
    );
    filter: blur(5px);
    animation: ray-breathe 12s ease-in-out infinite;
}

.sun-rays--inner {
    width: 228px;
    height: 228px;
    opacity: 0.7;
    background: repeating-conic-gradient(
        from 2deg,
        rgba(255, 251, 215, 0.06) 0deg 20deg,
        rgba(255, 249, 200, 0.36) 21deg 23deg,
        rgba(255, 251, 215, 0.06) 24deg 43deg
    );
    filter: blur(2px);
    animation: ray-breathe 8s ease-in-out -3s infinite reverse;
}

.sun {
    width: 112px;
    height: 112px;
    background:
        radial-gradient(circle at 33% 29%, #fffce2 0 9%, transparent 28%),
        radial-gradient(circle at 55% 56%, #ffe39d 0%, #ffc76f 51%, #f3a85f 100%);
    box-shadow:
        0 0 0 8px rgba(255, 224, 164, 0.13),
        0 0 35px 16px rgba(255, 217, 145, 0.43),
        0 0 90px 30px rgba(255, 239, 196, 0.25);
}

.sun::before,
.sun::after {
    position: absolute;
    content: "";
    border-radius: 50%;
}

.sun::before {
    top: 25%;
    left: 24%;
    width: 14px;
    height: 9px;
    background: rgba(255, 249, 210, 0.7);
    filter: blur(3px);
}

.sun::after {
    right: 18%;
    bottom: 23%;
    width: 22px;
    height: 11px;
    background: rgba(224, 143, 91, 0.2);
    filter: blur(5px);
}

.cloud {
    position: absolute;
    width: 190px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.23);
    box-shadow: 0 13px 24px rgba(119, 129, 145, 0.08);
    filter: blur(0.2px);
    opacity: 0.73;
    animation: cloud-drift-one 48s linear infinite;
}

.cloud::before,
.cloud::after,
.cloud span {
    position: absolute;
    display: block;
    content: "";
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    background: inherit;
}

.cloud::before {
    bottom: 8px;
    left: 27px;
    width: 67px;
    height: 59px;
}

.cloud::after {
    right: 27px;
    bottom: 4px;
    width: 86px;
    height: 71px;
}

.cloud span {
    right: 71px;
    bottom: 7px;
    width: 54px;
    height: 48px;
}

.cloud--one {
    top: 19%;
    left: -5%;
}

.cloud--two {
    top: 38%;
    right: -6%;
    width: 150px;
    transform: scale(0.78);
    opacity: 0.47;
    animation-name: cloud-drift-two;
    animation-duration: 58s;
    animation-delay: -21s;
}

.cloud--three {
    top: 57%;
    left: 20%;
    width: 96px;
    height: 24px;
    transform: scale(0.52);
    opacity: 0.3;
    animation-name: cloud-drift-three;
    animation-duration: 68s;
    animation-delay: -37s;
}

.day-particles {
    position: absolute;
    inset: 0;
}

.day-particle {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 248, 219, 0.7);
    box-shadow: 0 0 12px rgba(255, 242, 181, 0.72);
    animation: particle-float 13s ease-in-out infinite;
}

.day-particle--one { top: 33%; left: 16%; animation-delay: -3s; }
.day-particle--two { top: 62%; left: 8%; width: 3px; height: 3px; animation-delay: -10s; }
.day-particle--three { top: 47%; left: 74%; width: 4px; height: 4px; animation-delay: -7s; }
.day-particle--four { top: 76%; left: 82%; width: 3px; height: 3px; animation-delay: -1s; }
.day-particle--five { top: 72%; left: 38%; width: 4px; height: 4px; animation-delay: -5s; }
.day-particle--six { top: 16%; left: 47%; width: 3px; height: 3px; animation-delay: -9s; }

.night-haze {
    position: absolute;
    border-radius: 50%;
    filter: blur(28px);
    opacity: 0.66;
}

.night-haze--one {
    top: 35%;
    left: -17%;
    width: 80vw;
    height: 48vw;
    background: rgba(57, 96, 153, 0.17);
}

.night-haze--two {
    right: -15%;
    bottom: -5%;
    width: 72vw;
    height: 52vw;
    background: rgba(131, 67, 130, 0.22);
}

.moon-system {
    position: absolute;
    top: 8vh;
    right: 10vw;
    width: 160px;
    height: 160px;
}

.moon-halo,
.moon {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.moon-halo {
    width: 290px;
    height: 290px;
    background: radial-gradient(circle, rgba(213, 221, 255, 0.17) 0 11%, rgba(176, 186, 246, 0.08) 28%, transparent 67%);
}

.moon {
    width: 94px;
    height: 94px;
    overflow: hidden;
    background: radial-gradient(circle at 34% 30%, #fffdf2 0 8%, #e7e8ef 44%, #b9c5dc 100%);
    box-shadow: 0 0 24px 5px rgba(218, 224, 255, 0.24), 0 0 80px 15px rgba(159, 169, 243, 0.14);
}

.moon::before,
.moon::after {
    position: absolute;
    content: "";
    border-radius: 50%;
    background: rgba(132, 145, 178, 0.16);
}

.moon::before {
    top: 23px;
    left: 25px;
    width: 14px;
    height: 10px;
    box-shadow: 25px 18px 0 4px rgba(135, 143, 175, 0.13), -8px 27px 0 1px rgba(135, 143, 175, 0.12);
}

.moon::after {
    top: 12px;
    right: 12px;
    width: 19px;
    height: 19px;
}

.stars {
    position: absolute;
    inset: 0;
}

.star {
    position: absolute;
    top: var(--y);
    left: var(--x);
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    background: rgba(246, 240, 255, 0.9);
    box-shadow: 0 0 8px 1px rgba(203, 210, 255, 0.56);
    animation: star-twinkle var(--twinkle) ease-in-out infinite;
    animation-delay: var(--delay);
}

.star--1 { --x: 7%; --y: 16%; --size: 3px; --twinkle: 4.8s; --delay: -2.1s; }
.star--2 { --x: 18%; --y: 28%; --size: 2px; --twinkle: 6.2s; --delay: -5s; }
.star--3 { --x: 29%; --y: 12%; --size: 4px; --twinkle: 5.3s; --delay: -1.3s; }
.star--4 { --x: 42%; --y: 23%; --size: 2px; --twinkle: 7.1s; --delay: -3.7s; }
.star--5 { --x: 53%; --y: 8%; --size: 3px; --twinkle: 4.1s; --delay: -2.8s; }
.star--6 { --x: 65%; --y: 28%; --size: 2px; --twinkle: 5.7s; --delay: -4.2s; }
.star--7 { --x: 75%; --y: 17%; --size: 3px; --twinkle: 6.8s; --delay: -1.9s; }
.star--8 { --x: 91%; --y: 29%; --size: 2px; --twinkle: 4.7s; --delay: -0.6s; }
.star--9 { --x: 13%; --y: 45%; --size: 2px; --twinkle: 7.3s; --delay: -6.1s; }
.star--10 { --x: 24%; --y: 54%; --size: 3px; --twinkle: 5.9s; --delay: -3.4s; }
.star--11 { --x: 37%; --y: 39%; --size: 2px; --twinkle: 4.5s; --delay: -0.8s; }
.star--12 { --x: 49%; --y: 51%; --size: 4px; --twinkle: 6.5s; --delay: -4.9s; }
.star--13 { --x: 61%; --y: 43%; --size: 2px; --twinkle: 5.2s; --delay: -1.2s; }
.star--14 { --x: 72%; --y: 56%; --size: 3px; --twinkle: 7.4s; --delay: -5.6s; }
.star--15 { --x: 84%; --y: 46%; --size: 2px; --twinkle: 4.9s; --delay: -2.3s; }
.star--16 { --x: 96%; --y: 61%; --size: 3px; --twinkle: 6.1s; --delay: -3.8s; }
.star--17 { --x: 5%; --y: 74%; --size: 2px; --twinkle: 5.5s; --delay: -2.7s; }
.star--18 { --x: 18%; --y: 82%; --size: 3px; --twinkle: 7s; --delay: -5.1s; }
.star--19 { --x: 44%; --y: 72%; --size: 2px; --twinkle: 4.4s; --delay: -0.9s; }
.star--20 { --x: 66%; --y: 83%; --size: 3px; --twinkle: 6.7s; --delay: -4.4s; }
.star--21 { --x: 80%; --y: 72%; --size: 2px; --twinkle: 5.8s; --delay: -1.7s; }
.star--22 { --x: 93%; --y: 89%; --size: 3px; --twinkle: 7.6s; --delay: -6.3s; }

.shooting-star {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fffdfd;
    box-shadow: 0 0 8px 2px rgba(255, 235, 248, 0.9);
    opacity: 0;
    transform: rotate(-27deg);
}

.shooting-star::after {
    position: absolute;
    top: 1px;
    right: 2px;
    width: 150px;
    height: 2px;
    content: "";
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(255, 220, 241, 0.08) 18%, rgba(255, 244, 251, 0.72));
    filter: blur(0.45px);
    transform-origin: right center;
}

.shooting-star--one {
    top: 17%;
    left: 88%;
    animation: shooting-star-one 28s linear 5s infinite;
}

.shooting-star--two {
    top: 36%;
    left: 68%;
    animation: shooting-star-two 34s linear 17s infinite;
}

.site-header,
.main-content,
.site-footer {
    position: relative;
    z-index: 2;
}

.site-header {
    z-index: 4;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(100% - 32px, 980px);
    margin: 0 auto;
    padding: calc(18px + env(safe-area-inset-top)) 0 0;
}

.brand-button,
.menu-button,
.nav-link,
.favorite-button,
.primary-button {
    border: 0;
    cursor: pointer;
}

.brand-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 5px 0;
    background: transparent;
    color: var(--ink);
    font-size: 0.93rem;
    font-weight: 720;
    letter-spacing: 0.01em;
    transition: opacity 180ms ease, transform 180ms ease;
}

.brand-button:hover {
    opacity: 0.78;
}

.brand-button:active {
    transform: scale(0.98);
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    border: 1px solid color-mix(in srgb, var(--border) 90%, var(--accent));
    border-radius: 50%;
    background: color-mix(in srgb, var(--surface) 78%, transparent);
    color: var(--accent);
    font-size: 0.9rem;
    box-shadow: 0 4px 14px rgba(78, 44, 56, 0.06);
}

.brand-copy span {
    color: var(--accent-strong);
}

.menu-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 8px 1px 8px 12px;
    background: transparent;
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: opacity 180ms ease, transform 180ms ease;
}

.menu-button:active {
    transform: scale(0.96);
}

.menu-icon {
    display: grid;
    gap: 4px;
    width: 22px;
}

.menu-icon i {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform 220ms ease, opacity 220ms ease;
}

.app-shell.nav-open .menu-icon i:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.app-shell.nav-open .menu-icon i:nth-child(2) {
    opacity: 0;
}

.app-shell.nav-open .menu-icon i:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.primary-nav {
    position: absolute;
    top: calc(75px + env(safe-area-inset-top));
    right: 0;
    display: grid;
    width: min(310px, calc(100vw - 32px));
    gap: 5px;
    padding: 9px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: color-mix(in srgb, var(--surface-strong) 94%, transparent);
    box-shadow: 0 22px 55px var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(22px) saturate(1.25);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-9px) scale(0.98);
    transform-origin: top right;
    visibility: hidden;
    transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
}

.app-shell.nav-open .primary-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    visibility: visible;
}

.nav-link {
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 16px;
    background: transparent;
    color: var(--muted);
    font-size: 0.93rem;
    font-weight: 680;
    text-align: left;
    transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
    background: color-mix(in srgb, var(--accent-soft) 75%, transparent);
    color: var(--ink);
}

.nav-link:active {
    transform: scale(0.98);
}

.nav-link.is-active {
    background: color-mix(in srgb, var(--accent-soft) 85%, transparent);
    color: var(--accent-strong);
}

.main-content {
    width: min(calc(100% - 32px), 760px);
    min-height: calc(100svh - 130px);
    margin: 0 auto;
    padding: clamp(58px, 11vh, 112px) 0 34px;
}

.view {
    width: 100%;
    animation: view-enter 520ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.view.is-leaving {
    animation: view-leave 150ms ease both;
    pointer-events: none;
}

.view.is-entering {
    animation: view-enter 500ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.hero-block {
    margin: 0 auto 29px;
    text-align: center;
}

.hero-block--compact {
    margin-bottom: 27px;
}

.eyebrow,
.card-kicker,
.letter-card__topline {
    margin: 0 0 11px;
    color: var(--accent-strong);
    font-size: 0.7rem;
    font-weight: 780;
    letter-spacing: 0.16em;
    line-height: 1.4;
    text-transform: uppercase;
}

.eyebrow {
    color: color-mix(in srgb, var(--accent-strong) 83%, var(--ink));
}

h1,
h2,
p {
    overflow-wrap: anywhere;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    max-width: 740px;
    margin-bottom: 16px;
    color: var(--ink);
    font-size: clamp(2.42rem, 10vw, 4.55rem);
    font-weight: 680;
    letter-spacing: -0.065em;
    line-height: 0.98;
    text-wrap: balance;
}

.hero-name {
    color: var(--accent-strong);
}

.greeting-emoji,
.heading-emoji {
    display: inline-block;
    margin-left: 2px;
    font-size: 0.55em;
    letter-spacing: 0;
    vertical-align: 0.17em;
    filter: drop-shadow(0 4px 8px rgba(96, 49, 65, 0.12));
}

.date-line {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.96rem;
    font-weight: 560;
    letter-spacing: 0.01em;
}

.view-intro {
    max-width: 30rem;
    margin: 0 auto;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.6;
}

.content-card,
.letter-card {
    border: 1px solid var(--border);
    background: linear-gradient(142deg, var(--surface-strong), var(--surface));
    box-shadow: 0 26px 75px var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.32);
    backdrop-filter: blur(20px) saturate(1.22);
}

.content-card {
    position: relative;
    overflow: hidden;
    padding: 23px 22px 20px;
    border-radius: 31px;
}

.daily-card {
    animation: card-rise 720ms cubic-bezier(0.22, 0.61, 0.36, 1) 80ms both;
}

.daily-card::before,
.comfort-card::before {
    position: absolute;
    top: -84px;
    right: -58px;
    width: 180px;
    height: 180px;
    content: "";
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--accent-soft) 72%, transparent), transparent 68%);
    pointer-events: none;
}

.card-topline {
    display: flex;
    align-items: center;
    min-height: 21px;
    margin-bottom: 18px;
}

.card-spark {
    margin-right: 8px;
    color: var(--accent);
    font-size: 0.9rem;
}

.card-kicker {
    margin-bottom: 0;
    color: var(--accent-strong);
    font-size: 0.67rem;
}

.card-date-dot {
    width: 5px;
    height: 5px;
    margin-left: auto;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent-soft) 75%, transparent);
}

.content-card h2,
.letter-card h2 {
    max-width: 29rem;
    margin-bottom: 19px;
    color: var(--ink);
    font-size: clamp(1.48rem, 5vw, 2.1rem);
    font-weight: 680;
    letter-spacing: -0.04em;
    line-height: 1.06;
    text-wrap: balance;
}

.message-body {
    color: var(--ink);
    font-family: ui-rounded, "SF Pro Rounded", "Avenir Next", "Segoe UI", system-ui, sans-serif;
    font-size: clamp(1.05rem, 3.7vw, 1.21rem);
    font-weight: 480;
    letter-spacing: -0.008em;
    line-height: 1.68;
}

.message-body p {
    margin-bottom: 1em;
}

.message-body p:last-child {
    margin-bottom: 0;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 25px;
    padding-top: 17px;
    border-top: 1px solid color-mix(in srgb, var(--border) 88%, var(--accent));
}

.author-line {
    min-height: 1.3em;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 630;
}

.favorite-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    gap: 8px;
    min-width: 88px;
    min-height: 48px;
    padding: 8px 13px;
    border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface-strong) 65%, transparent);
    color: var(--muted);
    font-size: 0.83rem;
    font-weight: 720;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.favorite-button:hover {
    border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
    color: var(--accent-strong);
}

.favorite-button:active {
    transform: scale(0.95);
}

.favorite-button.is-favorited {
    border-color: color-mix(in srgb, var(--accent) 62%, var(--border));
    background: color-mix(in srgb, var(--accent-soft) 88%, transparent);
    color: var(--accent-strong);
}

.heart-symbol {
    display: inline-block;
    color: currentColor;
    font-family: Georgia, serif;
    font-size: 1.55rem;
    font-weight: 400;
    line-height: 0.8;
    transition: transform 180ms ease;
}

.favorite-button.is-bumping .heart-symbol {
    animation: heart-pop 460ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.favorite-button--quiet {
    min-width: 80px;
}

.small-note {
    margin: 18px 9px 0;
    color: var(--faint);
    font-size: 0.74rem;
    line-height: 1.5;
    text-align: center;
}

.favorites-meta {
    min-height: 1.4em;
    margin: -4px 0 15px;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 650;
    text-align: center;
}

.favorites-list {
    display: grid;
    gap: 13px;
}

.favorite-card {
    position: relative;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 25px;
    background: color-mix(in srgb, var(--surface) 90%, transparent);
    box-shadow: 0 14px 38px color-mix(in srgb, var(--shadow) 68%, transparent);
    backdrop-filter: blur(15px);
}

.favorite-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 13px;
}

.favorite-card__type {
    margin: 0 0 7px;
    color: var(--accent-strong);
    font-size: 0.65rem;
    font-weight: 790;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.favorite-card h2 {
    max-width: 31rem;
    margin-bottom: 0;
    color: var(--ink);
    font-size: 1.23rem;
    font-weight: 680;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.remove-button {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    margin: -4px -4px 0 0;
    border: 1px solid color-mix(in srgb, var(--border) 72%, var(--accent));
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.remove-button:hover {
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.remove-button:active {
    transform: scale(0.91);
}

.favorite-card .message-body {
    font-size: 1rem;
    line-height: 1.6;
}

.favorite-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 12px;
    margin: 16px 0 0;
    padding-top: 13px;
    border-top: 1px solid color-mix(in srgb, var(--border) 80%, var(--accent));
    color: var(--muted);
    font-size: 0.73rem;
    font-weight: 610;
}

.favorite-card__meta span + span::before {
    margin-right: 12px;
    content: "·";
    color: var(--accent);
}

.empty-state {
    padding: 44px 22px 46px;
    border: 1px dashed color-mix(in srgb, var(--accent) 32%, var(--border));
    border-radius: 28px;
    background: color-mix(in srgb, var(--surface) 70%, transparent);
    text-align: center;
}

.empty-state__heart {
    display: block;
    margin-bottom: 12px;
    color: var(--accent);
    font-family: Georgia, serif;
    font-size: 2.2rem;
    line-height: 1;
}

.empty-state p {
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 680;
}

.empty-state small {
    color: var(--muted);
    font-size: 0.78rem;
}

.comfort-card {
    padding: 30px 23px 24px;
    text-align: center;
    background: linear-gradient(145deg, color-mix(in srgb, var(--surface-strong) 95%, #fff1d7), var(--surface));
}

.comfort-card__orb {
    display: grid;
    place-items: center;
    width: 66px;
    height: 66px;
    margin: 0 auto 20px;
    border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
    border-radius: 50%;
    background: radial-gradient(circle at 33% 30%, rgba(255, 251, 223, 0.8), color-mix(in srgb, var(--accent-soft) 85%, transparent));
    box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent-soft) 34%, transparent), 0 12px 30px color-mix(in srgb, var(--shadow) 54%, transparent);
    color: var(--accent-strong);
    font-size: 1.35rem;
}

.comfort-card .card-kicker {
    margin-bottom: 11px;
}

.comfort-card h2 {
    max-width: 25rem;
    margin-right: auto;
    margin-left: auto;
}

.message-body--comfort {
    max-width: 35rem;
    margin: 0 auto;
}

.comfort-card > .author-line {
    margin-top: 19px;
}

.comfort-card.is-changing .message-body {
    animation: message-swap 340ms ease both;
}

.comfort-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 25px;
}

.primary-button {
    min-height: 50px;
    padding: 12px 19px;
    border-radius: 999px;
    background: var(--accent-strong);
    color: #fff8f5;
    box-shadow: 0 12px 23px color-mix(in srgb, var(--accent-strong) 26%, transparent);
    font-size: 0.9rem;
    font-weight: 740;
    transition: filter 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.app-shell[data-theme="night"] .primary-button {
    color: #2b1730;
}

.primary-button:hover {
    filter: brightness(1.07);
    box-shadow: 0 14px 27px color-mix(in srgb, var(--accent-strong) 34%, transparent);
}

.primary-button:active {
    transform: translateY(1px) scale(0.97);
}

.letter-card {
    position: relative;
    overflow: hidden;
    padding: 32px 24px 30px;
    border-radius: 30px;
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--surface-strong) 96%, #fff7ed), var(--surface)),
        repeating-linear-gradient(0deg, transparent 0 30px, rgba(168, 102, 101, 0.04) 31px 32px);
}

.letter-card::before {
    position: absolute;
    top: -95px;
    right: -90px;
    width: 240px;
    height: 240px;
    content: "";
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--accent-soft) 68%, transparent), transparent 68%);
}

.letter-card__seal {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 23px;
    border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--border));
    border-radius: 50%;
    background: color-mix(in srgb, var(--accent-soft) 72%, transparent);
    color: var(--accent-strong);
    font-size: 1rem;
}

.letter-card__topline {
    margin-bottom: 10px;
}

.letter-card h2 {
    position: relative;
    margin-bottom: 23px;
}

.letter-card__line {
    width: 100%;
    height: 1px;
    margin-top: 27px;
    background: color-mix(in srgb, var(--accent) 20%, var(--border));
}

.letter-card__signoff {
    margin: 20px 0 0;
    color: var(--muted);
    font-family: "Segoe Print", "Bradley Hand", cursive;
    font-size: 0.95rem;
    line-height: 1.6;
}

.letter-card__signoff span {
    color: var(--accent-strong);
    font-size: 1.16rem;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 58px;
    padding: 0 20px calc(16px + env(safe-area-inset-bottom));
    color: var(--faint);
    font-size: 0.68rem;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: lowercase;
}

.footer-dot {
    color: var(--accent);
    font-size: 0.9rem;
}

@media (min-width: 700px) {
    .site-header {
        width: min(100% - 64px, 980px);
    }

    .main-content {
        width: min(calc(100% - 64px), 760px);
        padding-top: clamp(70px, 12vh, 128px);
    }

    .content-card {
        padding: 30px 31px 26px;
        border-radius: 34px;
    }

    .letter-card {
        padding: 40px 40px 36px;
        border-radius: 34px;
    }

    .comfort-card {
        padding: 37px 35px 31px;
    }

    .favorite-card {
        padding: 23px 25px;
    }
}

@media (max-width: 370px) {
    .site-header {
        width: min(100% - 24px, 980px);
    }

    .menu-button__label {
        display: none;
    }

    .main-content {
        width: min(calc(100% - 24px), 760px);
    }

    .content-card,
    .letter-card {
        padding-right: 18px;
        padding-left: 18px;
    }

    .card-footer {
        align-items: flex-end;
    }

    .favorite-button__text {
        display: none;
    }

    .favorite-button {
        min-width: 48px;
        padding-right: 11px;
        padding-left: 11px;
    }
}

@keyframes ray-breathe {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg) scale(0.96); opacity: 0.6; }
    50% { transform: translate(-50%, -50%) rotate(9deg) scale(1.04); opacity: 0.84; }
}

@keyframes cloud-drift-one {
    0% { transform: translate3d(-5vw, 0, 0); }
    50% { transform: translate3d(14vw, 9px, 0); }
    100% { transform: translate3d(-5vw, 0, 0); }
}

@keyframes cloud-drift-two {
    0% { transform: translate3d(4vw, 0, 0) scale(0.78); }
    50% { transform: translate3d(-18vw, -7px, 0) scale(0.78); }
    100% { transform: translate3d(4vw, 0, 0) scale(0.78); }
}

@keyframes cloud-drift-three {
    0% { transform: translate3d(2vw, 0, 0) scale(0.52); }
    50% { transform: translate3d(17vw, 6px, 0) scale(0.52); }
    100% { transform: translate3d(2vw, 0, 0) scale(0.52); }
}

@keyframes particle-float {
    0%, 100% { transform: translate3d(0, 0, 0); opacity: 0.28; }
    50% { transform: translate3d(12px, -18px, 0); opacity: 0.82; }
}

@keyframes star-twinkle {
    0%, 100% { opacity: 0.36; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.16); }
}

@keyframes shooting-star-one {
    0%, 5%, 100% { opacity: 0; transform: translate3d(0, 0, 0) rotate(-27deg); }
    7% { opacity: 0.94; }
    16% { opacity: 0; transform: translate3d(-48vw, 34vh, 0) rotate(-27deg); }
}

@keyframes shooting-star-two {
    0%, 7%, 100% { opacity: 0; transform: translate3d(0, 0, 0) rotate(-27deg) scale(0.76); }
    9% { opacity: 0.78; }
    18% { opacity: 0; transform: translate3d(-36vw, 27vh, 0) rotate(-27deg) scale(0.76); }
}

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

@keyframes view-leave {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-5px); }
}

@keyframes card-rise {
    from { opacity: 0; transform: translateY(18px) scale(0.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes heart-pop {
    0% { transform: scale(1); }
    42% { transform: scale(1.42) rotate(-7deg); }
    75% { transform: scale(0.9) rotate(3deg); }
    100% { transform: scale(1); }
}

@keyframes message-swap {
    from { opacity: 0.2; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

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

    .shooting-star {
        opacity: 0 !important;
        animation: none !important;
    }

    .cloud,
    .sun-rays,
    .day-particle,
    .star {
        animation: none !important;
    }
}
