:root {
  --ink: #17242b;
  --muted: #607078;
  --paper: #f7f5ef;
  --white: #fff;
  --teal: #0b6b75;
  --teal-dark: #074951;
  --sun: #f4d35e;
  --coral: #ed7b5f;
  --line: #dce2de;
  --soft: #e2ece8;
  --shadow: 0 18px 50px rgba(22, 43, 48, .12);
  --radius: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: var(--teal); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
button, input { font: inherit; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 1000; padding: 10px 14px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(247, 245, 239, .94); border-bottom: 1px solid rgba(23, 36, 43, .09); backdrop-filter: blur(14px); }
.header-inner { max-width: 1240px; margin: auto; padding: 13px 24px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; color: var(--ink); line-height: 1.2; text-decoration: none; }
.brand-mark { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; background: linear-gradient(135deg, var(--teal-dark), var(--teal)); color: #fff; font-weight: 850; letter-spacing: -.04em; }
.brand strong { display: block; font-size: 14px; }
.brand small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.primary-nav ul { display: flex; gap: 5px; margin: 0; padding: 0; list-style: none; }
.primary-nav a { display: block; padding: 9px 11px; border-radius: 9px; color: var(--ink); font-size: 13px; font-weight: 700; text-decoration: none; }
.primary-nav a:hover, .primary-nav a.active { background: var(--soft); color: var(--teal-dark); }
.nav-toggle { display: none; border: 0; border-radius: 10px; padding: 9px 13px; background: var(--ink); color: #fff; font-weight: 750; }
.page-hero { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(135deg, #083f48 0%, #0b6b75 62%, #5b8e7d 100%); color: #fff; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to bottom, black, transparent); }
.hero-orb { position: absolute; z-index: -1; border-radius: 50%; }
.orb-one { width: 390px; height: 390px; top: -160px; right: -120px; background: rgba(244, 211, 94, .19); }
.orb-two { width: 240px; height: 240px; bottom: -175px; left: 7%; background: rgba(255,255,255,.09); }
.hero-inner { max-width: 1200px; margin: auto; padding: 82px 24px 88px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .75fr); gap: 70px; align-items: center; }
.hero-copy h1 { max-width: 760px; margin: .14em 0 .32em; font-size: clamp(48px, 6.5vw, 82px); line-height: .99; letter-spacing: -.055em; }
.hero-intro { max-width: 720px; margin: 0; color: rgba(255,255,255,.86); font-size: clamp(18px, 2.1vw, 23px); line-height: 1.55; }
.eyebrow { margin: 0 0 9px; color: var(--teal); font-size: 12px; font-weight: 850; letter-spacing: .17em; text-transform: uppercase; }
.page-hero .eyebrow { color: var(--sun); }
.hero-image { margin: 0; overflow: hidden; border: 10px solid rgba(255,255,255,.14); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); transform: rotate(2deg); }
.hero-image img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.page-main { max-width: 1260px; margin: 0 auto; padding: 64px 24px 110px; }
.archive-intro { display: flex; justify-content: space-between; gap: 35px; align-items: end; margin-bottom: 28px; }
.archive-intro h2 { margin: .15em 0 .25em; font-size: clamp(32px, 4vw, 50px); line-height: 1.08; letter-spacing: -.04em; }
.archive-intro p:last-child { max-width: 680px; margin-bottom: 0; color: var(--muted); }
.archive-count { flex: 0 0 auto; padding: 13px 17px; border-radius: 13px; background: var(--ink); color: #fff; font-weight: 800; }
.tools { display: grid; grid-template-columns: minmax(250px, .6fr) minmax(0, 1.4fr); gap: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 8px 25px rgba(23,36,43,.05); }
.search-label { position: relative; display: flex; align-items: center; }
.search-label span { position: absolute; left: 15px; color: var(--muted); font-size: 13px; }
.search-label input { width: 100%; min-height: 48px; padding: 11px 14px 11px 68px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); }
.search-label input:focus { outline: 3px solid rgba(11,107,117,.18); border-color: var(--teal); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.filters button { min-height: 44px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--muted); cursor: pointer; }
.filters button:hover { border-color: var(--teal); color: var(--teal-dark); }
.filters button.active { border-color: var(--teal); background: var(--teal); color: #fff; font-weight: 750; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; color: var(--ink); text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-5px); border-color: #9abcb7; box-shadow: var(--shadow); }
.card[hidden] { display: none; }
.card-media { overflow: hidden; background: var(--soft); }
.card-media img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform .35s; }
.card:hover .card-media img { transform: scale(1.045); }
.card-body { display: flex; min-height: 250px; flex: 1; flex-direction: column; padding: 23px; }
.cat { align-self: flex-start; padding: 5px 9px; border-radius: 999px; background: var(--soft); color: var(--teal-dark); font-size: 10px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.card-body h3 { margin: 15px 0 5px; font-size: 20px; line-height: 1.25; letter-spacing: -.02em; }
.date { color: #849298; font-size: 12px; }
.card-body p { margin: 13px 0 20px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.read { margin-top: auto; color: var(--teal); font-size: 13px; font-weight: 850; }
.empty-state { grid-column: 1 / -1; padding: 55px; border: 1px dashed #aebdb8; border-radius: 18px; text-align: center; color: var(--muted); }
.article-hero .hero-inner { grid-template-columns: 1fr; padding-top: 66px; padding-bottom: 70px; }
.article-hero .hero-copy h1 { max-width: 1000px; font-size: clamp(42px, 6vw, 72px); }
.breadcrumbs { margin-bottom: 20px; font-size: 13px; color: rgba(255,255,255,.72); }
.breadcrumbs a { color: var(--sun); }
.article-main { max-width: 1060px; margin: 0 auto; padding: 68px 24px 110px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.article-meta span { padding: 7px 11px; border-radius: 999px; background: var(--soft); color: var(--teal-dark); font-size: 12px; font-weight: 750; }
.feature-image { margin: 0 0 45px; overflow: hidden; border: 12px solid #fff; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.feature-image img { display: block; width: 100%; max-height: 610px; object-fit: cover; }
.article-prose { max-width: 800px; font-size: 1.1rem; }
.article-prose .lead { font-size: 1.35rem; line-height: 1.55; }
.guide-box { margin: 45px 0; padding: 30px; border-radius: var(--radius); background: #e2ece8; }
.guide-box h2 { margin: .1em 0 .35em; font-size: 30px; line-height: 1.2; }
.guide-box p { margin-bottom: 0; color: var(--muted); }
.article-nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 55px; padding-top: 25px; border-top: 1px solid var(--line); }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 12px 18px; border-radius: 12px; background: var(--teal); color: #fff; font-weight: 800; text-decoration: none; }
.button:hover { background: var(--teal-dark); }
.button-secondary { background: transparent; color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); }
.site-footer { display: flex; justify-content: space-between; gap: 30px; padding: 32px max(24px, calc((100vw - 1160px)/2)); background: var(--ink); color: #fff; }
.site-footer div { display: flex; flex-direction: column; }
.site-footer span { margin-top: 4px; color: #9cacb1; font-size: 12px; }
.site-footer a { color: var(--sun); font-weight: 750; }
.footer-links { display: flex; flex-direction: row!important; flex-wrap: wrap; gap: 18px; }
.redirect-page { display: grid; min-height: 100vh; place-items: center; padding: 24px; text-align: center; }
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; gap: 38px; }
  .hero-image { max-width: 620px; transform: none; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .tools { grid-template-columns: 1fr; }
  .filters { justify-content: flex-start; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .primary-nav { display: none; position: absolute; top: 69px; right: 16px; left: 16px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); box-shadow: var(--shadow); }
  .primary-nav.open { display: block; }
  .primary-nav ul { display: grid; grid-template-columns: 1fr 1fr; }
  .primary-nav a { padding: 12px; }
}
@media (max-width: 640px) {
  .header-inner { padding: 10px 15px; }
  .brand small { display: none; }
  .hero-inner { padding: 56px 18px 62px; }
  .hero-copy h1 { font-size: 45px; }
  .page-main, .article-main { padding: 48px 17px 78px; }
  .archive-intro { align-items: flex-start; flex-direction: column; }
  .grid { grid-template-columns: 1fr; }
  .filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 5px; }
  .filters button { flex: 0 0 auto; }
  .card-body { min-height: 225px; }
  .article-nav, .site-footer { flex-direction: column; }
  .feature-image { border-width: 7px; }
}
