/* donnydb4.com - shared styles */
:root {
  color-scheme: light;
  --bg:#ffffff; --ink:#000000; --muted:#666666; --line:#d4d4d4; --sel:#000000; --sel-t:#ffffff;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg:#0a0a0a; --ink:#f2f2f2; --muted:#8f8f8f; --line:#2c2c2c; --sel:#f2f2f2; --sel-t:#0a0a0a;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg:#0a0a0a; --ink:#f2f2f2; --muted:#8f8f8f; --line:#2c2c2c; --sel:#f2f2f2; --sel-t:#0a0a0a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Courier New", "Courier", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  padding: clamp(48px, 12vw, 96px) clamp(20px, 6vw, 40px) clamp(40px, 10vw, 72px);
  max-width: 42rem;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--sel); color: var(--sel-t); }

main { display: flex; flex-direction: column; gap: 3.25rem; }

.intro { display: flex; flex-direction: column; gap: 1.4rem; }
.intro p { text-wrap: pretty; }

strong { font-weight: 700; }

.spec { font-size: 0.8125rem; color: var(--muted); letter-spacing: 0; }

/* buttons */
.btn, a.btn, button.btn {
  display: inline-block;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 0.6em 1.15em;
  font: inherit;
  font-size: 15px;
  letter-spacing: 0;
  text-decoration: none;
  cursor: pointer;
  transition: background 120ms linear, color 120ms linear;
}
.btn:hover, .btn:focus-visible { background: var(--sel); color: var(--sel-t); }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.buy { display: flex; flex-direction: column; gap: 0.75rem; align-items: flex-start; }
.buy small { font-size: 0.8125rem; color: var(--muted); letter-spacing: 0; }
.buy .note { margin-top: 0.5rem; font-size: 0.9375rem; color: var(--muted); letter-spacing: 0; text-wrap: pretty; }

section h2 {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.1rem;
}

ol, ul { padding-left: 1.4rem; display: flex; flex-direction: column; gap: 0.55rem; }
li { text-wrap: pretty; }

section p { margin-top: 1.1rem; color: var(--muted); font-size: 0.9375rem; letter-spacing: 0; }
section p code, li code, p code {
  background: transparent;
  border: 1px solid var(--line);
  padding: 0.05em 0.35em;
  font-size: 0.9em;
  color: var(--ink);
}

a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
a.btn { text-decoration: none; }

/* footer */
.fine {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--muted);
  letter-spacing: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.fine nav a { color: var(--muted); }

/* legal / document pages */
.doc { display: flex; flex-direction: column; gap: 1.5rem; }
.doc h1 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.06em; }
.doc .updated { font-size: 0.8125rem; color: var(--muted); letter-spacing: 0; margin-top: -0.6rem; }
.doc h2 { font-size: 0.9rem; letter-spacing: 0.04em; text-transform: uppercase; margin-top: 0.8rem; }
.doc p, .doc li { font-size: 0.9375rem; letter-spacing: 0; text-wrap: pretty; }
.doc ul, .doc ol { margin-top: 0.2rem; }
.doc a { color: var(--ink); }
.backlink { font-size: 0.8125rem; letter-spacing: 0; }

/* contact form */
form { display: flex; flex-direction: column; gap: 1rem; max-width: 32rem; }
label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.8125rem; letter-spacing: 0.02em; text-transform: uppercase; color: var(--muted); }
input, select, textarea {
  font: inherit; font-size: 15px; letter-spacing: 0;
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--ink); border-radius: 0;
  padding: 0.55em 0.7em;
}
textarea { min-height: 8rem; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sent { border: 1px solid var(--ink); padding: 1rem; font-size: 0.9375rem; letter-spacing: 0; }

@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
