:root {
  color-scheme: light;
  --bg: #f4f4f6;
  --surface: #ffffff;
  --text: #17171b;
  --text-soft: #55555f;
  --text-faint: #8a8a95;
  --border: #e3e3e8;
  --accent: #0d9488;
  --accent-hover: #0f766e;
  --accent-inset: #effbf8;
  --shadow: 0 8px 24px -10px rgb(16 16 20 / 0.18);
  --radius: 14px;
  --max: 44rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #09090c;
    --surface: #131318;
    --text: #f3f3f5;
    --text-soft: #a3a3ad;
    --text-faint: #74747f;
    --border: #26262f;
    --accent: #2dd4bf;
    --accent-hover: #5eead4;
    --accent-inset: #134e4a;
    --shadow: 0 16px 40px -16px rgb(0 0 0 / 0.55);
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

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

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

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: inherit;
}

.mark {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.5rem;
  background: linear-gradient(180deg, #14b8a6 0%, #0d9488 100%);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  font-size: 0.95rem;
}

nav a {
  color: var(--text-soft);
  text-decoration: none;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--text);
}

main {
  padding: 2.75rem 0 4rem;
}

h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

h2 {
  margin: 2.1rem 0 0.6rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.lede,
.meta {
  color: var(--text-soft);
}

.meta {
  margin: 0 0 1.75rem;
  font-size: 0.92rem;
}

.hero p {
  max-width: 36rem;
}

.cards {
  display: grid;
  gap: 1rem;
  margin: 2rem 0 0;
}

@media (min-width: 640px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  display: block;
  padding: 1.25rem 1.35rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
}

.card:hover {
  border-color: var(--accent);
}

.card h2 {
  margin: 0 0 0.4rem;
}

.card p {
  margin: 0;
  color: var(--text-soft);
}

.card span {
  display: inline-block;
  margin-top: 0.9rem;
  color: var(--accent);
  font-weight: 600;
}

article p,
article li {
  color: var(--text);
}

article ul {
  padding-left: 1.2rem;
}

article li + li {
  margin-top: 0.35rem;
}

.note {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: var(--accent-inset);
  color: var(--text-soft);
  font-size: 0.92rem;
}

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

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

th {
  background: var(--surface);
  font-weight: 650;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0 1.75rem;
  color: var(--text-faint);
  font-size: 0.9rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
}
