:root,
[data-theme="light"] {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;
  --color-bg: #f7f6f2;
  --color-surface: #f9f8f5;
  --color-surface-2: #fbfbf9;
  --color-surface-offset: #f3f0ec;
  --color-border: #d4d1ca;
  --color-divider: #dcd9d5;
  --color-text: #28251d;
  --color-text-muted: #6c6a64;
  --color-text-faint: #9e9b94;
  --color-text-inverse: #f9f8f4;
  --color-primary: #01696f;
  --color-primary-hover: #0c4e54;
  --color-primary-highlight: #cedcd8;
  --shadow-sm: 0 1px 2px rgba(40, 37, 29, 0.06);
  --shadow-md: 0 10px 30px rgba(40, 37, 29, 0.1);
  --content-default: 1100px;
  --font-display: "Boska", Georgia, serif;
  --font-body: "Satoshi", Inter, sans-serif;
  --transition: 180ms cubic-bezier(0.16, 1, 0.3, 1);
}
[data-theme="dark"] {
  --color-bg: #171614;
  --color-surface: #1c1b19;
  --color-surface-2: #201f1d;
  --color-surface-offset: #1d1c1a;
  --color-border: #393836;
  --color-divider: #262523;
  --color-text: #cdccca;
  --color-text-muted: #a3a19d;
  --color-text-faint: #797876;
  --color-text-inverse: #2b2a28;
  --color-primary: #4f98a3;
  --color-primary-hover: #227f8b;
  --color-primary-highlight: #313b3b;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.35);
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  text-decoration: none;
  color: inherit;
  transition:
    color var(--transition),
    background var(--transition),
    border-color var(--transition),
    transform var(--transition);
}
button,
input,
select,
textarea {
  font: inherit;
}

label {
  display: grid;
  gap: var(--space-2);
  font-weight: 700;
  font-size: var(--text-sm);
}
input,
textarea,
select {
  width: 100%;
  padding: 1rem 1.1rem;
  background: var(--color-bg);
  border: 1px solid color-mix(in srgb, var(--color-text) 12%, transparent);
  border-radius: 16px;
  color: var(--color-text);
}
textarea {
  min-height: 160px;
  resize: vertical;
}

/********************/

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid
    color-mix(in srgb, var(--color-text) 10%, transparent);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) 0;
}
.brand {
  display: flex;
  align-items: center;
  width: 65px;
  height: 65px;
}
a.brand img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.brand-mark {
  width: 42px;
  height: 42px;
  padding: 8px;
  border-radius: 14px;
  background: var(--color-surface);
  border: 1px solid color-mix(in srgb, var(--color-text) 10%, transparent);
  box-shadow: var(--shadow-sm);
}
.brand-name {
  font-size: var(--text-lg);
  font-family: var(--font-display);
  line-height: 1;
}
.nav-links {
  display: flex;
  gap: var(--space-5);
  align-items: center;
  flex-wrap: wrap;
}
.nav-links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.nav-links a:hover {
  color: var(--color-text);
}

footer {
  background: #171614;
  color: #9ec9b0;
  text-align: center;
  font-size: 0.83rem;
  padding: 22px 16px;
}

footer a {
  color: #cde8d8;
}

.common-content h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #171614;
  margin-top: 40px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid #e8f5ee;
}

.common-content h2:first-of-type {
  margin-top: 8px;
}

p {
  margin-bottom: 14px;
}

ul,
ol {
  margin: 8px 0 14px 24px;
}

li {
  margin-bottom: 6px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 20px;
  font-size: 0.93rem;
}

th {
  background: #171614;
  color: #fff;
  text-align: left;
  padding: 10px 14px;
  font-weight: 600;
}

td {
  padding: 9px 14px;
  border-bottom: 1px solid #e8f5ee;
  vertical-align: top;
}

tr:nth-child(even) td {
  background: #f4fbf7;
}

a {
  color: #2d6a4f;
}
a:hover {
  color: #171614;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 700;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
}
.btn-secondary {
  background: var(--color-surface);
  border-color: color-mix(in srgb, var(--color-text) 12%, transparent);
}

@media (max-width: 900px) {
  .nav {
    flex-wrap: wrap;
  }
}

@media (max-width: 567px) {
  .nav {
    flex-direction: column;
  }
}
