@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Serif:wght@500;600&display=swap");

:root {
  --bg: #f4f7f8;
  --ink: #12202b;
  --muted: #4d5e6a;
  --card: #ffffff;
  --line: #d5dee3;
  --accent: #0b6e7a;
  --accent-dark: #084f58;
  --nav: #0e2a33;
  --focus: #0b6e7a;
  --max: 68rem;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --serif: "IBM Plex Serif", Georgia, serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}

a { color: var(--accent-dark); }
a:hover { color: var(--accent); }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #fff;
  padding: 0.55rem 0.9rem;
  z-index: 100;
}
.skip-link:focus { left: 0.7rem; top: 0.7rem; }

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.disclaimer {
  background: #e4eef0;
  color: #2c4550;
  font-size: 0.84rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}

.masthead {
  background: #fff;
  padding: 1.15rem 0;
  border-bottom: 4px solid var(--accent);
}

.masthead-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
}

.logo-mark {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1rem;
}

.logo strong {
  display: block;
  font-size: 1.18rem;
  font-weight: 700;
}

.logo small {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
}

.byline {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: right;
  max-width: 16rem;
}

.nav-bar {
  background: var(--nav);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.1rem;
}

.nav-toggle {
  display: none;
  background: transparent;
  color: #e8f1f3;
  border: 1px solid #3d5a64;
  border-radius: 6px;
  padding: 0.35rem 0.7rem;
  font-family: var(--sans);
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.2rem;
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
}

.nav-list a {
  color: #c5d8de;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-list a[aria-current="page"],
.nav-list a:hover { color: #fff; }

main { padding: 2.4rem 0 3.5rem; }

.kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.55rem;
}

.hero h1,
.article-head h1 {
  margin: 0 0 0.75rem;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.4vw, 2.45rem);
  line-height: 1.2;
}

.lede {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 40rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.95rem 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  background: #e4eef0;
  color: #0e2a33;
  border-radius: 4px;
  padding: 0.18rem 0.6rem;
  font-size: 0.76rem;
  font-weight: 600;
}

.article-head {
  padding-bottom: 1.1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.grid { display: grid; gap: 1rem; }

.cards {
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  margin: 1.5rem 0 2rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding: 1.15rem 1.2rem;
}

.card h2,
.card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.12rem;
}

.card p {
  margin: 0 0 0.8rem;
  color: var(--muted);
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  padding: 0.5rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.btn:hover { background: var(--accent-dark); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--accent-dark);
  border: 1px solid var(--accent);
}

.btn-ghost:hover {
  background: #e4eef0;
  color: var(--accent-dark);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.2rem 0 0;
}

.prose { max-width: 44rem; }

.prose h2 {
  margin: 1.9rem 0 0.7rem;
  font-family: var(--serif);
  font-size: 1.32rem;
}

.prose p { margin: 0 0 1rem; }

.note,
.callout {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem 1.1rem;
  margin: 1.3rem 0;
}

.callout {
  background: #0e2a33;
  color: #e8f1f3;
  border-color: #0e2a33;
}

.callout h2,
.callout h3 { margin-top: 0; color: #fff; }

.callout a { color: #9ad7df; }

.site-footer {
  background: var(--nav);
  color: #c5d8de;
  padding: 2.1rem 0 1.4rem;
  font-size: 0.9rem;
}

.site-footer h2 {
  color: #fff;
  font-size: 0.98rem;
  margin: 0 0 0.6rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1.4rem;
}

.site-footer a { color: #c5d8de; }
.footer-nav { display: grid; gap: 0.32rem; }

.copyright {
  margin-top: 1.4rem;
  padding-top: 0.95rem;
  border-top: 1px solid #2a4650;
  color: #8aa3ad;
}

@media (max-width: 800px) {
  .nav-toggle { display: inline-flex; }
  .nav-list {
    display: none;
    width: 100%;
    flex-direction: column;
    padding-bottom: 0.8rem;
  }
  .nav-inner.is-open .nav-list { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .byline { display: none; }
}
