@import url("tokens.css?v=202609101741");

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--nr-ink);
    color: var(--nr-cream);
    font-family: var(--nr-font-body);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1,
h2,
h3 {
    font-family: var(--nr-font-display);
    font-weight: 700;
    line-height: 1.05;
    text-wrap: balance;
    margin: 0;
    color: var(--nr-cream-hi);
}

p {
    margin: 0;
}

a {
    color: var(--nr-amber);
}
a:hover {
    color: var(--nr-amber-hi);
}

:where(a, button, summary):focus-visible {
    outline: 2px solid var(--nr-amber-hi);
    outline-offset: 3px;
    border-radius: 2px;
}

.wrap {
    max-width: 1080px;
    margin-inline: auto;
    padding-inline: 28px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.eyebrow {
    font-family: var(--nr-font-label);
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--nr-amber);
}

.skip {
    position: absolute;
    left: -9999px;
    background: var(--nr-amber);
    color: var(--nr-ink);
    padding: 10px 18px;
    z-index: 100;
    font-family: var(--nr-font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}
.skip:focus {
    left: 12px;
    top: 12px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: color-mix(in srgb, var(--nr-ink) 90%, transparent);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--nr-line);
}
.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding-block: 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}
.brand__mark {
    flex: none;
    display: block;
    transition: transform 0.2s ease;
}
/* The NDR wordmark is 2:1, so height drives it. 28px keeps the heavy
   outline crisp next to the 1.32rem brand name. */
.brand__mark img {
    height: 28px;
    width: auto;
}
.brand:hover .brand__mark {
    transform: rotate(-3deg) scale(1.04);
}
.brand__name {
    font-family: var(--nr-font-display);
    font-weight: 700;
    font-size: 1.32rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--nr-cream-hi);
    line-height: 1;
}
.brand__name em {
    font-style: normal;
    color: var(--nr-amber);
    margin-inline: 0.12em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}
.site-nav a {
    font-family: var(--nr-font-label);
    font-weight: 600;
    font-size: 0.84rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--nr-muted);
    text-decoration: none;
    padding: 9px 13px;
    border-radius: 3px;
    transition:
        color 0.18s,
        background 0.18s;
    white-space: nowrap;
}
.site-nav a:hover {
    color: var(--nr-cream-hi);
    background: var(--nr-amber-weak);
}
.site-nav a[aria-current="page"] {
    color: var(--nr-cream-hi);
}

/* Icon-only marks external destinations; text stays for in-page links. */
.site-nav a.ico {
    display: grid;
    place-items: center;
    padding: 0;
    min-width: 44px;
    min-height: 44px;
}
.site-nav a.ico svg {
    width: 20px;
    height: 20px;
    display: block;
}
.site-nav a.ico:hover {
    color: var(--nr-amber);
}

.btn {
    font-family: var(--nr-font-display);
    font-weight: 700;
    font-size: 1.04rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 12px 26px 11px;
    border: 1px solid transparent;
    border-radius: 3px;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition:
        background 0.18s,
        color 0.18s,
        border-color 0.18s;
}
.btn svg {
    width: 19px;
    height: 19px;
    flex: none;
}
/* The wordmark's own gradient. Ink on it ranges 5.38 (flame foot) to
   13.31 (yellow crown) — every stop clears AA. */
.btn--primary {
    background: var(--nr-grad);
    color: var(--nr-ink);
}
.btn--primary:hover {
    background: var(--nr-amber-hi);
    color: var(--nr-ink);
}
.btn--ghost {
    border-color: var(--nr-line);
    color: var(--nr-cream);
}
.btn--ghost:hover {
    border-color: var(--nr-amber);
    color: var(--nr-amber);
}

/* Phones get the garage lamp rebuilt in CSS. Wider screens swap it for
   the garage photo itself (see the min-width query below). */
.hero {
    position: relative;
    padding-block: 60px 76px;
    text-align: center;
    isolation: isolate;
    overflow: hidden; /* the glow must never widen the document */
}
.hero::before {
    content: "";
    position: absolute;
    inset: -30% 0 auto;
    height: 150%;
    background: radial-gradient(
        58% 50% at 50% 20%,
        rgba(251, 178, 1, 0.17),
        rgba(251, 115, 0, 0.06) 46%,
        transparent 72%
    );
    z-index: -1;
    pointer-events: none;
}
/* The photo is staged like the hero: lamp overhead, a bike on each side,
   an open centre for the content. Layers, top to bottom: fade into the
   header and into the next section; an overall dim; the photo. The door
   sign repeats the mascot's wordmark on purpose — it's part of the garage,
   dimmed, and doesn't compete with the logo.
   On phones the hero is tall and narrow, so `cover` would show only the
   door sign behind the mascot — they keep the glow and never download it. */
