/* 512 — Austin information. Hand-written, no build step. */
:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --fg: #1d1d1b;
  --muted: #5d5c57;
  --line: #e4e1d9;
  --accent: #b23c0b;
  --accent-ink: #ffffff;
  --link: #8a2e08;
  --green-bg: #e3f2e6; --green-fg: #1d5a2c;
  --yellow-bg: #fbf0c9; --yellow-fg: #6b4f00;
  --red-bg: #fbe3df; --red-fg: #8b1f12;
  --none-bg: #ecebe7; --none-fg: #4a4945;
  --note-bg: #f3f1ea;
  --radius: 10px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161614; --surface: #1f1f1c; --fg: #f1f0eb; --muted: #a9a79f; --line: #34332f;
    --accent: #f08a4b; --accent-ink: #1a1a18; --link: #f5a676;
    --green-bg: #1d3524; --green-fg: #b9e6c3;
    --yellow-bg: #3a3112; --yellow-fg: #f3dc8c;
    --red-bg: #42201b; --red-fg: #f6b9ad;
    --none-bg: #2c2b28; --none-fg: #d0cec6;
    --note-bg: #22211e;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.55 var(--font); }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); margin: 0.4em 0 0.3em; }
h2 { font-size: 1.3rem; margin: 1.8em 0 0.5em; }
h3 { font-size: 1.05rem; margin: 1.2em 0 0.3em; }
p, ul, ol { margin: 0 0 1em; }
small, .muted { color: var(--muted); }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }

.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: baseline; gap: 8px; color: var(--fg); text-decoration: none; }
.brand-mark { font-weight: 800; font-size: 1.6rem; letter-spacing: -0.04em; color: var(--accent); }
.brand-sep { color: var(--muted); }
.brand-tag { font-weight: 600; }
nav a { margin-right: 16px; color: var(--fg); text-decoration: none; font-weight: 500; }
nav a:last-child { margin-right: 0; }
nav a[aria-current="page"], nav a:hover { color: var(--link); text-decoration: underline; }

main { padding-top: 8px; padding-bottom: 48px; }
.site-footer { border-top: 1px solid var(--line); padding: 20px 0 32px; color: var(--muted); font-size: 0.9rem; }

.lede { font-size: 1.12rem; color: var(--muted); max-width: 46em; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.note { background: var(--note-bg); border-left: 4px solid var(--accent); border-radius: 6px; padding: 12px 14px; margin: 0 0 1em; }
.note p:last-child, .card p:last-child { margin-bottom: 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 16px 0; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.fact dt { font-size: 0.82rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.fact dd { margin: 2px 0 0; font-weight: 600; font-size: 1.05rem; }

form.search { display: grid; grid-template-columns: 1fr 9rem auto; gap: 8px; align-items: end; margin: 12px 0 8px; }
form.search label, .field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 4px; }
input[type=text], input[type=search], input[type=email], select, textarea {
  width: 100%; font: inherit; color: var(--fg); background: var(--surface);
  border: 1px solid #b9b5aa; border-radius: 8px; padding: 10px 12px; min-height: 44px;
}
textarea { min-height: 140px; }
button, .button {
  font: inherit; font-weight: 600; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 8px;
  padding: 10px 18px; min-height: 44px; cursor: pointer; text-decoration: none; display: inline-block;
}
.field { margin-bottom: 14px; }
.error { color: var(--red-fg); font-size: 0.9rem; }
@media (max-width: 600px) { form.search { grid-template-columns: 1fr; } }

.results { list-style: none; padding: 0; margin: 12px 0; }
.results li { border-bottom: 1px solid var(--line); padding: 12px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.results a { font-weight: 600; font-size: 1.05rem; }
.results .addr { color: var(--muted); font-size: 0.92rem; }

.chip { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: 0.85rem; font-weight: 600; white-space: nowrap; }
.chip.green { background: var(--green-bg); color: var(--green-fg); }
.chip.yellow { background: var(--yellow-bg); color: var(--yellow-fg); }
.chip.red { background: var(--red-bg); color: var(--red-fg); }
.chip.none { background: var(--none-bg); color: var(--none-fg); }
.score { font-weight: 700; font-variant-numeric: tabular-nums; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); background: var(--note-bg); }
tr:last-child td { border-bottom: 0; }
td .sub { display: block; color: var(--muted); font-size: 0.85rem; }
tr.archived td { background: var(--note-bg); }

/* Inspection history collapses to cards on phones */
@media (max-width: 640px) {
  table.history thead { position: absolute; left: -9999px; }
  table.history, table.history tbody, table.history tr, table.history td { display: block; width: 100%; }
  table.history caption { display: block; width: 100%; }
  table.history tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  table.history td { border: 0; padding: 4px 12px; }
  table.history td::before { content: attr(data-label); display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
}

.pagination { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 16px 0; }
.pagination a, .pagination span { padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; min-width: 44px; text-align: center; }
.pagination [aria-current] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.crumbs { font-size: 0.9rem; color: var(--muted); margin-top: 16px; }
.crumbs a { color: var(--muted); }
dl.inline dt { font-weight: 600; }
dl.inline dd { margin: 0 0 10px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 720px) { .cols { grid-template-columns: 1fr; } }
