/* DreamMesh site v1 - D1 Bucket Fill tokens (N:\EmpireBrain\companies\dreammesh\_brandkit\style_guide.md).
   Amber is used ONLY on the live bucket of the mark. Buckets stay square: no radius anywhere. */
:root {
  --ink: #16181D;
  --paper: #F2F0EA;
  --amber: #FFB000;
  --grey: #6B6A66;
  --tile-d: #1E2127;
  --rule-light: rgba(22, 24, 29, .16);
  --rule-dark: rgba(242, 240, 234, .14);
  --muted-dark: #B9B7B0;               /* paper at ~75% on ink, AA on --ink */
  --code: "DM Code", ui-monospace, Consolas, monospace;
  /* Acumin Variable Concept (Adobe Fonts web project pending: gap in docs/DESIGN.md). Source Sans is banned. */
  --body: "acumin-variable", "Acumin Variable Concept", "Acumin Pro", system-ui, "Segoe UI", sans-serif;
  --max: 74rem;
  --pad: clamp(1rem, 4vw, 3rem);
  --s1: .5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2.5rem; --s5: 4rem; --s6: clamp(4.5rem, 10vw, 8rem);
}
@font-face { font-family: "DM Code"; src: url(/fonts/scp-600.woff) format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "DM Code"; src: url(/fonts/scp-300.woff) format("woff"); font-weight: 300; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.125rem/1.55 var(--body); font-variation-settings: "wdth" 100; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -999px; top: 0; background: var(--paper); color: var(--ink); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

h1, h2, h3 { font-family: var(--code); font-weight: 600; letter-spacing: -.02em; line-height: 1.08; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0; max-width: 38em; text-wrap: pretty; }
.light { font-weight: 300; }
.eyebrow { font: 500 .8rem/1 var(--body); font-variation-settings: "wdth" 125; letter-spacing: .3em; text-transform: uppercase; color: var(--grey); }

/* ink band */
.ink { background: var(--ink); color: var(--paper); }
.ink .eyebrow { color: var(--muted-dark); }

header.site { border-bottom: 1px solid var(--rule-dark); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 4.5rem; }
header.site .logo img { height: 30px; width: auto; }
nav ul { display: flex; gap: var(--s3); list-style: none; margin: 0; padding: 0; font-size: 1rem; }
nav a { text-decoration: none; padding: .5rem 0; }
nav a:hover, nav a[aria-current="page"] { text-decoration: underline; }

.hero .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s5); align-items: center; padding-top: var(--s6); padding-bottom: var(--s6); }
.hero p.lead { margin-top: var(--s3); color: var(--muted-dark); font-size: 1.2rem; }
.hero .mark { width: 100%; max-width: 26rem; justify-self: end; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
.btn { display: inline-flex; align-items: center; min-height: 3rem; padding: 0 1.4rem; font: 500 1rem/1 var(--body); text-decoration: none; border: 1px solid currentColor; }
.btn:hover { text-decoration: none; }
.ink .btn.solid { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.ink .btn.solid:hover { background: #fff; }
.ink .btn.line:hover { background: var(--tile-d); }
.btn.solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.solid:hover { background: #000; }

/* the mark: exact geometry of dreammesh_logo_mark_*.svg */
.mark .b { fill: currentColor; }
.mark .f { fill: var(--tile-d); }
.mark .o { fill: none; stroke: currentColor; stroke-opacity: .28; stroke-width: 3; }
.mark .live-bar { fill: var(--amber); transform-box: fill-box; transform-origin: left center; }
.mark .live-br { fill: none; stroke: var(--amber); stroke-width: 8.8; stroke-linecap: round; stroke-linejoin: round; }
.hero .mark .live-bar { animation: scan 2.4s cubic-bezier(.65, 0, .35, 1) infinite; }
@keyframes scan { 0% { transform: scaleX(0); } 70%, 100% { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .hero .mark .live-bar { animation: none; }
  html { scroll-behavior: auto; }
}

/* paper sections */
section.band { padding: var(--s6) 0; }
section.band + section.band { border-top: 1px solid var(--rule-light); }
.head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s4); align-items: end; margin-bottom: var(--s5); }
.head p { color: #3E3F42; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); list-style: none; margin: 0; padding: 0; }
.steps li { border-top: 2px solid var(--ink); padding-top: var(--s3); }
.steps .mark { width: 5.5rem; margin-bottom: var(--s3); color: var(--ink); }
.steps h3 { margin-bottom: var(--s1); }
.steps p, .facts p { color: #3E3F42; font-size: 1.05rem; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s4); }
.split .body > * + * { margin-top: var(--s2); }
.facts { list-style: none; margin: 0; padding: 0; }
.facts li { padding: var(--s3) 0; border-top: 1px solid var(--rule-light); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s3); }
.facts li:last-child { border-bottom: 1px solid var(--rule-light); }
.tag { font: 500 .75rem/1.4 var(--body); font-variation-settings: "wdth" 125; letter-spacing: .2em; text-transform: uppercase; color: var(--grey); display: block; margin-top: .35rem; }

footer.site { padding: var(--s5) 0 var(--s4); }
footer.site .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s4); align-items: end; }
footer.site img { height: 26px; width: auto; margin-bottom: var(--s2); }
footer.site p { color: var(--muted-dark); font-size: .95rem; }
footer.site ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s3); font-size: .95rem; }

.notfound .wrap { padding-top: var(--s6); padding-bottom: var(--s6); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s5); align-items: center; }
.notfound .mark { width: 9rem; }
.notfound p { margin-top: var(--s2); color: var(--muted-dark); }

@media (max-width: 52rem) {
  .hero .wrap, .head, .split, .notfound .wrap, footer.site .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero .wrap { gap: var(--s4); padding-top: var(--s5); }
  .hero .mark { order: -1; justify-self: start; max-width: 9rem; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .facts li { grid-template-columns: minmax(0, 1fr); gap: var(--s1); }
  nav ul { gap: var(--s2); }
  header.site .logo img { height: 24px; }
}

.eyebrow + h1 { margin-top: 1.25rem; }
.split > .mark { width: 7rem; color: var(--ink); }
body:has(.notfound) { background: var(--ink); }

/* v2 (2026-11-18): use cases, sub-page hero, Start a render form, prose */
.uses { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: var(--s3) var(--s4); list-style: none; margin: 0; padding: 0; }
.uses li { border-top: 2px solid var(--ink); padding-top: var(--s2); }
.uses h3 { margin-bottom: var(--s1); }
.uses p { color: #3E3F42; font-size: 1.05rem; }
.hero.sub .wrap { grid-template-columns: minmax(0, 1fr); padding-top: var(--s5); padding-bottom: var(--s5); }
.hero.sub p.lead { max-width: 40rem; }
.req { display: grid; gap: .35rem; max-width: 38rem; }
.req label { font-weight: 500; margin-top: var(--s2); }
.req input, .req select, .req textarea { font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--grey); border-radius: 0; padding: .7rem .8rem; width: 100%; }
.req textarea { resize: vertical; }
.req input:focus-visible, .req select:focus-visible, .req textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.req .actions { margin-top: var(--s3); }
.req .small, .small { font-size: .95rem; color: #3E3F42; margin-top: var(--s2); }
.req .err { border-left: 4px solid var(--ink); padding: .6rem .9rem; background: #fff; font-weight: 500; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.prose { max-width: 40rem; }
.prose p + p { margin-top: var(--s2); }
section.band > .wrap > .facts + .actions { margin-top: var(--s4); }
