:root {
    --bg: #05070a;
    --bg-soft: #0a0f14;
    --panel: #0d141b;
    --panel-strong: #101a22;
    --line: rgba(148, 163, 184, 0.18);
    --line-strong: rgba(125, 211, 252, 0.34);
    --text: #edf7fb;
    --muted: #91a1ad;
    --muted-strong: #b9c7d0;
    --cyan: #38d8ff;
    --green: #65f2a4;
    --blue: #5ea8ff;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
    --radius: 8px;
    --max-width: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
}

body {
    min-height: 100%;
    margin: 0;
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    background:
        linear-gradient(180deg, rgba(5, 7, 10, 0.12), var(--bg) 620px),
        radial-gradient(circle at 14% 0%, rgba(56, 216, 255, 0.14), transparent 28rem),
        radial-gradient(circle at 90% 12%, rgba(101, 242, 164, 0.1), transparent 26rem),
        var(--bg);
}

a {
    color: inherit;
}

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

code,
pre {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.site-shell {
    width: calc(100% - 32px);
    max-width: var(--max-width);
    margin: 0 auto;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    text-decoration: none;
}

.brand-mark {
    position: relative;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(56, 216, 255, 0.2) 0 2px, transparent 3px),
        conic-gradient(from 20deg, transparent 0 55deg, rgba(101, 242, 164, 0.82) 55deg 62deg, transparent 62deg 360deg),
        rgba(13, 20, 27, 0.88);
    box-shadow: 0 0 28px rgba(56, 216, 255, 0.18);
}

.brand-mark::before,
.brand-mark::after {
    position: absolute;
    content: "";
    border: 1px solid rgba(56, 216, 255, 0.22);
    border-radius: 50%;
}

.brand-mark::before {
    inset: 8px;
}

.brand-mark::after {
    inset: 15px;
}

.brand-mark span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 14px rgba(101, 242, 164, 0.9);
}

.brand-copy {
    display: grid;
    gap: 1px;
}

.brand-copy strong {
    font-size: 0.98rem;
    font-weight: 760;
}

.brand-copy small {
    color: var(--muted);
    font-size: 0.72rem;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(10, 15, 20, 0.72);
    backdrop-filter: blur(18px);
}

.site-nav a {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 0 14px;
    min-width: 0;
    border-radius: 6px;
    color: var(--muted-strong);
    font-size: 0.88rem;
    font-weight: 650;
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: var(--text);
    background: rgba(148, 163, 184, 0.12);
}

.hero {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 392px;
    align-items: center;
    gap: 34px;
    padding: 58px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(16, 26, 34, 0.96), rgba(8, 12, 17, 0.92)),
        var(--panel);
    box-shadow: var(--shadow);
}

.hero-home {
    grid-template-columns: minmax(0, 0.92fr) minmax(340px, 1.08fr);
}

.hero-compact {
    min-height: 288px;
    margin-bottom: 34px;
}

.hero::before {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(rgba(148, 163, 184, 0.038) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.038) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.9), transparent 86%);
    pointer-events: none;
}

.hero-copy {
    position: relative;
    z-index: 2;
}

.signal-status {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 18px;
    color: var(--green);
    font-size: 0.74rem;
    font-weight: 780;
    text-transform: uppercase;
}

.signal-status span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 16px rgba(101, 242, 164, 0.78);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

.hero h1 {
    max-width: 760px;
    margin-bottom: 18px;
    font-size: 6.2rem;
    font-weight: 820;
    line-height: 0.92;
    overflow-wrap: anywhere;
}

.hero-subtitle {
    max-width: 620px;
    margin-bottom: 28px;
    color: var(--muted-strong);
    font-size: 1.22rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: 0.94rem;
    font-weight: 750;
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    color: #021114;
    background: linear-gradient(135deg, var(--green), var(--cyan));
    box-shadow: 0 0 30px rgba(56, 216, 255, 0.14);
}

.button-secondary {
    color: var(--text);
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.05);
}

.button-secondary:hover {
    border-color: var(--line-strong);
}

.hero-visual {
    position: relative;
    z-index: 1;
    min-height: 300px;
    overflow: hidden;
    border: 1px solid rgba(125, 211, 252, 0.2);
    border-radius: var(--radius);
    background: #060a0d;
    box-shadow: inset 0 0 48px rgba(56, 216, 255, 0.08), 0 24px 70px rgba(0, 0, 0, 0.35);
}

.hero-visual img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
    opacity: 0.8;
}

.hero-visual::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, rgba(13, 20, 27, 0.62), transparent 45%);
    pointer-events: none;
}

.content-section {
    margin: 34px 0 0;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 16px;
}

.section-heading p {
    margin-bottom: 6px;
    color: var(--cyan);
    font-size: 0.74rem;
    font-weight: 780;
    text-transform: uppercase;
}

.section-heading h2 {
    margin-bottom: 0;
    font-size: 2.05rem;
    line-height: 1.12;
}