@media (min-width: 761px) {
    .hero::before {
        inset: 0;
        height: auto;
        background:
            linear-gradient(
                180deg,
                var(--nr-ink) 0%,
                transparent 16%,
                transparent 62%,
                var(--nr-ink) 100%
            ),
            linear-gradient(rgba(10, 10, 11, 0.74), rgba(10, 10, 11, 0.74)),
            url("bg.jpg?v=202609101741") center / cover no-repeat;
    }
}
.hero .wrap {
    position: relative;
}
.hero__mark {
    width: min(400px, 74vw);
    margin: 0 auto 30px;
    filter: drop-shadow(0 16px 34px rgba(0, 0, 0, 0.75))
        drop-shadow(0 0 46px rgba(251, 178, 1, 0.2));
    animation: settle 0.8s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}
@keyframes settle {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
.hero h1 {
    font-size: clamp(2.5rem, 6.5vw, 4.2rem);
    letter-spacing: -0.005em;
    margin-bottom: 18px;
}
.hero__lead {
    color: var(--nr-muted);
    font-size: 1.14rem;
    max-width: 52ch;
    margin: 0 auto;
}
.hero__actions {
    display: flex;
    gap: 13px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 34px;
}

.section {
    padding-block: 62px;
    border-top: 1px solid var(--nr-line);
}
.section__head {
    margin-bottom: 34px;
}
.section__head h2 {
    font-size: 2.1rem;
    margin-block: 9px 7px;
}
.section__head p {
    color: var(--nr-muted);
    max-width: 58ch;
}

.thesis {
    padding-block: 72px;
    border-top: 1px solid var(--nr-line);
}
.thesis .wrap {
    max-width: 860px;
}
.thesis__rule {
    height: 4px;
    width: 74px;
    margin-bottom: 30px;
    background: linear-gradient(90deg, var(--nr-amber-hi), var(--nr-orange) 62%, var(--nr-flame));
    border-radius: 2px;
}
.thesis p {
    font-family: var(--nr-font-display);
    font-weight: 600;
    font-size: clamp(1.55rem, 3.6vw, 2.35rem);
    line-height: 1.22;
    color: var(--nr-cream-hi);
    text-wrap: pretty;
}
.thesis p + p {
    margin-top: 0.7em;
}
.thesis p .quiet {
    color: var(--nr-muted);
}
.thesis__coda {
    font-family: var(--nr-font-body) !important;
    font-weight: 400 !important;
    font-size: 1.08rem !important;
    line-height: 1.65 !important;
    color: var(--nr-muted) !important;
    max-width: 56ch;
    margin-top: 26px !important;
}

.video__frame {
    position: relative;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--nr-line);
    border-radius: 6px;
    overflow: hidden;
    background: var(--nr-surface);
    /* The player is the one bright rectangle on the page; the glow keeps it
     from floating off the black. */
    box-shadow:
        0 18px 44px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(251, 178, 1, 0.07);
}
.video__frame iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}
.video__title {
    font-size: 1.5rem;
    margin-top: 20px;
    max-width: 46ch;
}
.video__title a {
    color: inherit;
    text-decoration: none;
}
.video__title a:hover {
    color: var(--nr-amber);
}
.video__all {
    font-family: var(--nr-font-label);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 18px;
}
.video__all::after {
    content: "→";
    transition: transform 0.2s;
}
.video__all:hover::after {
    transform: translateX(4px);
}

.topics {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}
.topics li {
    list-style: none;
    font-family: var(--nr-font-label);
    font-weight: 600;
    font-size: 0.86rem;
    letter-spacing: 0.04em;
    color: var(--nr-cream);
    background: var(--nr-surface);
    border: 1px solid var(--nr-line);
    border-radius: 100px;
    padding: 8px 17px 7px;
}
.topics li:nth-child(3n + 1) {
    border-color: color-mix(in srgb, var(--nr-amber) 42%, var(--nr-line));
}

