:root {
    --site-accent: #0f766e;
    --site-accent-dark: #115e59;
    --site-highlight: #f97316;
    --site-ink: #17202a;
    --site-muted: #61707d;
    --site-line: #dce3e8;
    --site-soft: #f4f7f8;
    --site-shell: 1180px;
    --content-shell: 820px;
    --shadow: 0 16px 40px rgba(21, 39, 49, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--site-ink); background: #fff; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 17px; line-height: 1.68; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; }
a { color: var(--site-accent-dark); text-decoration-thickness: .08em; text-underline-offset: .16em; }
a:hover { color: var(--site-accent); }
h1, h2, h3, h4 { margin-top: 0; color: #15212b; font-weight: 800; line-height: 1.16; letter-spacing: -.025em; }
h1 { font-size: clamp(2.2rem, 6vw, 4.15rem); }
h2 { font-size: clamp(1.55rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.55rem); }
p, ul, ol { margin-top: 0; }
button, input, select, textarea { font: inherit; }
.site-shell { width: min(calc(100% - 36px), var(--site-shell)); margin-inline: auto; }
.content-shell { max-width: var(--content-shell); padding-block: clamp(2.4rem, 6vw, 5rem); }
.content-shell--wide { max-width: 1000px; }
.entry-content > * { max-width: 100%; }
.entry-content > p, .entry-content > ul, .entry-content > ol { margin-bottom: 1.25rem; }
.entry-content blockquote { margin: 2rem 0; padding: 1rem 1.4rem; border-left: 4px solid var(--site-accent); background: var(--site-soft); }
.entry-content hr { margin: 3rem 0; border: 0; border-top: 1px solid var(--site-line); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { z-index: 100000; top: 8px; left: 8px; width: auto; height: auto; padding: 12px 16px; clip: auto; color: #fff; background: #111; }

.site-header { position: sticky; z-index: 100; top: 0; border-bottom: 1px solid rgba(220, 227, 232, .9); background: rgba(255,255,255,.94); backdrop-filter: blur(14px); }
.admin-bar .site-header { top: 32px; }
.site-header__inner { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 2rem; }
.site-branding { display: flex; min-width: 0; align-items: center; gap: .75rem; }
.site-branding__mark { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 13px; color: #fff; background: linear-gradient(135deg, var(--site-accent-dark), var(--site-accent)); text-decoration: none; box-shadow: 0 8px 18px rgba(15, 118, 110, .2); }
.custom-logo { display: block; max-width: 190px; max-height: 52px; object-fit: contain; }
.site-title { margin: 0; font-size: 1.1rem; font-weight: 850; line-height: 1.15; }
.site-title a { color: var(--site-ink); text-decoration: none; }
.site-description { max-width: 420px; margin: .18rem 0 0; color: var(--site-muted); font-size: .72rem; line-height: 1.25; }
.primary-navigation ul { display: flex; align-items: center; gap: .2rem; margin: 0; padding: 0; list-style: none; }
.primary-navigation li { position: relative; }
.primary-navigation a { display: block; padding: .68rem .75rem; border-radius: 8px; color: #2f3b45; font-size: .9rem; font-weight: 700; text-decoration: none; }
.primary-navigation a:hover, .primary-navigation .current-menu-item > a { color: var(--site-accent-dark); background: var(--site-soft); }
.primary-navigation .sub-menu { display: none; position: absolute; top: 100%; left: 0; width: 240px; padding: .45rem; border: 1px solid var(--site-line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.primary-navigation li:hover > .sub-menu, .primary-navigation li:focus-within > .sub-menu { display: block; }
.menu-toggle { display: none; width: 44px; height: 42px; padding: 9px; border: 1px solid var(--site-line); border-radius: 9px; background: #fff; }
.menu-toggle > span:not(.screen-reader-text) { display: block; height: 2px; margin: 4px 0; background: #24313b; }

.page-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--site-line); background: linear-gradient(145deg, #f4f8f7 0%, #fff 55%, color-mix(in srgb, var(--site-highlight) 14%, #fff) 100%); }
.page-hero::after { content: ""; position: absolute; right: -8%; bottom: -120px; width: 420px; height: 420px; border: 70px solid color-mix(in srgb, var(--site-accent) 7%, transparent); border-radius: 50%; }
.page-hero__inner { position: relative; z-index: 1; padding-block: clamp(3.5rem, 9vw, 7.2rem); }
.page-hero h1 { max-width: 920px; margin-bottom: 1rem; }
.page-hero p { max-width: 760px; margin: 0; color: #50606c; font-size: clamp(1.05rem, 2vw, 1.28rem); }
.page-hero__eyebrow { display: inline-flex; margin-bottom: 1rem; padding: .3rem .7rem; border-radius: 999px; color: var(--site-accent-dark); background: color-mix(in srgb, var(--site-accent) 10%, #fff); font-size: .78rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.page-hero--home .page-hero__inner { padding-block: clamp(4.2rem, 11vw, 8.8rem); }
.page-hero--article h1 { max-width: 980px; font-size: clamp(2.15rem, 5.5vw, 3.8rem); }
.entry-meta { margin-bottom: .75rem; color: var(--site-muted); font-size: .83rem; }

.archive-hero { padding: clamp(2.5rem, 7vw, 5rem) 0; border-bottom: 1px solid var(--site-line); background: var(--site-soft); }
.archive-hero h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.2rem); }
.archive-description { max-width: 760px; color: var(--site-muted); }
.archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; padding-block: 3rem; }
.content-card { overflow: hidden; border: 1px solid var(--site-line); border-radius: 16px; background: #fff; box-shadow: 0 8px 28px rgba(21,39,49,.05); }
.content-card__image { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.content-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.content-card:hover .content-card__image img { transform: scale(1.03); }
.content-card__body { padding: 1.35rem; }
.content-card h2 { margin-bottom: .65rem; font-size: 1.35rem; }
.content-card h2 a { color: var(--site-ink); text-decoration: none; }
.content-card p { color: var(--site-muted); font-size: .94rem; }
.text-link { font-weight: 750; text-decoration: none; }
.pagination-wrap { padding-bottom: 4rem; }
.nav-links { display: flex; gap: .5rem; }
.page-numbers { display: grid; min-width: 40px; height: 40px; place-items: center; border: 1px solid var(--site-line); border-radius: 8px; text-decoration: none; }
.page-numbers.current { color: #fff; border-color: var(--site-accent); background: var(--site-accent); }

.site-footer { margin-top: 4rem; color: #dce6e9; background: #15232b; }
.site-footer a { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; padding-block: 3.5rem; }
.site-footer__brand { margin-bottom: .5rem; color: #fff; font-size: 1.25rem; font-weight: 850; }
.site-footer p { color: #b9c5ca; font-size: .9rem; }
.footer-navigation ul { margin: 0; padding: 0; list-style: none; columns: 2; }
.footer-navigation li { margin-bottom: .5rem; break-inside: avoid; }
.footer-navigation a { font-size: .9rem; text-decoration: none; }
.footer-widget__title { color: #fff; font-size: 1rem; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 2rem; padding-block: 1.25rem; border-top: 1px solid rgba(255,255,255,.12); }
.site-footer__bottom p { margin: 0; font-size: .78rem; }
.error-404 { max-width: 760px; padding-block: 7rem; text-align: center; }
.error-code { color: var(--site-accent); font-size: 5rem; font-weight: 900; line-height: 1; }
.theme-button { display: inline-flex; padding: .75rem 1.2rem; border-radius: 9px; color: #fff; background: var(--site-accent); font-weight: 750; text-decoration: none; }
.search-form { display: flex; max-width: 600px; margin-top: 1.5rem; }
.search-field { flex: 1; min-width: 0; padding: .75rem; border: 1px solid var(--site-line); border-radius: 8px 0 0 8px; }
.search-submit { padding: .75rem 1rem; border: 0; border-radius: 0 8px 8px 0; color: #fff; background: var(--site-accent); font-weight: 700; }

@media (max-width: 980px) {
    .menu-toggle { display: block; }
    .primary-navigation { display: none; position: absolute; top: 76px; right: 18px; left: 18px; padding: .75rem; border: 1px solid var(--site-line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
    .primary-navigation.is-open { display: block; }
    .primary-navigation ul { display: block; }
    .primary-navigation .sub-menu { display: block; position: static; width: auto; margin-left: 1rem; padding: 0; border: 0; box-shadow: none; }
    .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    body { font-size: 16px; }
    .admin-bar .site-header { top: 46px; }
    .site-description { display: none; }
    .archive-grid, .site-footer__grid { grid-template-columns: 1fr; }
    .site-footer__bottom { display: block; }
    .site-footer__bottom p + p { margin-top: .5rem; }
    .footer-navigation ul { columns: 1; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

