:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17313a;
  background: #f5f8f8;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top right, rgb(204 251 241 / 55%), transparent 32rem),
    #f5f8f8;
}

a {
  color: #0f766e;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #115e59;
}

a:focus-visible {
  outline: 3px solid #5eead4;
  outline-offset: 3px;
  border-radius: 0.25rem;
}

.site-header {
  border-bottom: 1px solid #dbe8e7;
  background: rgb(255 255 255 / 88%);
  backdrop-filter: blur(12px);
}

.header-inner,
.page,
.site-footer {
  width: min(100% - 2rem, 70rem);
  margin-inline: auto;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #17313a;
  font-weight: 750;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.65rem;
}

.header-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.3rem 1rem;
  font-size: 0.9rem;
}

.page {
  padding-block: 3.5rem 4.5rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: #0f766e;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: #102f35;
  line-height: 1.15;
  text-wrap: balance;
}

h1 {
  max-width: 50rem;
  margin: 0;
  font-size: clamp(2.25rem, 6vw, 4.25rem);
  letter-spacing: -0.045em;
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  letter-spacing: -0.025em;
}

h3 {
  margin: 1.5rem 0 0.45rem;
  font-size: 1.05rem;
}

.lede {
  max-width: 48rem;
  margin: 1.2rem 0 0;
  color: #3f5961;
  font-size: clamp(1.05rem, 2.3vw, 1.25rem);
  line-height: 1.65;
}

.updated {
  margin-top: 1rem;
  color: #667b82;
  font-size: 0.88rem;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 15rem;
  gap: 2.5rem;
  margin-top: 3rem;
  align-items: start;
}

.content {
  min-width: 0;
}

.section {
  padding: 2rem;
  border: 1px solid #dce8e7;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 1rem 2.75rem rgb(15 118 110 / 6%);
}

.section + .section {
  margin-top: 1rem;
}

.section p,
.section li {
  color: #3f5961;
  line-height: 1.7;
}

.section p {
  margin: 0.7rem 0;
}

.section ul,
.section ol {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
}

.section li + li {
  margin-top: 0.55rem;
}

.toc {
  position: sticky;
  top: 1rem;
  padding: 1.2rem;
  border: 1px solid #dce8e7;
  border-radius: 1rem;
  background: rgb(255 255 255 / 92%);
}

.toc strong {
  display: block;
  margin-bottom: 0.7rem;
  font-size: 0.85rem;
}

.toc a {
  display: block;
  padding-block: 0.35rem;
  color: #496268;
  font-size: 0.9rem;
  text-decoration: none;
}

.notice,
.action-card {
  padding: 1.15rem 1.25rem;
  border-radius: 0.9rem;
  background: #ecfdf9;
  border: 1px solid #99f6e4;
}

.notice strong,
.action-card strong {
  color: #115e59;
}

.warning {
  background: #fff8e6;
  border-color: #f6d98a;
}

.warning strong {
  color: #8a5a00;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  margin-top: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: 0.75rem;
  background: #0f766e;
  color: #fff;
  font-weight: 750;
  text-decoration: none;
}

.button:hover {
  color: #fff;
  background: #115e59;
}

.safe-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.safe-list > div {
  padding: 1rem;
  border-radius: 0.8rem;
  background: #f7faf9;
  border: 1px solid #e3eceb;
}

.safe-list strong {
  display: block;
  margin-bottom: 0.25rem;
  color: #17313a;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 2rem 3rem;
  border-top: 1px solid #dbe8e7;
  color: #667b82;
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
}

@media (max-width: 760px) {
  .header-inner,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-inner {
    padding-block: 1rem;
  }

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

  .page {
    padding-top: 2.5rem;
  }

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

  .toc {
    position: static;
    order: -1;
  }

  .section {
    padding: 1.35rem;
  }

  .safe-list {
    grid-template-columns: 1fr;
  }
}

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