.not-found-page {
    --nf-ink: #fffaf4;
    --nf-muted: #d8cfd0;
    --nf-charcoal: #272526;
    --nf-coral: #ff8580;
    --nf-yellow: #ffd27d;
    position: relative;
    isolation: isolate;
    display: grid;
    box-sizing: border-box;
    min-height: 100dvh;
    place-items: center;
    overflow: hidden;
    padding: 36px 24px;
    background: var(--nf-charcoal);
    color: var(--nf-ink);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.not-found-page::before,
.not-found-page::after {
    position: absolute;
    z-index: -1;
    width: min(62vw, 780px);
    aspect-ratio: 1;
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.not-found-page::before {
    top: -46%;
    right: -17%;
    background: radial-gradient(circle, rgba(255, 133, 128, .2), transparent 68%);
}

.not-found-page::after {
    bottom: -60%;
    left: -18%;
    background: radial-gradient(circle, rgba(255, 210, 125, .16), transparent 70%);
}

.not-found-page__inner { width: min(100%, 980px); }
.not-found-page__brand { display: inline-flex; align-items: center; gap: 12px; color: var(--nf-ink); font-size: 17px; font-weight: 750; letter-spacing: .08em; text-decoration: none; }
.not-found-page__brand-mark { display: grid; width: 34px; height: 34px; place-items: center; border: 2px solid var(--nf-coral); border-radius: 9px; color: var(--nf-coral); font-size: 17px; line-height: 1; transform: rotate(-10deg); }
.not-found-page__content { padding: clamp(42px, 8vh, 78px) 0 56px; }
.not-found-page__code { margin: 0 0 12px; color: var(--nf-yellow); font-size: 12px; font-weight: 750; letter-spacing: .28em; text-transform: uppercase; }
.not-found-page__number { display: block; margin: 0 0 10px -10px; color: transparent; font-size: clamp(125px, 24vw, 270px); font-weight: 850; letter-spacing: -.11em; line-height: .86; -webkit-text-stroke: 2px rgba(255, 133, 128, .78); }
.not-found-page__title { max-width: 690px; margin: 26px 0 16px; color: var(--nf-ink); font-size: clamp(34px, 5vw, 61px); font-weight: 760; letter-spacing: -.055em; line-height: 1.07; }
.not-found-page__description { max-width: 510px; margin: 0; color: var(--nf-muted); font-size: clamp(16px, 2vw, 18px); line-height: 1.7; }
.not-found-page__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.not-found-page__home { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 10px; padding: 0 22px; border: 1px solid var(--nf-yellow); border-radius: 9px; background: var(--nf-yellow); color: var(--nf-charcoal); font-size: 14px; font-weight: 750; text-decoration: none; transition: background .18s ease, transform .18s ease; }
.not-found-page__home:hover { background: var(--nf-coral); color: var(--nf-charcoal); transform: translateY(-2px); }
.not-found-page__home:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.not-found-page__footer { display: flex; justify-content: space-between; gap: 12px; padding-top: 22px; border-top: 1px solid rgba(255, 210, 125, .2); color: #b9aeb0; font-size: 12px; letter-spacing: .03em; }

@media (max-width: 600px) {
    .not-found-page { min-height: 100svh; padding: 28px 22px; }
    .not-found-page__content { padding: 52px 0 58px; }
    .not-found-page__number { margin-left: -5px; -webkit-text-stroke-width: 1.5px; }
    .not-found-page__footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    .not-found-page__home { transition: none; }
}
