/* homeprod.casa — shared tokens and chrome.
   Layout idea: a dotted engineering-pad ground, hard-shadow "sticker" chips, mono for anything a machine would say. */
:root {
  --bg: #f6f4ef;
  --ink: #1f2328;
  --muted: #6b6f76;
  --line: #e2ded4;
  --card: #ffffff;
  --accent: #2f9e6a;
  --warn: #d08a1e;
  --bad: #d8434a;
  --term-bg: #1f2328;
  --term-ink: #d7dae0;
  --term-dim: #8b919a;
  --skin: #e8b98f;
  --skin-shade: #d49e73;
  --hair: #2b2a2e;
  --hoodie: #4a5568;
  --hoodie-dark: #3b4453;
  --desk: #c9b79c;
  --mug: #e9e4da;
  --screen: #9ae6b4;
  --bubble: #ffffff;
  --gear: #23272e;
  --dots: #d9d4c7;
  --sans: ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono-font: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15171a; --ink: #eceae6; --muted: #9a9ea6; --line: #2a2d33; --card: #1c1f23;
    --accent: #6fd6a0; --warn: #f0b04a; --bad: #ff7a80; --term-bg: #0e1013;
    --hoodie: #5a6678; --hoodie-dark: #48526a; --desk: #6b5d4a; --mug: #d9d3c7;
    --bubble: #24282e; --dots: #2a2e35; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #15171a; --ink: #eceae6; --muted: #9a9ea6; --line: #2a2d33; --card: #1c1f23;
  --accent: #6fd6a0; --warn: #f0b04a; --bad: #ff7a80; --term-bg: #0e1013;
  --hoodie: #5a6678; --hoodie-dark: #48526a; --desk: #6b5d4a; --mug: #d9d3c7;
  --bubble: #24282e; --dots: #2a2e35; color-scheme: dark;
}

* { box-sizing: border-box; }
html { height: 100%; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(var(--dots) 1.2px, transparent 1.4px);
  background-size: 20px 20px;
  background-position: -9px -9px;
  color: var(--ink);
  font-family: var(--sans);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
.mono { font-family: var(--mono-font); }
a { color: inherit; text-decoration-color: color-mix(in srgb, var(--accent) 70%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* top nav */
.nav {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding-block: 18px 0;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 20px;
  font-size: 13px;
}
.nav .brand { font-weight: 700; text-decoration: none; margin-right: auto; }
.nav .brand::before { content: "~/"; color: var(--accent); }
.nav a:not(.brand) { color: var(--muted); text-decoration: none; }
.nav a:not(.brand):hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }

/* sticker chip, used for status badges and callouts */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  border: 1.5px solid var(--ink);
  background: var(--card);
  padding: 6px 12px 6px 10px;
  border-radius: 3px;
  box-shadow: 3px 3px 0 var(--ink);
  letter-spacing: 0.01em;
}
.sq { width: 8px; height: 8px; border-radius: 1px; background: var(--accent); flex: none; }
.sq.warn { background: var(--warn); }
.sq.bad { background: var(--bad); }

footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding-block: 18px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
footer span + span::before { content: " · "; }
footer button {
  font: inherit; color: inherit; background: none; border: 0; padding: 0;
  cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
