:root {
  color-scheme: light;
  --paper: #f8f7f4;
  --card: #ffffff;
  --ink: #22201d;
  --soft: #5b5751;
  --line: #ddd8cf;
  --accent: #2f5c4e;
  --accent-soft: #e6efea;
  --warm: #8a5a2b;
  --warm-soft: #f5ece1;
}

* { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, transparent 0, transparent calc(100% - 1px), rgba(47, 92, 78, 0.05) calc(100% - 1px)) 0 0 / 28px 28px,
    var(--paper);
  font: 17px/1.7 system-ui, -apple-system, "Segoe UI", "Noto Sans", "Noto Sans Devanagari", sans-serif;
  letter-spacing: 0;
}
a { color: var(--accent); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.site-header {
  border-top: 5px solid var(--accent);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
}
.header-inner, main, .footer-inner { width: min(100% - 2rem, 68rem); margin-inline: auto; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1rem 0; }
.brand { display: inline-flex; align-items: center; gap: 0.8rem; color: var(--ink); text-decoration: none; font-size: 1.15rem; font-weight: 750; }
.brand img { width: 3.25rem; height: 3.25rem; }
nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.4rem 1rem; font-size: 0.92rem; }
nav a { color: var(--soft); text-decoration: none; }
nav a[aria-current="page"] { color: var(--accent); font-weight: 700; text-decoration: underline; }

main { padding: 3rem 0 5rem; }
.hero { max-width: 52rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
.eyebrow { color: var(--accent); font-size: 0.82rem; font-weight: 750; text-transform: uppercase; }
h1 { max-width: 19ch; margin: 0.35rem 0 1rem; font-size: clamp(2rem, 6vw, 3.8rem); line-height: 1.08; letter-spacing: 0; }
.lede { max-width: 46rem; margin: 0; color: var(--soft); font-size: 1.12rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 0.65rem 1rem; border: 1px solid var(--accent); border-radius: 6px;
  background: var(--accent); color: #fff; font-weight: 700; text-decoration: none; cursor: pointer;
}
.button.secondary { background: var(--card); color: var(--accent); }
.button[hidden] { display: none; }

.content { max-width: 48rem; padding-top: 1.5rem; }
section { padding: 1.25rem 0; }
h2 { margin: 0 0 0.55rem; font-size: 1.4rem; line-height: 1.25; }
h3 { margin: 1.3rem 0 0.35rem; font-size: 1.05rem; }
p, ul, ol { margin-top: 0.4rem; }
li + li { margin-top: 0.4rem; }
.callout { margin: 1.5rem 0; padding: 1rem 1.1rem; border-left: 4px solid var(--warm); background: var(--warm-soft); }
.note { margin: 1.5rem 0; padding: 1rem 1.1rem; border-left: 4px solid var(--accent); background: var(--accent-soft); }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps > li { position: relative; min-height: 3rem; padding: 0 0 1.2rem 3.3rem; }
.steps > li::before {
  counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0;
  width: 2.2rem; height: 2.2rem; display: grid; place-items: center;
  border: 1px solid var(--accent); border-radius: 50%; color: var(--accent); font-weight: 750;
}
.domain-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; padding: 0; border-top: 1px solid var(--line); }
.domain-list li { list-style: none; padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
.domain-list li:nth-child(odd) { padding-right: 1rem; }
.domain-list li:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--line); }
.kicker { display: block; color: var(--soft); font-size: 0.92rem; }
code { padding: 0.12em 0.35em; border-radius: 4px; background: #ebe8e1; }

footer { border-top: 1px solid var(--line); color: var(--soft); font-size: 0.9rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 1.5rem 0 2.5rem; }
.footer-inner p { margin: 0; }

@media (max-width: 44rem) {
  .header-inner { align-items: flex-start; flex-direction: column; }
  nav { justify-content: flex-start; }
  main { padding-top: 2rem; }
  .domain-list { grid-template-columns: 1fr; }
  .domain-list li:nth-child(odd), .domain-list li:nth-child(even) { padding-inline: 0; border-left: 0; }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark; --paper: #16181a; --card: #1f2225; --ink: #eceae6;
    --soft: #aaa59c; --line: #34383b; --accent: #8fc3b0; --accent-soft: #23302c;
    --warm: #d8ab7a; --warm-soft: #2c2620;
  }
  .button { color: #111; }
  .button.secondary { color: var(--accent); }
  code { background: #292c2f; }
}

@media print {
  .site-header, footer, .actions { display: none; }
  body { background: #fff; color: #000; }
  main { width: 100%; padding: 0; }
}
