:root {
  color-scheme: light;
  --navy: #0c2b46;
  --teal: #2b888e;
  --white: #fff;
  --muted: #506477;
  --line: #dde6eb;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--navy);
  background: var(--white);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

body { margin: 0; }

a { color: inherit; }

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

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 12px 18px;
  color: var(--white);
  background: var(--navy);
  transform: translateY(-160%);
}

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

.page {
  width: min(1080px, calc(100% - 96px));
  margin-inline: auto;
}

.header {
  display: flex;
  justify-content: center;
  padding: 52px 0 0;
}

.brand {
  display: inline-flex;
}

.brand img {
  display: block;
  width: 400px;
  height: auto;
}

.hero {
  padding: 38px 0 64px;
  text-align: center;
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(48px, 5.6vw, 76px);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: -0.065em;
}

h1 span { color: var(--teal); }

.intro {
  margin: 0 0 12px;
  font-size: clamp(18px, 2vw, 21px);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.description {
  max-width: 620px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  text-wrap: pretty;
}

.status {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.status strong {
  color: var(--navy);
  font-weight: 600;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
  max-width: 900px;
  margin: 58px auto 0;
  text-align: left;
}

.pillar-icon {
  width: 28px;
  height: 28px;
  color: var(--teal);
}

h2 {
  margin: 13px 0 6px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.pillar p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  text-wrap: pretty;
}

.not-found {
  padding: 96px 0 110px;
  text-align: center;
}

.error-code {
  margin: 0;
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.not-found h1 {
  margin: 12px 0 16px;
  font-size: clamp(42px, 5vw, 64px);
}

.not-found .description {
  max-width: 420px;
}

.home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin-top: 28px;
  padding: 13px 24px;
  border-radius: 7px;
  color: var(--white);
  background: var(--navy);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 160ms ease;
}

.home-link:hover { background: #164260; }

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.footer p { margin: 0; }
.footer p span { margin-inline: 7px; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer a span { margin-left: 8px; }

@media (max-width: 760px) {
  .page { width: calc(100% - 40px); }
  .header { padding-top: 36px; }
  .brand img { width: 300px; }
  .hero { padding: 32px 0 48px; }
  .pillars { gap: 28px; margin-top: 46px; }
  .pillar p { font-size: 13px; }
}

@media (max-width: 540px) {
  .header { padding-top: 28px; }
  .brand img { width: 270px; }
  .hero { padding-top: 28px; }
  h1 { font-size: clamp(42px, 10.5vw, 54px); margin-bottom: 18px; }
  .description { font-size: 15px; }
  .intro { max-width: 270px; margin-inline: auto; line-height: 1.5; }
  .status { max-width: 280px; margin: 18px auto 0; }
  .pillars {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 320px;
    margin-top: 40px;
  }
  .pillar {
    display: grid;
    grid-template-columns: 28px 1fr;
    column-gap: 16px;
  }
  .pillar-icon { grid-row: span 2; }
  h2 { margin: 0 0 5px; }
  .pillar p { max-width: none; font-size: 14px; }
  .not-found { padding: 64px 0 76px; }
  .footer { flex-direction: column; gap: 8px; padding-bottom: 28px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .home-link { transition: none; }
}
