:root {
    color-scheme: light;
    --ink: #15212b;
    --muted: #6d7881;
    --blue: #1375a1;
    --line: #dfe5e8;
    --paper: #fdfdfc;
    --serif: Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a:hover { color: var(--blue); }
:focus-visible { outline: 2px solid #299bcb; outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
.container { width: min(1240px, calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 10; top: -80px; left: 16px; padding: 14px; background: white; }
.skip-link:focus { top: 12px; }

.site-header { position: relative; isolation: isolate; color: #edf4f8; background: #09141c; }
.header-sky { position: absolute; inset: 0; overflow: hidden; z-index: -1; background: #020508; }
.planet { position: absolute; width: 1120px; height: 630px; top: -160px; left: calc(50% - 300px); background: url('images/neptune.jpg') center / contain no-repeat; mix-blend-mode: screen; }
.masthead { min-height: 135px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: block; width: min(470px, 48%); flex-shrink: 0; }
.brand-logo { width: 100%; height: auto; }
.search { display: flex; gap: 10px; align-items: center; width: 246px; border: 1px solid #6376847a; background: #06111bce; border-radius: 5px; padding: 10px 12px; }
.search:focus-within { border-color: #64b7db; }
.search svg { width: 18px; flex-shrink: 0; }
.search input { width: 100%; min-width: 0; color: #fff; background: none; border: 0; outline: none; font-size: 12px; }
.search input::placeholder { color: #abb6bf; }
.search button { padding: 0 2px; color: #abb6bf; background: none; border: 0; font-size: 17px; }
.nav-wrapper { background: #070e14; border-top: 1px solid #a8c8d322; }
.navigation { display: flex; align-items: stretch; justify-content: space-between; gap: 18px; overflow-x: auto; scrollbar-width: none; }
.navigation::-webkit-scrollbar { display: none; }
.navigation a { position: relative; display: flex; align-items: center; flex-shrink: 0; min-height: 55px; font-size: 14px; white-space: nowrap; color: #d4dde3; }
.navigation a:hover { color: white; }
.navigation a.active { color: white; }
.navigation a.active::after { content: ''; position: absolute; height: 3px; bottom: 0; inset-inline: 0; background: #56b9e2; }

main { min-height: 60vh; padding-block: 43px 72px; }
.page-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 31px; }
.heading-group { display: flex; align-items: baseline; gap: 18px; }
h1 { font: 400 35px/1.16 var(--serif); letter-spacing: -.8px; margin: 0; }
.heading-note { color: var(--muted); font-size: 11px; line-height: 1.5; }
.news-layout { display: grid; grid-template-columns: minmax(0, 1fr) 286px; gap: 58px; }
.article { border-bottom: 1px solid var(--line); padding-bottom: 34px; margin-bottom: 36px; }
.article-meta { display: flex; gap: 13px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 10px; line-height: 1.5; letter-spacing: .4px; }
.article-meta .category { color: var(--blue); letter-spacing: .8px; text-transform: uppercase; font-size: 9px; }
.meta-dot { width: 3px; height: 3px; border-radius: 50%; background: #aab4bb; }
.article h2, .detail-title { font: 400 35px/1.15 var(--serif); letter-spacing: -.6px; margin: 14px 0 22px; }
.article h2 a:hover, .card h2 a:hover { color: var(--blue); }
.article-image { width: 100%; height: auto; background: #e5ebee; }
.image-caption { margin: 8px 0 22px; color: #7f888f; font-size: 10px; }
.article-body { margin-top: 22px; font: 17px/1.8 var(--serif); color: #29333c; }
.article-body p { margin: 0 0 18px; }
.article-body p:first-child { font-size: 18px; color: #142532; }
.article-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 27px; font-size: 11px; }
.sources { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; color: var(--muted); }
.sources a { color: var(--blue); border-bottom: 1px solid #a9c4d0; }
.share { color: #566675; background: none; border: 1px solid #d8e0e5; border-radius: 3px; padding: 9px 12px; font-size: 11px; }
.share:hover { border-color: #8db4c7; color: var(--blue); }
.share span { margin-left: 9px; }
.sidebar-title { font-size: 11px; text-transform: uppercase; letter-spacing: 1.7px; font-weight: 600; margin: 0 0 22px; display: flex; align-items: center; gap: 12px; }
.sidebar-title::before { content: ''; width: 17px; height: 2px; background: var(--blue); }
.popular-card { margin-bottom: 28px; padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.popular-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 13px; background: #e5ebee; }
.popular-card time { color: var(--muted); font-size: 10px; }
.popular-card h3 { font: 400 21px/1.25 var(--serif); margin: 8px 0 0; letter-spacing: -.15px; }
.sidebar-about { background: #eef3f5; border-top: 2px solid #5e91a6; padding: 23px; margin-top: 35px; }
.sidebar-about .eyebrow { color: var(--blue); font-size: 9px; letter-spacing: 1.6px; text-transform: uppercase; }
.sidebar-about p { font: 19px/1.5 var(--serif); margin: 12px 0; }
.sidebar-about a { font-size: 11px; color: var(--blue); }
.load-more { display: block; width: 100%; padding: 15px; border: 1px solid #cbd6dc; background: transparent; color: var(--ink); font-size: 12px; }
.load-more:hover { background: #edf4f7; border-color: #9fb9c5; }
.load-more span { margin-left: 12px; color: var(--blue); }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 28px; row-gap: 38px; }
.card img, .image-placeholder { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; background: radial-gradient(ellipse at 70% 100%, #255367, #09121d 70%); }
.card .article-meta { margin-top: 14px; }
.card h2 { font: 400 25px/1.2 var(--serif); letter-spacing: -.3px; margin: 9px 0 0; }
.back-link { display: inline-flex; gap: 10px; color: var(--blue); font-size: 11px; margin-bottom: 31px; }
.detail { max-width: 850px; margin-inline: auto; }
.detail-title { font-size: 43px; margin-bottom: 27px; }
.empty-state { padding: 64px 0 100px; max-width: 610px; }
.empty-state h2 { font: 32px var(--serif); }
.empty-state p { color: var(--muted); font-size: 15px; line-height: 1.8; }
.search-reset { display: inline-block; margin-top: 16px; font-size: 12px; color: var(--blue); border-bottom: 1px solid #b9d2de; }
.site-footer { border-top: 1px solid var(--line); background: #f3f5f5; padding: 32px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 25px; font-size: 11px; color: var(--muted); }
.footer-brand { font-size: 12px; color: #314550; }
.toast { position: fixed; bottom: 25px; left: 50%; transform: translate(-50%, 12px); opacity: 0; pointer-events: none; background: #142833; color: white; padding: 14px 22px; font-size: 12px; border-radius: 4px; transition: .2s; z-index: 10; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 1500px) {
    .container { width: min(1280px, calc(100% - 120px)); }
}

@media (max-width: 1100px) {
    .container { width: calc(100% - 48px); }
    .navigation { justify-content: flex-start; gap: 25px; }
    .news-layout { grid-template-columns: minmax(0, 1fr) 245px; gap: 32px; }
    .article h2 { font-size: 31px; }
}

@media (max-width: 760px) {
    .container { width: calc(100% - 36px); }
    .masthead { min-height: 116px; align-content: center; flex-wrap: wrap; gap: 15px; padding-block: 16px; }
    .brand { width: min(470px, 100%); }
    .search { width: 100%; padding-block: 8px; background: #06111bc9; }
    .planet { left: calc(50% - 240px); top: -85px; width: 920px; height: 518px; }
    .navigation a { min-height: 49px; font-size: 14px; }
    main { padding-block: 28px 45px; }
    .page-heading { margin-bottom: 25px; padding-bottom: 18px; }
    h1 { font-size: 31px; }
    .heading-group { gap: 10px; flex-wrap: wrap; }
    .news-layout { display: block; }
    .article h2 { font-size: 30px; line-height: 1.15; margin-top: 12px; }
    .article-body { font-size: 17px; line-height: 1.75; }
    .article-body p:first-child { font-size: 17px; }
    .article { margin-bottom: 29px; padding-bottom: 29px; }
    .sidebar { margin-top: 48px; }
    .popular-list { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
    .popular-card { margin: 0; }
    .popular-card h3 { font-size: 19px; }
    .sidebar-about { margin-top: 28px; }
    .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 18px; }
    .card h2 { font-size: 22px; }
    .detail-title { font-size: 34px; }
    .footer-inner { gap: 20px; }
}

@media (max-width: 440px) {
    .article-grid { grid-template-columns: 1fr; gap: 30px; }
    .card h2 { font-size: 25px; }
    .heading-note { font-size: 10px; }
    .article h2, .detail-title { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .toast { transition: none; }
}