.digest-panel,
.empty-state,
.archive-item {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 140px),
        rgba(13, 20, 27, 0.84);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.2);
}

.digest-panel {
    padding: clamp(24px, 4vw, 46px);
}

.digest-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.82rem;
}

.digest-meta a {
    color: var(--cyan);
    font-weight: 700;
    text-decoration: none;
}

.empty-state {
    padding: clamp(26px, 5vw, 44px);
}

.empty-state h2,
.empty-state h3 {
    margin-bottom: 10px;
    font-size: 1.72rem;
}

.empty-state p {
    max-width: 640px;
    margin-bottom: 0;
    color: var(--muted-strong);
}

.empty-state .button {
    margin-top: 22px;
}

.archive-list {
    display: grid;
    gap: 12px;
}

.archive-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    color: var(--text);
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.archive-item:hover {
    transform: translateY(-1px);
    border-color: var(--line-strong);
    background:
        linear-gradient(180deg, rgba(56, 216, 255, 0.07), transparent 150px),
        rgba(13, 20, 27, 0.94);
}

.archive-item span:first-child {
    display: grid;
    gap: 2px;
}

.archive-item strong {
    font-size: 1.02rem;
}

.archive-item small {
    color: var(--muted);
}

.archive-item-action {
    flex: 0 0 auto;
    color: var(--green);
    font-size: 0.86rem;
    font-weight: 760;
}

.markdown-body {
    color: #dce8ee;
    font-size: 1.03rem;
    overflow-wrap: break-word;
}

.markdown-body > *:first-child {
    margin-top: 0;
}

.markdown-body > *:last-child {
    margin-bottom: 0;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
    color: var(--text);
    line-height: 1.14;
}

.markdown-body h1 {
    margin: 0 0 22px;
    font-size: 3rem;
}

.markdown-body h2 {
    margin: 38px 0 14px;
    font-size: 1.85rem;
}

.markdown-body h3 {
    margin: 28px 0 10px;
    font-size: 1.26rem;
}

.markdown-body p,
.markdown-body ul,
.markdown-body ol,
.markdown-body blockquote,
.markdown-body table,
.markdown-body pre {
    margin-bottom: 20px;
}

.markdown-body a {
    color: var(--cyan);
    font-weight: 700;
    text-decoration-color: rgba(56, 216, 255, 0.42);
    text-underline-offset: 3px;
}

.markdown-body ul,
.markdown-body ol {
    padding-left: 1.3rem;
}

.markdown-body li + li {
    margin-top: 7px;
}

.markdown-body blockquote {
    margin-left: 0;
    padding: 16px 18px;
    border-left: 3px solid var(--green);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--muted-strong);
    background: rgba(101, 242, 164, 0.055);
}

.markdown-body code {
    padding: 0.14rem 0.34rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 5px;
    color: #b9f7d4;
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.9em;
}

.markdown-body pre {
    overflow: auto;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #060a0e;
}

.markdown-body pre code {
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    color: #d8edf4;
}

.markdown-body hr {
    height: 1px;
    margin: 32px 0;
    border: 0;
    background: var(--line);
}

.markdown-body table {
    display: block;
    width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

.markdown-body th,
.markdown-body td {
    padding: 12px 14px;
    border: 1px solid var(--line);
    text-align: left;
}

.markdown-body th {
    color: var(--text);
    background: rgba(56, 216, 255, 0.075);
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 34px 0 42px;
    color: var(--muted);
    font-size: 0.84rem;
}

.site-footer p {
    margin: 0;
}

@media (max-width: 860px) {
    .hero,
    .hero-home {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 0;
        padding: 34px;
    }

    .hero h1 {
        font-size: 4.4rem;
    }

    .hero-subtitle {
        font-size: 1.12rem;
    }

    .section-heading h2 {
        font-size: 1.68rem;
    }

    .markdown-body h1 {
        font-size: 2.35rem;
    }

    .markdown-body h2 {
        font-size: 1.55rem;
    }

    .hero-visual {
        min-height: 220px;
    }

    .hero-visual img {
        min-height: 220px;
    }

    .section-heading {
        display: block;
    }
}

@media (max-width: 640px) {
    .site-shell {
        width: calc(100% - 22px);
    }

    .site-header,
    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-nav {
        width: 100%;
    }

    .site-nav a {
        flex: 1;
        justify-content: center;
        padding: 0 8px;
    }

    .hero {
        padding: 22px;
    }

    .hero h1 {
        font-size: 2.85rem;
        line-height: 1.04;
    }

    .hero-subtitle {
        font-size: 1.02rem;
    }

    .empty-state h2,
    .empty-state h3 {
        font-size: 1.42rem;
    }

    .markdown-body h1 {
        font-size: 2rem;
    }

    .hero-actions,
    .button {
        width: 100%;
    }

    .digest-meta,
    .archive-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .digest-panel {
        padding: 24px;
    }
}
