/* Ascripto — single stylesheet, no external fonts, no webfont request.
   System stack keeps LCP fast and adds no third-party origin to the privacy
   policy. Light and dark are both explicit; nothing relies on the browser
   default. */

:root {
  --ink:        #16191d;
  --ink-soft:   #4a5158;
  --ink-faint:  #6b737b;
  --bg:         #ffffff;
  --bg-soft:    #f5f6f8;
  --bg-sink:    #eceef1;
  --rule:       #dcdfe4;
  --accent:     #1c4f8b;
  --accent-ink: #ffffff;
  --warn-bg:    #fff8e6;
  --warn-rule:  #e3c98a;
  --measure:    68ch;
  --radius:     6px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink:       #e6e8ea;
    --ink-soft:  #b0b6bc;
    --ink-faint: #8c9298;
    --bg:        #14171a;
    --bg-soft:   #1c2024;
    --bg-sink:   #23282d;
    --rule:      #333a41;
    --accent:    #7fb0e8;
    --accent-ink:#0f1418;
    --warn-bg:   #2a2416;
    --warn-rule: #5c4d24;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

.wrap { width: 100%; max-width: 74ch; margin-inline: auto; padding-inline: 20px; }

.skip {
  position: absolute; left: -9999px;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; z-index: 10;
}
.skip:focus { left: 8px; top: 8px; }

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

.site-head { border-bottom: 1px solid var(--rule); background: var(--bg); }
.head-inner {
  display: flex; flex-wrap: wrap; gap: 12px 24px;
  align-items: center; justify-content: space-between;
  padding-block: 14px; max-width: 84ch;
}
.brand {
  font-weight: 660; font-size: 1.15rem; letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none;
}
.site-head nav ul, .site-foot nav ul {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  list-style: none; margin: 0; padding: 0;
}
.site-head nav a { font-size: 0.94rem; }
.site-head nav a[aria-current="page"] { color: var(--ink); text-decoration-thickness: 2px; }

.site-foot {
  border-top: 1px solid var(--rule); background: var(--bg-soft);
  margin-top: 72px; padding-block: 28px;
  color: var(--ink-soft); font-size: 0.92rem;
}
.foot-inner { max-width: 84ch; display: grid; gap: 14px; }
.foot-brand { margin: 0; }

/* ---------- typography ---------- */

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3 { line-height: 1.22; letter-spacing: -0.018em; margin: 0 0 0.5em; }
h1 { font-size: clamp(1.85rem, 1.2rem + 2.4vw, 2.7rem); font-weight: 700; }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.72rem); font-weight: 660; margin-top: 2.2em; }
h3 { font-size: 1.13rem; font-weight: 640; margin-top: 1.8em; }

p, ul, ol { max-width: var(--measure); }
p { margin: 0 0 1.1em; }
li { margin-bottom: 0.4em; }

.lede { font-size: 1.16rem; color: var(--ink-soft); }
.answer {
  font-size: 1.09rem; border-left: 3px solid var(--accent);
  padding: 2px 0 2px 18px; margin: 0 0 1.6em; max-width: var(--measure);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em; background: var(--bg-sink);
  padding: 0.12em 0.38em; border-radius: 3px;
}

/* Command blocks. Long cmdlets scroll inside the block rather than forcing
   the page to scroll, and wrap on narrow screens instead of truncating. */
pre {
  background: var(--bg-sink);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 0 0 1.6em;
  max-width: var(--measure);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
pre code {
  background: none; padding: 0; border-radius: 0;
  font-size: 0.86rem; line-height: 1.55;
  white-space: pre-wrap; word-break: break-word;
}

/* ---------- page furniture ---------- */

.crumbs { font-size: 0.88rem; color: var(--ink-faint); padding-top: 20px; }
.crumbs a { color: var(--ink-faint); }
.crumbs span { margin-inline: 4px; }

.page { padding-top: 28px; }
.hero { padding-top: 52px; }
.updated { font-size: 0.86rem; color: var(--ink-faint); margin-bottom: 2em; }

/* Wide content must scroll in its own box; the page body never does. */
.scroll { overflow-x: auto; margin: 0 0 1.6em; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 0.94rem; }
th, td { text-align: left; padding: 9px 14px 9px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-weight: 640; white-space: nowrap; }

.note {
  background: var(--warn-bg); border: 1px solid var(--warn-rule);
  border-radius: var(--radius); padding: 16px 18px; margin: 0 0 1.6em;
  max-width: var(--measure);
}
.note p:last-child { margin-bottom: 0; }
.note strong { display: block; margin-bottom: 4px; }

/* ---------- CTA ---------- */

.cta { background: var(--bg-soft); border-block: 1px solid var(--rule); margin-top: 64px; }
.cta-inner { padding-block: 40px; max-width: 74ch; }
.cta h2 { margin-top: 0; }

.btn {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  padding: 12px 24px; border-radius: var(--radius);
  font-weight: 620; text-decoration: none; border: 0; cursor: pointer;
  font-size: 1rem;
}
.btn:hover { filter: brightness(1.12); text-decoration: none; }

.related { margin-top: 56px; }
.related ul { padding-left: 20px; }

/* ---------- form ---------- */

.form { max-width: 46ch; display: grid; gap: 18px; margin-bottom: 2em; }
.field { display: grid; gap: 5px; }
.field label { font-weight: 600; font-size: 0.94rem; }
.field .hint { font-size: 0.85rem; color: var(--ink-faint); }
input[type="email"], input[type="number"], select {
  font: inherit; font-size: 0.97rem; padding: 10px 12px;
  border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--bg); color: var(--ink); width: 100%;
}
input:focus-visible, select:focus-visible, .btn:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.consent { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: 0.9rem; }
.consent input { margin-top: 4px; }

/* Honeypot: off-screen rather than display:none, which some bots skip. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.msg { border-radius: var(--radius); padding: 14px 16px; margin-bottom: 1.6em; max-width: var(--measure); }
.msg-ok  { background: #e8f4ea; border: 1px solid #b7d9be; color: #1d4427; }
.msg-err { background: #fdecec; border: 1px solid #e5b4b4; color: #6d2020; }
@media (prefers-color-scheme: dark) {
  .msg-ok  { background: #16281a; border-color: #2f5537; color: #b9dcc0; }
  .msg-err { background: #2b1717; border-color: #5a2c2c; color: #e3b4b4; }
}
