/* High Ridge Tech Arts. Dark by design: it is used in a dim booth during services. */
:root {
  --bg: #17161b;
  --surface: #201f26;
  --surface-2: #29282f;
  --line: #36343d;
  --text: #ece9e4;
  --muted: #a39f99;
  --amber: #d98a3d;
  --amber-soft: rgba(217, 138, 61, 0.14);
  --danger: #e2685d;
  --ok: #7cbf7f;
  --radius: 10px;
  --font-head: 'Barlow Semi Condensed', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.5 var(--font-body);
  min-height: 100vh;
}
a { color: var(--amber); }
h1, h2 { font-family: var(--font-head); font-weight: 600; letter-spacing: 0.01em; line-height: 1.15; }
h1 { font-size: 2rem; margin: 0 0 0.25rem; }
h2 { font-size: 1.25rem; margin: 0 0 0.5rem; }
code { font-family: var(--font-mono); font-size: 0.85em; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header + tabs */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.75rem 1rem; border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--text); text-decoration: none;
  font: 700 1.15rem var(--font-head); text-transform: uppercase; letter-spacing: 0.04em; }
.brand span:not(.mark) { color: var(--amber); }
.brand.big { font-size: 1.4rem; margin: 0 0 2rem; }
.mark { width: 0.9em; height: 0.9em; border-radius: 3px; background: var(--amber); display: inline-block; }
.signout { display: flex; align-items: center; gap: 0.75rem; margin: 0; }
.who { color: var(--muted); font-size: 0.875rem; }
.who em { font-style: normal; color: var(--amber); margin-left: 0.25rem; }

.tabs { display: flex; gap: 0.25rem; padding: 0 1rem; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs a {
  padding: 0.75rem 0.9rem; color: var(--muted); text-decoration: none; white-space: nowrap;
  font: 600 1rem var(--font-head); text-transform: uppercase; letter-spacing: 0.05em;
  border-bottom: 2px solid transparent;
}
.tabs a:hover { color: var(--text); }
.tabs a[aria-current="page"] { color: var(--amber); border-bottom-color: var(--amber); }

main { max-width: 960px; margin: 0 auto; padding: 1.5rem 1rem 6rem; }
main.narrow { max-width: 420px; padding-top: 12vh; }
.foot { text-align: center; color: var(--muted); font-size: 0.75rem; padding: 1rem 1rem 5.5rem; }

/* phones: tabs become a bottom bar, in thumb reach */
@media (max-width: 640px) {
  .tabs {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 10;
    background: var(--surface); border-top: 1px solid var(--line); border-bottom: 0;
    justify-content: space-around; padding: 0 0 env(safe-area-inset-bottom);
  }
  .tabs a { flex: 1; text-align: center; padding: 0.85rem 0.25rem; font-size: 0.85rem;
    border-bottom: 0; border-top: 2px solid transparent; }
  .tabs a[aria-current="page"] { border-top-color: var(--amber); }
  .who { display: none; }
  h1 { font-size: 1.7rem; }
}

/* blocks */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; margin: 1rem 0; }
.card.empty { text-align: center; color: var(--muted); padding: 2.5rem 1rem; border-style: dashed; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.75rem; margin-top: 1.25rem; }
.tile { display: block; margin: 0; color: var(--text); text-decoration: none; transition: border-color 0.15s; }
.tile:hover { border-color: var(--amber); }
.tile p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.notice { padding: 0.65rem 0.85rem; border-radius: 8px; margin: 1rem 0; border: 1px solid; }
.notice.error { color: var(--danger); border-color: var(--danger); background: rgba(226, 104, 93, 0.08); }
.notice.ok { color: var(--ok); border-color: var(--ok); background: rgba(124, 191, 127, 0.08); }
.notice.warn { color: var(--amber); border-color: var(--amber); background: var(--amber-soft); }

ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain li { padding: 0.4rem 0; border-bottom: 1px solid var(--line); }
ul.plain li:last-child { border-bottom: 0; }

/* forms */
label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.875rem; color: var(--muted); }
input, select {
  font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line);
  border-radius: 8px; padding: 0.6rem 0.7rem; min-height: 44px;
}
input:focus, select:focus, button:focus-visible { outline: 2px solid var(--amber); outline-offset: 1px; }
button {
  font: 600 0.95rem var(--font-body); color: var(--text); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 8px; padding: 0.55rem 1rem; min-height: 44px; cursor: pointer;
}
button:hover { border-color: var(--muted); }
button.primary { background: var(--amber); border-color: var(--amber); color: #1a1408; }
button.primary:hover { filter: brightness(1.08); }
button.danger { color: var(--danger); }
button.link { background: none; border: 0; padding: 0; min-height: 0; color: var(--amber); font-weight: 500; }
button.small, select.small { min-height: 36px; padding: 0.3rem 0.65rem; font-size: 0.85rem; }
button.pick { width: 100%; text-align: left; display: flex; justify-content: space-between; }
a.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0.6rem 1.2rem;
  border-radius: 8px; font-weight: 600; text-decoration: none; background: var(--surface-2); color: var(--text);
}
a.button.primary { background: var(--amber); color: #1a1408; }
a.button.primary:hover { filter: brightness(1.08); }
.block { display: flex; width: 100%; justify-content: center; }
details.help { margin: 1rem 0; color: var(--muted); font-size: 0.9rem; }
details.help summary { cursor: pointer; color: var(--amber); }
.copy-row { display: flex; gap: 0.5rem; margin-top: 1rem; }
.copy-row input { flex: 1; min-width: 0; }
.mono { font-family: var(--font-mono); font-size: 0.85rem; }
.stack { display: flex; flex-direction: column; gap: 0.75rem; }
.stack form { margin: 0; }
.inline { display: inline-flex; align-items: center; gap: 0.4rem; margin: 0; }
.row-form { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: flex-end; }
.row-form label { flex: 1 1 180px; }

/* people table; stacks into cards on phones */
.people { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.people th { text-align: left; font: 600 0.8rem var(--font-head); text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted); padding: 0.5rem; border-bottom: 1px solid var(--line); }
.people td { padding: 0.65rem 0.5rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.people td[data-label="Email"] { overflow-wrap: anywhere; }
.people .actions { text-align: right; white-space: nowrap; }
.people .actions form + form { margin-left: 0.4rem; }
.people tr.inactive td { opacity: 0.55; }
.badge { display: inline-block; white-space: nowrap; font-size: 0.75rem; font-weight: 600; padding: 0.1rem 0.5rem; border-radius: 999px;
  background: var(--surface-2); color: var(--muted); }
.badge.role-lead { background: var(--amber-soft); color: var(--amber); }
.badge.off { color: var(--danger); }
@media (max-width: 640px) {
  .people thead { display: none; }
  .people, .people tbody, .people tr, .people td { display: block; width: 100%; }
  .people tr { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.5rem 0.75rem; margin-bottom: 0.6rem; }
  .people td { border: 0; padding: 0.25rem 0; }
  .people td[data-label="Email"] { overflow-wrap: anywhere; }
  .people .actions { text-align: left; white-space: normal; padding-top: 0.5rem; }
}
