/*
  FabricCraft Status - shared design system.
  Mirrors the fabriccraft.net brand (server_website/assets/styles.css):
  same tokens, same Anton / Inter Tight / JetBrains Mono type stack,
  same sharp-cornered dark surfaces. Dark-only by brand lock.

  Accent lock: diamond (#6fdfd0) is the single interactive/brand accent.
  Status colors (green / gold / orange / red / diamond / grey) are semantic
  state indicators for a status page, not decorative accents.

  Radius lock: rectangles are sharp (radius 0). Only status dots are circular.
*/

/* Self-hosted fonts (latin subset). A status page must not depend on a
   third-party CDN being up: these ship with the app. Inter Tight and
   JetBrains Mono are variable fonts covering weights 400-700 in one file. */
@font-face {
    font-family: "Anton";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/assets/fonts/anton-400.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Inter Tight";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("/assets/fonts/inter-tight-var.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "JetBrains Mono";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("/assets/fonts/jetbrains-mono-var.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    color-scheme: dark;

    /* Brand surfaces */
    --bg: #0a0d10;
    --bg-2: #0e1216;
    --bg-3: #151b21;
    --ink: #e8eef4;
    --ink-dim: rgba(232, 238, 244, 0.5);
    --muted: #7a8896;
    --muted-2: #9aa6b2;

    /* Brand accent */
    --diamond: #6fdfd0;
    --diamond-bright: #a8f0e6;
    --diamond-soft: rgba(111, 223, 208, 0.13);

    /* Semantic status colors */
    --green: #3aff7a;
    --gold: #f0d04a;
    --orange: #ff9d4a;
    --red: #ff5c5c;
    --grey: #7a8896;

    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(111, 223, 208, 0.34);
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);

    --font-body: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-display: "Anton", "Inter Tight", Impact, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;

    --radius: 0px;
    --wrap: 980px;
    --pad-x: 1.5rem;
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--ink);
    background:
        radial-gradient(circle at 82% -4%, rgba(111, 223, 208, 0.12), transparent 30rem),
        linear-gradient(180deg, var(--bg) 0%, #090b0e 100%);
    background-attachment: fixed;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
}

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

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

.skip-link {
    position: absolute;
    left: -999px;
    top: -999px;
    z-index: 100;
    padding: 0.7rem 1rem;
    color: var(--bg);
    background: var(--diamond);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
}

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding-left: var(--pad-x);
    padding-right: var(--pad-x);
}

/* -------------------------------------------------------------------------- */
/* Header                                                                      */
/* -------------------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid var(--line);
    background: rgba(10, 13, 16, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 4rem;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0.75rem var(--pad-x);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    min-width: max-content;
}

.brand-mark {
    width: 1.75rem;
    height: 1.75rem;
    flex: 0 0 auto;
    object-fit: contain;
}

.brand-word {
    font-family: var(--font-display);
    font-size: 1.32rem;
    line-height: 1;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.brand-suffix {
    margin-left: 0.1rem;
    color: var(--muted-2);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    align-self: center;
}

.header-side {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    min-width: 0;
}

.updated {
    display: inline-flex;
    align-items: baseline;
    gap: 0.4rem;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.74rem;
    white-space: nowrap;
}

.updated b {
    color: var(--muted-2);
    font-weight: 600;
}

.header-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--muted-2);
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.18s ease;
}

.header-link:hover,
.header-link:focus-visible {
    color: var(--diamond);
}

.header-link .arrow {
    color: var(--diamond);
    font-family: var(--font-mono);
}

/* -------------------------------------------------------------------------- */
/* Main layout                                                                 */
/* -------------------------------------------------------------------------- */

main {
    display: block;
    padding-top: 2.25rem;
    padding-bottom: 4rem;
}

.stack > * + * {
    margin-top: 2.5rem;
}

/* -------------------------------------------------------------------------- */
/* Status tone tokens (semantic state -> color)                                */
/* -------------------------------------------------------------------------- */

