:root {
    --primary: #082a32;
    --accent: #00a7a0;
    --highlight: #c7e24a;
    --ink: #10252d;
    --muted: #5f7077;
    --paper: #ffffff;
    --soft: #f2f6f4;
    --line: #dce6e2;
    --danger: #a52a2a;
    --success: #166534;
    --container: 1180px;
    --radius: 22px;
    --shadow: 0 20px 55px rgba(4, 34, 40, .12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family:
        Inter, ui-sans-serif, system-ui, -apple-system,
        BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

.narrow {
    max-width: 820px;
}

.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: fixed;
    z-index: 999;
    top: 12px;
    left: 12px;
    transform: translateY(-160%);
    padding: 10px 14px;
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--shadow);
}

.skip-link:focus {
    transform: none;
}

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    border-bottom: 1px solid rgba(8, 42, 50, .08);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(14px);
}

.header-inner {
    min-height: 88px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 28px;
    align-items: center;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 210px;
}

.brand img {
    width: 190px;
    max-height: 64px;
    object-fit: contain;
    object-position: left center;
}

.brand-symbol {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50% 50% 45% 55%;
    color: var(--primary);
    background: var(--highlight);
    font-size: 25px;
    font-weight: 900;
    box-shadow: 0 8px 22px rgba(199, 226, 74, .35);
}

.brand-copy {
    display: grid;
    line-height: 1.05;
}

.brand-copy strong {
    font-size: 21px;
    letter-spacing: -.04em;
}

.brand-copy small {
    margin-top: 6px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(14px, 2vw, 28px);
}

.main-nav a {
    position: relative;
    font-size: 13px;
    font-weight: 800;
}

.main-nav a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -8px;
    left: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform .2s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
    transform: scaleX(1);
}

.header-search {
    width: 180px;
    display: flex;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--soft);
}

.header-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 10px 4px 10px 14px;
    background: transparent;
}

.header-search button {
    width: 42px;
    border: 0;
    color: #fff;
    background: var(--primary);
    font-size: 22px;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 6px 0;
    background: var(--primary);
}

.messages {
    padding-top: 18px;
}

.message {
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 25px rgba(8, 42, 50, .08);
}

.message-success {
    color: var(--success);
    border-color: #bfe4cb;
    background: #f0fff5;
}

.message-error {
    color: var(--danger);
    border-color: #efc6c6;
    background: #fff5f5;
}

.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 85% 12%, rgba(199, 226, 74, .2), transparent 28%),
        radial-gradient(circle at 55% 100%, rgba(0, 167, 160, .28), transparent 42%),
        linear-gradient(135deg, var(--primary), #0e4650);
}

.hero-has-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 42, 50, .97) 0 46%, rgba(8, 42, 50, .48)),
        var(--hero-image) center / cover no-repeat;
}

.hero-grid {
    position: relative;
    z-index: 1;
    min-height: 540px;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 70px;
    align-items: center;
    padding-block: 80px;
}

.hero-copy {
    max-width: 680px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: var(--highlight);
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: currentColor;
}

.hero h1 {
    margin: 20px 0;
    font-size: clamp(45px, 6vw, 78px);
    line-height: .98;
    letter-spacing: -.055em;
}

.hero-copy > p {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 255, 255, .8);
    font-size: 19px;
}

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

.button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    padding: 12px 20px;
    font-weight: 850;
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

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

.button-primary {
    color: var(--primary);
    background: var(--highlight);
    box-shadow: 0 12px 28px rgba(199, 226, 74, .24);
}

.button-ghost {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .32);
    background: rgba(255, 255, 255, .08);
}

.hero-visual {
    position: relative;
    min-height: 370px;
}

.molecule {
    position: absolute;
    display: block;
    border: 2px solid rgba(255, 255, 255, .24);
    border-radius: 50%;
}

.molecule::before,
.molecule::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: var(--highlight);
    box-shadow: 0 0 0 9px rgba(199, 226, 74, .12);
}

.molecule-a {
    width: 260px;
    height: 260px;
    top: 10px;
    right: 35px;
}

.molecule-a::before {
    width: 28px;
    height: 28px;
    top: 33px;
    left: 18px;
}

.molecule-a::after {
    width: 18px;
    height: 18px;
    right: 16px;
    bottom: 48px;
}

.molecule-b {
    width: 145px;
    height: 145px;
    right: 0;
    bottom: 5px;
}

.molecule-b::before {
    width: 20px;
    height: 20px;
    right: 12px;
    top: 18px;
}

.molecule-c {
    width: 90px;
    height: 90px;
    left: 25px;
    bottom: 60px;
}

.molecule-c::after {
    width: 15px;
    height: 15px;
    left: -7px;
    bottom: 20px;
}

.hero-card {
    position: absolute;
    z-index: 2;
    right: 55px;
    bottom: 40px;
    width: min(340px, 85%);
    display: grid;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .12);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.hero-card small {
    color: var(--highlight);
    font-weight: 800;
    text-transform: uppercase;
}

.hero-card strong {
    margin: 6px 0;
    font-size: 26px;
}

.hero-card span {
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
}

