:root {
    --teal-100: #4fb2be;
    --teal-200: #3a9aae;
    --teal-300: #2e7a98;
    --deep-ink: #1c5e78;
    --qr-ink: #0f3a4a;
    --white: #ffffff;
    --white-muted: rgba(255, 255, 255, 0.75);
    --gold: #f1d27a;

    --font-display: "Dancing Script", cursive;
    --font-script: Playball, cursive;
    --font-serif: Fraunces, Georgia, serif;

    --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);

    --top-offset: calc(48px + env(safe-area-inset-top, 0px));
    --mandala-size: clamp(176px, 52vw, 220px);
    --pattern-size: 680px;
    --pattern-center-y: calc(var(--top-offset) + var(--mandala-size) / 2);
}

@media (min-width: 720px) {
    :root {
        --top-offset: 72px;
        --mandala-size: 230px;
        --pattern-size: 900px;
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    background: var(--deep-ink);
    color-scheme: dark;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100dvh;
    overflow-x: clip;
    padding: 0 24px calc(32px + env(safe-area-inset-bottom, 0px));
    color: var(--white);
    font: 16px/1.5 var(--font-serif);
    text-align: center;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

img,
svg {
    display: block;
    max-width: 100%;
}

p,
h1 {
    margin: 0;
}

:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 3px;
}

.sky {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    background: linear-gradient(180deg, var(--teal-300), var(--deep-ink));
}

.glow {
    position: absolute;
    width: 95vmax;
    height: 95vmax;
    border-radius: 50%;
}

.glow--1 {
    top: -48vmax;
    left: -42vmax;
    background: radial-gradient(circle, rgb(157 143 214 / 0.38), rgb(157 143 214 / 0) 62%);
    animation: drift 28s ease-in-out infinite alternate;
}

.glow--2 {
    bottom: -50vmax;
    right: -44vmax;
    background: radial-gradient(circle, rgb(126 120 200 / 0.34), rgb(126 120 200 / 0) 62%);
    animation: drift 34s ease-in-out -12s infinite alternate-reverse;
}

.pattern-frame {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: calc(var(--pattern-center-y) + var(--pattern-size) / 2 + 2px);
    overflow: hidden;
    pointer-events: none;
    background: linear-gradient(180deg, var(--teal-100) 0%, var(--teal-200) 40%, rgb(58 154 174 / 0) 100%);
}

.pattern {
    position: absolute;
    left: 50%;
    top: calc(var(--pattern-center-y) - var(--pattern-size) / 2);
    width: var(--pattern-size);
    height: var(--pattern-size);
    max-width: none;
    margin-left: calc(var(--pattern-size) / -2);
    opacity: 0.14;
    animation:
        fade-in 1.2s var(--ease-out) both,
        spin 240s linear infinite;
}

.header {
    max-width: 440px;
    margin: 0 auto;
    padding-top: var(--top-offset);
}

.mandala {
    width: var(--mandala-size);
    height: var(--mandala-size);
    margin: 0 auto 16px;
    animation: bloom 0.9s var(--ease-out) both;
}

.title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(50px, 15.5vw, 64px);
    line-height: 1.05;
    text-shadow: 2px 2px 0 rgb(28 94 120 / 0.35);
}