[data-status] {
    --tone: var(--grey);
    --tone-soft: rgba(122, 136, 150, 0.10);
    --tone-edge: rgba(122, 136, 150, 0.30);
}
[data-status="operational"] {
    --tone: var(--green);
    --tone-soft: rgba(58, 255, 122, 0.09);
    --tone-edge: rgba(58, 255, 122, 0.36);
}
[data-status="degraded"] {
    --tone: var(--gold);
    --tone-soft: rgba(240, 208, 74, 0.10);
    --tone-edge: rgba(240, 208, 74, 0.40);
}
[data-status="partial_outage"] {
    --tone: var(--orange);
    --tone-soft: rgba(255, 157, 74, 0.11);
    --tone-edge: rgba(255, 157, 74, 0.42);
}
[data-status="major_outage"] {
    --tone: var(--red);
    --tone-soft: rgba(255, 92, 92, 0.11);
    --tone-edge: rgba(255, 92, 92, 0.44);
}
[data-status="maintenance"] {
    --tone: var(--diamond);
    --tone-soft: rgba(111, 223, 208, 0.10);
    --tone-edge: rgba(111, 223, 208, 0.40);
}
[data-status="idle"],
[data-status="unknown"] {
    --tone: var(--grey);
    --tone-soft: rgba(122, 136, 150, 0.09);
    --tone-edge: rgba(122, 136, 150, 0.30);
}

/* -------------------------------------------------------------------------- */
/* Status dot                                                                  */
/* -------------------------------------------------------------------------- */

.dot {
    display: inline-block;
    flex: 0 0 auto;
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: var(--tone);
    box-shadow: 0 0 0 0 var(--tone-edge);
}

.dot.dot-lg {
    width: 0.85rem;
    height: 0.85rem;
}

/* Pulse draws the eye to the live overall state and to any component
   that needs attention. Motivated: liveness + attention. */
@media (prefers-reduced-motion: no-preference) {
    .dot.pulse {
        animation: dotPulse 2.4s ease-out infinite;
    }
}

@keyframes dotPulse {
    0% {
        box-shadow: 0 0 0 0 var(--tone-edge);
    }
    70% {
        box-shadow: 0 0 0 0.55rem rgba(0, 0, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
}

/* -------------------------------------------------------------------------- */
/* Overall banner                                                              */
/* -------------------------------------------------------------------------- */

.banner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.1rem;
    padding: 1.7rem 1.8rem;
    border: 1px solid var(--line);
    border-left: 3px solid var(--tone);
    background:
        linear-gradient(180deg, var(--tone-soft), rgba(0, 0, 0, 0)) var(--bg-2);
    transition: border-color 0.45s ease, background 0.45s ease;
}

.banner .dot {
    margin-top: 0.55rem;
    align-self: flex-start;
}

.banner-body {
    min-width: 0;
    flex: 1;
}

.banner h1 {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 4.4vw, 2.55rem);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.banner p {
    margin: 0.55rem 0 0;
    color: var(--muted-2);
    font-size: 0.98rem;
    line-height: 1.5;
}

/* -------------------------------------------------------------------------- */
/* Panels + section headings                                                   */
/* -------------------------------------------------------------------------- */

.panel {
    border: 1px solid var(--line);
    background: var(--bg-2);
}

.group-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 1rem;
    padding: 0 0.15rem;
}

.group-head h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--ink);
}

.group-count {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

/* -------------------------------------------------------------------------- */
/* Component rows                                                              */
/* -------------------------------------------------------------------------- */

.group + .group {
    margin-top: 2.25rem;
}

.components {
    border: 1px solid var(--line);
    background: var(--bg-2);
}

.component {
    padding: 1.1rem 1.35rem 1.25rem;
    border-top: 1px solid var(--line);
}

.component:first-child {
    border-top: 0;
}

.component-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.component-name {
    min-width: 0;
    flex: 1;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem 0.7rem;
}

.component-name .name {
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--ink);
}

.component-name .desc {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.02em;
}

.component-meta {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex: 0 0 auto;
}

.chip {
    color: var(--muted-2);
    font-family: var(--font-mono);
    font-size: 0.76rem;
    white-space: nowrap;
}

.chip.chip-players {
    color: var(--diamond);
}

.uptime {
    min-width: 3.9rem;
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
}

.uptime.nodata {
    color: var(--muted);
    font-weight: 400;
}