.entries {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
    gap: 17px;
}
.entry {
    background: var(--nr-surface);
    border: 1px solid var(--nr-line);
    border-radius: 5px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    transition:
        border-color 0.2s,
        background 0.2s,
        transform 0.2s;
}
.entry:hover {
    border-color: var(--nr-amber);
    background: var(--nr-raised);
    transform: translateY(-2px);
    color: inherit;
}
.entry__kind {
    font-family: var(--nr-font-label);
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--nr-amber);
    display: flex;
    align-items: center;
    gap: 7px;
}
.entry__kind::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--nr-amber);
    flex: none;
}
.entry h3 {
    font-size: 1.55rem;
}
.entry p {
    font-size: 0.95rem;
    color: var(--nr-muted);
}
.entry__stats {
    display: flex;
    gap: 22px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--nr-line);
}
.entry__stats div {
    display: flex;
    flex-direction: column;
}
.entry__stats dt,
.entry__stats .k {
    font-family: var(--nr-font-label);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--nr-dim);
    margin: 0;
}
.entry__stats dd,
.entry__stats .v {
    font-family: var(--nr-font-display);
    font-weight: 700;
    font-size: 1.24rem;
    color: var(--nr-cream-hi);
    font-variant-numeric: tabular-nums;
    margin: 0;
}

/* The logo's colours, garage-style. overflow clips the bottom halo's
   lower half so it only spills upward, like floor light. */
.section--glow {
    position: relative;
    overflow: hidden;
    border-top: 0;
    /* The hero's lamp glow, walked through the wordmark gradient: yellow
       crown at the centre, then amber, orange, flame, fading out from the
       top edge. */
    background:
        radial-gradient(
            ellipse 55% 60% at 50% 0%,
            rgba(251, 208, 1, 0.15),
            rgba(251, 178, 1, 0.1) 22%,
            rgba(251, 115, 0, 0.06) 48%,
            rgba(250, 60, 0, 0.03) 68%,
            transparent 85%
        ),
        var(--nr-ink);
}
/* Both edges share one thin, translucent line of the wordmark gradient;
   the bottom one also carries the glow. */
.section--glow::before,
.section--glow::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(250, 60, 0, 0.6) 10%,
        rgba(251, 115, 0, 0.6) 30%,
        rgba(251, 208, 1, 0.6) 50%,
        rgba(251, 115, 0, 0.6) 70%,
        rgba(250, 60, 0, 0.6) 90%,
        transparent
    );
}
.section--glow::before {
    top: 0;
}
.section--glow::after {
    bottom: 0;
    box-shadow:
        0 0 16px 2px rgba(251, 178, 1, 0.55),
        0 0 48px 8px rgba(251, 115, 0, 0.28);
}

.channels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 17px;
}
.channel {
    background: var(--nr-surface);
    border: 1px solid var(--nr-line);
    border-radius: 5px;
    padding: 28px 26px;
    display: flex;
    flex-direction: column;
    gap: 11px;
    text-decoration: none;
    color: inherit;
    transition:
        border-color 0.2s,
        background 0.2s,
        transform 0.2s;
}
.channel:hover {
    border-color: var(--nr-amber);
    background: var(--nr-raised);
    transform: translateY(-2px);
    color: inherit;
}
/* Sticker marks: same black-and-white outline treatment as the logo.
   Fixed box + contain keeps the three different aspect ratios aligned. */
.channel__icon {
    width: 54px;
    height: 54px;
    object-fit: contain;
    object-position: left center;
    transition: transform 0.2s;
}
.channel:hover .channel__icon {
    transform: rotate(-4deg) scale(1.06);
}
.channel h3 {
    font-size: 1.6rem;
}
.channel .handle {
    font-family: var(--nr-font-mono);
    font-size: 0.88rem;
    color: var(--nr-dim);
}
.channel p {
    color: var(--nr-muted);
    font-size: 0.95rem;
}
.channel__go {
    font-family: var(--nr-font-label);
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--nr-amber);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 7px;
}
.channel:hover .channel__go {
    color: var(--nr-amber-hi);
}
.channel__go::after {
    content: "→";
    transition: transform 0.2s;
}
.channel:hover .channel__go::after {
    transform: translateX(4px);
}

