:root {
  color-scheme: light;
  --background: #f7f8f4;
  --surface: #ffffff;
  --text: #18211d;
  --muted: #5e6963;
  --accent: #137a54;
  --border: #dde4df;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.65;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 880px;
  margin: 0 auto;
  padding: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 1.12rem;
  font-weight: 750;
  text-decoration: none;
}

.brand img {
  border-radius: 10px;
}

nav {
  display: flex;
  gap: 18px;
}

nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible,
article a:hover,
article a:focus-visible {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

main {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px 48px;
}

article {
  padding: clamp(28px, 6vw, 64px);
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 16px 50px rgb(28 57 44 / 7%);
}

h1,
h2,
h3 {
  line-height: 1.22;
  text-wrap: balance;
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 7vw, 3.25rem);
  letter-spacing: -0.04em;
}

h2 {
  margin: 2.2em 0 0.55em;
  font-size: 1.35rem;
}

p,
li,
td,
th {
  max-width: 72ch;
}

a {
  color: var(--accent);
}

table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th,
td {
  padding: 10px 12px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  background: #f1f5f2;
}

footer {
  padding: 0 24px 36px;
  color: var(--muted);
  font-size: 0.84rem;
  text-align: center;
}

@media (max-width: 560px) {
  header {
    align-items: flex-start;
    padding: 18px;
  }

  nav {
    gap: 12px;
    padding-top: 8px;
  }

  main {
    padding: 0 10px 28px;
  }

  article {
    padding: 24px 20px;
    border-radius: 16px;
  }
}
