:root {
    --ink: #2a2026;
    --bg: #fff7fa;
    --rose: #b42749;
    --honey: #d94f70;
    --pink: #e78ea2;
    --green: #3f7a4d;
    --green-lt: #ace8a4;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
    background: transparent;
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.bg-layer {
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: 0;
    transition: opacity 1.3s ease;
}

.bg-layer.show {
    opacity: 1;
}

.flower-bg {
    background: linear-gradient(rgba(26,6,14,.42),rgba(26,6,14,.42)),url('flowers.jpg') center/cover;
}

.bunny-bg {
    background: linear-gradient(rgba(16,30,16,.52),rgba(16,30,16,.52)),url('grass.jpg') center/cover;
}

#page.gray {
    filter: grayscale(100%);
}

nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 6vw;
    background: rgba(255,247,250,.82);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(180,39,73,.1);
}

nav .brand {
    font-weight: 800;
    letter-spacing: .06em;
    color: var(--rose);
    text-decoration: none;
    font-size: 18px;
}

nav .links {
    display: flex;
    gap: 44px;
}

nav .links a {
    position: relative;
    text-decoration: none;
    color: var(--ink);
    font-size: 13px;
    letter-spacing: .09em;
    text-transform: uppercase;
    opacity: .82;
    transition: color .25s,opacity .25s;
}

nav .links a:hover {
    color: var(--honey);
    opacity: 1;
}

nav .links a.more {
    color: var(--honey);
    opacity: 1;
    font-weight: 700;
}

nav .links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -7px;
    height: 2px;
    background: var(--honey);
    opacity: 0;
    transition: opacity .3s ease;
}

nav .links a:hover::after {
    opacity: 1;
}

.hero {
    min-height: 92vh;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 6vw;
    position: relative;
}

.hero .bunny {
    width: clamp(88px,13vw,140px);
    margin-bottom: 6px;
    animation: rise .8s ease both;
}

.hero .eyebrow {
    text-transform: uppercase;
    letter-spacing: .34em;
    font-size: 12px;
    color: var(--honey);
    margin: 12px 0 10px;
    animation: rise .8s ease .1s both;
}

.hero h1 {
    font-size: clamp(52px,13vw,164px);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: .9;
    color: var(--honey);
    animation: rise .9s ease .2s both;
}

.hero .tag {
    margin-top: 22px;
    font-size: clamp(15px,2.1vw,20px);
    max-width: 560px;
    color: #9a6673;
    animation: rise .9s ease .35s both;
}

.hero .hint {
    position: absolute;
    bottom: 26px;
    font-size: 11px;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--pink);
    animation: rise .9s ease .6s both;
}

section {
    padding: 110px 6vw;
    max-width: 1120px;
    margin: 0 auto;
}

.label {
    text-transform: uppercase;
    letter-spacing: .26em;
    font-size: 12px;
    color: var(--green);
    margin-bottom: 14px;
}

h2 {
    font-size: clamp(32px,5.2vw,56px);
    font-weight: 800;
    letter-spacing: -.025em;
    margin-bottom: 14px;
    color: var(--rose);
}

p.big {
    font-size: clamp(16px,2vw,20px);
    max-width: 720px;
    margin-bottom: 18px;
}

#about {
    padding-top: 130px;
    padding-bottom: 130px;
}

#about .label {
    color: rgba(255,255,255,.9);
}

#about h2 {
    color: #fff;
    text-shadow: 0 2px 14px rgba(0,0,0,.35);
}

#about p {
    color: #fff;
    text-shadow: 0 1px 10px rgba(0,0,0,.45);
}

#about .age {
    color: #ffb8ce;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

#about .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

#about .tag {
    border: 1px solid rgba(255,255,255,.55);
    background: rgba(255,255,255,.14);
    color: #fff;
    padding: 7px 15px;
    border-radius: 999px;
    font-size: 13px;
    letter-spacing: .02em;
}

#work .label {
    color: var(--green-lt);
    text-shadow: 0 1px 8px rgba(0,0,0,.5);
}