.title span {
    display: inline-block;
    padding: 0 0.18em 0.08em;
    -webkit-mask: linear-gradient(90deg, #000 42%, transparent 58%) 0 0 / 260% 100% no-repeat;
    mask: linear-gradient(90deg, #000 42%, transparent 58%) 0 0 / 260% 100% no-repeat;
    animation: write-in 1.1s 0.2s cubic-bezier(0.45, 0.05, 0.25, 1) both;
}

.subtitle {
    margin-top: 2px;
    font-family: var(--font-script);
    font-size: clamp(28px, 9vw, 36px);
    line-height: 1.15;
    color: var(--gold);
    animation: rise 0.7s 0.5s var(--ease-out) both;
}

@media (min-width: 720px) {
    .title {
        font-size: 84px;
    }

    .subtitle {
        font-size: 42px;
    }
}

.description {
    margin-top: 20px;
    font-style: italic;
    font-size: 17px;
    line-height: 1.55;
    color: rgb(255 255 255 / 0.95);
    text-wrap: pretty;
    animation: rise 0.7s 0.6s var(--ease-out) both;
}

.credits {
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.4;
    animation: rise 0.7s 0.65s var(--ease-out) both;
}

.credits em {
    color: rgb(255 255 255 / 0.88);
}

.credits b {
    font-weight: 600;
}

.dot {
    margin: 0 0.7em;
    color: var(--gold);
    font-weight: 600;
}

.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 32px auto;
    animation: fade-in 0.6s 0.7s var(--ease-out) both;
}

.divider::before,
.divider::after {
    content: "";
    width: 64px;
    height: 1.5px;
    background: rgb(255 255 255 / 0.7);
}

.divider i {
    width: 8px;
    height: 8px;
    background: var(--gold);
    transform: rotate(45deg);
}

.links {
    display: grid;
    gap: 12px;
    max-width: 440px;
    margin: 0 auto;
}

.link {
    display: grid;
    grid-template-columns: 24px 1fr 24px;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 14px 16px;
    border: 1px solid rgb(255 255 255 / 0.4);
    border-radius: 2px;
    background: var(--deep-ink);
    color: var(--white);
    font-weight: 600;
    font-size: 16px;
    line-height: 1.3;
    text-decoration: none;
    transition:
        background-color 0.25s,
        color 0.25s,
        border-color 0.25s;
    animation: rise 0.6s var(--ease-out) both;
    animation-delay: calc(0.75s + var(--i, 0) * 50ms);
}

.link__icon {
    width: 24px;
    height: 24px;
}

.link__label {
    text-wrap: balance;
}

@media (hover: hover) {
    .link:hover {
        background: var(--white);
        color: var(--qr-ink);
        border-color: var(--white);
    }
}

.link:focus-visible,
.link:active {
    background: var(--white);
    color: var(--qr-ink);
}

.link__thumb {
    position: relative;
    grid-column: 1 / -1;
    margin: -14px -16px 2px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--qr-ink);
}

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

.link__play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 56px;
    height: 56px;
    margin: -28px 0 0 -28px;
    border-radius: 50%;
    background: rgb(255 255 255 / 0.92);
}

.link__play::after {
    content: "";
    position: absolute;
    left: 22px;
    top: 18px;
    border-style: solid;
    border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent var(--qr-ink);
}

.link__eyebrow {
    display: block;
    margin-bottom: 2px;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--white-muted);
    transition: color 0.25s;
}

@media (hover: hover) {
    .link:hover .link__eyebrow {
        color: rgb(15 58 74 / 0.75);
    }
}

.link:focus-visible .link__eyebrow,
.link:active .link__eyebrow {
    color: rgb(15 58 74 / 0.75);
}

.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    animation: fade-in 0.6s 1.1s var(--ease-out) both;
}

.caps {
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--white-muted);
}

.publisher img {
    width: 120px;
    height: auto;
}

.share {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin-top: 12px;
    padding: 0 8px;
    border: 0;
    background: none;
    color: var(--white);
    font: 600 15px/1.3 var(--font-serif);
    text-decoration: underline;
    text-decoration-color: rgb(255 255 255 / 0.45);
    text-underline-offset: 4px;
    cursor: pointer;
}

.share:hover {
    text-decoration-color: var(--white);
}

.share svg {
    width: 18px;
    height: 18px;
}

.copyright {
    font-size: 12px;
    color: var(--white-muted);
}

.copyright + .copyright {
    margin-top: -8px;
}

.copyright a {
    color: inherit;
    text-underline-offset: 3px;
}

.copyright a:hover {
    color: var(--white);
}

@keyframes bloom {
    from {
        opacity: 0;
        transform: scale(0.9);
        filter: blur(8px);
    }
}

@keyframes write-in {
    from {
        -webkit-mask-position: 100% 0;
        mask-position: 100% 0;
    }
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
}

@keyframes spin {
    to {
        rotate: 360deg;
    }
}

@keyframes drift {
    to {
        transform: translate(9vmax, 7vmax) scale(1.12);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
