/* SPDX-License-Identifier: MPL-2.0 */
:root {
  color-scheme: light dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --background: #f7f8f9;
  --surface: #ffffff;
  --text: #202428;
  --muted: #68717a;
  --border: #d9dee3;
  --accent: #315f83;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
}

body {
  width: min(100% - 32px, 760px);
  margin: 0 auto;
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

header,
footer {
  padding: 24px 0;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 750;
  text-decoration: none;
}

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

main {
  padding: clamp(28px, 7vw, 64px);
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 10px 34px rgb(0 0 0 / 5%);
}

h1,
h2 {
  line-height: 1.2;
}

h1 {
  max-width: 18ch;
  margin: 0 0 20px;
  font-size: clamp(2rem, 7vw, 3.4rem);
  letter-spacing: -0.035em;
}

h2 {
  margin: 42px 0 12px;
  font-size: 1.2rem;
}

p,
li {
  max-width: 68ch;
}

.lede {
  color: var(--muted);
  font-size: 1.1rem;
}

.meta {
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 0.9rem;
}

.callout {
  margin: 28px 0;
  padding: 16px 18px;
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

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

footer {
  color: var(--muted);
  font-size: 0.85rem;
}

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

  main {
    padding: 26px 20px;
    border-radius: 10px;
  }

  table,
  tbody,
  tr,
  th,
  td {
    display: block;
  }

  th {
    padding-bottom: 2px;
    border-bottom: 0;
  }

  td {
    padding-top: 2px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #151719;
    --surface: #1d2023;
    --text: #eceff2;
    --muted: #a4adb5;
    --border: #343a40;
    --accent: #80b2d5;
  }
}
