@layer reset, base, components, responsive;

@layer reset {
    *,
    *::before,
    *::after {
        box-sizing: border-box;
    }
    body,
    h1,
    h2,
    h3,
    p,
    figure,
    dl,
    dd {
        margin: 0;
    }
    img {
        display: block;
        max-width: 100%;
        height: auto;
    }
    button {
        font: inherit;
    }
    [hidden] {
        display: none !important;
    }
}
@layer base {
    @font-face {
        font-family: "LifeCraft";
        src: url("../fonts/LifeCraft_Font.ttf") format("truetype");
        font-weight: 400;
        font-style: normal;
        font-display: swap;
    }
    :root {
        color-scheme: dark;
        --ground: #17181a;
        --panel: #202123;
        --raised: #28292b;
        --text: #deddd8;
        --muted: #a7a7a4;
        --line: #37383a;
        --accent: #c4b58e;
        --serif: Georgia, "Times New Roman", serif;
        --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }
    html {
        scroll-behavior: smooth;
        scroll-padding-top: 2rem;
    }
    body {
        background: var(--ground);
        color: var(--text);
        font-family: var(--sans);
        line-height: 1.65;
        -webkit-font-smoothing: antialiased;
    }
    a {
        color: inherit;
        text-decoration: none;
    }
    a:hover {
        color: var(--accent);
    }
    a:focus-visible,
    button:focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: 6px;
    }
    ::selection {
        background: #73684e;
        color: #fff;
    }
    h1,
    h2 {
        font-family: var(--serif);
        font-weight: 400;
        letter-spacing: -0.035em;
        line-height: 1.12;
    }
    h1 {
        font-size: clamp(2.8rem, 5.3vw, 5.15rem);
    }
    h2 {
        font-size: clamp(1.8rem, 2.5vw, 2.6rem);
    }
    p {
        color: var(--muted);
    }
    em,
    i {
        font-weight: 400;
    }
    .shell {
        width: min(1320px, calc(100% - 96px));
        margin-inline: auto;
    }
    .eyebrow {
        color: var(--muted);
        text-transform: uppercase;
        letter-spacing: 0.15em;
        font-size: 0.67rem;
        font-weight: 600;
    }
    .button {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        padding: 0.75rem 1.2rem;
        border: 1px solid #56534a;
        border-radius: 3px;
        background: #34332e;
        color: #e1dccd;
        font-size: 0.8rem;
        font-weight: 550;
        cursor: pointer;
        transition: background 150ms ease;
    }
    .button:hover {
        background: #444137;
        color: #f1ede3;
    }
    .skip-link {
        position: absolute;
        top: -100px;
        left: 20px;
        padding: 1rem;
        background: var(--raised);
        z-index: 5;
    }
    .skip-link:focus {
        top: 10px;
    }
}
@layer components {
    .site-header {
        display: flex;
        align-items: center;
        gap: 2rem;
        padding-block: 27px;
        border-bottom: 1px solid var(--line);
    }
    .wordmark {
        display: inline-flex;
        align-items: center;
        gap: 12px;
        font-family: var(--serif);
        font-size: 1.38rem;
        white-space: nowrap;
    }
    .wordmark i {
        color: var(--muted);
    }
    .wordmark > img {
        width: 3rem;
        height: 3rem;
        flex-shrink: 0;
    }
    .site-header nav {
        display: flex;
        gap: 30px;
        margin-left: auto;
        color: #b7b7b3;
        font-size: 0.78rem;
    }
    .realm {
        color: #858681;
        font-size: 0.65rem;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        padding-left: 28px;
        border-left: 1px solid var(--line);
    }
    .intro {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        gap: 3rem;
        padding-block: 62px 64px;
    }
    .intro .eyebrow {
        margin-bottom: 19px;
    }
    .intro h1 em {
        color: #a7a69f;
    }
    .intro-note {
        padding-bottom: 7px;
        font-size: 0.94rem;
    }
    .intro-note p {
        max-width: 220px;
        line-height: 1.75;
    }
    .intro-note a {
        display: inline-block;
        margin-top: 21px;
        font-size: 0.72rem;
        border-bottom: 1px solid #666251;
        color: var(--accent);
    }
    .section-heading {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        margin-bottom: 22px;
        gap: 1rem;
    }
    .section-heading .eyebrow {
        margin-bottom: 8px;
    }
    .section-heading h2 {
        font-size: 1.8rem;
    }
    .source-badge {
        border: 1px solid var(--line);
        border-radius: 30px;
        padding: 4px 12px;
        color: var(--muted);
        font-size: 0.67rem;
        white-space: nowrap;
    }
    .speed-poster {
        position: relative;
        isolation: isolate;
        overflow: hidden;
        border: 1px solid #3d4142;
        border-radius: 4px;
        container-type: inline-size;
        background: #1b2224;
    }
    .speed-poster > img {
        width: 100%;
    }
    .poster-time {
        --timer-gold: #dfac4d;
        --timer-highlight: #fff1a2;
        --timer-light: #f9d775;
        --timer-shade: #9b561c;
        --timer-edge: #6d3615;
        --timer-shadow: #100b07;
        position: absolute;
        left: 74.8%;
        right: 4.9%;
        top: 78.3%;
        text-align: center;
        line-height: 1;
    }
    .poster-time > span {
        display: block;
        font-size: 0.73cqw;
        text-transform: uppercase;
        letter-spacing: 0.18em;
        color: #cfba8d;
    }
    .poster-time time {
        display: block;
        margin-block: 0.6cqw 0;
        color: var(--timer-gold);
        font-family: "LifeCraft", var(--serif);
        font-size: 6.5cqw;
        font-weight: 400;
        line-height: 0.95;
        font-synthesis: none;
        font-variant-numeric: tabular-nums;
        letter-spacing: 0.005em;
        white-space: nowrap;
        -webkit-text-stroke: 0.014em var(--timer-edge);
        paint-order: stroke fill;
        filter: drop-shadow(-0.012em -0.014em 0 var(--timer-highlight))
            drop-shadow(0.016em 0.023em 0 var(--timer-shade))
            drop-shadow(0.018em 0.03em 0 var(--timer-edge))
            drop-shadow(0.025em 0.055em 0.025em var(--timer-shadow));
    }
    @supports (background-clip: text) {
        .poster-time time {
            background: linear-gradient(
                110deg,
                var(--timer-light) 0%,
                var(--timer-highlight) 22%,
                var(--timer-gold) 38%,
                var(--timer-shade) 49%,
                var(--timer-highlight) 51%,
                var(--timer-light) 60%,
                var(--timer-gold) 78%,
                var(--timer-shade) 100%
            );
            background-clip: text;
            color: transparent;
        }
    }
    @media (forced-colors: active) {
        .poster-time time {
            background: none;
            color: CanvasText;
            -webkit-text-stroke: 0;
            filter: none;
        }
    }
    .poster-time > span:last-child {
        font-size: 0.59cqw;
        opacity: 0.85;
    }
    .speed-poster figcaption {
        display: flex;
        justify-content: space-between;
        position: absolute;
        inset: auto 0 0;
        padding: 0.5rem 1rem;
        background: linear-gradient(transparent, #101214b3);
        color: #b3b9b5;
        font-size: 0.58rem;
        letter-spacing: 0.04em;
    }
    .run-details {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 2rem;
        padding: 24px 0 15px;
    }
    .run-details dl {
        display: flex;
        gap: clamp(25px, 5vw, 85px);
    }
    .run-details dt {
        color: #888b87;
        font-size: 0.63rem;
        text-transform: uppercase;
        letter-spacing: 0.12em;
    }
    .run-details dd {
        font-size: 0.82rem;
        margin-top: 2px;
    }
    .sync-status {
        min-height: 1.4em;
        color: #8f918b;
        font-size: 0.67rem;
    }
    .community {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 100px;
        padding-block: 75px;
        margin-top: 45px;
        border-top: 1px solid var(--line);
    }
    .community h2 {
        margin-block: 14px 22px;
    }
    .story > p:not(.eyebrow) {
        margin-block: 18px;
        font-size: 0.9rem;
        max-width: 480px;
    }
    .story .lead {
        color: #c6c6bf;
        font-size: 1.1rem !important;
    }
    .text-link {
        display: inline-block;
        font-size: 0.78rem;
        color: var(--accent);
        border-bottom: 1px solid #666251;
        margin-top: 9px;
    }
    .ready-room > p:not(.eyebrow) {
        font-size: 0.85rem;
    }
    .excuse-generator {
        background: var(--panel);
        border: 1px solid var(--line);
        border-radius: 4px;
        padding: 27px 30px;
        margin-top: 28px;
    }
    .excuse-generator header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: var(--muted);
    }
    .excuse-generator h3 {
        font-size: 0.65rem;
        letter-spacing: 0.09em;
        text-transform: uppercase;
        font-weight: 500;
    }
    .excuse-generator header span {
        font-size: 1.7rem;
        color: #9f9b8e;
    }
    .excuse {
        font-family: var(--serif);
        font-size: 1.65rem;
        line-height: 1.3;
        min-height: 4.1em;
        color: #d8d7ce;
        margin-block: 18px 20px;
    }
    .excuse-generator footer {
        color: #858681;
        font-size: 0.63rem;
        margin-top: 15px;
    }
    .founder {
        display: flex;
        gap: 28px;
        align-items: center;
        padding: 35px 0;
        border-top: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
    }
    .founder-mark {
        display: flex;
        flex-shrink: 0;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 75px;
        height: 75px;
        border: 1px solid #55564f;
        border-radius: 50%;
        font-family: var(--serif);
        font-size: 2rem;
        line-height: 1.1;
        color: #b6b4a7;
    }
    .founder-mark span {
        font-family: var(--sans);
        font-size: 0.5rem;
        letter-spacing: 0.12em;
        margin-top: 6px;
    }
    .founder h2 {
        font-size: 1.6rem;
        margin-block: 10px;
    }
    .founder p:last-child {
        font-size: 0.8rem;
    }
    .site-footer {
        display: flex;
        justify-content: space-between;
        gap: 30px;
        align-items: center;
        padding-block: 35px;
    }
    .site-footer > p:first-child {
        font-family: var(--serif);
        color: #c2c2ba;
        font-size: 1.15rem;
    }
    .site-footer > p:first-child span {
        display: block;
        font-family: var(--sans);
        font-size: 0.65rem;
        color: #858681;
        margin-top: 4px;
    }
    .site-footer > p:nth-child(2),
    .site-footer > a {
        font-size: 0.63rem;
        color: #858681;
    }
    .site-footer .design-credit {
        display: inline-flex;
        align-items: center;
        gap: 0.65rem;
        color: var(--muted);
        min-height: 2.75rem;
    }
    .design-credit img {
        width: 2.25rem;
        height: 2.25rem;
        flex-shrink: 0;
    }
    .design-credit strong {
        display: block;
        color: var(--text);
        font-weight: 500;
        font-size: 0.8rem;
    }
    .design-credit:hover strong {
        color: var(--accent);
    }
}
@layer responsive {
    @media (width < 1000px) {
        .shell {
            width: calc(100% - 64px);
        }
        .realm {
            display: none;
        }
        .community {
            gap: 55px;
        }
    }
    @media (width < 700px) {
        .shell {
            width: calc(100% - 36px);
        }
        .site-header {
            flex-wrap: wrap;
            gap: 16px;
            padding-block: 20px 17px;
        }
        .wordmark {
            font-size: 1.25rem;
        }
        .site-header nav {
            width: 100%;
            margin: 0;
            justify-content: space-between;
            gap: 10px;
            font-size: 0.71rem;
        }
        .intro {
            display: block;
            padding-block: 37px 40px;
        }
        .intro-note {
            margin-top: 24px;
            font-size: 0.8rem;
        }
        .intro-note p {
            max-width: none;
        }
        .intro-note a {
            margin-top: 10px;
        }
        .section-heading h2 {
            font-size: 1.43rem;
        }
        .source-badge {
            font-size: 0.52rem;
            padding: 3px 7px;
        }
        .section-heading .eyebrow {
            font-size: 0.58rem;
        }
        .speed-poster {
            overflow: visible;
        }
        .speed-poster img {
            border-radius: 3px;
        }
        .poster-time > span {
            font-size: 1.05cqw;
            letter-spacing: 0.03em;
        }
        .poster-time > span:last-child {
            display: none;
        }
        .speed-poster figcaption {
            position: static;
            padding: 8px 10px;
            background: var(--panel);
            font-size: 0.48rem;
            border-radius: 0 0 3px 3px;
        }
        .poster-time {
            top: 70%;
        }
        .run-details {
            display: block;
            padding-top: 17px;
        }
        .run-details dl {
            justify-content: space-between;
            gap: 12px;
        }
        .run-details dt {
            font-size: 0.51rem;
        }
        .run-details dd {
            font-size: 0.63rem;
        }
        .run-details .button {
            width: 100%;
            margin-top: 20px;
        }
        .sync-status {
            font-size: 0.6rem;
        }
        .community {
            grid-template-columns: 1fr;
            gap: 45px;
            margin-top: 33px;
            padding-block: 38px 45px;
        }
        .community h2 {
            font-size: 2rem;
        }
        .excuse-generator {
            padding: 22px;
        }
        .excuse {
            min-height: 4em;
        }
        .founder {
            align-items: flex-start;
            gap: 18px;
            padding-block: 27px;
        }
        .founder-mark {
            width: 50px;
            height: 50px;
            font-size: 1.4rem;
        }
        .founder-mark span {
            margin-top: 2px;
            font-size: 0.4rem;
        }
        .founder .eyebrow {
            font-size: 0.51rem;
        }
        .founder h2 {
            font-size: 1.4rem;
        }
        .site-footer {
            flex-wrap: wrap;
            gap: 20px;
            padding-block: 27px;
        }
        .site-footer > p:first-child {
            width: 100%;
        }
        .site-footer .design-credit {
            width: 100%;
            border-top: 1px solid var(--line);
            padding-top: 1.25rem;
        }
    }
    @media (prefers-reduced-motion: reduce) {
        html {
            scroll-behavior: auto;
        }
        * {
            transition: none !important;
        }
    }
}

@layer components {
    .utility-page {
        padding-block: 4rem;
    }
    .utility-page h1 {
        font-family: var(--serif);
        font-size: clamp(2.4rem, 5vw, 4rem);
        line-height: 1.1;
        margin-block-end: 2rem;
    }
    .utility-page p {
        max-width: 68ch;
        margin-block: 1.5rem;
        color: var(--muted);
    }
    .utility-page figure {
        margin-block: 2.5rem;
    }
    .utility-page figcaption {
        margin-block-start: 0.75rem;
        color: var(--muted);
    }
    .utility-page input {
        display: block;
        width: 100%;
        max-width: 50rem;
        padding: 0.8rem;
        margin-block-start: 0.5rem;
        background: var(--panel);
        color: var(--text);
        border: 1px solid var(--line);
        font: inherit;
    }
    .utility-page dl {
        max-width: 68ch;
    }
    .utility-page dt {
        color: var(--accent);
        font-weight: 600;
        margin-block: 2rem 0.5rem;
    }
    .utility-page dd {
        color: var(--muted);
    }
}
