:root {
    --ink: #2a1725;
    --muted: #765b68;
    --paper: #fff6ee;
    --panel: rgba(255, 246, 238, 0.88);
    --panel-strong: rgba(255, 250, 246, 0.96);
    --rose: #b7154f;
    --rose-soft: #f7d8e2;
    --blush: #f4a7b9;
    --coral: #d96a58;
    --gold: #bd8730;
    --sage: #607c6b;
    --plum: #4a1735;
    --wine: #762043;
    --line: rgba(91, 41, 58, 0.18);
    --shadow: 0 22px 70px rgba(63, 20, 42, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    touch-action: manipulation;
}

html {
    scroll-behavior: smooth;
    background: #f8d7dc;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--ink);
    font-family: "Noto Serif SC", "Nunito", sans-serif;
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 245, 214, 0.7), transparent 30%),
        radial-gradient(circle at 80% 12%, rgba(238, 180, 216, 0.56), transparent 34%),
        radial-gradient(circle at 78% 70%, rgba(198, 166, 232, 0.28), transparent 35%),
        linear-gradient(180deg, #f7cfd8 0%, #efb7c8 28%, #f1d0bd 62%, #fff5ee 100%),
        #f8d7dc;
}

a {
    color: inherit;
}

.page-bg {
    position: fixed;
    inset: 0;
    z-index: -3;
    background: url("./image/global/baby.jpg") center 38% / cover no-repeat;
}

.page-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 18%, rgba(255, 255, 255, 0.16), transparent 30%),
        linear-gradient(90deg, rgba(255, 246, 238, 0.95) 0%, rgba(255, 232, 234, 0.82) 46%, rgba(141, 47, 82, 0.2) 100%),
        linear-gradient(180deg, rgba(126, 33, 69, 0.16) 0%, rgba(238, 148, 171, 0.16) 42%, rgba(255, 245, 238, 0.9) 100%);
}

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

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

.star {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(185, 29, 83, 0.36);
    animation: drift 9s linear infinite;
}

.petal {
    position: absolute;
    top: -40px;
    width: 14px;
    height: 22px;
    border-radius: 12px 12px 12px 3px;
    background: linear-gradient(145deg, rgba(255, 221, 230, 0.96), rgba(225, 77, 119, 0.58));
    box-shadow: 0 10px 28px rgba(185, 29, 83, 0.2);
    opacity: 0;
    animation: petalFall 14s linear infinite;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 18px 0;
}

.brand,
.site-nav {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 249, 244, 0.74);
    border: 1px solid var(--line);
    box-shadow: 0 12px 34px rgba(51, 27, 38, 0.1);
    backdrop-filter: blur(14px);
}

.brand {
    gap: 10px;
    min-height: 46px;
    padding: 7px 14px 7px 8px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
}

.brand-mark {
    display: inline-grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 6px;
    color: #fff;
    background: var(--rose);
    font-family: "Nunito", sans-serif;
    font-weight: 800;
}

.site-nav {
    gap: 4px;
    padding: 5px;
    border-radius: 8px;
}

.site-nav a {
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    color: var(--muted);
    transition: background 0.2s ease, color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--rose);
    background: rgba(185, 29, 83, 0.09);
}

