:root {
    --bg: #07131f;
    --bg2: #10253b;
    --panel-bg: rgba(7, 19, 31, 0.68);
    --panel-glow: rgba(103, 230, 168, 0.14);
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.08);
    --panel-border: rgba(177, 222, 255, 0.18);
    --button-bg: rgba(121, 184, 255, 0.18);
    --button-border: rgba(121, 184, 255, 0.28);
    --button-bg-ghost: rgba(255, 255, 255, 0.04);
    --text: #eff7ff;
    --muted: #9cc4df;
    --muted-strong: #d7ecff;
    --accent: #67e6a8;
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(103, 230, 168, 0.18), transparent 26%),
        radial-gradient(circle at top right, rgba(121, 184, 255, 0.22), transparent 32%),
        linear-gradient(160deg, var(--bg), var(--bg2));
}

a {
    color: #d9f7ff;
}

.shell {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px 72px;
}

.shell--narrow {
    max-width: 920px;
}

.hero,
.panel {
    border: 1px solid var(--panel-border);
    border-radius: 28px;
    background:
        linear-gradient(160deg, rgba(12, 34, 54, 0.88), rgba(7, 19, 31, 0.72)),
        radial-gradient(circle at 20% 0%, var(--panel-glow), transparent 32%);
    box-shadow: var(--shadow);
}

.hero {
    padding: 36px 34px 32px;
}

.heroTop {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.heroHomeLink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 28px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--muted-strong);
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: inset 0 0 0 1px rgba(177, 222, 255, 0.06);
}

.heroHomeLink:hover,
.heroHomeLink:focus {
    background: rgba(121, 184, 255, 0.18);
    border-color: rgba(121, 184, 255, 0.28);
}

.panel {
    margin-top: 22px;
    padding: 28px;
    background: var(--panel-bg);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--muted-strong);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

h1 {
    margin: 18px 0 10px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 0.95;
    letter-spacing: -0.04em;
}

h2 {
    margin: 0 0 12px;
    font-size: 24px;
    letter-spacing: -0.02em;
}

h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

p,
li,
dd {
    line-height: 1.6;
}

.lead,
.panel > p,
.entry p,
.guideList li {
    color: var(--muted);
}

.lead {
    max-width: 760px;
    font-size: 18px;
}

.meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.metaCard,
.card,
.entry,
.swatchCard {
    padding: 18px;
    border-radius: 20px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
}

.metaCard {
    padding: 16px 18px;
    border-radius: 18px;
}

.metaLabel,
.microLabel {
    display: block;
    color: #8fb3cc;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.metaValue {
    font-size: 18px;
    font-weight: 600;
}

.metaNote,
.footer,
.entryMeta,
.microNote {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.grid,
.entryGrid,
.swatchGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

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

.detailList {
    display: grid;
    gap: 8px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.detailList strong,
.entryMeta strong {
    color: var(--text);
    margin-right: 6px;
}

.links,
.entryLinks,
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 16px;
    border-radius: 999px;
    background: var(--button-bg);
    border: 1px solid var(--button-border);
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0.04em;
}

.button:hover,
.button:focus {
    background: rgba(121, 184, 255, 0.26);
}

.button--ghost {
    background: var(--button-bg-ghost);
}

.button--ghost:hover,
.button--ghost:focus {
    background: rgba(255, 255, 255, 0.09);
}

.button--disabled,
.button--disabled:hover,
.button--disabled:focus {
    opacity: 0.55;
    cursor: default;
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    text-decoration: none;
}

.entryTitle,
.entryTitle a {
    color: var(--text);
    text-decoration: none;
}

.entryTitle a:hover,
.entryTitle a:focus {
    text-decoration: underline;
}

.entryMeta {
    display: block;
    margin-top: 6px;
}

.sectionStack {
    display: grid;
    gap: 16px;
}

.notePanel {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border-left: 4px solid rgba(121, 184, 255, 0.55);
}

.guideList {
    margin: 0;
    padding-left: 18px;
}

.swatch {
    height: 72px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 12px;
}

.swatch--bg {
    background: linear-gradient(160deg, var(--bg), var(--bg2));
}

.swatch--card {
    background: var(--card-bg);
}

.swatch--button {
    background: var(--button-bg);
}

.codeLike {
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cfe8fb;
    font-family: "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: 13px;
    overflow-x: auto;
}

.footer {
    margin-top: 18px;
}

code {
    font-family: "SFMono-Regular", "Menlo", monospace;
    font-size: 0.95em;
    color: var(--muted-strong);
}

.activityChart {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 14px;
    align-items: stretch;
    margin-top: 22px;
}

.activityYAxis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    min-height: 260px;
    padding: 8px 0 32px;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.04em;
}

