/* OTO9: plain, light, no build step. Inspired by bearblog's restraint. */
:root {
  --bg: #fff;
  --text: #444;
  --head: #222;
  --muted: #777;
  --line: #e5e5e5;
  --soft: #f6f6f6;
  --link: #2f6fd1;
  --accent: #d1422f;   /* your turn */
  --ok: #2e7d4f;
  --warn: #9a6a00;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0 auto;
  max-width: 44rem;
  padding: 0 16px 48px;
  background: var(--bg);
  color: var(--text);
  font-family: Verdana, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.6;
}
h1, h2, h3 { color: var(--head); line-height: 1.25; }
h1 { font-size: 1.5rem; margin: 1.2rem 0 .3rem; }
h2 { font-size: 1.15rem; margin: 1.8rem 0 .5rem; }
h3 { font-size: 1rem; margin: 1.2rem 0 .4rem; }
p { margin: .5rem 0; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
small, .muted { color: var(--muted); font-size: .87rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }

/* header */
header.site { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; padding: 18px 0 10px; }
header.site .brand { font-weight: bold; color: var(--head); font-size: 1.15rem; letter-spacing: .02em; }
header.site nav a { margin-left: 14px; }
header.site nav a:first-child { margin-left: 0; }
header.site nav a.here { color: var(--head); }

/* sticky "You're #N" bar */
.statusbar { position: sticky; top: 0; z-index: 10; margin: 0 -16px; padding: 0 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
.statusbar a.row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; color: var(--head); }
.statusbar a.row + a.row { border-top: 1px dashed var(--line); }
.statusbar a.row:hover { text-decoration: none; }
.statusbar .go { color: var(--link); white-space: nowrap; }
.statusbar a.row.turn { color: var(--accent); font-weight: bold; }
.statusbar a.row.turn .go { color: var(--accent); }

/* forms */
label { display: block; margin: .6rem 0 .2rem; color: var(--head); }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=number], select, textarea {
  width: 100%; font: inherit; padding: 8px 10px; border: 1px solid #ccc; border-radius: 3px; background: #fff; color: var(--head);
}
input:focus, select:focus, textarea:focus { outline: 2px solid #bcd3f5; border-color: var(--link); }
.inline { display: flex; gap: 8px; align-items: center; }
.inline input { flex: 1; }
.choice { display: inline-flex; align-items: center; gap: 6px; margin: 0 16px 0 0; color: var(--text); }

button, .btn {
  display: inline-block; font: inherit; padding: 8px 16px; border: 1px solid var(--head); border-radius: 3px;
  background: var(--head); color: #fff; cursor: pointer; text-decoration: none; line-height: 1.4;
}
button:hover, .btn:hover { background: #000; text-decoration: none; }
button.plain, .btn.plain { background: #fff; color: var(--head); border-color: #bbb; }
button.plain:hover, .btn.plain:hover { background: var(--soft); }
button.link { background: none; border: 0; color: var(--link); padding: 0; }
button.link:hover { text-decoration: underline; background: none; }
button.big, .btn.big { width: 100%; padding: 12px; font-size: 1.05rem; }
button.turn, .btn.turn { background: var(--accent); border-color: var(--accent); color: #fff; }
button[disabled] { opacity: .5; cursor: default; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin: .8rem 0; }

/* boxes */
.box { border: 1px solid var(--line); border-radius: 4px; padding: 14px 16px; margin: 1rem 0; }
.box.turn { border-color: var(--accent); }
.box.soft { background: var(--soft); border-color: var(--soft); }
.big-number { font-size: 2.2rem; font-weight: bold; color: var(--head); line-height: 1.1; }
.countdown { font-variant-numeric: tabular-nums; font-weight: bold; }
.error { color: var(--accent); }
.okay { color: var(--ok); }
.flash { padding: 8px 12px; background: #eef6f0; color: var(--ok); border-radius: 3px; margin: 1rem 0; }

/* lists and tables (ALL.net-style listings) */
table { width: 100%; border-collapse: collapse; margin: .5rem 0; }
th, td { text-align: left; padding: 7px 8px 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: normal; color: var(--muted); font-size: .87rem; }
td.num, th.num { text-align: right; padding-right: 0; padding-left: 12px; white-space: nowrap; }
tr.me td { color: var(--head); font-weight: bold; }
ul.venues { list-style: none; padding: 0; margin: 0; }
ul.venues > li { padding: 12px 0; border-bottom: 1px solid var(--line); }
ul.venues .name { font-weight: bold; }
ul.venues .machines { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }
.tag { display: inline-block; white-space: nowrap; font-size: .78rem; padding: 0 6px; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); }
.tag.free { color: var(--ok); border-color: #cfe5d6; }
.tag.busy { color: var(--warn); border-color: #eadbb5; }
.tag.off { color: var(--muted); }
.tag.turn { color: var(--accent); border-color: #f0c8c2; }

footer.site { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
[x-cloak] { display: none !important; }
