:root {
  color-scheme: light;
  --ink: #072b43;
  --ink-soft: #0d3f61;
  --sky: #eef6ff;
  --sun: #ffb400;
  --muted: #526474;
  --line: #dbe5ed;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font-family: "Cairo", sans-serif;
  line-height: 1.85;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
}

.site-header {
  background: var(--ink);
  color: #fff;
}

.header-inner,
.container {
  width: min(100% - 32px, 1040px);
  margin-inline: auto;
}

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

.brand {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 900;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

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

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--sun);
}

.page-intro {
  padding-block: 58px 38px;
  text-align: center;
}

.eyebrow {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.3;
}

.page-intro p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--muted);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 20px;
  padding-bottom: 64px;
}

.article-card {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 26px rgb(7 43 67 / 6%);
}

.article-card h2 {
  margin-block: 12px;
  font-size: 1.35rem;
  line-height: 1.55;
}

.article-card p {
  color: var(--muted);
}

.article-card a {
  margin-top: auto;
  color: var(--ink-soft);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.tag {
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 800;
}

.article-main {
  padding-block: 44px 72px;
}

.breadcrumb {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--ink-soft);
  font-weight: 700;
}

.article {
  max-width: 780px;
  margin-inline: auto;
  padding: clamp(22px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
}

.article h1 {
  margin-block: 10px 14px;
}

.article h2 {
  margin-block: 32px 10px;
  font-size: 1.45rem;
  line-height: 1.55;
}

.article h3 {
  margin-block: 22px 8px;
  font-size: 1.15rem;
}

.article p,
.article li {
  color: #354a5a;
}

.article ul,
.article ol {
  padding-inline-start: 1.5rem;
}

.article li + li {
  margin-top: 8px;
}

.article-callout {
  margin-block: 24px;
  padding: 16px 20px;
  border-inline-start: 4px solid var(--sun);
  border-radius: 10px;
  background: #fff8e6;
}

.article-callout p:last-child {
  margin-bottom: 0;
}

.article-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.article-footer a {
  color: var(--ink-soft);
  font-weight: 800;
}

.site-footer {
  padding-block: 24px;
  background: #061e2d;
  color: #eaf2f8;
  text-align: center;
}

.site-footer a {
  color: var(--sun);
  font-weight: 700;
}

@media (max-width: 640px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding-block: 12px;
  }

  .site-nav {
    gap: 8px 14px;
  }
}

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