/* ==========================================================
   Prime Post Weekly - base.css
   Shared frame: tokens, masthead, article typography, footer.
   Mobile first: base rules target 360px, wider layouts layer on
   at 480 / 768 / 1024.
   ========================================================== */

:root {
  --ink: #0a0a0a;
  --text: #1c2126;
  --muted: #55606a;
  --teal: #0f6f8c;
  --teal-d: #0a5870;
  --tint: #eaf3f6;
  --accent: #b8321f;
  --orange: #f58a33;
  --navy: #12263a;
  --line: #d6dce1;
  --paper: #ffffff;
  --font: "Source Sans 3", "Source Sans Pro", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --col: 736px;
  --wide: 880px;
  --gut: 16px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.62;
  color: var(--text);
  background: var(--paper);
  overflow-wrap: break-word;
}

img,
video { max-width: 100%; height: auto; }

a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-d); }

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- small utilities ---------- */
.vh {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 50;
  padding: 12px 16px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  transition: top 0.15s ease;
}
.skip:focus { top: 12px; color: #fff; }

/* ---------- masthead ---------- */
.mast {
  position: relative;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}

.mast__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  max-width: 1040px;
  min-height: 68px;
  margin: 0 auto;
  padding: 0 var(--gut);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  margin-right: auto;
  color: var(--navy);
  text-decoration: none;
}
.brand:hover { color: var(--navy); }

.brand__mark { flex: none; width: 38px; height: 38px; }

.brand__name {
  display: flex;
  flex-direction: column;
  font-size: 20px;
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.02em;
}
.brand__name span:last-child {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #b34f0e;
}

.tag {
  flex: none;
  padding: 6px 9px;
  border: 1px solid currentColor;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
}

.nav-toggle {
  display: none;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.nav-toggle:hover { background: var(--tint); }
.js .nav-toggle { display: inline-flex; }
.nav-toggle svg { width: 26px; height: 26px; }
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }

.nav { flex: 1 0 100%; order: 5; }
.js .nav { display: none; }
.js .nav.is-open { display: block; }

.nav ul {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0 0 8px;
  list-style: none;
}

.nav a {
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 0 2px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--teal-d);
  transition: color 0.15s ease, padding-left 0.15s ease;
}
.nav a:hover { color: var(--ink); padding-left: 8px; }

/* ---------- article column + typography ---------- */
.art {
  max-width: calc(var(--wide) + 2 * var(--gut));
  margin: 0 auto;
  padding: 26px var(--gut) 56px;
}
.art > * {
  max-width: var(--col);
  margin-left: auto;
  margin-right: auto;
}
.art > .wide { max-width: var(--wide); }

.meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 0;
  margin-bottom: 18px;
  font-size: 14px;
  line-height: 1.35;
  color: var(--muted);
}
.meta__badge {
  display: grid;
  flex: none;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 2px solid var(--teal);
  border-radius: 50%;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--teal);
  background: var(--paper);
}
.meta__txt { display: flex; flex-direction: column; }
.meta__txt strong { font-weight: 700; color: var(--ink); }

.art h1 {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: clamp(25px, 1.2vw + 21px, 34px);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: #000;
}

.art h2 {
  margin-top: 34px;
  margin-bottom: 12px;
  font-size: clamp(21px, 0.6vw + 18px, 26px);
  font-weight: 800;
  line-height: 1.22;
  color: #000;
}

.art h3 {
  margin-top: 26px;
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  color: #000;
}

.art p { margin-top: 0; margin-bottom: 1.05em; }

.lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
}

.art ul,
.art ol { margin-top: 0; margin-bottom: 1.2em; padding-left: 22px; }
.art li { margin-bottom: 0.5em; padding-left: 2px; }
.art li::marker { color: var(--teal); }

/* divider between article sections */
.art > .sep {
  position: relative;
  height: 1px;
  margin-top: 44px;
  margin-bottom: 44px;
  background: var(--line);
}
.sep::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  background: var(--teal);
  box-shadow: 0 0 0 9px var(--paper);
  transform: translate(-50%, -50%) rotate(45deg);
}
.art > .sep + h2 { margin-top: 0; }

/* ---------- call to action ---------- */
.cta {
  display: flex;
  margin-top: 26px;
  margin-bottom: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  padding: 12px 26px;
  border-radius: 4px;
  background: var(--teal);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.05em;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 10px 20px -12px rgba(15, 111, 140, 0.75);
  transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.btn::after {
  content: "\2192";
  font-size: 18px;
  line-height: 1;
  transition: transform 0.18s ease;
}
.btn:hover,
.btn:focus-visible {
  background: var(--teal-d);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 14px 22px -12px rgba(10, 88, 112, 0.8);
}
.btn:hover::after { transform: translateX(4px); }
.btn:active { transform: translateY(0); }

/* ---------- footer (publisher imprint) ---------- */
.page-end {
  padding: 44px var(--gut) 52px;
  background: #0b0d10;
  color: #c3cad1;
  font-size: 13px;
  line-height: 1.65;
  text-align: center;
}
.page-end > * {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.page-end__imprint { margin-bottom: 20px; }
.page-end__imprint p { margin: 0 0 6px; }
.page-end__imprint .imprint__name {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
}

.page-end__page-links ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.page-end__page-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
.page-end__page-links a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.page-end :focus-visible { outline-color: #fff; }

.about-line {
  margin-top: 16px;
  margin-bottom: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #b4bcc4;
}

/* ---------- 480+ ---------- */
@media (min-width: 480px) {
  .btn { width: auto; min-width: 280px; }
  .page-end__page-links ul { gap: 0 10px; }
}

/* ---------- 768+ ---------- */
@media (min-width: 768px) {
  body { font-size: 18px; }

  .mast__in { padding: 0 24px; min-height: 76px; }
  .tag { font-size: 12px; padding: 7px 11px; }

  .art { padding-top: 40px; padding-bottom: 84px; }
  .art h2 { margin-top: 44px; }
  .art > .sep { margin-top: 60px; margin-bottom: 56px; }
  .lead { font-size: 19px; }

  .page-end { padding: 56px 24px 64px; }
}

/* ---------- 1024+ : full masthead with inline navigation ---------- */
@media (min-width: 1024px) {
  .mast__in {
    flex-wrap: nowrap;
    gap: 24px;
    min-height: 94px;
  }
  .brand { margin-right: 0; }
  .brand__mark { width: 50px; height: 50px; }
  .brand__name { font-size: 28px; white-space: nowrap; }
  .brand__name span:last-child { font-size: 23px; }

  .js .nav-toggle,
  .nav-toggle { display: none; }

  .js .nav,
  .nav { display: block; flex: 1 1 auto; order: 0; margin-left: 28px; }
  .nav ul {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0 34px;
    padding: 0;
  }
  .nav a {
    position: relative;
    min-height: 48px;
    padding: 0;
    border-top: 0;
    font-size: 16px;
    white-space: nowrap;
  }
  .nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    height: 2px;
    background: var(--teal);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
  }
  .nav a:hover { padding-left: 0; }
  .nav a:hover::after { transform: scaleX(1); }

  .tag { order: 2; margin-left: auto; }

  .art { padding-top: 46px; }
}