.featured-section {
    padding: 70px 0 30px;
}

.featured-card {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: #fff;
    box-shadow: var(--shadow);
}

.featured-media {
    min-height: 430px;
    background: var(--primary);
}

.featured-media img,
.post-card-media img,
.article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px;
}

.featured-copy h2 {
    margin: 12px 0 16px;
    font-size: clamp(32px, 4vw, 50px);
    line-height: 1.04;
    letter-spacing: -.045em;
}

.featured-copy p {
    color: var(--muted);
    font-size: 17px;
}

.category-pill {
    display: inline-flex;
    width: fit-content;
    margin-top: 14px;
    padding: 6px 11px;
    border-radius: 999px;
    color: var(--primary);
    background: color-mix(in srgb, var(--highlight) 45%, white);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.text-link {
    margin-top: 22px;
    color: var(--accent);
    font-weight: 900;
}

.content-section {
    padding: 65px 0 95px;
}

.content-layout,
.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 50px;
    align-items: start;
}

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

.section-heading h2 {
    margin: 7px 0 0;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.08;
    letter-spacing: -.04em;
}

.section-heading.compact h2 {
    font-size: 33px;
}

.result-count {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

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

.post-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.post-card-media {
    display: block;
    height: 245px;
    background: var(--primary);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--highlight);
    background:
        radial-gradient(circle at 30% 25%, rgba(199, 226, 74, .18), transparent 25%),
        linear-gradient(135deg, var(--primary), #14616a);
    font-size: 16px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.post-card-body {
    padding: 24px;
}

.post-card-body h3 {
    margin: 12px 0;
    font-size: 25px;
    line-height: 1.15;
    letter-spacing: -.03em;
}

.post-card-body p {
    color: var(--muted);
}

.sidebar {
    position: sticky;
    top: 115px;
    display: grid;
    gap: 20px;
}

.sidebar-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--soft);
}

.sidebar-card h2 {
    margin: 0 0 18px;
    font-size: 18px;
}

.sidebar-card form {
    display: grid;
    gap: 10px;
}

.sidebar-card input,
.comment-form input,
.comment-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    outline: 0;
    padding: 12px 14px;
    color: var(--ink);
    background: #fff;
}

.sidebar-card input:focus,
.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.category-list,
.recent-list,
.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-list li + li,
.recent-list li + li {
    border-top: 1px solid var(--line);
}

.category-list a {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    font-weight: 750;
}

.recent-list li {
    padding: 12px 0;
}

.recent-list a {
    display: block;
    font-weight: 800;
    line-height: 1.35;
}

.recent-list small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
}

.empty-state {
    grid-column: 1 / -1;
    padding: 50px 30px;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    text-align: center;
    background: var(--soft);
}

