/* heathsaunders.com tools — dark theme, white accent */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #000000; --surface: #0e0e0e; --surface2: #181818; --border: #2a2a2a;
  --accent: #ffffff; --accent-dim: #8a8a8a; --text: #f0f0f0; --muted: #6a6a6a;
  --ok: #4caf7d; --warn: #c8903a; --danger: #e85540; --radius: 2px;
  --mono: "SF Mono", "Cascadia Code", "JetBrains Mono", Consolas, monospace;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body {
  font-family: var(--sans); background: var(--bg); color: var(--text);
  min-height: 100vh; padding: 24px 18px 40px; max-width: 640px; margin: 0 auto;
  line-height: 1.5; -webkit-font-smoothing: antialiased;
}

a { color: var(--text); text-decoration: none; } a:hover { color: var(--accent); }

.topbar { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--border); padding-bottom: 12px; margin-bottom: 22px; }
.topbar .home { color: var(--muted); font-weight: 600; font-size: 0.85rem; }
.topbar .home:hover { color: var(--accent); }
.topbar .crumb { color: var(--muted); font-size: 0.85rem; }
.topbar .sep { color: var(--border); font-size: 0.85rem; }

h1 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 4px; color: #ffffff; }
.subtitle { color: var(--muted); font-size: 0.9rem; margin-bottom: 22px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.card-title { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 14px; }

label { display: block; font-size: 0.8rem; color: var(--muted); margin-bottom: 5px; }
input[type="number"], input[type="text"], input[type="date"], input:not([type="color"]):not([type="checkbox"]):not([type="range"]), select {
  width: 100%; background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); font-family: var(--sans); font-size: 0.95rem; padding: 9px 11px; outline: none;
}
input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(255,255,255,0.10); }
input[type="color"] {
  width: 100%; height: 40px; padding: 3px 4px; background: var(--surface2);
  border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; outline: none;
}
input[type="color"]:focus { border-color: var(--accent); }
.check-label { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--muted); cursor: pointer; }
.check-label input[type="checkbox"] { width: 14px; height: 14px; accent-color: var(--accent); cursor: pointer; }
.field { margin-bottom: 14px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.row.three { grid-template-columns: 1fr 1fr 1fr; }

.btn { width: 100%; padding: 11px; background: #ffffff; border: none; border-radius: var(--radius);
  color: #000000; font-family: var(--sans); font-weight: 700; font-size: 0.9rem; cursor: pointer; }
.btn.ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn:hover { background: #e8e8e8; }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }

.out { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; font-family: var(--mono); line-height: 1.7; }
.big { font-size: 2rem; font-weight: 700; color: var(--accent); font-family: var(--mono); line-height: 1.1; }
.muted { color: var(--muted); } .ok { color: var(--ok); } .warn { color: var(--warn); } .danger { color: var(--danger); }
.note { font-size: 0.78rem; color: var(--muted); line-height: 1.5; margin-top: 8px; }

table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 0.88rem; }
th, td { text-align: right; padding: 7px 8px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; font-family: var(--sans); }
td:first-child, th:first-child { text-align: left; }
tbody tr:last-child td { border-bottom: none; }

.chip { display: inline-block; font-size: 0.72rem; padding: 3px 10px; border: 1px solid var(--border); border-radius: 20px;
  color: var(--muted); cursor: pointer; margin: 2px 2px 2px 0; background: var(--surface2); }
.chip:hover { border-color: var(--accent); color: var(--accent); }

footer { margin-top: 30px; color: var(--muted); font-size: 0.78rem; border-top: 1px solid var(--border); padding-top: 14px; line-height: 1.6; }
footer a { color: var(--muted); }
footer a:hover { color: var(--accent); }
