:root {
  color-scheme: light;
  --ink: #132238;
  --body: #34445a;
  --muted: #66758a;
  --line: #dfe5ec;
  --surface: #f5f7f9;
  --brand: #123b5d;
  --accent: #1f7a5b;
  --gold: #a87218;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--body);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.72;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

a:hover {
  color: var(--brand);
}

a:focus-visible {
  outline: 3px solid rgba(31, 122, 91, 0.3);
  outline-offset: 3px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 72px;
  padding: 14px max(24px, calc((100% - 1120px) / 2));
  border-bottom: 1px solid var(--line);
  background: #fff;
}

header > a {
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
}

header nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

header nav a {
  color: var(--body);
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
}

main {
  width: min(100% - 48px, 880px);
  margin: 0 auto;
  padding: 64px 0 80px;
}

article {
  min-width: 0;
}

article h1,
article h2,
article h3 {
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

article h1 {
  margin: 0 0 28px;
  font-size: 44px;
}

article h2 {
  margin: 48px 0 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 29px;
}

article h3 {
  margin: 32px 0 12px;
  font-size: 22px;
}

article > img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 540px;
  margin: 0 0 38px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--surface);
}

article p,
article li {
  overflow-wrap: anywhere;
}

article p {
  margin: 0 0 20px;
}

article ul,
article ol {
  margin: 0 0 24px;
  padding-left: 26px;
}

article li + li {
  margin-top: 9px;
}

.table-wrap {
  width: 100%;
  margin: 28px 0 34px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: #fff;
  font-size: 15px;
  line-height: 1.55;
}

th,
td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

th:last-child,
td:last-child {
  border-right: 0;
}

tbody tr:last-child td {
  border-bottom: 0;
}

th {
  background: var(--surface);
  color: var(--ink);
  font-weight: 750;
}

article code {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.9em;
}

article section:last-child {
  margin-top: 56px;
  padding: 26px 28px;
  border-left: 4px solid var(--gold);
  background: var(--surface);
}

article section:last-child h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  font-size: 24px;
}

footer {
  padding: 36px 24px;
  background: var(--brand);
  color: #fff;
  text-align: center;
}

footer a {
  display: inline-block;
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 6px;
  color: #fff;
  font-weight: 750;
  text-decoration: none;
}

footer a:hover {
  background: #fff;
  color: var(--brand);
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  header {
    min-height: 64px;
    padding: 12px 20px;
  }

  header > a {
    font-size: 17px;
  }

  header nav {
    gap: 14px;
  }

  header nav a {
    font-size: 14px;
  }

  main {
    width: min(100% - 36px, 880px);
    padding: 42px 0 60px;
  }

  article h1 {
    margin-bottom: 22px;
    font-size: 34px;
  }

  article h2 {
    margin-top: 38px;
    font-size: 25px;
  }

  article h3 {
    font-size: 20px;
  }

  article > img {
    margin-bottom: 30px;
  }

  article section:last-child {
    padding: 22px 20px;
  }
}
