/* Self-hosted (OFL), latin subset. Newsreader: headlines and reading text. Archivo: navigation, labels, meta. */
@font-face { font-family: Newsreader; font-weight: 400 600; font-display: swap; src: url(/fonts/newsreader-latin.woff2) format("woff2"); }
@font-face { font-family: Archivo; font-weight: 100 900; font-display: swap; src: url(/fonts/archivo-latin.woff2) format("woff2"); }

/* Palette taken from the logo: navy waves, rising-sun red, gold ring. Gold is decoration only (low contrast on light). */
:root {
  --bg: #faf8f3;
  --surface: #ffffff;
  --ink: #18213a;
  --muted: #565d6d;
  --line: #e6e0d4;
  --navy: #14213d;
  --red: #b3242c;
  --gold: #b48a3c;
  --gold-light: #d9b56a;
  --serif: Newsreader, Georgia, "Times New Roman", serif;
  --sans: Archivo, system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 72rem;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }
img { max-width: 100%; height: auto; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 48rem) { .wrap { padding: 0 2rem; } }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header::after { content: ""; display: block; height: 3px; background: linear-gradient(var(--gold) 0 1px, transparent 1px 2px, var(--gold) 2px); } /* double gold rule, echoing the logo's ring */
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 2rem; padding-top: .75rem; padding-bottom: .5rem; }
.brand { display: block; margin-right: auto; }
.brand img { display: block; width: auto; height: 40px; }
@media (min-width: 48rem) { .brand img { height: 48px; } }

.sections { display: flex; gap: 1.5rem; order: 3; width: 100%; font: 600 .875rem/1 var(--sans); letter-spacing: .02em; }
@media (min-width: 48rem) { .sections { order: 0; width: auto; } }
.sections a { display: grid; align-items: center; min-height: 44px; text-decoration: none; border-bottom: 2px solid transparent; }
.sections a[aria-current="page"] { border-bottom-color: var(--red); }

.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; font: 600 .8125rem/1 var(--sans); }
.lang-switch a { display: grid; place-items: center; min-width: 44px; min-height: 40px; text-decoration: none; color: var(--muted); }
.lang-switch a[aria-current="page"] { background: var(--navy); color: #fff; }

/* Shared type */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; overflow-wrap: break-word; }
.kicker { margin: 0 0 .75rem; font: 700 .75rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.kicker a { text-decoration: none; }
.meta { margin: 0; font: 400 .875rem/1.4 var(--sans); color: var(--muted); }
.meta a { color: var(--ink); }
.dek { font: 400 1.25rem/1.5 var(--serif); color: var(--muted); margin: 0 0 1rem; }
.section-label { font: 700 .8125rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--ink); }

/* Home */
.intro { padding-top: 2.5rem; padding-bottom: 2rem; }
.intro h1 { font-size: clamp(2.25rem, 6vw, 4rem); max-width: 18ch; margin: 0 0 .75rem; font-weight: 500; }
.intro .dek { max-width: 40rem; }

.home-grid { display: grid; gap: 2.5rem; padding-bottom: 3rem; }
@media (min-width: 60rem) { .home-grid { grid-template-columns: 2fr 1fr; gap: 3.5rem; } }

