/* Shared styles for Tinkersoft legal pages — matches the landing-page identity */
:root {
  --ink:       #0C1618;
  --ink-2:     #0F1E22;
  --line:      #22383D;
  --line-lit:  #37585F;
  --paper:     #ECE4D4;
  --paper-dim: #9BABA6;
  --brass:     #E3A552;
  --patina:    #6FC0A9;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--ink);
  color: var(--paper);
  font-family: "Space Grotesk", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
}

a { color: var(--patina); text-underline-offset: 3px; }
a:hover { color: var(--brass); }

/* faint blueprint grid, quiet on reading pages */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.14;
}

.wrap { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: clamp(20px, 4vw, 48px); }

/* masthead */
.top {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px; flex-wrap: wrap;
  padding-bottom: 20px; margin-bottom: clamp(28px, 5vh, 52px);
  border-bottom: 1px solid var(--line-lit);
  font-family: "Space Mono", monospace;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--paper-dim);
}
.top a.brand { color: var(--paper); text-decoration: none; }
.top a.brand b { color: var(--brass); font-weight: 700; }
.top a.home { color: var(--patina); text-decoration: none; }

/* document header */
.doc-eyebrow {
  font-family: "Space Mono", monospace;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--patina); display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
}
.doc-eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--patina); }

h1 {
  font-size: clamp(34px, 6vw, 56px); font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.02; margin-bottom: 18px;
}
.meta {
  font-family: "Space Mono", monospace; font-size: 12.5px;
  color: var(--paper-dim); letter-spacing: 0.03em;
  margin-bottom: clamp(30px, 5vh, 48px);
}
.meta span { color: var(--paper); }

.lede {
  font-size: clamp(16px, 2vw, 19px); color: var(--paper);
  border-left: 2px solid var(--brass); padding-left: 18px;
  margin-bottom: clamp(30px, 5vh, 48px);
}

/* sections */
section { margin-bottom: 34px; }
h2 {
  font-size: clamp(19px, 2.4vw, 24px); font-weight: 700;
  letter-spacing: -0.01em; margin-bottom: 12px;
  display: flex; gap: 14px; align-items: baseline;
}
h2 .num {
  font-family: "Space Mono", monospace; font-size: 13px; font-weight: 700;
  color: var(--brass); letter-spacing: 0.04em; flex: none;
  min-width: 2.4em;
}
h3 { font-size: 16px; font-weight: 700; color: var(--paper); margin: 18px 0 6px; }
p, li { color: var(--paper); font-size: 16px; }
p { margin-bottom: 12px; }
ul, ol { margin: 0 0 12px 1.2em; }
li { margin-bottom: 6px; }
strong { color: #FBF6EA; }

/* fill-in placeholders — impossible to miss */
.ph {
  font-family: "Space Mono", monospace; font-size: 0.9em;
  background: rgba(227,165,82,0.16); color: var(--brass);
  border: 1px dashed var(--brass); border-radius: 3px;
  padding: 1px 6px; letter-spacing: 0.02em; white-space: nowrap;
}

.callout {
  background: var(--ink-2); border: 1px solid var(--line-lit);
  border-radius: 4px; padding: 16px 18px; margin: 18px 0;
  font-size: 15px; color: var(--paper);
}
.callout strong { color: var(--patina); }

/* footer */
footer {
  margin-top: clamp(40px, 7vh, 72px); padding-top: 22px;
  border-top: 1px solid var(--line-lit);
  font-family: "Space Mono", monospace; font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper-dim);
  line-height: 2;
}
footer nav { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 10px; }
footer nav a { text-decoration: none; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