main {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.hero {
    min-height: calc(100vh - 82px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    align-items: center;
    gap: 52px;
    padding: 30px 0 64px;
}

.hero-copy {
    max-width: 720px;
}

.eyebrow {
    font-family: "Nunito", sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    color: var(--rose);
    text-transform: uppercase;
}

.hero h1 {
    max-width: 760px;
    margin-top: 18px;
    font-size: clamp(48px, 8vw, 96px);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: 0;
}

.hero-text {
    max-width: 620px;
    margin-top: 26px;
    color: #4f3f47;
    font-size: clamp(16px, 1.9vw, 20px);
    line-height: 1.8;
}

.love-note {
    max-width: 560px;
    margin-top: 22px;
    padding: 16px 18px;
    border-left: 3px solid var(--rose);
    color: #5c3542;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 14px 38px rgba(185, 29, 83, 0.08);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.love-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    max-width: 620px;
    margin-top: 24px;
}

.love-metrics div {
    min-height: 84px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 249, 244, 0.7);
    box-shadow: 0 12px 34px rgba(51, 27, 38, 0.08);
    backdrop-filter: blur(10px);
}

.love-metrics dt {
    color: var(--muted);
    font-size: 12px;
}

.love-metrics dd {
    margin-top: 8px;
    color: var(--ink);
    font-family: "Nunito", "Noto Serif SC", sans-serif;
    font-size: 18px;
    font-weight: 800;
}

.primary-link,
.secondary-link,
.countdown-card a {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 12px 18px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-link {
    color: #fff;
    background: var(--rose);
    box-shadow: 0 14px 32px rgba(185, 29, 83, 0.26);
}

.secondary-link {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
}

.primary-link:hover,
.secondary-link:hover,
.countdown-card a:hover,
.route-card:hover {
    transform: translateY(-2px);
}

.today-panel {
    position: relative;
    align-self: stretch;
    min-height: 560px;
    display: grid;
    align-items: end;
}

.today-photo {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.today-photo::before {
    content: "";
    position: absolute;
    inset: 12px;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 7px;
    pointer-events: none;
}

.today-photo::after {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0;
    background: linear-gradient(180deg, transparent 20%, rgba(37, 25, 35, 0.72) 100%);
}

.today-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-ribbon {
    position: absolute;
    top: 22px;
    right: -38px;
    z-index: 3;
    width: 180px;
    padding: 9px 0;
    transform: rotate(36deg);
    color: #fff;
    background: rgba(185, 29, 83, 0.86);
    box-shadow: 0 10px 24px rgba(51, 27, 38, 0.22);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.today-card {
    position: relative;
    z-index: 4;
    margin: 18px;
    padding: 24px;
    border-radius: 8px;
    color: #fff;
    background: rgba(37, 25, 35, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
}

.today-label,
.today-unit {
    display: block;
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
}

.today-card strong {
    display: block;
    margin: 4px 0;
    font-family: "Nunito", sans-serif;
    font-size: clamp(74px, 12vw, 118px);
    line-height: 0.96;
    font-weight: 800;
}

.today-card p {
    margin-top: 18px;
    color: #fff4e8;
    line-height: 1.7;
}

.romance-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: -28px 0 34px;
}

.romance-strip div {
    min-height: 118px;
    padding: 20px;
    border: 1px solid rgba(185, 29, 83, 0.14);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 230, 237, 0.64)),
        rgba(255, 249, 244, 0.78);
    box-shadow: 0 16px 44px rgba(185, 29, 83, 0.09);
    backdrop-filter: blur(12px);
}

.romance-strip span {
    color: var(--rose);
    font-family: "Nunito", sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.romance-strip p {
    margin-top: 12px;
    color: #543d45;
    line-height: 1.75;
}

.countdown-section,
.archive-section {
    padding: 72px 0;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.section-heading h2 {
    margin-top: 8px;
    font-size: clamp(30px, 5vw, 54px);
    line-height: 1.15;
}

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

.countdown-card,
.route-card {
    border-radius: 8px;
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: 0 16px 44px rgba(51, 27, 38, 0.1);
    backdrop-filter: blur(14px);
}

.countdown-card {
    display: flex;
    min-height: 330px;
    flex-direction: column;
    padding: 22px;
    position: relative;
    overflow: hidden;
}

.countdown-card::after {
    content: "";
    position: absolute;
    inset: auto -40px -70px auto;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244, 167, 185, 0.28), transparent 68%);
    pointer-events: none;
}

.countdown-card.featured {
    color: #fff;
    background:
        linear-gradient(145deg, rgba(118, 35, 64, 0.94), rgba(185, 29, 83, 0.88)),
        var(--rose);
    border-color: rgba(255, 255, 255, 0.2);
}

.countdown-card > * {
    position: relative;
    z-index: 1;
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 28px;
    font-family: "Nunito", sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--muted);
    text-transform: uppercase;
}

.featured .card-top {
    color: rgba(255, 255, 255, 0.72);
}

.card-top b {
    color: var(--rose);
}

.featured .card-top b {
    color: #ffe7b0;
}

.countdown-card h3 {
    font-size: 25px;
    line-height: 1.25;
}

.countdown-card p {
    margin-top: 12px;
    color: var(--muted);
    line-height: 1.7;
}

.featured p {
    color: rgba(255, 255, 255, 0.8);
}

.time-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: auto;
    padding-top: 24px;
}

.time-row span {
    min-height: 64px;
    padding: 10px;
    border-radius: 8px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid var(--line);
    font-size: 13px;
}

