:root {
  --bg: #eef3f5;
  --surface: #ffffff;
  --surface-soft: #f6fafb;
  --text: #11232c;
  --text-muted: #425a64;
  --line: #c8d6db;
  --brand: #0f7699;
  --brand-light: #3cbfec;
  --brand-deep: #084053;
  --brand-soft: #d8ecf2;
  --shadow: 0 18px 40px rgba(4, 31, 40, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(circle at 12% 0%, #d7e9ef 0%, var(--bg) 42%, #f2f6f8 100%);
  font-family: "Raleway", sans-serif;
  line-height: 1.65;
}

img {
  max-width: 100%;
}

a {
  color: var(--brand);
}

a:hover {
  color: var(--brand-deep);
}

.shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.narrow {
  width: min(820px, 100%);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #ffffff;
  color: #000000;
  padding: 0.6rem 0.9rem;
  z-index: 999;
}

.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(172, 206, 215, 0.25);
  background: rgba(8, 64, 83, 0.96);
  backdrop-filter: blur(10px);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.site-header.is-solid,
.site-header-solid {
  border-color: rgba(172, 206, 215, 0.38);
  background: rgba(8, 64, 83, 0.96);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-word {
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.03em;
  font-size: 1.55rem;
  line-height: 1;
}

.brand-mid {
  color: var(--brand-light);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-nav a {
  color: #dbeef3;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.96rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #ffffff;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(220, 239, 245, 0.35);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: #ffffff;
}

.page-hero {
  padding: clamp(4.5rem, 10vw, 7.5rem) 0 clamp(3rem, 6vw, 4.8rem);
  color: #ffffff;
  background:
    linear-gradient(120deg, rgba(8, 64, 83, 0.92) 0%, rgba(7, 59, 76, 0.88) 48%, rgba(15, 118, 153, 0.82) 100%),
    url("/assets/images/hero-bg-1920x1280.jpg") center/cover;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 3.7rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: #c7e7f0;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.page-lead {
  margin: 1rem 0 0;
  color: #dceff4;
  max-width: 62ch;
  font-size: 1.06rem;
}

.breadcrumb-trail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 0.9rem;
  color: #c7e7f0;
  font-size: 0.9rem;
}

.breadcrumb-trail a {
  color: #c7e7f0;
  text-decoration: none;
}

.breadcrumb-trail a:hover,
.breadcrumb-trail a:focus-visible {
  color: #ffffff;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.25rem;
  color: #c7e7f0;
  font-size: 0.92rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.72rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(220, 239, 245, 0.28);
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.button-link-solid {
  background: #ffffff;
  color: var(--brand-deep);
  border-color: #ffffff;
}

.button-link-solid:hover,
.button-link-solid:focus-visible {
  background: #dff1f6;
  border-color: #dff1f6;
  color: var(--brand-deep);
}

.button-link-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.button-link-ghost:hover,
.button-link-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.42);
  color: #ffffff;
}

.page-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.page-section-surface {
  background: rgba(255, 255, 255, 0.84);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.post-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(4, 31, 40, 0.08);
}

.post-card-image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-card-copy {
  padding: 1.15rem;
}

.post-kicker {
  margin: 0 0 0.4rem;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-card h2,
.post-card h3 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.2;
}

.post-card h2 a,
.post-card h3 a {
  color: inherit;
  text-decoration: none;
}

.post-card-meta {
  margin: 0 0 0.65rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.text-link {
  font-weight: 700;
  text-decoration: none;
}

.post-card-empty {
  grid-column: 1 / -1;
}

.article-shell {
  width: min(860px, 100%);
  margin: 0 auto;
}

.article-hero {
  margin: 0 0 1.6rem;
}

.article-hero img {
  width: 100%;
  display: block;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 36px rgba(4, 31, 40, 0.12);
}

.rich-copy,
.legal-copy {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(4, 31, 40, 0.07);
  padding: clamp(1.25rem, 3vw, 2.25rem);
}

.rich-copy > :first-child,
.legal-copy > :first-child {
  margin-top: 0;
}

.rich-copy h2,
.legal-copy h2 {
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
}

.rich-copy h3,
.legal-copy h3 {
  margin-top: 1.6rem;
  margin-bottom: 0.6rem;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.rich-copy p,
.legal-copy p,
.rich-copy li,
.legal-copy li,
.rich-copy td,
.legal-copy td,
.rich-copy th,
.legal-copy th {
  color: var(--text);
  font-size: 1rem;
}

.rich-copy ul,
.legal-copy ul,
.rich-copy ol,
.legal-copy ol {
  padding-left: 1.25rem;
}

.rich-copy blockquote,
.legal-copy blockquote {
  margin: 1.4rem 0;
  padding: 0.9rem 1rem;
  border-left: 4px solid var(--brand);
  background: var(--surface-soft);
}

.rich-copy table,
.legal-copy table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
}

.rich-copy th,
.rich-copy td,
.legal-copy th,
.legal-copy td {
  border: 1px solid var(--line);
  padding: 0.65rem;
  text-align: left;
  vertical-align: top;
}

.rich-copy img,
.legal-copy img {
  border-radius: 12px;
}

.article-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.9rem;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(17, 35, 44, 0.12);
}

.page-intro-card {
  width: min(860px, 100%);
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(4, 31, 40, 0.07);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.site-footer {
  background: #062f3d;
  color: #cae3eb;
  padding: 2.2rem 0 1.4rem;
  border-top: 1px solid rgba(174, 209, 220, 0.2);
}

.footer-grid {
  display: grid;
  gap: 1rem;
  align-items: center;
  grid-template-columns: auto 1fr auto;
}

.footer-tag {
  margin: 0;
  font-weight: 600;
}

.footer-brand .brand-word {
  font-size: 1.35rem;
}

.footer-links {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-links a {
  color: #cae3eb;
  text-decoration: none;
  font-size: 0.93rem;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #ffffff;
}

.footer-lower {
  margin-top: 1.2rem;
  border-top: 1px solid rgba(174, 209, 220, 0.2);
  padding-top: 0.9rem;
}

.footer-lower p {
  margin: 0;
  color: #9ac0cc;
  font-size: 0.9rem;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[contenteditable="true"]:focus-visible {
  outline: 2px solid #8fd7ec;
  outline-offset: 2px;
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    position: fixed;
    inset: 74px 0 auto 0;
    background: rgba(8, 64, 83, 0.97);
    border-top: 1px solid rgba(172, 206, 215, 0.3);
    display: grid;
    gap: 0.4rem;
    padding: 0.8rem 1rem 1.05rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .site-header.menu-open .site-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 0.5rem 0;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .article-footer-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
