/* TAO site kit base styles. A site overrides the variables in its own site.css. */
:root {
  --bg: #fdfcf9;
  --fg: #22201c;
  --muted: #6b665d;
  --line: #e4dfd5;
  --accent: #8a4b1d;
  --accent-fg: #ffffff;
  --card: #ffffff;
  --error: #b3261e;
  --wrap: 960px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: Georgia, "Times New Roman", serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1b1a18; --fg: #ece8e1; --muted: #a8a297; --line: #3a3732;
    --accent: #e0a070; --accent-fg: #1b1a18; --card: #24221f; --error: #ff8a80;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.6 var(--font); }
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.25; }
.wrap, main { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
main { padding-top: 24px; padding-bottom: 48px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; }
.site-title { font: 600 1.3rem/1.2 var(--font-head); color: var(--fg); text-decoration: none; }
.site-tagline { margin: 4px 0 0; color: var(--muted); font-size: .95rem; }
.site-nav, .site-subnav { display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 10px 0; }
.site-subnav { border-top: 1px dashed var(--line); font-size: .93rem; }
.site-nav a, .site-subnav a { color: var(--fg); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-subnav a:hover { color: var(--accent); }
.site-nav a.active, .site-subnav a.active { border-bottom-color: var(--accent); }
.nav-burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-burger span { display: block; width: 22px; height: 2px; margin: 4px 0; background: var(--fg); }
@media (max-width: 600px) {
  .nav-burger { display: block; }
  .site-nav { display: none; flex-direction: column; }
  .site-nav.open { display: flex; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; padding: 20px 0 32px; }

/* Lists */
.link-list { padding-left: 1.2em; }
.link-list li { margin: 6px 0; }
.link-list .note { color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.card-photo { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.card-body { padding: 14px 16px 18px; }
.card-body h3 { margin: 0 0 4px; }
.card-role { margin: 0 0 8px; color: var(--muted); font-size: .92rem; }
.card-body p { margin: 0 0 8px; }

/* Forms */
.tao-form { max-width: 640px; }
.tao-form .field { margin: 0 0 18px; }
.tao-form label { display: block; font-weight: 600; margin-bottom: 4px; }
.tao-form label.choice { font-weight: normal; display: flex; gap: 8px; align-items: baseline; margin: 4px 0; }
.tao-form fieldset { border: 0; padding: 0; margin: 0; }
.tao-form legend { font-weight: 600; margin-bottom: 4px; padding: 0; }
.tao-form input:not([type="checkbox"]):not([type="radio"]), .tao-form select, .tao-form textarea {
  width: 100%; font: inherit; color: var(--fg); background: var(--card);
  border: 1px solid var(--line); border-radius: 6px; padding: 9px 10px;
}
.tao-form textarea { resize: vertical; }
.tao-form .field-help { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }
.tao-form .field-error { margin: 4px 0 0; color: var(--error); font-size: .9rem; min-height: 0; }
.tao-form .field-error:empty { display: none; }
.tao-form .has-error input, .tao-form .has-error select, .tao-form .has-error textarea { border-color: var(--error); }
.tao-form button[type="submit"] {
  font: inherit; font-weight: 600; background: var(--accent); color: var(--accent-fg);
  border: 0; border-radius: 6px; padding: 10px 22px; cursor: pointer;
}
.tao-form button[disabled] { opacity: .6; cursor: progress; }
.tao-form .form-status { min-height: 1.6em; }
.tao-form .ts-box { margin: 0 0 14px; }
.tao-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-done { padding: 16px 18px; border-left: 4px solid var(--accent); background: var(--card); }
.site-logo { display: block; height: 52px; width: auto; }