.featured .time-row span {
    color: rgba(255, 255, 255, 0.74);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.time-row b {
    display: block;
    color: var(--ink);
    font-family: "Nunito", sans-serif;
    font-size: 26px;
    line-height: 1.1;
}

.featured .time-row b {
    color: #fff;
}

.progress-track {
    height: 8px;
    margin-top: 18px;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(91, 60, 71, 0.12);
}

.featured .progress-track {
    background: rgba(255, 255, 255, 0.18);
}

.progress-track i {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #f093fb, #f5576c, #ffd140);
    transition: width 0.35s ease;
}

.featured .progress-track i {
    background: linear-gradient(90deg, #ffeaa7, #fdcb6e, #fab1a0);
}

.countdown-card a {
    margin-top: 16px;
    color: var(--rose);
    background: #fff;
}

.route-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.route-card {
    min-height: 150px;
    padding: 20px;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    position: relative;
    overflow: hidden;
}

.route-card::before {
    content: "";
    position: absolute;
    left: 20px;
    right: 20px;
    top: 58px;
    height: 1px;
    background: linear-gradient(90deg, rgba(183, 21, 79, 0.34), rgba(189, 135, 48, 0.18), transparent);
}

.route-card::after {
    content: "";
    position: absolute;
    right: -28px;
    top: -28px;
    width: 96px;
    height: 96px;
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.48), transparent 44%),
        radial-gradient(circle, rgba(244, 167, 185, 0.34), transparent 68%);
    transform: rotate(12deg);
    pointer-events: none;
}

.route-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 28px;
    padding: 5px 10px;
    border: 1px solid rgba(183, 21, 79, 0.2);
    border-radius: 999px;
    color: var(--rose);
    background: rgba(255, 255, 255, 0.54);
    font-family: "Nunito", sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.route-card strong {
    display: block;
    margin-top: 30px;
    font-size: 20px;
}

.route-card small {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.route-card:hover,
.route-card:focus-visible {
    border-color: rgba(183, 21, 79, 0.34);
    background: var(--panel-strong);
}

.route-featured {
    background:
        linear-gradient(145deg, rgba(255, 246, 238, 0.9), rgba(255, 221, 231, 0.72)),
        rgba(95, 124, 107, 0.16);
}

.site-footer {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 28px 0 44px;
    color: var(--muted);
    font-size: 14px;
}

:focus-visible {
    outline: 3px solid rgba(185, 29, 83, 0.34);
    outline-offset: 3px;
}

@keyframes drift {
    0% {
        transform: translate3d(0, 20px, 0);
        opacity: 0;
    }
    20%,
    80% {
        opacity: 0.7;
    }
    100% {
        transform: translate3d(18px, -100px, 0);
        opacity: 0;
    }
}

@keyframes petalFall {
    0% {
        transform: translate3d(0, -20px, 0) rotate(0deg);
        opacity: 0;
    }
    12% {
        opacity: 0.62;
    }
    82% {
        opacity: 0.5;
    }
    100% {
        transform: translate3d(var(--petal-drift, 40px), 110vh, 0) rotate(260deg);
        opacity: 0;
    }
}

@media (max-width: 1040px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-top: 18px;
    }

    .today-panel {
        min-height: 460px;
    }

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

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

    .romance-strip {
        grid-template-columns: 1fr;
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .site-header,
    main,
    .site-footer {
        width: min(100% - 28px, 1180px);
    }

    .site-header {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
        padding: 12px 0;
    }

    .brand,
    .site-nav {
        justify-content: center;
    }

    .site-nav a {
        flex: 1;
        text-align: center;
    }

    .hero {
        min-height: auto;
        padding: 18px 0 48px;
    }

    .hero h1 {
        font-size: clamp(42px, 14vw, 68px);
    }

    .hero-text {
        font-size: 16px;
    }

    .hero-actions a {
        width: 100%;
    }

    .love-metrics {
        grid-template-columns: 1fr;
    }

    .today-panel {
        min-height: 430px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .countdown-section,
    .archive-section {
        padding: 46px 0;
    }

    .countdown-grid,
    .route-grid {
        grid-template-columns: 1fr;
    }

    .countdown-card {
        min-height: 300px;
    }
}

@media (max-width: 480px) {
    .page-bg {
        background-position: center top;
    }

    .today-panel {
        min-height: 380px;
    }

    .today-card {
        margin: 12px;
        padding: 18px;
    }

    .photo-ribbon {
        top: 14px;
        right: 14px;
        width: auto;
        padding: 8px 12px;
        border-radius: 999px;
        transform: none;
    }

    .time-row {
        grid-template-columns: 1fr 1fr;
    }

    .route-card {
        min-height: 132px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