.status-word {
    color: var(--tone);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

/* Operational rows stay quiet: the green dot + uptime carry the state,
   a status word only appears when something needs attention. */
.component[data-status="operational"] .status-word {
    display: none;
}

/* -------------------------------------------------------------------------- */
/* Uptime bar strip                                                            */
/* -------------------------------------------------------------------------- */

.bars-wrap {
    margin-top: 0.9rem;
}

.bars {
    display: flex;
    align-items: stretch;
    gap: 2px;
    height: 2.05rem;
}

.seg {
    flex: 1 1 0;
    min-width: 0;
    padding: 0;
    border: 0;
    background: var(--seg, rgba(122, 136, 150, 0.14));
    cursor: default;
    transition: filter 0.14s ease, transform 0.14s ease;
}

.seg[data-day="up"] {
    --seg: rgba(58, 255, 122, 0.85);
}
.seg[data-day="degraded"] {
    --seg: rgba(240, 208, 74, 0.88);
}
.seg[data-day="down"] {
    --seg: rgba(255, 92, 92, 0.9);
}
.seg[data-day="idle"] {
    --seg: rgba(122, 136, 150, 0.34);
}
.seg[data-day="nodata"] {
    --seg: rgba(122, 136, 150, 0.14);
}

.seg:hover,
.seg:focus-visible {
    filter: brightness(1.35);
    outline: none;
}

.seg:focus-visible {
    transform: scaleY(1.12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.seg.is-today {
    box-shadow: inset 0 0 0 1px rgba(232, 238, 244, 0.55);
}

.bars-axis {
    display: flex;
    justify-content: space-between;
    margin-top: 0.45rem;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.05em;
}

/* Segment tooltip (single shared node, positioned in JS) */
.seg-tip {
    position: fixed;
    z-index: 60;
    min-width: 9rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--line-strong);
    background: rgba(14, 18, 22, 0.98);
    box-shadow: var(--shadow);
    pointer-events: none;
    opacity: 0;
    transform: translateY(3px);
    transition: opacity 0.12s ease, transform 0.12s ease;
}

.seg-tip.show {
    opacity: 1;
    transform: translateY(0);
}

.seg-tip .tip-date {
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 600;
}

.seg-tip .tip-status {
    margin-top: 0.2rem;
    color: var(--tone, var(--muted-2));
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.02em;
}

.seg-tip .tip-uptime {
    margin-top: 0.1rem;
    color: var(--muted-2);
    font-family: var(--font-mono);
    font-size: 0.7rem;
}

/* -------------------------------------------------------------------------- */
/* Incidents (active + past)                                                   */
/* -------------------------------------------------------------------------- */

.section-label {
    margin: 0 0 1rem;
    padding: 0 0.15rem;
    color: var(--muted-2);
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.incident {
    padding: 1.25rem 1.4rem;
    border: 1px solid var(--line);
    border-left: 3px solid var(--tone);
    background: var(--bg-2);
}

.incident + .incident {
    margin-top: 1rem;
}

.incident-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.incident-title {
    margin: 0;
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.3;
}

.sev {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.28rem 0.55rem;
    border: 1px solid var(--tone-edge);
    background: var(--tone-soft);
    color: var(--tone);
    font-family: var(--font-mono);
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
}

.incident-affected {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.85rem;
}

.affected-chip {
    padding: 0.2rem 0.5rem;
    border: 1px solid var(--line);
    background: var(--bg-3);
    color: var(--muted-2);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.02em;
}

.updates {
    margin: 1.1rem 0 0;
    padding: 0;
    list-style: none;
}

.update {
    position: relative;
    padding: 0.75rem 0 0.75rem 1.15rem;
    border-top: 1px solid var(--line);
}

.update::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.05rem;
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background: var(--u-tone, var(--muted));
}

.update[data-status="investigating"] { --u-tone: var(--red); }
.update[data-status="identified"] { --u-tone: var(--orange); }
.update[data-status="monitoring"] { --u-tone: var(--gold); }
.update[data-status="resolved"] { --u-tone: var(--green); }
.update[data-status="maintenance"] { --u-tone: var(--diamond); }

.update-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.update-status {
    color: var(--u-tone, var(--muted-2));
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.update-time {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    white-space: nowrap;
}

.update-body {
    margin: 0.35rem 0 0;
    color: var(--muted-2);
    font-size: 0.92rem;
    line-height: 1.5;
}

.update-by {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.66rem;
}

/* Past incidents grouped by day, resolved ones collapsed via <details> */
.day-group + .day-group {
    margin-top: 1.6rem;
}

.day-heading {
    margin: 0 0 0.7rem;
    padding: 0 0.15rem;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.past {
    border: 1px solid var(--line);
    border-left: 3px solid var(--tone);
    background: var(--bg-2);
}

.past + .past {
    margin-top: 0.7rem;
}

.past > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1.2rem;
    cursor: pointer;
    list-style: none;
}

.past > summary::-webkit-details-marker {
    display: none;
}

.past > summary:hover .past-title,
.past > summary:focus-visible .past-title {
    color: var(--diamond);
}

.past-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
    flex-wrap: wrap;
}

.past-title {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--ink);
    transition: color 0.16s ease;
}

.past-right {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex: 0 0 auto;
}

.past-resolved {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    white-space: nowrap;
}

.past-caret {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: transform 0.18s ease;
}

.past[open] .past-caret {
    transform: rotate(90deg);
    color: var(--diamond);
}

.past-detail {
    padding: 0 1.2rem 1.1rem;
    border-top: 1px solid var(--line);
}

/* -------------------------------------------------------------------------- */
/* Empty / stale / notice states                                               */
/* -------------------------------------------------------------------------- */

.empty {
    padding: 1.1rem 1.35rem;
    border: 1px solid var(--line);
    background: var(--bg-2);
    color: var(--muted);
    font-size: 0.92rem;
}

.stale {
    display: none;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1.5rem;
    padding: 0.85rem 1.1rem;
    border: 1px solid rgba(240, 208, 74, 0.34);
    background: rgba(240, 208, 74, 0.07);
    color: var(--ink);
    font-size: 0.88rem;
}

.stale.show {
    display: flex;
}

.stale .dot {
    --tone: var(--gold);
}

.stale-text {
    min-width: 0;
}

.stale-text b {
    font-weight: 600;
}

.stale-text span {
    color: var(--muted-2);
    font-family: var(--font-mono);
    font-size: 0.78rem;
}

.retry-btn {
    margin-left: auto;
    flex: 0 0 auto;
    min-height: 2rem;
    padding: 0 0.9rem;
    border: 1px solid var(--line-strong);
    background: var(--diamond-soft);
    color: var(--diamond-bright);
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: background 0.16s ease, transform 0.08s ease;
}

.retry-btn:hover {
    background: rgba(111, 223, 208, 0.2);
}

.retry-btn:active {
    transform: translateY(1px);
}

/* -------------------------------------------------------------------------- */
/* Skeletons                                                                    */
/* -------------------------------------------------------------------------- */

.sk {
    background: var(--bg-3);
    position: relative;
    overflow: hidden;
}

@media (prefers-reduced-motion: no-preference) {
    .sk::after {
        content: "";
        position: absolute;
        inset: 0;
        transform: translateX(-100%);
        background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
        animation: skShimmer 1.5s ease-in-out infinite;
    }
}

@keyframes skShimmer {
    100% {
        transform: translateX(100%);
    }
}

.sk-line {
    height: 0.7rem;
}

.sk-dot {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    flex: 0 0 auto;
}

.sk-bars {
    height: 2.05rem;
    margin-top: 0.9rem;
}

/* -------------------------------------------------------------------------- */
/* Footer                                                                       */
/* -------------------------------------------------------------------------- */

.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(8, 10, 13, 0.6);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 1.6rem var(--pad-x);
}

