@font-face {
    font-family: "Quicksand";
    src: url("../assets/Quicksand_Bold.otf") format("truetype");
}

:root {
    --bg: #111827;
    --panel: rgba(15, 23, 42, 0.72);
    --panel-soft: rgba(30, 41, 59, 0.56);
    --line: rgba(125, 211, 252, 0.2);
    --text: #e0f2fe;
    --text-soft: rgba(224, 242, 254, 0.78);
    --muted: rgba(148, 163, 184, 0.95);
    --accent: #38bdf8;
    --accent-strong: #0ea5e9;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        linear-gradient(135deg, rgba(14, 165, 233, 0.16), transparent 38rem),
        radial-gradient(
            circle at 86% 18%,
            rgba(34, 211, 238, 0.15),
            transparent 22rem
        ),
        var(--bg);
    color: var(--text);
    font-family: Quicksand, Arial, sans-serif;
}

a {
    color: inherit;
}

.site-header {
    width: min(1120px, calc(100% - 40px));
    min-height: 5rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.brand,
.nav-links a,
.feature-panel a {
    text-decoration: none;
}

.brand {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: white;
}

.nav-links {
    display: flex;
    gap: 0.6rem;
}

.nav-links a {
    min-height: 2.4rem;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.6rem 0.9rem;
    color: var(--text-soft);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    border-color: var(--line);
    background: rgba(14, 165, 233, 0.14);
    color: white;
}

main {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 5rem) 0 4rem;
}

.hero {
    min-height: min(560px, calc(100vh - 5rem));
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    align-items: center;
    gap: clamp(2rem, 6vw, 5rem);
}

.eyebrow,
.panel-label,
.post-meta {
    margin: 0 0 0.8rem;
    color: var(--accent);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

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

h1 {
    max-width: 11ch;
    margin-bottom: 1.25rem;
    color: white;
    font-size: clamp(3.4rem, 8vw, 6.8rem);
    line-height: 0.92;
}

.hero-copy p:last-child {
    max-width: 42rem;
    margin-bottom: 0;
    color: var(--text-soft);
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.65;
}

.feature-panel,
.post-card {
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(12px);
}

.feature-panel {
    border-radius: 1.1rem;
    padding: clamp(1.25rem, 3vw, 2rem);
}

.feature-panel h2 {
    margin-bottom: 0.85rem;
    color: white;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    line-height: 1.08;
}

.feature-panel p:not(.panel-label) {
    color: var(--text-soft);
    line-height: 1.55;
}

.feature-panel a {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    border-radius: 0.8rem;
    background: var(--accent-strong);
    padding: 0 1rem;
    color: white;
}

.feature-panel a:hover {
    background: var(--accent);
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.post-card {
    border-radius: 1rem;
    padding: 1.35rem;
    background: var(--panel-soft);
}

.post-card h2 {
    margin-bottom: 0.9rem;
    color: white;
    font-size: 1.45rem;
    line-height: 1.16;
}

.post-card p:not(.post-meta) {
    color: var(--text-soft);
    font-size: 0.98rem;
    line-height: 1.62;
}

.post-card p:last-child {
    margin-bottom: 0;
}

@media (max-width: 820px) {
    .site-header {
        width: min(100% - 28px, 1120px);
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding: 1rem 0;
    }

    main {
        width: min(100% - 28px, 1120px);
        padding-top: 1.5rem;
    }

    .hero,
    .post-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding: 2rem 0 3rem;
    }

    h1 {
        max-width: 10ch;
    }
}