.empty-icon {
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    margin: 0 auto 15px;
    border-radius: 50%;
    color: var(--primary);
    background: var(--highlight);
    font-size: 32px;
    font-weight: 900;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 35px;
    padding: 16px 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.pagination a {
    color: var(--accent);
    font-weight: 850;
}

.article-header {
    padding: 80px 0 55px;
    color: #fff;
    background:
        radial-gradient(circle at 80% 20%, rgba(199, 226, 74, .2), transparent 30%),
        linear-gradient(135deg, var(--primary), #0c4b54);
}

.article-header-inner {
    max-width: 950px;
}

.article-header h1 {
    max-width: 930px;
    margin: 18px 0;
    font-size: clamp(44px, 7vw, 82px);
    line-height: .99;
    letter-spacing: -.055em;
}

.article-lead {
    max-width: 800px;
    color: rgba(255, 255, 255, .8);
    font-size: 20px;
}

.article-meta {
    color: rgba(255, 255, 255, .65);
}

.article-cover {
    height: min(58vw, 620px);
    margin-top: 45px;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.article-layout {
    padding-block: 60px 95px;
}

.article-body {
    color: #1d3036;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    line-height: 1.85;
}

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

.article-body h2,
.article-body h3,
.article-body h4 {
    margin-top: 1.7em;
    color: var(--primary);
    font-family:
        Inter, ui-sans-serif, system-ui, sans-serif;
    line-height: 1.15;
    letter-spacing: -.035em;
}

.article-body h2 {
    font-size: 38px;
}

.article-body h3 {
    font-size: 29px;
}

.article-body img {
    height: auto;
    margin-inline: auto;
    border-radius: 16px;
}

.article-body figure {
    margin: 35px 0;
}

.article-body figcaption {
    margin-top: 8px;
    color: var(--muted);
    font-family:
        Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 13px;
    text-align: center;
}

.article-body blockquote {
    margin: 32px 0;
    border-left: 5px solid var(--highlight);
    padding: 18px 25px;
    color: var(--primary);
    background: var(--soft);
    font-size: 23px;
    font-style: italic;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    font-family:
        Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 15px;
}

.article-body th,
.article-body td {
    border: 1px solid var(--line);
    padding: 10px;
}

.article-share {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 45px 0;
    padding: 20px;
    border-block: 1px solid var(--line);
}

.article-share a,
.article-share button {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 13px;
    color: var(--accent);
    background: #fff;
    font-weight: 800;
}

.article-facts {
    margin: 0;
}

.article-facts div {
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}

.article-facts dt {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.article-facts dd {
    margin: 3px 0 0;
    font-weight: 800;
}

.comments-section {
    scroll-margin-top: 120px;
    margin-top: 60px;
}

.comment-list {
    display: grid;
    gap: 16px;
}

.comment {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 15px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--soft);
}

.comment-avatar {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--primary);
    background: var(--highlight);
    font-size: 20px;
    font-weight: 900;
}

.comment header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
}

.comment time,
.comment small {
    color: var(--muted);
    font-size: 12px;
}

.comment p {
    margin-bottom: 0;
}

.comment-form {
    margin-top: 35px;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.comment-form h3 {
    margin-top: 0;
    font-size: 27px;
}

.comment-form > p {
    color: var(--muted);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.field {
    margin-bottom: 16px;
}

.field label {
    display: block;
    margin-bottom: 7px;
    font-weight: 800;
}

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

.errorlist {
    margin: 6px 0 0;
    padding-left: 18px;
    color: var(--danger);
    font-size: 13px;
}

.form-errors {
    margin-bottom: 15px;
    padding: 12px;
    border-radius: 10px;
    color: var(--danger);
    background: #fff2f2;
}

.char-counter {
    display: block;
    margin-top: 5px;
    text-align: right;
}

.privacy-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 18px;
    font-size: 13px;
}

.privacy-check input {
    width: auto;
    margin-top: 4px;
}

.privacy-check a {
    color: var(--accent);
    text-decoration: underline;
}

.honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.closed-comments {
    margin-top: 25px;
    padding: 18px;
    border-radius: 14px;
    color: var(--muted);
    background: var(--soft);
    text-align: center;
}

.muted {
    color: var(--muted);
}

.legal-page {
    min-height: 65vh;
    padding: 85px 0;
    background: var(--soft);
}

.legal-page h1 {
    margin: 10px 0 30px;
    font-size: clamp(38px, 6vw, 64px);
    letter-spacing: -.05em;
}

.legal-card {
    padding: 35px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.legal-card a {
    color: var(--accent);
    text-decoration: underline;
}

.site-footer {
    color: rgba(255, 255, 255, .78);
    background: var(--primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 45px;
    padding-block: 65px;
}

.site-footer h2 {
    margin-top: 0;
    color: #fff;
    font-size: 17px;
}

.site-footer li + li {
    margin-top: 8px;
}

.site-footer a:hover {
    color: var(--highlight);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    border-top: 1px solid rgba(255, 255, 255, .13);
    padding-block: 20px;
    font-size: 12px;
}

@media (max-width: 1050px) {
    .header-inner {
        grid-template-columns: auto auto 1fr;
    }

    .menu-toggle {
        display: block;
        justify-self: end;
    }

    .main-nav {
        position: absolute;
        top: 88px;
        right: 20px;
        left: 20px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
        border: 1px solid var(--line);
        border-radius: 16px;
        background: #fff;
        box-shadow: var(--shadow);
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        padding: 9px;
    }

    .header-search {
        justify-self: end;
    }

    .hero-grid {
        grid-template-columns: 1fr .7fr;
        gap: 20px;
    }

    .content-layout,
    .article-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        grid-template-columns: repeat(2, 1fr);
    }

    .article-sidebar {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    .header-inner {
        min-height: 76px;
        grid-template-columns: 1fr auto;
    }

    .brand {
        min-width: 0;
    }

    .brand-copy small {
        display: none;
    }

    .menu-toggle {
        grid-column: 2;
        grid-row: 1;
    }

    .main-nav {
        top: 76px;
    }

    .header-search {
        display: none;
    }

    .hero-grid {
        min-height: auto;
        grid-template-columns: 1fr;
        padding-block: 65px;
    }

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

    .hero-card {
        right: 20px;
        bottom: 20px;
    }

    .featured-card {
        grid-template-columns: 1fr;
    }

    .featured-media {
        min-height: 280px;
    }

    .featured-copy {
        padding: 28px;
    }

    .post-grid,
    .form-grid,
    .sidebar,
    .article-sidebar,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .article-header {
        padding: 60px 0 42px;
    }

    .article-cover {
        height: 55vw;
        min-height: 260px;
        margin-top: 25px;
        border-radius: 16px;
    }

    .article-layout {
        padding-block: 42px 70px;
    }

    .article-body {
        font-size: 18px;
    }

    .article-body h2 {
        font-size: 32px;
    }

    .comment-form {
        padding: 22px;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .brand-copy strong {
        font-size: 18px;
    }

    .brand-symbol {
        width: 42px;
        height: 42px;
    }

    .hero h1 {
        font-size: 46px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .post-card-media {
        height: 215px;
    }

    .pagination {
        align-items: stretch;
        flex-direction: column;
        text-align: center;
    }

    .comment {
        grid-template-columns: 40px 1fr;
        padding: 16px;
    }

    .comment-avatar {
        width: 40px;
        height: 40px;
    }
}
