/* humscript.com: HumScript brand tokens (brand/humscript, design system "HumScript"). */
:root {
  --surface: #f5f6f8; --raised: #ffffff; --line: #dcdfe6; --line-strong: #5b6378;
  --text: #121a33; --muted: #5b6378; --accent: #e9a426; --on-accent: #121a33;
  --accent-text: #8f620d; --ink: #121a33; --ink-line: #26304f; --ink-muted: #a3aabd; --gold-light: #f2b544;
  --display: "Recursive", "Iowan Old Style", Georgia, serif;
  --sans: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, sans-serif;
  --mono: "Atkinson Hyperlegible Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface); color: var(--text); font: 16px/24px var(--sans); }
a { color: var(--accent-text); }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.ink :focus-visible { outline-color: var(--gold-light); }
img { max-width: 100%; }
.wrap { max-width: 1100px; margin: 0 auto; padding-left: max(16px, 5vw, env(safe-area-inset-left)); padding-right: max(16px, 5vw, env(safe-area-inset-right)); }
.wide { max-width: 1240px; }
.label { margin: 0; font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.display { margin: 0; font-family: var(--display); font-variation-settings: "CASL" 0.4; font-weight: 600; letter-spacing: -0.025em; text-wrap: balance; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-weight: 500; }
.key { font-family: var(--mono); font-weight: 500; font-size: 12px; padding: 1px 7px; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--text); }

/* header */
.site-header nav { min-height: 80px; display: flex; align-items: center; gap: 16px 32px; flex-wrap: wrap; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.wordmark { font-family: var(--display); font-variation-settings: "CASL" 0.6, "CRSV" 1; font-weight: 700; font-size: 21px; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 8px 28px; flex-wrap: wrap; margin-left: auto; font-size: 14px; }
.nav-links a { color: var(--muted); text-decoration: none; padding-block: 10px; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--text); }

/* buttons */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; }
.button:hover { color: var(--on-accent); background: #f0b13c; }
.pill { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; border: 1px solid var(--line-strong); border-radius: 999px; font-weight: 500; }

/* hero */
.hero { padding-block: 88px 0; text-align: center; }
.hero .wrap { max-width: 960px; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.hero h1 { font-size: clamp(48px, 7vw, 104px); line-height: 0.98; letter-spacing: -0.03em; }
.lede { margin: 0; font-size: 19px; line-height: 30px; color: var(--muted); max-width: 30em; text-wrap: balance; }
.cta { display: flex; gap: 16px 24px; flex-wrap: wrap; align-items: center; justify-content: center; }

/* example */
.example { padding-block: 80px 120px; }
.example .wrap { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 32px 48px; align-items: start; }
.sheet { margin: 0; background: var(--raised); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.sheet-head div { display: flex; gap: 12px; padding: 12px 24px; border-bottom: 1px solid var(--line); font-size: 14px; }
.sheet-head span:first-child { color: var(--muted); width: 64px; flex: none; }
.sheet-body { padding: 32px 24px 40px; font-family: var(--display); font-variation-settings: "CASL" 0.2; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.5; }
.sheet-body p { margin: 0 0 16px; } .sheet-body p:last-child { margin: 0; }
mark { background: #f7ce73; color: inherit; padding: 0 4px; border-radius: 4px; }
.caret { display: inline-block; width: 2px; height: 1.1em; background: var(--text); vertical-align: -0.15em; margin-left: 3px; }
.sheet figcaption { display: flex; align-items: center; gap: 10px; padding: 12px 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.margin { display: flex; flex-direction: column; gap: 20px; padding-top: 8px; font-size: 14px; line-height: 21px; }
.margin .label { color: var(--accent-text); }
.note { display: flex; flex-direction: column; gap: 4px; padding-left: 14px; border-left: 2px solid var(--line); }
.note.kept { border-left-color: var(--accent); }
.note span:first-child { color: var(--muted); }
del { text-decoration-thickness: 1.5px; }

/* sections */
.section { padding-block: 0 120px; }
.section h2 { font-size: 40px; line-height: 1.1; margin-bottom: 40px; }
.uses { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 0 64px; }
.use { display: flex; flex-direction: column; gap: 8px; padding: 28px 0; border-top: 1px solid var(--line); }
.use h3 { margin: 0; font-size: 20px; line-height: 28px; }
.use-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.use-head .mono { font-size: 13px; color: var(--muted); }
.use p { margin: 0; color: var(--muted); }
.use.later h3 { color: var(--muted); } .use.later .mono { color: var(--accent-text); }

.ink { background: var(--ink); color: var(--surface); }
.privacy { padding-block: 112px; }
.privacy .wrap { display: flex; flex-direction: column; gap: 56px; }
.privacy h2 { font-size: clamp(40px, 5.5vw, 76px); line-height: 1; max-width: 12em; margin: 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 32px 48px; }
.facts div { display: flex; flex-direction: column; gap: 8px; padding-top: 20px; border-top: 1px solid var(--ink-line); }
.facts strong { font-size: 18px; }
.facts span { color: var(--ink-muted); }
.ink a { color: var(--gold-light); } .ink a:hover { color: var(--surface); }

.pricing { padding-block: 120px; }
.pricing .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 48px 80px; align-items: end; }
.price-main { display: flex; flex-direction: column; gap: 24px; }
.price-main .display { font-size: clamp(40px, 5.5vw, 76px); line-height: 1; }
.price-main p { margin: 0; color: var(--muted); font-size: 17px; line-height: 27px; max-width: 28em; }
.card { display: flex; flex-direction: column; gap: 12px; padding: 28px; background: var(--raised); border: 1px solid var(--line); border-radius: 12px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.card h3 { margin: 0; font-size: 20px; }
.card .price { color: var(--accent-text); font-weight: 700; }
.card p { margin: 0; color: var(--muted); }

/* text pages */
.doc { padding-block: 72px 120px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.02; margin: 12px 0 16px; }
.doc h2 { font-size: 24px; line-height: 30px; margin: 48px 0 12px; }
.doc p, .doc li { font-size: 17px; line-height: 28px; }
.doc ul { padding-left: 1.2em; }
.doc li + li { margin-top: 8px; }
.updated { color: var(--muted); font-size: 14px; }
.table-scroll { overflow-x: auto; margin-block: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 15px; line-height: 22px; }
th, td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
td code, p code { font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; }
.callout { padding: 20px 24px; border-left: 2px solid var(--accent); background: var(--raised); border-radius: 0 12px 12px 0; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 36px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; font-size: 13px; line-height: 20px; color: var(--muted); }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 12px 24px; }

@media (max-width: 760px) {
  .example .wrap { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .section h2 { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* download pages */
.badge { display: inline-block; vertical-align: 0.35em; margin-left: 6px; padding: 2px 10px; border-radius: 999px; background: #f7ce73; color: var(--text); font-family: var(--sans); font-size: 13px; line-height: 20px; font-weight: 700; letter-spacing: 0.02em; }
.download h1 .badge { font-size: 15px; }
.label a { color: inherit; text-decoration: none; } .label a:hover { color: var(--text); }
.lede-left { margin: 0 0 40px; font-size: 19px; line-height: 30px; color: var(--muted); max-width: 34em; }
.release { display: flex; flex-direction: column; gap: 24px; padding: 32px; background: var(--raised); border: 1px solid var(--line); border-radius: 12px; }
.release-head { display: flex; flex-direction: column; gap: 8px; }
.release-head p { margin: 0; }
.doc .release-title { font-size: 28px; line-height: 34px; }
.cta-left { display: flex; gap: 12px 24px; flex-wrap: wrap; align-items: center; }
.button.secondary { background: transparent; border: 1px solid var(--line-strong); color: var(--text); font-weight: 500; }
.button.secondary:hover { background: var(--surface); }
.hashes { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; font-size: 13px; line-height: 20px; color: var(--muted); }
.hashes dt { font-weight: 500; } .hashes dd { margin: 0; font-family: var(--mono); overflow-wrap: anywhere; }
.specs { min-width: 0; }
.specs th { width: 9em; text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 700; color: var(--text); }
.doc ol.steps { padding-left: 1.4em; }
.doc ol.steps li + li { margin-top: 12px; }
.platforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px; }
.platform { display: flex; flex-direction: column; gap: 10px; padding: 28px; background: var(--raised); border: 1px solid var(--line); border-radius: 12px; color: var(--text); text-decoration: none; }
a.platform:hover { border-color: var(--line-strong); color: var(--text); }
.platform-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.doc .platform h2 { margin: 0; font-size: 22px; }
.platform-head .badge { vertical-align: 0; margin: 0; }
.platform-head .mono { font-size: 13px; color: var(--muted); }
.doc .platform p { margin: 0; color: var(--muted); font-size: 16px; line-height: 24px; flex: 1; }
.platform-go { font-weight: 700; color: var(--accent-text); }
.platform.later { background: transparent; }
.platform.later .platform-go { font-weight: 500; }
