:root {
  color-scheme: light dark;
  --background: #f7f5ef;
  --panel: #fffdf8;
  --text: #18201f;
  --muted-text: #66716d;
  --outline: #c8c4ba;
  --accent: #006b5f;
  --shadow: 0 10px 28px rgba(24, 32, 31, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #101615;
    --panel: #1b2321;
    --text: #f4f7f4;
    --muted-text: #a8b3ae;
    --outline: #3f4a46;
    --accent: #8fd1d3;
    --shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  }
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: ui-rounded, "SF Pro Rounded", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-wrap: anywhere;
  text-rendering: optimizeLegibility;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid color-mix(in srgb, var(--outline) 58%, transparent);
  background: color-mix(in srgb, var(--background) 88%, transparent);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  width: min(100%, 900px);
  min-height: 62px;
  margin: 0 auto;
  padding: 10px 24px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  min-height: 44px;
  padding: 11px 10px;
  border-radius: 14px;
  color: var(--muted-text);
  font-weight: 700;
  text-decoration: none;
}

.nav-links a[aria-current="page"] {
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--shadow);
}

.content {
  width: min(100%, 900px);
  margin: 0 auto;
  padding: 58px 24px 86px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 24px;
  font-size: clamp(2.2rem, 7vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

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

h3 {
  margin: 28px 0 8px;
  font-size: 1.15rem;
}

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

strong,
th {
  color: var(--text);
}

ul {
  padding-left: 1.3rem;
}

li + li {
  margin-top: 0.45rem;
}

table {
  display: block;
  width: 100%;
  margin: 24px 0;
  overflow-x: auto;
  border: 1px solid var(--outline);
  border-collapse: collapse;
  border-radius: 20px;
  background: var(--panel);
  box-shadow: var(--shadow);
  -webkit-overflow-scrolling: touch;
}

th,
td {
  min-width: 190px;
  padding: 14px;
  border-bottom: 1px solid var(--outline);
  vertical-align: top;
  text-align: left;
}

th {
  font-size: 0.92rem;
}

td {
  font-size: 0.9rem;
}

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

@media (max-width: 620px) {
  .nav {
    min-height: 56px;
    padding-right: 14px;
    padding-left: 18px;
  }

  .brand {
    display: none;
  }

  .nav-links {
    width: 100%;
    gap: 0;
    overflow-x: auto;
    justify-content: space-between;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links a {
    flex: 0 0 auto;
    padding-right: 7px;
    padding-left: 7px;
    font-size: 0.86rem;
  }

  .content {
    padding: 42px 18px 70px;
  }
}

@media print {
  .site-header {
    position: static;
    background: transparent;
  }

  .content {
    width: 100%;
    padding: 24px;
  }

  table {
    display: table;
    overflow: visible;
    box-shadow: none;
  }
}
