/* BeeverForge's door: the brand's three colours (graphite, gold, off-white), its type, nothing else. */
:root {
  --graphite: #1f1f24;
  --gold: #d4a24c;
  --gold-deep: #b5852f;
  --offwhite: #faf9f6;
  --ink: var(--graphite);
  --paper: var(--offwhite);
  --card: #ffffff;
  --muted: #5d5d66;
  --line: #e4e1da;
  --danger: #a8322d;
  --ok: #2e6b3f;
  --radius: 16px;
  --control: 8px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: var(--offwhite);
    --paper: var(--graphite);
    --card: #28282f;
    --muted: #b5b3ad;
    --line: #3a3a43;
    --danger: #e0716b;
    --ok: #7fc493;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-deep); }
header.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 32px; max-width: 1120px; width: 100%; margin: 0 auto;
}
header.top .logo img { height: 34px; }
/* one logo per theme: the rule that shows them is no more specific than the one that hides one */
.logo img { display: block; }
header.top nav { display: flex; gap: 16px; align-items: center; font-size: 14px; }
header.top nav form { margin: 0; }
.logo .on-dark { display: none; }
@media (prefers-color-scheme: dark) {
  .logo .on-light { display: none; }
  .logo .on-dark { display: block; }
}
main { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 16px 32px 48px; }
main.narrow { max-width: 640px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; margin: 24px 0;
}
h1 { font-size: 32px; line-height: 1.2; margin: 0 0 16px; font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: 22px; margin: 32px 0 12px; }
p.lead { font-size: 18px; color: var(--muted); margin-top: 0; }
.muted { color: var(--muted); font-size: 14px; }
.button, button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 600; font-size: 15px;
  border-radius: var(--control); border: 1px solid transparent;
  padding: 12px 20px; cursor: pointer; text-decoration: none;
  background: var(--gold); color: var(--graphite);
}
.button:hover, button:hover { background: var(--gold-deep); color: var(--graphite); }
.button.quiet, button.quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.button.quiet:hover, button.quiet:hover { border-color: var(--gold); }
button.danger { background: var(--danger); color: #fff; }
button.link { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-decoration-color: var(--gold); font-weight: 400; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
label { font-weight: 600; font-size: 14px; display: block; margin-bottom: 6px; }
input[type=email], input[type=text], input[type=number], select, textarea {
  font: inherit; width: 100%; padding: 10px 12px; border-radius: var(--control);
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
}
input:focus, textarea:focus, select:focus, button:focus-visible, a:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 2px;
}
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 4px; }
.notice { border-left: 4px solid var(--gold); padding: 12px 16px; background: var(--paper); border-radius: 4px; }
.notice.error { border-color: var(--danger); }
.notice.ok { border-color: var(--ok); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.table-wrap { overflow-x: auto; }
.pill { display: inline-block; font-size: 12px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); }
.pill.active, .pill.invited { border-color: var(--gold); }
.pill.expired, .pill.declined, .pill.deleted { color: var(--muted); }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; }
footer.bottom {
  border-top: 1px solid var(--line); padding: 20px 32px; font-size: 13px; color: var(--muted);
}
footer.bottom .inner { max-width: 1120px; margin: 0 auto; display: flex; gap: 20px; flex-wrap: wrap; }
.providers { display: flex; flex-direction: column; gap: 12px; max-width: 360px; }
.providers .button { justify-content: flex-start; }
@media (max-width: 640px) {
  header.top, main, footer.bottom { padding-left: 16px; padding-right: 16px; }
  .card { padding: 20px; }
  h1 { font-size: 26px; }
}

/* the team's pages: no inline style anywhere, the policy forbids it */
.admin-nav { margin-bottom: 8px; }
.tight { margin-top: 0; }
input.days { width: 5em; }

/* the second factor: the QR code an app scans, the secret to type, the recovery codes */
.qr { display: block; width: 200px; height: 200px; background: #fff; padding: 8px; border-radius: 8px; border: 1px solid var(--line); }
.secret { font-size: 15px; letter-spacing: .04em; word-break: break-all; }
.codes { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-width: 360px; }
.codes code { font-size: 15px; letter-spacing: .04em; }
.steps { padding-left: 20px; }
