:root {
    --canvas: #f5f1e8;
    --paper: #fffdf8;
    --ink: #35332d;
    --muted: #77736a;
    --line: rgba(53, 51, 45, 0.13);
    --joy: #e2c466;
    --excitement: #e5a15b;
    --anger: #d46f65;
    --sadness: #7fa7c6;
    --fear: #9a83b8;
    --calm: #87b78f;
    --love: #d99ab4;
    --disgust: #9a8068;
    --blank: #ffffff;
    --future: #ddd8cd;
    --shadow: 0 24px 70px rgba(52, 45, 32, 0.11);
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    overflow-x: hidden;
    color: var(--ink);
    background:
        radial-gradient(circle at 8% 8%, rgba(232, 173, 63, 0.13), transparent 23rem),
        radial-gradient(circle at 92% 27%, rgba(63, 111, 145, 0.12), transparent 25rem),
        var(--canvas);
    font-family: "DM Sans", sans-serif;
    line-height: 1.65;
}

button,
a {
    font: inherit;
}

a {
    color: inherit;
}

.page-shell {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.eyebrow {
    color: var(--anger);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.display-title {
    font-family: "Playfair Display", serif;
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 1.08;
}

.mosaic-mark {
    display: grid;
    grid-template-columns: repeat(2, 8px);
    gap: 3px;
    width: 19px;
    height: 19px;
    transform: rotate(-5deg);
}

.mosaic-mark i {
    display: block;
    border-radius: 2px;
}

.mosaic-mark i:nth-child(1) { background: var(--anger); }
.mosaic-mark i:nth-child(2) { background: var(--joy); }
.mosaic-mark i:nth-child(3) { background: var(--sadness); }
.mosaic-mark i:nth-child(4) { background: var(--calm); }

header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid transparent;
    background: rgba(245, 241, 232, 0.86);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.nav {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.72rem;
    text-decoration: none;
}

.brand-name {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.15em;
}

.brand-cn {
    padding-left: 0.72rem;
    border-left: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
}

nav ul {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    list-style: none;
}

nav a {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 180ms ease;
}

nav a:hover {
    color: var(--ink);
}

.button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0.72rem 1.35rem;
    border: 1px solid var(--ink);
    border-radius: 999px;
    background: var(--ink);
    color: var(--paper);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(36, 35, 31, 0.16);
}

.button.secondary {
    margin-left: 0.65rem;
    border-color: var(--line);
    background: rgba(255, 253, 248, 0.55);
    color: var(--ink);
}

.hero {
    display: grid;
    min-height: calc(100vh - 76px);
    grid-template-columns: minmax(0, 0.9fr) minmax(440px, 1.1fr);
    align-items: center;
    gap: clamp(3rem, 7vw, 7rem);
    padding: 6rem 0;
}

.hero-copy h1 {
    margin: 1rem 0 1.65rem;
    font-size: clamp(3.7rem, 7.5vw, 6.8rem);
}

.hero-copy h1 span {
    display: block;
    color: var(--anger);
}

.hero-copy p {
    max-width: 560px;
    color: var(--muted);
    font-size: clamp(1.02rem, 1.5vw, 1.18rem);
}

.hero-actions {
    margin-top: 2.2rem;
}

.hero-note {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
    color: var(--muted);
    font-size: 0.82rem;
}

.hero-note::before {
    width: 32px;
    height: 1px;
    background: var(--line);
    content: "";
}

.canvas-card {
    position: relative;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 32px;
    background: rgba(255, 253, 248, 0.82);
    box-shadow: var(--shadow);
}

.canvas-card::before {
    position: absolute;
    inset: -12px 12px 12px -12px;
    z-index: -1;
    border: 1px solid var(--line);
    border-radius: 34px;
    content: "";
}

.canvas-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.45rem;
}

.canvas-header h2 {
    font-family: "Playfair Display", serif;
    font-size: 1.28rem;
    font-weight: 500;
}

.canvas-header p {
    margin-top: 0.2rem;
    color: var(--muted);
    font-size: 0.76rem;
}

.month-label {
    flex-shrink: 0;
    padding: 0.38rem 0.72rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.72rem;
}

.week-labels,
.mosa-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: clamp(5px, 1vw, 9px);
}

.week-labels {
    margin-bottom: 0.55rem;
    color: var(--muted);
    font-size: 0.65rem;
    text-align: center;
}

