:root {
    --primary-color: #ff9a9e;
    --secondary-color: #fecfef;
    --accent-color: #a18cd1;
    --text-main: #2d3436;
    --text-muted: #636e72;
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.55);
    --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.09);
    --line: rgba(161, 140, 209, 0.22);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    color: var(--text-main);
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
}

a {
    color: inherit;
}

.page-shell {
    width: min(1080px, calc(100% - 48px));
    min-height: 100vh;
    margin: 0 auto;
}

.dashboard-header {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding: 14px 24px;
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    background: var(--glass-bg);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.3s ease;
}

.dashboard-header:hover {
    transform: translateY(-2px);
}

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    font-size: 0.76rem;
    font-weight: 700;
    text-decoration: none;
}

.wordmark-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: white;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    font-size: 1.15rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 154, 158, 0.4);
}

.date-display {
    color: var(--accent-color);
    font-size: 0.95rem;
    font-weight: 500;
}

.welcome-panel {
    position: relative;
    min-height: 370px;
    display: grid;
    grid-template-columns: 1fr 300px;
    align-items: center;
    gap: 52px;
    margin-top: 28px;
    padding: 48px 62px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    background: var(--glass-bg);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: arrive 650ms ease both;
}

.welcome-copy {
    max-width: 520px;
}

.eyebrow {
    margin: 0 0 13px;
    color: #ae718e;
    font-size: 0.68rem;
    font-weight: 700;
}

.welcome-copy h1,
.section-heading h2,
.note-section h2,
.card-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.welcome-copy h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 2.7rem);
    line-height: 1.12;
}

.welcome-description {
    max-width: 380px;
    margin: 17px 0 23px;
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.7;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #a96e91;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
}

.text-link span,
.card-action span {
    transition: transform 180ms ease;
}

.text-link:hover span {
    transform: translateX(4px);
}

.portrait-frame {
    position: relative;
    width: 244px;
    height: 276px;
    justify-self: center;
    padding: 8px;
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 12px 32px rgba(161, 140, 209, 0.16);
    transform: rotate(2deg);
}

.portrait {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    object-position: center 25%;
}

.portrait-caption {
    position: absolute;
    right: 12px;
    bottom: -27px;
    color: var(--text-muted);
    font-size: 0.83rem;
    font-style: italic;
}

.panel-index {
    position: absolute;
    right: 22px;
    bottom: 18px;
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 700;
}

.space-section {
    padding: 58px 0 50px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 21px;
}

.section-heading .eyebrow {
    margin-bottom: 8px;
}

.section-heading h2 {
    margin: 0;
    font-size: 1.8rem;
}

.heading-flower {
    color: var(--primary-color);
    font-size: 1.7rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.portal-card {
    min-height: 220px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 25px 28px;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    background: var(--glass-bg);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
    animation: arrive 550ms ease both;
}

.portal-card:nth-child(2) {
    animation-delay: 100ms;
}

.portal-card:nth-child(3) {
    animation-delay: 200ms;
}

.portal-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 154, 158, 0.55);
    box-shadow: 0 15px 35px rgba(255, 154, 158, 0.16);
}

.card-number {
    position: absolute;
    top: 25px;
    right: 27px;
    color: #8b8995;
    font-size: 0.7rem;
    font-weight: 700;
}

.card-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    margin-bottom: 15px;
    border-radius: 50%;
    color: white;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    font-size: 1.12rem;
    box-shadow: 0 4px 15px rgba(255, 154, 158, 0.25);
}

.note-card .card-icon {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
}

.friendship-card .card-icon {
    background: linear-gradient(135deg, #f4b7c8, #d28ca9);
}

.card-title {
    font-size: 1.25rem;
}

.card-description {
    margin-top: 7px;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

.card-action {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: auto;
    padding-top: 18px;
    color: #a96e91;
    font-size: 0.78rem;
    font-weight: 700;
}

.portal-card:hover .card-action span {
    transform: translate(2px, -2px);
}

.note-section {
    position: relative;
    display: grid;
    grid-template-columns: 54px 1fr 34px;
    align-items: center;
    gap: 18px;
    padding: 30px 34px;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    background: var(--glass-bg);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    scroll-margin-top: 20px;
}

.note-mark {
    color: var(--primary-color);
    font-size: 5rem;
    line-height: 0.8;
}

.note-section .eyebrow {
    margin-bottom: 8px;
}

.note-section h2 {
    margin: 0;
    font-size: 1.45rem;
}

.note-copy {
    margin: 9px 0 0;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

.back-to-top {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(161, 140, 209, 0.35);
    border-radius: 50%;
    color: var(--accent-color);
    text-decoration: none;
}

.dashboard-footer {
    padding: 26px 0 34px;
    color: var(--text-muted);
    font-size: 0.76rem;
    text-align: center;
}

.dashboard-footer span {
    color: #c2768a;
}

@keyframes arrive {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 700px) {
    .page-shell {
        width: min(100% - 32px, 540px);
    }

    .dashboard-header {
        min-height: 70px;
        padding: 12px 16px;
    }

    .welcome-panel {
        grid-template-columns: 1fr 150px;
        gap: 18px;
        min-height: 280px;
        margin-top: 22px;
        padding: 28px 22px 38px;
    }

    .welcome-copy h1 {
        font-size: 2.1rem;
    }

    .welcome-description {
        font-size: 0.88rem;
    }

    .portrait-frame {
        width: 145px;
        height: 190px;
        padding: 5px;
    }

    .section-heading h2 {
        max-width: 300px;
        font-size: 1.55rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .portal-card {
        min-height: 195px;
    }

    .note-section {
        grid-template-columns: 35px 1fr 30px;
        gap: 12px;
        padding: 24px 15px;
    }

    .note-mark {
        font-size: 3.8rem;
    }
}

@media (max-width: 440px) {
    .welcome-panel {
        grid-template-columns: 1fr;
        gap: 27px;
    }

    .portrait-frame {
        width: 190px;
        height: 215px;
        justify-self: start;
        margin-left: 6px;
    }

    .panel-index {
        bottom: 13px;
    }

    .section-heading h2 {
        font-size: 1.35rem;
    }

    .note-section h2 {
        font-size: 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}