.activityPlot {
    position: relative;
    min-height: 260px;
    padding-top: 8px;
}

.activityGridLine {
    position: absolute;
    left: 0;
    right: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.activityGridLine--top {
    top: 8px;
}

.activityGridLine--mid {
    top: calc(50% + 4px);
}

.activityBars {
    position: relative;
    z-index: 1;
    min-height: 260px;
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
    padding: 8px 0 0;
}

.activityWeek {
    display: grid;
    gap: 8px;
}

.activityColumn {
    min-height: 220px;
    display: flex;
    align-items: flex-end;
}

.activityStack {
    width: 100%;
    height: 220px;
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-start;
    overflow: hidden;
    border-radius: 18px 18px 8px 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.08));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.activitySegment {
    display: block;
    width: 100%;
    min-height: 0;
    transition: height 0.5s ease;
}

.activitySegment--abtweak,
.activityLegendSwatch.activitySegment--abtweak {
    background: linear-gradient(180deg, rgba(103, 230, 168, 0.96), rgba(57, 181, 124, 0.96));
}

.activitySegment--csp,
.activityLegendSwatch.activitySegment--csp {
    background: linear-gradient(180deg, rgba(121, 184, 255, 0.96), rgba(74, 126, 230, 0.96));
}

.activitySegment--galaga,
.activityLegendSwatch.activitySegment--galaga {
    background: linear-gradient(180deg, rgba(255, 214, 107, 0.96), rgba(233, 157, 62, 0.96));
}

.activitySegment--steven,
.activityLegendSwatch.activitySegment--steven {
    background: linear-gradient(180deg, rgba(124, 181, 255, 0.96), rgba(76, 129, 224, 0.96));
}

.activitySegment--quack,
.activityLegendSwatch.activitySegment--quack {
    background: linear-gradient(180deg, rgba(255, 176, 82, 0.96), rgba(219, 116, 50, 0.96));
}

.activitySegment--google,
.activityLegendSwatch.activitySegment--google {
    background: linear-gradient(180deg, rgba(246, 83, 20, 0.96), rgba(219, 68, 55, 0.96));
}

.activitySegment--inovia,
.activityLegendSwatch.activitySegment--inovia {
    background: linear-gradient(180deg, rgba(162, 89, 255, 0.96), rgba(110, 56, 190, 0.96));
}

.activitySegment--canberra,
.activityLegendSwatch.activitySegment--canberra {
    background: linear-gradient(180deg, rgba(54, 179, 126, 0.96), rgba(28, 120, 85, 0.96));
}

.activitySegment--sei,
.activityLegendSwatch.activitySegment--sei {
    background: linear-gradient(180deg, rgba(159, 168, 218, 0.96), rgba(92, 107, 192, 0.96));
}

.activitySegment--kinitos,
.activityLegendSwatch.activitySegment--kinitos {
    background: linear-gradient(180deg, rgba(98, 214, 202, 0.96), rgba(39, 166, 162, 0.96));
}

.activityTotal,
.activityLabel {
    text-align: center;
}

.activityTotal {
    color: var(--muted-strong);
    font-size: 13px;
    font-weight: 600;
}

.activityLabel {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.activityLegend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
    margin-top: 18px;
}

.activityLegendItem {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 14px;
}

.activityLegendSwatch {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}

@media (max-width: 720px) {
    .shell {
        padding: 20px 14px 54px;
    }

    .hero,
    .panel {
        padding: 24px 22px;
    }

    .links,
    .entryLinks,
    .breadcrumbs {
        gap: 10px;
    }

    .heroTop {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 14px;
    }

    .heroHomeLink {
        padding: 14px 22px;
    }

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

    .activityYAxis {
        min-height: auto;
        padding: 0;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .activityBars {
        gap: 10px;
    }

    .activityStack,
    .activityColumn {
        height: 180px;
        min-height: 180px;
    }
}