.footer-inner a {
    color: var(--muted-2);
    font-size: 0.86rem;
    font-weight: 600;
    transition: color 0.16s ease;
}

.footer-inner a:hover,
.footer-inner a:focus-visible {
    color: var(--diamond);
}

.footer-note {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.03em;
}

.noscript {
    max-width: var(--wrap);
    margin: 1.5rem auto;
    padding: 1rem 1.35rem;
    border: 1px solid rgba(240, 208, 74, 0.34);
    background: rgba(240, 208, 74, 0.07);
    color: var(--ink);
    font-size: 0.9rem;
}

/* -------------------------------------------------------------------------- */
/* Responsive                                                                   */
/* -------------------------------------------------------------------------- */

@media (max-width: 640px) {
    :root {
        --pad-x: 1rem;
    }

    .header-side {
        gap: 0.9rem;
    }

    .updated {
        font-size: 0.68rem;
    }

    .banner {
        padding: 1.35rem 1.25rem;
    }

    .component {
        padding: 1rem 1.1rem 1.15rem;
    }

    .component-head {
        flex-wrap: wrap;
    }

    .component-meta {
        width: 100%;
        justify-content: flex-end;
        gap: 0.7rem;
    }

    .bars {
        height: 1.85rem;
    }
}

@media (max-width: 420px) {
    .brand-suffix {
        display: none;
    }

    .header-link .label {
        display: none;
    }
}

/* Reduced motion: continuous animations (dot pulse, skeleton shimmer) are
   already gated to no-preference; this also collapses transitions. */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}
