:root {
  --mkoko: #0E4F43;
  --mkoko-pressed: #0A3B32;
  --mkoko-tint: #E3EEE9;
  --brass: #B8935A;
  --brass-tint: #F3ECE0;
  --ink: #14201C;
  --ink60: #4E5D57;
  --ink38: #8A968F;
  --surface: #F7F8F7;
  --card: #FFFFFF;
  --line: #E7EAE8;
  --sage: #4E9C7E;
  --r-card: 14px;
  --r-btn: 12px;
  --sora: "Sora", system-ui, sans-serif;
  --sans: "Instrument Sans", system-ui, sans-serif;
  --max: 720px;
  --pad: clamp(1.25rem, 4vw, 2rem);
  color-scheme: light;
}

[data-theme="dark"] {
  --mkoko: #3D8F7E;
  --mkoko-pressed: #2F7366;
  --mkoko-tint: #1A2E29;
  --brass: #C9A66A;
  --brass-tint: #2A2418;
  --ink: #EEF2F0;
  --ink60: #A8B5AF;
  --ink38: #7A8A83;
  --surface: #0F1815;
  --card: #1B2A25;
  --line: #2A3A34;
  --sage: #6BB894;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--mkoko); text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; }
button, input { font: inherit; }

.wrap {
  width: min(100% - 2 * var(--pad), var(--max));
  margin: 0 auto;
  padding: 1.5rem 0 4rem;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.top-start {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}
.logo {
  font-family: var(--sora);
  font-weight: 700;
  color: var(--mkoko);
  font-size: 1.05rem;
}
.logo:hover { text-decoration: none; }
.top-home {
  font-family: var(--sora);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink60);
  letter-spacing: -0.01em;
}
.top-home:hover {
  color: var(--mkoko);
  text-decoration: none;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink60);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
}
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: inline; }

.label {
  font-family: var(--sora);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mkoko);
  margin: 2rem 0 1rem;
}
h1 {
  font-family: var(--sora);
  font-weight: 600;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 1rem;
}
.lead { color: var(--ink60); margin: 0 0 2rem; font-size: 1.05rem; }
h2 {
  font-family: var(--sora);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 2.25rem 0 0.65rem;
  letter-spacing: -0.02em;
}
h3 {
  font-family: var(--sora);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.75rem 0 0.5rem;
  letter-spacing: -0.02em;
}
p { color: var(--ink60); margin: 0 0 0.85rem; }
ul, ol {
  margin: 0 0 0.85rem;
  padding-left: 1.2rem;
  color: var(--ink60);
}
li { margin-bottom: 0.4rem; }
strong { color: var(--ink); font-weight: 600; }


.note, .promise, .principle, .step-card, .flow-card {
  margin: 1rem 0;
  padding: 1.15rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  font-size: 0.95rem;
  color: var(--ink60);
}
.promise strong, .principle strong {
  display: block;
  font-family: var(--sora);
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  color: var(--ink);
}
.principles {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
}
.principles li {
  padding: 0.85rem 1.1rem;
  margin-bottom: 0.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font-weight: 500;
}
.flow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 1rem 0 1.5rem;
}
.flow-step {
  background: var(--mkoko-tint);
  color: var(--mkoko);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
}
.flow-arrow { color: var(--ink38); font-size: 0.85rem; }

.related {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.related h2 { margin-top: 0; }
.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.15rem;
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
}
.related-links li { margin: 0; }

.site-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.site-footer-inner {
  display: grid;
  gap: 1.25rem;
}
.footer-brand {
  font-family: var(--sora);
  font-weight: 700;
  color: var(--mkoko);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.footer-brand .logo-mark {
  width: 1.45rem;
  height: 1.45rem;
  flex-shrink: 0;
}
.footer-brand .logo-outer { stroke: var(--mkoko, #0E4F43); }
.footer-brand .logo-inner { stroke: var(--brass, #B8935A); }
.footer-brand .logo-wordmark {
  letter-spacing: -0.3px;
  color: var(--mkoko, #0E4F43);
}
.footer-brand .logo-apos {
  color: var(--brass, #B8935A);
  font-weight: 700;
}
a.footer-brand:hover {
  text-decoration: none;
}
a.footer-brand:hover .logo-wordmark {
  color: var(--mkoko-pressed);
}
[data-theme="dark"] .footer-brand .logo-outer { stroke: #FFFFFF; }
[data-theme="dark"] .footer-brand .logo-inner { stroke: var(--brass, #B8935A); }
[data-theme="dark"] .footer-brand .logo-wordmark { color: #FFFFFF; }
[data-theme="dark"] .footer-brand .logo-apos { color: var(--brass, #B8935A); }
.footer-meta { color: var(--ink38); font-size: 0.85rem; margin-top: 0.25rem; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
}
.footer-links a {
  color: var(--ink60);
  font-weight: 500;
  font-size: 0.9rem;
}
.footer-links a:hover { color: var(--mkoko); }
.footer-groups {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .footer-groups {
    grid-template-columns: repeat(3, 1fr);
  }
}
.footer-group h3 {
  font-family: var(--sora);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink38);
  margin: 0 0 0.55rem;
  font-weight: 600;
}
.footer-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-group li { margin-bottom: 0.35rem; }
.footer-group a {
  color: var(--ink60);
  font-weight: 500;
  font-size: 0.9rem;
}

.cookie-banner {
  position: fixed;
  left: var(--pad);
  right: var(--pad);
  bottom: var(--pad);
  z-index: 50;
  max-width: 520px;
  margin: 0 auto;
  padding: 1.1rem 1.2rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(20, 32, 28, 0.12);
  display: none;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  color: var(--ink60);
}
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.55rem 1rem;
  border-radius: var(--r-btn);
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary {
  background: var(--mkoko);
  color: #fff;
}
.btn-primary:hover { background: var(--mkoko-pressed); text-decoration: none; }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink60);
}
.btn-ghost:hover { color: var(--mkoko); text-decoration: none; }

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--pad);
  background: rgba(15, 24, 21, 0.45);
}
.cookie-modal.is-open { display: flex; }
.cookie-modal-panel {
  width: min(100%, 420px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.35rem 1.4rem;
}
.cookie-modal-panel h2 {
  margin-top: 0;
}
.cookie-option {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.cookie-option:last-of-type { border-bottom: none; }
.cookie-option p { margin: 0.25rem 0 0; font-size: 0.88rem; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