.draft {
    background: var(--nr-amber-weak);
    border: 1px solid var(--nr-amber);
    border-radius: 4px;
    padding: 15px 19px;
    color: var(--nr-cream);
    font-size: 0.93rem;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.draft strong {
    font-family: var(--nr-font-label);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.76rem;
    color: var(--nr-amber);
    flex: none;
    padding-top: 0.22em;
}

.article {
    padding-block: 52px 68px;
}
.article__head {
    max-width: 65ch;
    margin-bottom: 34px;
}
.article__head h1 {
    font-size: clamp(2.3rem, 5.5vw, 3.4rem);
    margin-block: 10px 16px;
}
.article__head .standfirst {
    color: var(--nr-muted);
    font-size: 1.14rem;
}
.article__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding-block: 20px;
    margin-bottom: 38px;
    border-block: 1px solid var(--nr-line);
}
.article__facts div {
    display: flex;
    flex-direction: column;
}
.article__facts dt {
    font-family: var(--nr-font-label);
    font-size: 0.7rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--nr-dim);
    margin: 0;
}
.article__facts dd {
    font-family: var(--nr-font-display);
    font-weight: 700;
    font-size: 1.42rem;
    color: var(--nr-cream-hi);
    font-variant-numeric: tabular-nums;
    margin: 0;
}

.prose {
    max-width: 65ch;
}
.prose > * + * {
    margin-top: 1.15em;
}
.prose h2 {
    font-size: 1.72rem;
    margin-top: 2.1em;
    padding-top: 0.55em;
    border-top: 1px solid var(--nr-line);
}
.prose h3 {
    font-size: 1.3rem;
    margin-top: 1.7em;
}
.prose a {
    text-decoration-color: var(--nr-amber-weak);
    text-underline-offset: 3px;
}
.prose a:hover {
    text-decoration-color: currentColor;
}
.prose ul,
.prose ol {
    padding-left: 1.3em;
    margin-block: 1.15em;
}
.prose li + li {
    margin-top: 0.5em;
}
.prose li::marker {
    color: var(--nr-amber);
}
.prose blockquote {
    margin: 1.6em 0;
    padding: 4px 0 4px 22px;
    border-left: 3px solid var(--nr-amber);
    color: var(--nr-cream-hi);
    font-size: 1.1rem;
}
.prose figure {
    margin: 2em 0;
}
.prose figcaption {
    font-size: 0.86rem;
    color: var(--nr-dim);
    margin-top: 9px;
    font-family: var(--nr-font-label);
}
.prose code {
    font-family: var(--nr-font-mono);
    font-size: 0.87em;
    background: var(--nr-amber-weak);
    color: var(--nr-amber);
    padding: 1px 5px;
    border-radius: 2px;
}

.backlink {
    font-family: var(--nr-font-label);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.backlink::before {
    content: "←";
}

.endnote {
    margin-top: 52px;
    padding: 28px;
    background: var(--nr-surface);
    border: 1px solid var(--nr-line);
    border-radius: 5px;
    max-width: 65ch;
}
.endnote h2 {
    font-size: 1.4rem;
    margin-bottom: 9px;
}
.endnote p {
    color: var(--nr-muted);
    font-size: 0.96rem;
}
.endnote .btn {
    margin-top: 18px;
}

.site-footer {
    padding-block: 44px 60px;
    border-top: 1px solid var(--nr-line);
}
.site-footer .wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 26px;
    flex-wrap: wrap;
}
/* The full wordmark signs off the page. 3:1, so height drives it. */
.footer-mark {
    width: auto;
    height: 60px;
}
.site-footer .meta {
    color: var(--nr-dim);
    font-size: 0.88rem;
    margin-top: 10px;
}
.footer-links {
    display: flex;
    align-items: center;
    gap: 16px;
}
.footer-links a {
    font-family: var(--nr-font-label);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--nr-muted);
}
.footer-links a:hover {
    color: var(--nr-amber);
}
.footer-links a.ico {
    display: grid;
    place-items: center;
    min-width: 40px;
    min-height: 40px;
}
.footer-links a.ico svg {
    width: 19px;
    height: 19px;
    display: block;
}

/* Three channels: 3 across, then 2 + 1, then stacked. */
@media (max-width: 940px) {
    .channels {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    body {
        font-size: 16px;
    }
    .wrap {
        padding-inline: 20px;
    }
    .channels {
        grid-template-columns: 1fr;
    }
    .hero {
        padding-block: 38px 54px;
    }
    .section {
        padding-block: 46px;
    }
    .site-header .wrap {
        padding-block: 10px;
    }
    .brand__name {
        font-size: 1.12rem;
    }
    .site-nav {
        gap: 0;
    }
    .site-nav a {
        padding: 8px 9px;
        font-size: 0.76rem;
        letter-spacing: 0.09em;
    }
    .article__facts {
        gap: 20px 26px;
    }
}

@media (max-width: 400px) {
    .brand__name {
        display: none;
    }
}

@media (max-width: 460px) {
    .hero__actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
