:root {
            --linen: #E8E0D4;
            --paper-1: #FFFDF8;
            --paper-2: #FFF5E4;
            --paper-3: #F0EBE0;
            --terracotta: #D4521F;
            --terracotta-dark: #A83B13;
            --olive: #3D6B4F;
            --ink: #2A2116;
            --ink-muted: #675A4B;
            --paper-line: rgba(75, 55, 34, 0.16);
            --shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
            --shadow-lifted: 0 18px 52px rgba(0, 0, 0, 0.18);
            --font-heading: 'Fraunces', Georgia, serif;
            --font-body: 'Lato', Arial, sans-serif;
            --reading-progress: 0%;
            --torn-parallax: 0px;
        }

        * {
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
            background: var(--linen);
        }

        body {
            position: relative;
            margin: 0;
            min-height: 100vh;
            min-height: 100dvh;
            overflow-x: hidden;
            font-family: var(--font-body);
            font-weight: 400;
            color: var(--ink);
            background:
                radial-gradient(circle at 12% 8%, rgba(255, 253, 248, 0.62), transparent 28rem),
                radial-gradient(circle at 88% 82%, rgba(61, 107, 79, 0.09), transparent 24rem),
                repeating-linear-gradient(0deg, rgba(42, 33, 22, 0.018) 0 1px, transparent 1px 5px),
                var(--linen);
            line-height: 1.72;
        }

        body::before {
            content: "";
            position: fixed;
            z-index: 1000;
            top: 0;
            left: 0;
            width: var(--reading-progress);
            height: 7px;
            background: var(--terracotta);
            clip-path: polygon(0 12%, 5% 0, 11% 23%, 17% 3%, 24% 18%, 31% 0, 38% 22%, 46% 5%, 54% 21%, 61% 0, 69% 17%, 76% 3%, 84% 22%, 92% 4%, 100% 15%, 100% 100%, 0 100%);
            pointer-events: none;
        }

        body::after {
            content: "";
            position: fixed;
            z-index: 999;
            inset: 0;
            opacity: 0.18;
            pointer-events: none;
            background:
                repeating-radial-gradient(circle at 20% 30%, rgba(42, 33, 22, 0.05) 0 0.6px, transparent 0.7px 5px),
                repeating-linear-gradient(93deg, transparent 0 13px, rgba(255, 255, 255, 0.08) 13px 14px);
            mix-blend-mode: multiply;
        }

        a {
            color: inherit;
        }

        a:focus-visible,
        button:focus-visible {
            outline: 3px solid rgba(212, 82, 31, 0.42);
            outline-offset: 4px;
        }

        .site-shell {
            position: relative;
            z-index: 1;
            width: min(1160px, calc(100% - 38px));
            margin: 0 auto;
            padding: 28px 0 0;
        }

        .site-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 20px;
            margin: 0 10px 30px;
            padding: 12px 16px;
            border-top: 1px solid rgba(255, 255, 255, 0.72);
            border-bottom: 1px solid rgba(42, 33, 22, 0.10);
        }

        .brand {
            display: inline-flex;
            align-items: center;
            gap: 12px;
            color: var(--ink);
            text-decoration: none;
            font-family: var(--font-heading);
            font-size: 1.08rem;
            font-weight: 900;
            letter-spacing: -0.02em;
        }

        .brand-mark {
            display: grid;
            width: 44px;
            height: 44px;
            place-items: center;
            border: 2px solid var(--terracotta);
            border-radius: 0;
            color: var(--terracotta);
            background: var(--paper-1);
            box-shadow: 5px 5px 0 rgba(61, 107, 79, 0.20);
            transform: rotate(-2deg);
        }

        .header-link {
            position: relative;
            color: var(--olive);
            font-weight: 700;
            text-decoration: none;
        }

        .header-link::after {
            content: "";
            position: absolute;
            right: 0;
            bottom: -5px;
            left: 0;
            height: 3px;
            background: var(--terracotta);
            clip-path: polygon(0 30%, 12% 0, 24% 42%, 38% 4%, 51% 36%, 65% 0, 79% 43%, 90% 9%, 100% 32%, 100% 100%, 0 100%);
            transform: scaleX(0);
            transform-origin: left;
            transition: transform 200ms ease;
        }

        .header-link:hover::after {
            transform: scaleX(1);
        }

        .error-panel {
            overflow: visible;
            border: 0;
            border-radius: 0;
            background: transparent;
            box-shadow: none;
        }

        .error-hero,
        .help-heading,
        .route-card,
        .product-note {
            --reveal-y: 0px;
            --lift-y: 0px;
            --paper-rotate: 0deg;
            position: relative;
            isolation: isolate;
            border: 1px solid rgba(42, 33, 22, 0.12);
            border-radius: 1px;
            box-shadow: var(--shadow);
            transform: translate3d(0, calc(var(--reveal-y) + var(--lift-y)), 0) rotate(var(--paper-rotate));
            transform-origin: center;
            transition:
                opacity 620ms ease var(--stagger, 0ms),
                transform 620ms cubic-bezier(.2, .75, .2, 1) var(--stagger, 0ms),
                box-shadow 200ms ease,
                border-color 200ms ease;
        }

        .error-hero::before,
        .error-hero::after,
        .help-heading::before,
        .help-heading::after,
        .route-card::before,
        .route-card::after,
        .product-note::before,
        .product-note::after {
            content: "";
            position: absolute;
            z-index: -2;
            right: -10px;
            bottom: -10px;
            width: 78px;
            height: 78px;
            clip-path: polygon(36% 100%, 100% 36%, 100% 100%);
            pointer-events: none;
        }

        .error-hero::before,
        .help-heading::before,
        .route-card::before,
        .product-note::before {
            background: var(--paper-2);
            box-shadow: 6px 7px 14px rgba(0, 0, 0, 0.09);
            transform: translate(5px, 5px);
        }

        .error-hero::after,
        .help-heading::after,
        .route-card::after,
        .product-note::after {
            z-index: -3;
            right: -17px;
            bottom: -17px;
            background: var(--paper-3);
            box-shadow: 7px 9px 16px rgba(0, 0, 0, 0.08);
        }

        .paper-reveal {
            --reveal-y: 60px;
            opacity: 0;
        }

        .paper-reveal.is-visible {
            --reveal-y: 0px;
            opacity: 1;
        }

        .error-hero:hover,
        .help-heading:hover,
        .route-card:hover,
        .product-note:hover {
            --lift-y: -6px;
            --paper-rotate: 0deg;
            border-color: rgba(212, 82, 31, 0.26);
            box-shadow: var(--shadow-lifted);
        }

        .error-hero {
            --paper-rotate: -0.5deg;
            display: grid;
            grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
            gap: clamp(34px, 5vw, 64px);
            align-items: center;
            margin-bottom: 88px;
            padding: clamp(38px, 6vw, 74px);
            padding-bottom: clamp(62px, 8vw, 92px);
            background:
                linear-gradient(105deg, rgba(255, 255, 255, 0.24), transparent 36%),
                repeating-linear-gradient(0deg, rgba(42, 33, 22, 0.014) 0 1px, transparent 1px 7px),
                var(--paper-1);
        }

        .error-hero > div:first-child::after {
            content: "";
            position: absolute;
            z-index: 4;
            right: 0;
            bottom: -58px;
            left: 0;
            height: 82px;
            background: var(--paper-1);
            clip-path: polygon(0 0, 100% 0, 100% 51%, 96% 63%, 91% 50%, 86% 68%, 80% 55%, 74% 71%, 69% 54%, 63% 66%, 57% 50%, 51% 69%, 45% 55%, 39% 73%, 33% 52%, 27% 68%, 20% 49%, 14% 65%, 8% 50%, 3% 67%, 0 57%);
            filter: drop-shadow(0 10px 8px rgba(0, 0, 0, 0.06));
            transform: translate3d(0, var(--torn-parallax), 0);
            pointer-events: none;
            will-change: transform;
        }

        .eyebrow {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            margin: 0 0 14px;
            color: var(--terracotta);
            font-size: 0.8rem;
            font-weight: 700;
            letter-spacing: 0.15em;
            text-transform: uppercase;
        }

        .eyebrow::before {
            content: "";
            width: 34px;
            height: 7px;
            background: var(--terracotta);
            clip-path: polygon(0 25%, 12% 0, 28% 28%, 45% 8%, 62% 36%, 78% 7%, 100% 30%, 100% 76%, 84% 100%, 65% 75%, 48% 96%, 31% 70%, 13% 93%, 0 72%);
        }

        h1,
        h2,
        h3 {
            margin-top: 0;
            font-family: var(--font-heading);
            color: var(--ink);
            line-height: 1.08;
        }

        h1 {
            max-width: 760px;
            margin-bottom: 22px;
            font-size: 60px;
            font-weight: 900;
            letter-spacing: -0.045em;
        }

        h1 span {
            color: var(--terracotta);
            text-decoration-line: underline;
            text-decoration-thickness: 5px;
            text-decoration-color: rgba(61, 107, 79, 0.52);
            text-underline-offset: 8px;
            text-decoration-skip-ink: none;
        }

        .hero-copy {
            max-width: 690px;
            margin: 0;
            color: var(--ink-muted);
            font-size: clamp(1.03rem, 2vw, 1.18rem);
        }

        .hero-copy::first-letter,
        .help-heading > p::first-letter,
        .product-note > div > p::first-letter {
            float: left;
            margin: 0.08em 0.1em 0 0;
            color: var(--terracotta);
            font-family: var(--font-heading);
            font-size: 3.1em;
            font-weight: 900;
            line-height: 0.78;
        }

        .missing-path {
            display: inline-block;
            max-width: 100%;
            margin-top: 21px;
            padding: 9px 13px;
            overflow: hidden;
            border: 1px dashed rgba(61, 107, 79, 0.58);
            border-radius: 0;
            color: var(--ink);
            background: var(--paper-3);
            box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.24);
            font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
            font-size: 0.82rem;
            text-overflow: ellipsis;
            white-space: nowrap;
            vertical-align: middle;
            transform: rotate(0.35deg);
        }

        .action-row {
            display: flex;
            flex-wrap: wrap;
            gap: 13px;
            margin-top: 32px;
        }

        .button {
            display: inline-flex;
            min-height: 50px;
            align-items: center;
            justify-content: center;
            gap: 9px;
            padding: 12px 22px;
            border: 2px solid transparent;
            border-radius: 0;
            font-weight: 700;
            text-decoration: none;
            box-shadow: 4px 5px 0 rgba(42, 33, 22, 0.15);
            transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
        }

        .button:hover {
            transform: translate(-1px, -3px);
            box-shadow: 7px 9px 0 rgba(42, 33, 22, 0.17);
        }

        .button-primary {
            color: #ffffff;
            background: var(--terracotta);
        }

        .button-primary:hover {
            background: var(--terracotta-dark);
        }

        .button-secondary {
            border-color: var(--olive);
            color: var(--olive);
            background: transparent;
        }

        .button-secondary:hover {
            color: var(--paper-1);
            background: var(--olive);
        }

        .status-graphic {
            position: relative;
            display: grid;
            min-height: 330px;
            place-items: center;
            overflow: hidden;
            border: 1px solid rgba(42, 33, 22, 0.14);
            border-radius: 0;
            background:
                linear-gradient(90deg, transparent 49.4%, rgba(61, 107, 79, 0.08) 49.5% 50.5%, transparent 50.6%),
                linear-gradient(transparent 49.4%, rgba(212, 82, 31, 0.07) 49.5% 50.5%, transparent 50.6%),
                repeating-linear-gradient(0deg, rgba(42, 33, 22, 0.018) 0 1px, transparent 1px 9px),
                var(--paper-2);
            box-shadow: 11px 13px 0 rgba(61, 107, 79, 0.13);
            transform: rotate(1deg);
        }

        .status-graphic::before,
        .status-graphic::after {
            content: "";
            position: absolute;
            width: 76px;
            height: 18px;
            background: rgba(212, 82, 31, 0.24);
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
        }

        .status-graphic::before {
            top: 13px;
            left: -18px;
            transform: rotate(-34deg);
        }

        .status-graphic::after {
            right: -20px;
            bottom: 17px;
            transform: rotate(-35deg);
        }

        .status-ring {
            display: grid;
            width: min(224px, 66%);
            aspect-ratio: 1;
            place-items: center;
            border: 2px dashed rgba(61, 107, 79, 0.56);
            border-radius: 50%;
            background: rgba(255, 253, 248, 0.44);
        }

        .status-lock {
            display: grid;
            width: 120px;
            height: 120px;
            place-items: center;
            border: 2px solid var(--terracotta);
            border-radius: 0;
            color: var(--terracotta);
            background: var(--paper-1);
            box-shadow: 9px 10px 0 rgba(61, 107, 79, 0.18);
            transform: rotate(-2deg);
        }

        .status-label {
            position: absolute;
            right: 22px;
            bottom: 18px;
            left: 22px;
            margin: 0;
            color: var(--ink-muted);
            font-size: 0.86rem;
            text-align: center;
        }

        .help-section {
            padding: 0 clamp(12px, 3vw, 38px) 20px;
        }

        .help-heading {
            --paper-rotate: 0.3deg;
            max-width: 790px;
            margin: 0 0 28px 18px;
            padding: 30px 34px;
            background:
                repeating-linear-gradient(93deg, transparent 0 24px, rgba(42, 33, 22, 0.012) 24px 25px),
                var(--paper-2);
        }

        .help-heading h2 {
            margin-bottom: 12px;
            font-size: clamp(1.9rem, 4vw, 2.75rem);
            font-weight: 900;
            letter-spacing: -0.03em;
        }

        .help-heading p {
            margin: 0;
            color: var(--ink-muted);
        }

        .route-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 22px;
            align-items: stretch;
        }

        .route-card {
            min-height: 100%;
            padding: 27px 25px 25px;
            background: var(--paper-1);
        }

        .route-card:nth-child(1) {
            --paper-rotate: -0.3deg;
            background: var(--paper-1);
        }

        .route-card:nth-child(2) {
            --paper-rotate: 0.3deg;
            background: var(--paper-2);
        }

        .route-card:nth-child(3) {
            --paper-rotate: -0.3deg;
            background: var(--paper-3);
        }

        .route-card h3 {
            margin-bottom: 12px;
            padding-bottom: 11px;
            border-bottom: 4px solid var(--terracotta);
            font-size: 1.3rem;
            font-weight: 900;
            letter-spacing: -0.02em;
        }

        .route-card p {
            margin: 0;
            color: var(--ink-muted);
            font-size: 0.96rem;
        }

        .route-card a {
            display: inline-flex;
            margin-top: 18px;
            color: var(--olive);
            font-weight: 700;
            text-decoration: none;
        }

        .route-card a:hover {
            color: var(--terracotta);
            text-decoration: underline;
            text-decoration-thickness: 2px;
            text-underline-offset: 5px;
        }

        .product-note {
            --paper-rotate: 0deg;
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
            gap: 28px;
            margin-top: 34px;
            padding: 30px;
            overflow: hidden;
            background:
                repeating-linear-gradient(0deg, rgba(42, 33, 22, 0.012) 0 1px, transparent 1px 8px),
                var(--paper-1);
        }

        .product-note h2 {
            margin: -30px -30px 22px;
            padding: 18px 30px;
            color: #ffffff;
            background: var(--terracotta);
            font-size: 1.42rem;
            font-weight: 900;
            letter-spacing: -0.015em;
        }

        .product-note p {
            margin: 0;
            color: var(--ink-muted);
        }

        .compatibility-list {
            display: grid;
            gap: 0;
            align-content: start;
            margin: 0;
            padding: 0;
            list-style: none;
            border-top: 1px solid var(--paper-line);
        }

        .compatibility-list li {
            position: relative;
            display: flex;
            gap: 10px;
            align-items: flex-start;
            padding: 13px 11px;
            overflow: hidden;
            border-bottom: 1px solid var(--paper-line);
            color: #3E5547;
            font-size: 0.93rem;
            transition: transform 180ms ease, background-color 180ms ease;
        }

        .compatibility-list li::before {
            content: "✓";
            position: relative;
            z-index: 2;
            flex: 0 0 auto;
            color: var(--olive);
            font-weight: 900;
        }

        .compatibility-list li::after {
            content: "";
            position: absolute;
            z-index: 1;
            inset: 0;
            opacity: 0;
            pointer-events: none;
            background:
                repeating-linear-gradient(173deg, rgba(42, 33, 22, 0.72) 0 1px, transparent 1px 8px),
                repeating-linear-gradient(7deg, transparent 0 13px, rgba(255, 255, 255, 0.9) 13px 14px);
            transition: opacity 180ms ease;
        }

        .compatibility-list li:hover {
            z-index: 2;
            background: var(--paper-2);
            transform: translateX(4px) rotate(-0.15deg);
        }

        .compatibility-list li:hover::after {
            opacity: 0.03;
        }

        .site-footer {
            position: relative;
            display: flex;
            justify-content: space-between;
            gap: 16px;
            margin-top: 88px;
            padding: 46px 34px 30px;
            color: var(--ink-muted);
            background:
                repeating-linear-gradient(90deg, rgba(42, 33, 22, 0.015) 0 1px, transparent 1px 11px),
                var(--paper-3);
            box-shadow: 0 -8px 34px rgba(0, 0, 0, 0.08);
            font-size: 0.86rem;
        }

        .site-footer::before {
            content: "";
            position: absolute;
            top: -29px;
            right: 0;
            left: 0;
            height: 30px;
            background: var(--paper-3);
            clip-path: polygon(0 100%, 0 55%, 5% 27%, 10% 62%, 16% 17%, 22% 56%, 28% 24%, 35% 68%, 42% 20%, 49% 57%, 56% 11%, 63% 63%, 70% 26%, 77% 68%, 84% 22%, 91% 61%, 96% 30%, 100% 56%, 100% 100%);
        }

        .site-footer p {
            margin: 0;
        }

        @media (max-width: 920px) {
            h1 {
                font-size: 52px;
            }

            .error-hero {
                grid-template-columns: 1fr;
            }

            .status-graphic {
                min-height: 285px;
            }

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

            .product-note {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 640px) {
            body::before {
                height: 5px;
            }

            .site-shell {
                width: min(100% - 20px, 1160px);
                padding-top: 14px;
            }

            .site-header {
                margin: 0 0 16px;
                padding-inline: 6px;
            }

            .header-link {
                display: none;
            }

            .error-hero,
            .help-heading,
            .route-card,
            .product-note,
            .status-graphic,
            .status-lock,
            .brand-mark {
                --paper-rotate: 0deg;
                transform: translate3d(0, calc(var(--reveal-y, 0px) + var(--lift-y, 0px)), 0) rotate(0deg);
            }

            .error-hero {
                gap: 30px;
                margin-bottom: 66px;
                padding: 32px 22px 66px;
            }

            .error-hero > div:first-child::after {
                transform: none;
            }

            h1 {
                font-size: 38px;
                letter-spacing: -0.035em;
            }

            h1 span {
                text-decoration-thickness: 3px;
                text-underline-offset: 5px;
            }

            .hero-copy::first-letter,
            .help-heading > p::first-letter,
            .product-note > div > p::first-letter {
                font-size: 2.75em;
            }

            .help-section {
                padding-inline: 0;
            }

            .help-heading {
                margin-left: 0;
                padding: 26px 22px;
            }

            .route-grid {
                gap: 18px;
            }

            .route-card {
                padding: 24px 21px;
            }

            .product-note {
                padding: 24px 21px;
            }

            .product-note h2 {
                margin: -24px -21px 20px;
                padding: 17px 21px;
            }

            .action-row {
                display: grid;
            }

            .button {
                width: 100%;
            }

            .paper-reveal {
                --reveal-y: 34px;
            }

            .site-footer {
                display: block;
                margin-top: 74px;
                padding-inline: 22px;
                text-align: center;
            }

            .site-footer p + p {
                margin-top: 5px;
            }
        }

        @media (prefers-reduced-motion: reduce) {
            html {
                scroll-behavior: auto;
            }

            .error-hero,
            .help-heading,
            .route-card,
            .product-note,
            .button,
            .compatibility-list li,
            .header-link::after {
                transition: none;
            }

            .paper-reveal {
                --reveal-y: 0px;
                opacity: 1;
            }

            .error-hero > div:first-child::after {
                transform: none;
            }
        }