.grid-cell {
    position: relative;
    aspect-ratio: 1;
    border: 0;
    border-radius: clamp(5px, 1vw, 9px);
    background: var(--blank);
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.grid-cell:hover,
.grid-cell:focus-visible {
    z-index: 3;
    outline: none;
    box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--ink);
    transform: scale(1.1) rotate(-2deg);
}

.grid-cell.future {
    cursor: not-allowed;
    opacity: 0.48;
}

.grid-cell.blank {
    border: 1px dashed rgba(36, 35, 31, 0.16);
}

.palette-wrap {
    display: grid;
    gap: 0.9rem;
    margin-top: 1.45rem;
    padding-top: 1.15rem;
    border-top: 1px solid var(--line);
}

.palette-label {
    color: var(--muted);
    font-size: 0.76rem;
}

.palette-label strong {
    color: var(--ink);
    font-weight: 500;
}

.palette {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.55rem;
}

.color-button {
    display: grid;
    min-width: 0;
    min-height: 82px;
    place-items: center;
    gap: 0.15rem;
    padding: 0.45rem 0.25rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 253, 248, 0.68);
    color: var(--ink);
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.color-button img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.color-button span {
    overflow: hidden;
    max-width: 100%;
    font-size: 0.66rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.color-button:hover,
.color-button[aria-pressed="true"] {
    transform: translateY(-2px);
    box-shadow: 0 0 0 2px var(--ink);
}

.color-button.blank-color {
    position: relative;
    overflow: hidden;
    background: var(--blank);
}

.blank-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px dashed var(--muted);
    border-radius: 12px;
    color: var(--muted);
    font-family: "Playfair Display", serif;
    font-size: 1.2rem;
}

.tooltip {
    position: fixed;
    z-index: 200;
    width: min(260px, calc(100vw - 32px));
    padding: 0.85rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 13px;
    background: rgba(36, 35, 31, 0.94);
    color: var(--paper);
    box-shadow: 0 14px 34px rgba(36, 35, 31, 0.24);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -100%) translateY(-10px);
    transition: opacity 140ms ease;
}

.tooltip.visible {
    opacity: 1;
}

.tooltip-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.28rem;
    color: rgba(255, 253, 248, 0.62);
    font-size: 0.68rem;
}

.tooltip p {
    font-size: 0.78rem;
    line-height: 1.5;
}

.philosophy {
    padding: 9rem 0 8rem;
    border-top: 1px solid var(--line);
}

.section-heading {
    display: grid;
    grid-template-columns: 0.65fr 1.35fr;
    align-items: end;
    gap: 3rem;
    margin-bottom: 4rem;
}

.section-heading h2 {
    margin-top: 0.8rem;
    font-size: clamp(2.5rem, 5vw, 4.7rem);
}

.section-heading p {
    max-width: 600px;
    color: var(--muted);
    font-size: 1.05rem;
}

.principles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: var(--line);
}

.principle {
    min-height: 310px;
    padding: 2.3rem;
    background: rgba(255, 253, 248, 0.8);
}

.principle-number {
    display: block;
    margin-bottom: 5rem;
    color: var(--anger);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
}

.principle h3 {
    margin-bottom: 0.8rem;
    font-family: "Playfair Display", serif;
    font-size: 1.55rem;
    font-weight: 500;
}

.principle p {
    color: var(--muted);
    font-size: 0.9rem;
}

.emotion-language {
    padding: 8rem 0;
    border-top: 1px solid var(--line);
}

.emotion-intro {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 3rem;
    align-items: end;
    margin-bottom: 3rem;
}

.emotion-intro h2 {
    margin-top: 0.8rem;
    font-size: clamp(2.5rem, 5vw, 4.7rem);
}

.emotion-intro p {
    max-width: 620px;
    color: var(--muted);
    font-size: 1.02rem;
}

.emotion-catalog {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.emotion-card {
    min-width: 0;
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 253, 248, 0.76);
}

.emotion-card img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.emotion-card h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    font-size: 0.98rem;
}

.emotion-card h3::before {
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--emotion-color);
    content: "";
}

.emotion-card p {
    margin-top: 0.35rem;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.5;
}

.stages {
    padding: 8rem 0;
    border-block: 1px solid var(--line);
    background:
        linear-gradient(135deg, rgba(255, 253, 248, 0.72), rgba(235, 230, 219, 0.78)),
        var(--canvas);
    color: var(--ink);
}

.stages .page-shell {
    display: grid;
    grid-template-columns: 0.78fr 1.22fr;
    gap: clamp(3rem, 8vw, 8rem);
}

.stages-copy {
    align-self: center;
}

