:root {
    --navy: #012532;
    --blue: #1b3b48;
    --ink: #1a1c1d;
    --muted: #42484b;
    --bg: #faf9fa;
    --panel: #fff;
    --line: #c2c7cb;
    --tint: #f4f3f4;
    --radius: .85rem;
    --display: 'Playfair Display', Georgia, serif;
    font: 15px/1.6 'Raleway', system-ui, sans-serif;
    color: var(--ink);
    background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #4284e0; outline-offset: 3px; }
img { display: block; width: 100%; object-fit: cover; }
h1, h2, h3, p { margin: 0 0 .75rem; }
h1, h2, h3 { color: var(--navy); line-height: 1.2; }
h1 { font: 700 clamp(2.15rem, 4vw, 3.5rem)/1.13 var(--display); }
h2 { font-size: 1.35rem; }
h3 { font: 700 1.4rem/1.25 var(--display); }
h3 a { color: inherit; }
.wrap { width: min(100% - 3rem, 82rem); margin-inline: auto; }
.page { min-height: 64vh; padding-block: 2.5rem 4rem; }
.site-header { position: sticky; top: 0; z-index: 10; background: var(--panel); border-bottom: 1px solid var(--line); }
.site-nav { min-height: 4.75rem; padding-block: .75rem; }
.actions { display: flex; align-items: center; gap: .7rem 1.1rem; flex-wrap: wrap; }
.blog-header {
    border-top: 3px solid #244482;
    border-bottom-color: #dee4ed;
    background: linear-gradient(105deg, #fff 45%, #f3f7fc);
    box-shadow: 0 4px 20px #0125320b;
}
.blog-masthead {
    min-height: 5.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.1rem;
}
.blog-brand { display: inline-flex; align-items: center; gap: .85rem; color: var(--navy); }
.blog-brand:hover { text-decoration: none; }
.blog-brand img { width: 4.45rem; height: 4.45rem; object-fit: contain; border-radius: 50%; }
.blog-brand strong { display: block; font: 700 clamp(1.35rem, 2.4vw, 1.85rem)/1.1 var(--display); white-space: nowrap; }
.blog-brand small { display: block; margin-top: .2rem; color: #244482; font-size: .67rem; font-weight: 800; letter-spacing: .23em; text-transform: uppercase; }
.blog-navigation { display: flex; align-items: center; gap: clamp(.55rem, 1.8vw, 1.65rem); font-weight: 700; }
.blog-navigation > a:not(.button), .blog-topics summary { padding-block: .55rem; color: var(--blue); }
.blog-navigation > a[aria-current] { color: #244482; box-shadow: inset 0 -2px #40789f; }
.blog-subscribe.button { background: #244482; border-color: #244482; }
.blog-topics { position: relative; }
.blog-topics summary { cursor: pointer; white-space: nowrap; }
.blog-topics summary:focus-visible { outline: 3px solid #4284e0; outline-offset: 3px; }
.blog-topics ul {
    position: absolute;
    inset-inline-end: 0;
    z-index: 1;
    min-width: 13rem;
    max-height: min(22rem, 60vh);
    overflow-y: auto;
    margin: .2rem 0 0;
    padding: .4rem;
    list-style: none;
    background: var(--panel);
    border: 1px solid #dee4ed;
    border-radius: .65rem;
    box-shadow: 0 10px 28px #01253220;
}
.blog-topics a { display: block; padding: .45rem .65rem; border-radius: .35rem; }
.blog-topics a:hover { background: #edf4fc; text-decoration: none; }
#newsletter { scroll-margin-top: 9rem; }
@media (max-width: 42rem) {
    .blog-masthead { align-items: start; flex-direction: column; gap: .15rem; padding-block: .35rem .5rem; }
    .blog-brand img { width: 3.4rem; height: 3.4rem; }
    .blog-navigation { width: 100%; justify-content: space-between; gap: .45rem; font-size: .85rem; }
    .blog-subscribe.button { padding-inline: .6rem; }
    .blog-topics ul { inset-inline-end: auto; inset-inline-start: -3rem; }
}
.brand { display: inline-flex; gap: .65rem; align-items: center; white-space: nowrap; color: var(--navy); font-weight: 800; }
.brand span { padding: .35rem .5rem; background: var(--navy); color: white; border-radius: .4rem; }
.admin-shell {
    display: grid;
    --admin-surface: #f6f4ee;
    --admin-rule: #ded9cc;
    --admin-accent: #bc8847;
    grid-template-columns: 15.5rem minmax(0, 1fr);
    align-items: start;
    min-height: 100vh;
    background: var(--admin-surface);
}
.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100dvh;
    overflow-y: auto;
    padding: 1.5rem 1rem;
    background: var(--navy);
    border-inline-end: 1px solid #31515d;
}
.admin-sidebar .brand {
    display: flex;
    margin: 0 .35rem 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #31515d;
    color: #e0f4ff;
}
.admin-sidebar .brand span { background: #31515d; color: #fff2da; }
.admin-nav { display: grid; gap: .35rem; }
.admin-nav > a {
    display: block;
    padding: .65rem .8rem;
    border-radius: .45rem;
    color: #e0f4ff;
    font-weight: 700;
}
.admin-nav > a:hover { background: #1b3b48; text-decoration: none; }
.admin-nav > a[aria-current] { color: white; background: #1b3b48; box-shadow: inset 3px 0 var(--admin-accent); }
.admin-nav-account { margin-top: .8rem; }
.admin-nav form { margin-top: .6rem; }
.admin-nav .button.secondary { width: 100%; background: transparent; border-color: #577480; color: #e0f4ff; }
.eyebrow { font-size: .77rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.section, .newsletter { margin-top: 2.3rem; }
.section-heading { margin-bottom: 1rem; flex-wrap: wrap; }
.section-heading :is(h1, h2), .stack > h2 { margin-bottom: 0; }
.intro { margin-bottom: 1.65rem; }
.columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(17rem, 29%); align-items: start; gap: 1.5rem; }
.article-grid, .stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; }
.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats strong { display: block; color: var(--navy); font-size: 2rem; }
.stack { display: grid; gap: 1rem; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card-body { padding: 1.15rem; }
.article-card img { aspect-ratio: 16 / 9; }
.article-card h3 { margin-top: .4rem; }
.meta, small { color: var(--muted); font-size: .83rem; }
.lead { font-size: 1.22rem; color: var(--muted); }
.link-list, .trending { padding: 0; margin: 0; list-style: none; }
.link-list li, .trending li { border-top: 1px solid var(--line); padding: .55rem 0; }
.link-list a { display: flex; justify-content: space-between; gap: .6rem; }
.link-list span { white-space: nowrap; color: var(--muted); }
.trending { counter-reset: rank; }
.trending li { counter-increment: rank; display: flex; gap: .65rem; }
.trending li::before { content: counter(rank, decimal-leading-zero); font-weight: 800; color: var(--blue); }
.reading { max-width: 52rem; }
.article-hero { aspect-ratio: 16 / 8; border-radius: var(--radius); margin: 1.4rem 0; }
.article-body { margin-top: 1.5rem; font-size: 1.08rem; line-height: 1.8; }
.article-body h2 { margin-top: 1.45rem; }
.article-body p { white-space: pre-line; overflow-wrap: anywhere; }
.newsletter { background: var(--tint); border-radius: var(--radius); padding: 1.4rem; }
.newsletter form { max-width: 35rem; }
.form-row { display: flex; align-items: end; gap: .55rem; }
.form-row > :is(input, label) { flex: 1; min-width: 0; }
input, textarea, select, button { font: inherit; }
input:not([type=checkbox]), select, textarea { display: block; width: 100%; min-width: 0; padding: .55rem .65rem; color: var(--ink); background: white; border: 1px solid #8c9ab0; border-radius: .4rem; }
label { display: block; font-weight: 700; }
label small { display: block; font-weight: 400; }
label :is(input, select, textarea) { margin-top: .3rem; }
label.check { display: flex; align-items: baseline; gap: .5rem; font-size: .85rem; font-weight: 500; margin-top: .45rem; }
.button { display: inline-flex; justify-content: center; border: 1px solid var(--blue); padding: .5rem .85rem; border-radius: .45rem; color: white; background: var(--blue); font-weight: 700; cursor: pointer; white-space: nowrap; }
.button:hover { box-shadow: 0 0 0 2px var(--line); text-decoration: none; }
.button.secondary { background: var(--panel); color: var(--blue); }
.pagination { display: flex; gap: .75rem; align-items: center; margin-top: 1rem; }
.notice { background: #e5f5e9; padding: .7rem 1.2rem; border-radius: .45rem; }
.notice.error { background: #ffebea; color: #801c14; }
.login { max-width: 30rem; margin: 3rem auto; }
.pill { display: inline-block; background: var(--tint); color: var(--navy); border-radius: 1rem; padding: .2rem .65rem; font-size: .83rem; font-weight: 700; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .65rem 1rem; text-align: left; border-top: 1px solid var(--line); }
th { background: var(--tint); }
@media (max-width: 56rem) {
    .columns { grid-template-columns: minmax(0, 1fr); }
    .columns > aside { grid-row: auto; }
}
@media (max-width: 38rem) {
    .wrap { width: calc(100% - 2rem); }
    .hero, .article-grid { grid-template-columns: minmax(0, 1fr); }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .form-row { flex-wrap: wrap; }
    .page { padding-block: 1.4rem 2.5rem; }
}
.traffic { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: clamp(2px, .6vw, 8px); height: 7rem; }
.traffic progress { width: 100%; height: 100%; writing-mode: vertical-lr; direction: rtl; accent-color: var(--blue); }

.hero { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 20rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.hero img { min-height: 18rem; height: 100%; }
.hero-copy { padding: clamp(1.2rem, 3vw, 2rem); display: flex; flex-direction: column; }
.hero h1 { font-size: clamp(2rem, 3vw, 3rem); text-wrap: balance; }
.hero-category { background: #fef3c7; color: #78350f; }
.hero-action { margin-top: auto; padding-top: .8rem; border-top: 1px solid var(--line); }
.home-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-aside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; margin-top: 1.5rem; }
.newsletter { background: #1b3b48; color: #e0f4ff; }
.newsletter h2 { color: white; }
.newsletter .button { background: white; color: var(--navy); }
.site-footer {
    background: #102a40;
    border-top: 3px solid #426c91;
    color: #d6e2f0;
}
.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr));
    gap: clamp(1.25rem, 3vw, 3rem);
    padding-block: clamp(1.75rem, 4vw, 3rem);
}
.footer-grid h2 { margin-bottom: .65rem; color: #fff; font-size: 1rem; }
.footer-grid > section:first-child h2 { font: 700 1.35rem/1.2 var(--display); }
.footer-grid p { max-width: 26ch; margin: 0; }
.footer-grid a { display: block; width: fit-content; color: #dfebfb; overflow-wrap: anywhere; }
.footer-grid a + a { margin-top: .3rem; }
.footer-grid a:hover { color: #fff; }
.footer-note { border-top: 1px solid #496179; padding-block: .95rem; color: #c5d4e7; font-size: .85rem; }
@media (max-width: 29rem) {
    .site-footer .footer-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 56rem) {
    .home-grid, .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 38rem) {
    .hero, .home-grid, .home-aside { grid-template-columns: minmax(0, 1fr); }
    .hero img { min-height: 0; aspect-ratio: 16 / 9; }
}

@media (max-width: 48rem) {
    .admin-shell { grid-template-columns: minmax(0, 1fr); }
    .admin-sidebar {
        position: static;
        height: auto;
        border-inline-end: 0;
        border-bottom: 1px solid var(--line);
    }
    .admin-sidebar .brand { margin-bottom: .75rem; }
    .admin-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-nav-account, .admin-nav form { margin-top: 0; }
}

.admin-shell .page {
    min-width: 0;
    width: min(100% - clamp(2rem, 6vw, 6rem), 77rem);
}
.admin-shell .page h1 { font-size: clamp(1.9rem, 3vw, 2.75rem); }
.admin-shell .intro { padding-bottom: 1rem; border-bottom: 1px solid var(--admin-rule); }
.admin-shell .section { margin-top: 1.25rem; }
.admin-shell .card { border-color: var(--admin-rule); box-shadow: 0 2px 5px #0125320b; }
.admin-shell .card-body { padding: clamp(1rem, 2vw, 1.5rem); }
.admin-shell .card h2 { font: 700 1.25rem/1.25 var(--display); }
.admin-shell :is(th, td, .link-list li) { border-color: var(--admin-rule); }
.admin-shell thead th { background: #f2eee4; border-top: 0; white-space: nowrap; font-size: .85rem; }
.admin-shell tbody th { background: var(--panel); }
.admin-shell .table-filter { padding-bottom: 1rem; }
.admin-shell .table-filter select { max-width: 12rem; }
.article-row-title { font-weight: 700; }
.admin-shell .stats .card { border-top: 2px solid var(--admin-accent); }
.admin-shell .stats strong { font: 700 2.1rem/1.3 var(--display); margin-top: .3rem; }
.admin-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.traffic-labels { display: flex; justify-content: space-between; gap: .6rem; margin-top: .45rem; }
.button.secondary.danger { color: #892f20; border-color: #c58b7e; }
.back-link { display: inline-block; margin-bottom: .45rem; font-size: .9rem; font-weight: 700; }
.editor-layout { grid-template-columns: minmax(0, 1fr) minmax(16rem, 30%); }
.editor-frame { margin-top: .3rem; border: 1px solid var(--line); border-radius: .5rem; overflow: hidden; }
.editor-toolbar { display: flex; flex-wrap: wrap; gap: .35rem; padding: .55rem; background: var(--tint); border-bottom: 1px solid var(--line); }
.editor-toolbar button { padding: .3rem .55rem; border: 1px solid var(--line); border-radius: .35rem; background: var(--panel); color: var(--ink); cursor: pointer; }
.editor-toolbar button:hover { border-color: var(--blue); color: var(--blue); }
.rich-text { min-height: 19rem; padding: 1rem; background: var(--panel); overflow-wrap: anywhere; }
.rich-text:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.cover-preview { width: 100%; aspect-ratio: 16 / 9; border-radius: .45rem; object-fit: cover; }
.cover-preview[hidden], #editor-source[hidden] { display: none; }
.article-body p { white-space: normal; }
.article-body blockquote, .rich-text blockquote { margin-inline: 0; padding-left: 1rem; border-left: 3px solid var(--line); }
@media (max-width: 67rem) {
    .admin-shell .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .editor-layout { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 56rem) {
    .admin-pair { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 38rem) {
    .admin-shell .table-filter select { max-width: none; }
}
