:root {
  --ink: #122025;
  --muted: #5d6c70;
  --line: #dce7e7;
  --paper: #fbfdfd;
  --soft: #eef6f4;
  --teal: #0a7c78;
  --teal-dark: #075b58;
  --amber: #e8a632;
  --coral: #d75f4b;
  --white: #ffffff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 64px);
  background: rgba(251, 253, 253, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark,
.article-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--white);
  background: var(--teal);
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

.nav a:hover,
.nav a.active {
  color: var(--ink);
  background: var(--soft);
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
}

.hero {
  min-height: calc(100vh - 70px);
  display: grid;
  align-items: end;
  position: relative;
  overflow: hidden;
  background: #0f2025;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 22, 26, 0.9) 0%, rgba(8, 22, 26, 0.58) 48%, rgba(8, 22, 26, 0.18) 100%),
    linear-gradient(0deg, rgba(8, 22, 26, 0.55), transparent 40%);
}

.hero-copy {
  position: relative;
  width: min(760px, calc(100% - 36px));
  margin: 0 0 clamp(42px, 11vh, 96px) clamp(18px, 5vw, 64px);
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #8de3db;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 8px 0 10px;
  font-size: 1.22rem;
  line-height: 1.2;
}

p {
  line-height: 1.7;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 620px;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: #d7ebed;
}

.hero-actions,
.card-bottom,
.section-heading,
.footer-links {
  display: flex;
  align-items: center;
}

.hero-actions {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--amber);
  color: #1d1605;
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: var(--white);
}

.section,
.page,
.article-page,
.footer {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.section {
  padding: clamp(44px, 8vw, 86px) 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px;
  border-bottom: 1px solid var(--line);
}

.intro-grid p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.section-heading {
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-heading a,
.card-bottom a,
.back-link,
.content-block a,
.contact-panel a {
  color: var(--teal-dark);
  font-weight: 800;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.article-card,
.category,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 35px rgba(19, 41, 43, 0.06);
}

.article-card {
  display: flex;
  min-height: 310px;
  flex-direction: column;
  padding: 22px;
}

.article-card p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

.featured-card {
  background: #f9fcf8;
  border-color: #cfe4df;
}

.card-bottom {
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 22px;
  color: var(--muted);
  font-size: 0.92rem;
}

.card-bottom a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
}

.categories {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  border-top: 1px solid var(--line);
}

.category {
  padding: 22px;
}

.category svg {
  color: var(--coral);
}

.category p {
  margin-bottom: 0;
  color: var(--muted);
}

.page,
.article-page {
  padding: clamp(42px, 7vw, 82px) 0;
}

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

.page-title {
  margin-bottom: 34px;
}

.page-title h1 {
  max-width: 900px;
  color: var(--ink);
  font-size: clamp(2.3rem, 5vw, 4.8rem);
}

.page-title p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.1rem;
}

.all-articles {
  padding-bottom: 30px;
}

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  text-decoration: none;
}

.article-body {
  max-width: 780px;
}

.article-body h1 {
  color: var(--ink);
  font-size: clamp(2.2rem, 5vw, 4.7rem);
}

.article-body .standfirst {
  color: var(--muted);
  font-size: 1.18rem;
}

.article-body p {
  font-size: 1.06rem;
}

.related {
  margin-top: 58px;
  padding-top: 38px;
  border-top: 1px solid var(--line);
}

.related h2 {
  margin-bottom: 22px;
}

.content-block,
.contact-panel {
  padding: 28px;
}

.content-block h2 {
  margin-top: 28px;
  font-size: 1.5rem;
}

.content-block h2:first-child {
  margin-top: 0;
}

.content-block p {
  color: var(--muted);
}

.contact-panel {
  display: flex;
  align-items: center;
  gap: 18px;
}

.contact-panel svg {
  color: var(--teal);
  flex: 0 0 auto;
}

.contact-panel h2 {
  margin-bottom: 4px;
  font-size: 1.35rem;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer strong {
  color: var(--ink);
}

.footer p {
  margin: 6px 0 0;
}

.footer-links {
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 860px) {
  .nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .intro-grid,
  .article-grid,
  .categories {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 680px;
  }

  .hero-copy {
    margin-right: 18px;
  }

  .footer {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 18px;
  }

  .nav {
    justify-content: flex-start;
  }

  .brand {
    font-size: 0.96rem;
  }

  .hero-actions .button {
    width: 100%;
  }

  .article-card {
    min-height: 0;
  }
}
