:root {
  --color-text: #172033;
  --color-muted: #5b6778;
  --color-background: #ffffff;
  --color-surface: #f6f9fb;
  --color-surface-strong: #eef5f8;
  --color-primary: #123d6a;
  --color-primary-strong: #0b2d51;
  --color-accent: #0f8b8d;
  --color-warm: #f2b84b;
  --color-border: #d9e5ec;
  --shadow-soft: 0 18px 45px rgba(18, 32, 51, 0.08);
  --radius-sm: 8px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --content-width: 1120px;
  --article-width: 760px;
  --space-xs: clamp(0.5rem, 0.44rem + 0.28vw, 0.75rem);
  --space-sm: clamp(0.8rem, 0.66rem + 0.7vw, 1.25rem);
  --space-md: clamp(1.25rem, 0.96rem + 1.45vw, 2rem);
  --space-lg: clamp(2rem, 1.45rem + 2.75vw, 3.5rem);
  --space-xl: clamp(3rem, 2.08rem + 4.6vw, 5.5rem);
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text);
  background: var(--color-background);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.72rem 0.85rem;
  color: var(--color-text);
  background: #ffffff;
}

textarea {
  resize: vertical;
}

:focus-visible {
  outline: 3px solid rgba(15, 139, 141, 0.45);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  inset-block-start: 0.75rem;
  inset-inline-start: 0.75rem;
  z-index: 1000;
  transform: translateY(-150%);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: #ffffff;
  background: var(--color-primary);
}

.skip-link:focus {
  transform: translateY(0);
}

.section-shell {
  width: min(var(--content-width), calc(100% - 2rem));
  margin-inline: auto;
}

.section {
  padding-block: var(--space-xl);
}

.section-soft {
  background: var(--color-surface);
}

.page-hero {
  padding-block: calc(var(--space-xl) + 1rem) var(--space-lg);
  background: linear-gradient(180deg, var(--color-surface), #ffffff);
}

.page-hero .section-shell {
  max-width: 860px;
}

.page-hero h1,
.article-body h1 {
  max-width: 14ch;
}

.article-shell {
  max-width: var(--article-width);
}

.article-body :where(h1, h2, h3) {
  line-height: 1.12;
  margin-block: 1.5em 0.55em;
}

.article-body :where(p, ul, ol) {
  margin-block: 0 1.15em;
}

.article-body :where(ul, ol) {
  padding-inline-start: 1.25rem;
}

.article-body img {
  border-radius: var(--radius-md);
}

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

h1,
h2,
h3 {
  margin-block: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.45rem, 1.85rem + 3vw, 4.9rem);
}

h2 {
  font-size: clamp(1.8rem, 1.45rem + 1.75vw, 3rem);
}

h3 {
  font-size: clamp(1.12rem, 1.02rem + 0.5vw, 1.35rem);
}

p {
  margin-block: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    scroll-behavior: auto;
    transition-duration: 0.01ms;
  }
}

@media (prefers-contrast: more) {
  :root {
    --color-border: #65758a;
    --color-muted: #334155;
  }
}
