/* sutrar.com — the Karigar website.
   Static CSS, no framework, no third-party font host. Type is set in the system UI stack
   deliberately: pulling a webfont from a CDN would hand every visitor's IP address to a third
   party, which would sit badly under a page promising that nothing leaves your Mac. */

:root {
  --paper: #fbfaf7;
  --paper-2: #f4f2ec;
  --ink: #1a1917;
  --ink-dim: #57534e;
  --ink-muted: #8a847c;
  --rule: #e7e4dd;
  --brass: #b07e1f;
  --brass-deep: #8a5f16;
  --brass-tint: #faf3e4;
  --brass-edge: #ecd9ad;
  --shell: #141310;

  --measure: 68ch;
  --gap: clamp(1rem, 2.5vw, 1.75rem);
  --pad: clamp(1.25rem, 5vw, 2.5rem);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --paper: #0f0f11;
    --paper-2: #17171b;
    --ink: #ececef;
    --ink-dim: #a5a9b3;
    --ink-muted: #74747f;
    --rule: #262630;
    --brass: #e6b45f;
    --brass-deep: #f0c88a;
    --brass-tint: #1d1a14;
    --brass-edge: #3a3120;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: min(100% - calc(var(--pad) * 2), 62rem); margin-inline: auto; }
.narrow { max-width: var(--measure); }

/* ---------- header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  gap: var(--gap);
  padding-block: 0.75rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: inherit; }
.brand img { width: 30px; height: 30px; border-radius: 7px; display: block; }
.brand b { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }
.site-nav { margin-left: auto; display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-nav a {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 0.9rem;
  padding-block: 0.25rem;
  border-bottom: 1.5px solid transparent;
}
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--brass); }

/* On a narrow screen the nav cannot share a row with the wordmark without wrapping around it.
   Give it its own full-width row instead of letting flex squeeze links beside the logo. */
@media (max-width: 34rem) {
  .site-head .wrap { flex-wrap: wrap; row-gap: 0.35rem; }
  .site-nav { margin-left: 0; width: 100%; gap: 1rem; }
  .site-nav a { font-size: 0.85rem; }
}

/* ---------- type ---------- */

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.025em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); font-weight: 650; }
h2 { font-size: clamp(1.4rem, 3.4vw, 1.9rem); font-weight: 600; }
h3 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0; }
a { color: var(--brass-deep); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) a { color: var(--brass); } }

.lede { font-size: clamp(1.05rem, 2.2vw, 1.2rem); color: var(--ink-dim); }
.eyebrow {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--brass-deep);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .eyebrow { color: var(--brass); } }

section { padding-block: clamp(3rem, 8vw, 5rem); }
section + section { border-top: 1px solid var(--rule); }
.stack { display: flex; flex-direction: column; gap: var(--gap); }
.stack-tight { display: flex; flex-direction: column; gap: 0.6rem; }

/* ---------- hero ---------- */

.hero { padding-block: clamp(3.5rem, 10vw, 6.5rem); }
.hero-mark { width: 72px; height: 72px; border-radius: 16px; display: block; }

/* ---------- download ---------- */

.dl { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 550;
  padding: 0.7rem 1.3rem;
  border-radius: 10px;
  border: 1px solid var(--brass-deep);
  background: var(--brass);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--brass-deep); }
.btn:focus-visible { outline: 2px solid var(--brass-deep); outline-offset: 3px; }
/* The element-plus-attribute selector is deliberate: the dark-theme `a` rule below is more
   specific than a bare `.btn[aria-disabled]`, and would otherwise repaint this in the accent
   colour — making a button that does nothing look like the primary call to action. */
a.btn[aria-disabled='true'],
.btn[aria-disabled='true'] {
  background: var(--paper-2);
  border-color: var(--rule);
  color: var(--ink-muted);
  cursor: not-allowed;
}
.btn-note { font-size: 0.85rem; color: var(--ink-muted); }

/* A visible, honest banner rather than a button that silently does nothing. */
.notice {
  border: 1px solid var(--brass-edge);
  background: var(--brass-tint);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.notice svg { flex: none; margin-top: 2px; color: var(--brass-deep); }
.notice p { font-size: 0.92rem; color: var(--ink-dim); }
.notice strong { color: var(--ink); }

/* ---------- flow / cards ---------- */

.grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.card {
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1.2rem 1.3rem;
  background: var(--paper-2);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.card p { font-size: 0.92rem; color: var(--ink-dim); }

/* The three-stage architecture, stated as a flow so nobody mistakes the site for the app. */
.flow { display: grid; gap: 0.6rem; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; }
.flow-step {
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1rem;
  background: var(--paper-2);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.flow-step b { font-size: 0.95rem; }
.flow-step span { font-size: 0.85rem; color: var(--ink-dim); }
.flow-arrow { align-self: center; color: var(--ink-muted); font-size: 1.1rem; }
@media (max-width: 46rem) {
  .flow { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); justify-self: center; }
}

/* ---------- requirements ---------- */

.reqs { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
.reqs li { display: flex; gap: 1rem; padding: 0.85rem 1.15rem; background: var(--paper-2); align-items: baseline; }
.reqs li + li { border-top: 1px solid var(--rule); }
.reqs dfn { font-style: normal; font-weight: 600; font-size: 0.92rem; min-width: 9.5rem; }
.reqs span { font-size: 0.92rem; color: var(--ink-dim); }

/* ---------- steps ---------- */

.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 1.1rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2rem 1fr; gap: 0.9rem; align-items: start; }
.steps li::before {
  content: counter(step);
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--brass-deep);
  background: var(--brass-tint);
  border: 1px solid var(--brass-edge);
  border-radius: 50%;
  width: 2rem; height: 2rem;
  display: grid; place-items: center;
}
.steps p { font-size: 0.95rem; color: var(--ink-dim); }
.steps b { color: var(--ink); font-weight: 600; }

/* ---------- promise list ---------- */

.promise { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.promise li { display: grid; grid-template-columns: 1.4rem 1fr; gap: 0.7rem; font-size: 0.95rem; color: var(--ink-dim); }
.promise svg { margin-top: 0.35rem; color: var(--brass-deep); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .promise svg { color: var(--brass); } }
.promise b { color: var(--ink); font-weight: 600; }

/* ---------- footer ---------- */

.site-foot { border-top: 1px solid var(--rule); padding-block: 2.5rem 3rem; color: var(--ink-muted); font-size: 0.87rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; }
.site-foot a { color: var(--ink-dim); text-decoration: none; }
.site-foot a:hover { color: var(--ink); text-decoration: underline; }
.site-foot .spacer { margin-left: auto; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 5px;
  padding: 0.1em 0.4em;
}