#work h2 {
    color: #fff;
    text-shadow: 0 2px 14px rgba(0,0,0,.5);
}

#work .bunny-note {
    color: var(--green-lt);
    font-size: 15px;
    font-style: italic;
    margin-bottom: 6px;
    text-shadow: 0 1px 8px rgba(0,0,0,.5);
}

#work .hint-text {
    color: rgba(255,255,255,.9);
    font-size: 14px;
    margin-bottom: 30px;
    text-shadow: 0 1px 8px rgba(0,0,0,.5);
}

#work .cat {
    border-top: 1px solid rgba(255,255,255,.22);
}

#work .cat:last-of-type {
    border-bottom: 1px solid rgba(255,255,255,.22);
}

#work .cat-head {
    color: #fff;
    text-shadow: 0 1px 10px rgba(0,0,0,.5);
}

#work .cat-head:hover {
    color: var(--green-lt);
}

#work .cat-head .plus {
    color: var(--green-lt);
}

#work .proj a {
    color: var(--green-lt);
    text-shadow: 0 1px 8px rgba(0,0,0,.5);
}

#work .proj a:hover {
    color: #fff;
}

#work .proj p {
    color: rgba(255,255,255,.9);
    text-shadow: 0 1px 8px rgba(0,0,0,.5);
}

.cat-head {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 24px 4px;
    font-size: clamp(22px,3.4vw,34px);
    font-weight: 800;
    letter-spacing: -.01em;
    color: var(--rose);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color .2s;
}

.cat-head .plus {
    font-weight: 300;
    transition: transform .3s;
}

.cat.open .cat-head .plus {
    transform: rotate(45deg);
}

.cat-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .45s ease;
}

.cat.open .cat-body {
    max-height: 900px;
}

.proj {
    padding: 0 4px 22px;
}

.proj a {
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    transition: color .2s;
}

.proj a:hover {
    text-decoration: underline;
}

.proj p {
    font-size: 15px;
    margin-top: 4px;
    max-width: 660px;
}

.socials {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 16px;
    margin-top: 26px;
    max-width: 660px;
}

.socials a {
    display: flex;
    flex-direction: column;
    padding: 18px 22px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(180,39,73,.12);
    text-decoration: none;
    transition: transform .25s,box-shadow .25s,border-color .25s;
}

.socials a:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(180,39,73,.12);
    border-color: var(--honey);
}

.socials .plat {
    color: var(--rose);
    font-weight: 800;
    font-size: 19px;
}

.socials .cap {
    color: var(--green);
    font-size: 14px;
    margin-top: 2px;
}

#more p {
    color: #3a2f34;
}

.game-wrap {
    margin-top: 44px;
}

.game-hint {
    color: var(--green);
    font-size: 14px;
    margin-bottom: 12px;
}

#game {
    width: 100%;
    max-width: 600px;
    aspect-ratio: 3/1;
    height: auto;
    background: #fce3ed;
    border: 2px solid var(--pink);
    border-radius: 14px;
    display: block;
    cursor: pointer;
    touch-action: manipulation;
}

#game:focus {
    outline: 2px solid var(--honey);
    outline-offset: 2px;
}

.game-score {
    margin-top: 10px;
    color: var(--rose);
    font-weight: 600;
    font-size: 14px;
}

footer {
    text-align: center;
    padding: 70px 6vw 60px;
    color: #f4dfe8;
}

footer .bunny {
    width: 100px;
    display: block;
    margin: 0 auto 18px;
}

footer .made {
    font-weight: 500;
    letter-spacing: .03em;
    font-size: 11px;
}

#about .funfact {
    color: #ffc6d6;
    font-style: italic;
}

.pink {
    color: var(--honey);
    font-weight: 600;
}

.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity .9s ease,transform .9s ease;
}

.reveal.in {
    opacity: 1;
    transform: none;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@media(max-width:760px) {
    nav .links {
        gap: 20px;
    }
    section {
        padding: 80px 7vw;
    }
    .socials {
        grid-template-columns: 1fr;
    }
}

@media(prefers-reduced-motion:reduce) {
    * {
        transition: none!important;
        animation: none!important;
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}