@font-face {
  font-family: Righteous;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/righteous-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/source-sans-3-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/source-sans-3-latin-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/source-sans-3-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/source-sans-3-latin-700-normal.woff2") format("woff2");
}

:root {
  --red: #dd3333;
  --navy: #2b3843;
  --header: #3e5062;
  --ink: #000000;
  --muted: #3a4650;
  --paper: #ffffff;
  --page: #dce0e4;
  --line: #d4d8dc;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: #b21f1f; }
.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 20;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

.shell {
  max-width: var(--max);
  margin: 0 auto;
  background: var(--paper);
  min-height: 100vh;
  box-shadow: 0 0 0 1px rgba(43, 56, 67, 0.08), 0 8px 28px rgba(43, 56, 67, 0.12);
  display: flex;
  flex-direction: column;
}
.wrap { width: min(100% - 2rem, 1000px); margin-inline: auto; }

.topbar {
  background: var(--navy);
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.35rem 0; }
.topbar span { opacity: 0.9; }
.topbar a { color: #fff; }

.mast {
  background: var(--header);
  color: #fff;
  border-bottom: 4px solid var(--red);
}
.mast-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding: 0.85rem 0;
}
.brand { display: flex; align-items: center; gap: 0.85rem; color: #fff; text-decoration: none; }
.brand img { height: 42px; width: auto; }
.brand small {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: #d7dde3;
  font-weight: 400;
}
.menu { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; margin-left: auto; }
.menu a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
}
.menu a:hover, .menu a[aria-current="page"] { color: #fff; border-bottom-color: var(--red); }
.langswitch {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  border: 1px solid rgba(255,255,255,0.45);
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
}
.langswitch:hover { background: rgba(255,255,255,0.1); color: #fff; }

main { flex: 1; padding: 1.75rem 0 3rem; }
h1, h2, h3, .card-title, .site-title {
  font-family: Righteous, Georgia, serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: var(--ink);
}
h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 0 0 0.6rem; }
h2 { font-size: 1.45rem; margin: 2rem 0 0.6rem; }
h3 { font-size: 1.2rem; margin: 1.4rem 0 0.4rem; }
.lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 1.25rem; }
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--red);
  margin: 0 0 0.35rem;
}
.crumbs { font-size: 0.9rem; color: var(--muted); margin: 0 0 1rem; }
.crumbs a { color: var(--muted); }

.hero {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2.25rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
}
.hero a.hero-media { display: block; }
.hero img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.hero h1 { margin-bottom: 0.5rem; }
.hero h1 a { color: var(--ink); text-decoration: none; }
.hero h1 a:hover { color: var(--red); }

.section-head {
  font-family: Righteous, Georgia, serif;
  font-size: 1.35rem;
  margin: 0 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 3px solid var(--red);
  display: inline-block;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 0 0 2.25rem;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.card a.media { display: block; }
.card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.card-body { padding: 0.85rem 0.95rem 1.05rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.card-title { font-size: 1.12rem; margin: 0; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--red); }
.card .meta, .byline, .updated { font-size: 0.85rem; color: var(--muted); }
.card .excerpt { margin: 0; color: var(--muted); font-size: 0.95rem; }

.article-hero { margin: 0 0 1.25rem; }
.article-hero img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.prose p { margin: 0 0 1rem; }
.prose ul, .prose ol { margin: 0 0 1rem; padding-left: 1.2rem; }
.prose li { margin: 0 0 0.35rem; }
.prose h2 { border-top: 1px solid var(--line); padding-top: 1.25rem; }
.byline { margin: 0 0 1.25rem; }
.related { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.helpbox {
  margin-top: 2rem;
  padding: 1rem 1.1rem;
  background: #f4f6f8;
  border-left: 4px solid var(--header);
}
.helpbox h2 { margin-top: 0; font-size: 1.15rem; border: 0; padding: 0; }

.foot {
  background: var(--navy);
  color: #d7dde3;
  padding: 2rem 0 1.4rem;
  margin-top: auto;
}
.foot a { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.25rem; }
.foot h2 { color: #fff; font-size: 1.05rem; margin: 0 0 0.5rem; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin: 0 0 0.3rem; }
.legal { font-size: 0.85rem; margin: 0; color: #c5ccd3; }
.privacy-link { margin-top: 0.75rem; }

.page404 { text-align: center; padding: 3rem 0; }
.page404 a { margin: 0 0.5rem; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .menu { margin-left: 0; width: 100%; }
  .brand { width: 100%; }
}
@media (max-width: 560px) {
  .cards, .foot-grid { grid-template-columns: 1fr; }
  .topbar .wrap { flex-direction: column; align-items: flex-start; }
  .mast-inner { padding: 0.7rem 0; }
  .brand img { height: 36px; }
  body { font-size: 1rem; }
}