.stages-copy .eyebrow {
    color: var(--anger);
}

.stages-copy h2 {
    margin: 1rem 0 1.5rem;
    font-size: clamp(2.6rem, 5vw, 4.6rem);
}

.stages-copy p {
    max-width: 490px;
    color: var(--muted);
}

.stage-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stage-item {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    align-items: center;
    gap: 1.2rem;
    padding: 1.2rem 1.4rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 253, 248, 0.72);
}

.stage-icon,
.stage-blank {
    width: 48px;
    height: 48px;
}

.stage-icon {
    object-fit: contain;
}

.stage-blank {
    display: grid;
    place-items: center;
    border: 1px dashed var(--muted);
    border-radius: 13px;
    color: var(--muted);
    font-family: "Playfair Display", serif;
}

.stage-item strong {
    font-weight: 500;
}

.stage-item span:last-child {
    color: var(--muted);
    font-size: 0.78rem;
}

.curator {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: clamp(3rem, 8vw, 8rem);
    padding: 9rem 0;
}

.artwork-card {
    position: relative;
    padding: clamp(1rem, 2vw, 1.5rem);
    border-radius: 6px;
    background: var(--paper);
    box-shadow: var(--shadow);
    transform: rotate(-1.5deg);
}

.annual-artwork {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 3px;
    aspect-ratio: 1;
    padding: 0.8rem;
    background: #eee8dc;
}

.art-tile {
    border-radius: 1px;
    transition: transform 240ms ease, opacity 240ms ease;
}

.artwork-caption {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0.4rem 0.1rem;
    color: var(--muted);
    font-size: 0.72rem;
}

.curator-copy h2 {
    margin: 0.9rem 0 1.4rem;
    font-size: clamp(2.7rem, 5vw, 4.9rem);
}

.curator-copy > p {
    color: var(--muted);
    font-size: 1.03rem;
}

.curator-boundaries {
    display: grid;
    gap: 0.65rem;
    margin: 2rem 0;
}

.curator-boundaries div {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--ink);
    font-size: 0.9rem;
}

.curator-boundaries div::before {
    display: grid;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--anger);
    content: "—";
    font-size: 0.72rem;
}

.text-button {
    border: 0;
    border-bottom: 1px solid var(--ink);
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    font-size: 0.86rem;
    font-weight: 600;
}

.promise {
    padding: 6rem 0;
    border-top: 1px solid var(--line);
    text-align: center;
}

.promise blockquote {
    max-width: 900px;
    margin: 0 auto;
    font-family: "Playfair Display", serif;
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 500;
    line-height: 1.35;
}

.promise p {
    margin: 1.5rem auto 2.2rem;
    color: var(--muted);
}

footer {
    padding: 2.5rem 0;
    border-top: 1px solid var(--line);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.footer-content p {
    color: var(--muted);
    font-size: 0.78rem;
}

@media (max-width: 960px) {
    .hero,
    .curator,
    .stages .page-shell,
    .section-heading,
    .emotion-intro {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding: 5rem 0 7rem;
    }

    .canvas-card {
        max-width: 660px;
        margin: 0 auto;
    }

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

    .principle {
        min-height: auto;
    }

    .principle-number {
        margin-bottom: 3rem;
    }

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

    .artwork-card {
        width: min(600px, 100%);
        margin: 0 auto;
    }
}

@media (max-width: 680px) {
    .page-shell {
        width: min(100% - 28px, 1180px);
    }

    .nav {
        min-height: 66px;
    }

    .brand-cn,
    nav li:not(:last-child) {
        display: none;
    }

    nav .button {
        min-height: 40px;
        padding: 0.55rem 0.9rem;
    }

    .hero {
        padding-top: 4rem;
    }

    .hero-copy h1 {
        font-size: clamp(3.2rem, 17vw, 5rem);
    }

    .button.secondary {
        margin: 0.6rem 0 0;
    }

    .canvas-card {
        border-radius: 22px;
    }

    .canvas-card::before {
        display: none;
    }

    .canvas-header,
    .footer-content {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .color-button {
        min-height: 78px;
    }

    .philosophy,
    .emotion-language,
    .curator {
        padding: 6rem 0;
    }

    .stages {
        padding: 6rem 0;
    }

    .stage-item {
        grid-template-columns: 48px 1fr;
    }

    .stage-item span:last-child {
        grid-column: 2;
    }

    .artwork-caption {
        flex-direction: column;
        gap: 0.2rem;
    }
}

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