.lead { border-top: 3px solid var(--navy); padding-top: 1.5rem; }
.lead h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); margin: 0 0 1rem; font-weight: 500; }
.lead h2 a { text-decoration: none; }
.lead .dek { max-width: 38rem; }
.read { display: inline-flex; align-items: center; min-height: 44px; margin-top: 1.25rem; padding: 0 1.25rem; background: var(--navy); color: #fff; border-radius: 4px; font: 600 .9375rem/1 var(--sans); text-decoration: none; }
.read:hover { background: var(--red); color: #fff; }

.posts { list-style: none; margin: 0; padding: 0; counter-reset: post; }
.posts li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.posts li:first-child { padding-top: 0; }
.posts a { font: 600 1.1875rem/1.3 var(--serif); text-decoration: none; }
.posts p { margin: .375rem 0 0; color: var(--muted); font-size: .9375rem; }
.posts .meta { margin-bottom: .375rem; }
.posts:not(:empty) + .empty { display: none; }
.empty { color: var(--muted); }

.cover { padding-top: 2.5rem; padding-bottom: 3.5rem; border-top: 1px solid var(--line); }
.cover-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.cover h3 { font-size: 1.5rem; margin: 0 0 .5rem; padding-top: 1rem; border-top: 2px solid var(--gold); }
.cover h3 a { text-decoration: none; }
.cover p { margin: 0; color: var(--muted); }
.cover .soon { display: block; margin-top: .5rem; font: 600 .8125rem/1 var(--sans); color: var(--muted); }
.cover > p { margin-top: 2rem; max-width: 42rem; color: var(--ink); }

/* Articles and pages */
.crumbs ol { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 1.5rem 0 0; padding: 0; font: 400 .875rem/1.4 var(--sans); color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: .5rem; }
.crumbs a { color: var(--muted); }

.article-head { max-width: 46rem; padding: 2rem 0 1.5rem; border-bottom: 1px solid var(--line); margin-bottom: 2rem; }
.article-head h1 { font-size: clamp(2.125rem, 5.5vw, 3.5rem); font-weight: 500; margin: 0 0 1rem; }

.prose { max-width: 42rem; font: 400 1.1875rem/1.7 var(--serif); }
.prose h2 { font-size: 1.625rem; margin: 2.5rem 0 .75rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.25rem; }
.prose li { margin-bottom: .5rem; }
.prose strong { font-weight: 600; }
.prose a { color: var(--red); }
.prose figure { margin: 2rem 0; }
.prose img { display: block; }
.prose figcaption { font: 400 .875rem/1.5 var(--sans); color: var(--muted); margin-top: .5rem; }

.related { max-width: 46rem; margin: 3rem 0 4rem; padding-top: 1.5rem; border-top: 3px solid var(--navy); }
.related h2 { font: 700 .8125rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 1rem; }
.related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.related li a { display: block; height: 100%; padding: 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; font: 600 1.125rem/1.35 var(--serif); text-decoration: none; }
.related li a:hover { border-color: var(--red); }

.page-list { max-width: 46rem; padding-bottom: 4rem; }

/* Footer */
.site-footer { background: var(--navy); color: #e8eaf0; font-size: .9375rem; }
.site-footer::before { content: ""; display: block; height: 3px; background: linear-gradient(var(--gold-light) 0 1px, transparent 1px 2px, var(--gold-light) 2px); }
.footer-inner { display: grid; gap: 2rem; padding-top: 2.5rem; padding-bottom: 2rem; }
@media (min-width: 48rem) { .footer-inner { grid-template-columns: 2fr 1fr 1.5fr; } }
.footer-brand img { display: block; width: 64px; height: 64px; margin-bottom: .75rem; }
.footer-brand p { margin: 0; max-width: 22rem; }
.footer-h { margin: 0 0 .75rem; font: 700 .75rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-light); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a { display: inline-block; padding: .3rem 0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--gold-light); }
.copy { grid-column: 1 / -1; margin: 0; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.15); color: #c5c9d4; font-size: .875rem; }

/* Sources, genre tags, topics */
.sources { max-width: 42rem; margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--line); font: 400 .875rem/1.5 var(--sans); color: var(--muted); }
.sources h2 { font: 700 .75rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin: 0 0 .75rem; }
.sources ol { margin: 0; padding-left: 1.25rem; }
.sources li { margin-bottom: .375rem; overflow-wrap: anywhere; }
.sources a { color: var(--muted); }
.note { max-width: 42rem; margin: 0 0 1.5rem; padding: .875rem 1rem; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--gold); font: 400 .9375rem/1.5 var(--sans); color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 1rem 0 0; padding: 0; }
.tags a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 .75rem; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); font: 600 .8125rem/1 var(--sans); text-decoration: none; }
.tags a:hover { border-color: var(--red); }
.topic-grid { list-style: none; margin: 0 0 4rem; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); max-width: 60rem; }
.topic-grid a { display: block; padding: 1.25rem; background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--gold); border-radius: 4px; text-decoration: none; }
.topic-grid a:hover { border-color: var(--red); }
.topic-grid strong { display: block; font: 600 1.375rem/1.2 var(--serif); }
.topic-grid span { font: 400 .875rem/1.4 var(--sans); color: var(--muted); }
.sections { flex-wrap: wrap; column-gap: 1.25rem; }
.cover .genres-h { margin-top: 2.5rem; }
@media (min-width: 60rem) { .lead { position: sticky; top: 1.5rem; align-self: start; } }
