:root {
  --midnight: #103a42;
  --teal: #004d5a;
  --jade: #00b89c;
  --ink: #103a42;
  --ink3: #446068;
  --line: #dfe5e5;
  --line2: #eef2f2;
  --grey50: #f7f8f8;
  --teal-ghost: #e7f1f2;
}
* { box-sizing: border-box; }
html { background: #fff; }
body {
  margin: 0; font-family: Barlow, system-ui, sans-serif; font-size: 16px; line-height: 1.5;
  color: var(--ink); background: #fff; min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--teal); }
a:hover { color: var(--midnight); }

.band { background: linear-gradient(120deg, #0a1520, #0d1e2c 45%, #1a4a47); color: #fff; }
.band-inner {
  max-width: 1120px; margin: 0 auto; padding: 18px 24px;
  display: flex; align-items: center; gap: 28px;
}
.brand img { height: 34px; display: block; }
.space { display: flex; flex-direction: column; border-left: 1px solid rgba(255,255,255,.2); padding-left: 24px; }
.eyebrow {
  font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: #cfe1e4;
}
.space-name { font-family: "Barlow Condensed", sans-serif; font-weight: 600; font-size: 22px; line-height: 1.2; }
.who { margin-left: auto; display: flex; gap: 18px; align-items: center; font-size: 14px; color: #cfe1e4; }
.who a { color: #fff; }
.tabs { max-width: 1120px; margin: 0 auto; padding: 0 24px; display: flex; gap: 4px; }
.tabs a {
  color: #cfe1e4; text-decoration: none; padding: 10px 14px 12px; font-weight: 500;
  border-bottom: 3px solid transparent;
}
.tabs a:hover { color: #fff; }
.tabs a.on { color: #fff; border-bottom-color: var(--jade); }

main { width: 100%; max-width: 1120px; margin: 0 auto; padding: 36px 24px 56px; flex: 1; }
main.narrow > * { max-width: 640px; }
h1 {
  font-family: "Barlow Condensed", sans-serif; font-weight: 600; font-size: 34px;
  line-height: 1.15; margin: 0 0 12px; color: var(--midnight);
}
h2 {
  font-family: "Barlow Condensed", sans-serif; font-weight: 600; font-size: 22px;
  margin: 36px 0 10px; color: var(--midnight);
}
.heading-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lead { color: var(--ink3); max-width: 720px; margin: 0 0 20px; }
.meta { color: var(--ink3); margin: 0 0 16px; }
.crumb { margin: 0 0 6px; font-size: 14px; }
.muted { color: var(--ink3); }
.small { font-size: 13px; }
.strong { font-weight: 600; }
.mono { font-family: "JetBrains Mono", monospace; font-size: 13px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }

table.list { width: 100%; border-collapse: collapse; }
table.list th {
  text-align: left; font-family: "JetBrains Mono", monospace; font-size: 11px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink3);
  padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line);
}
table.list td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line2); vertical-align: middle; }
table.list a.strong { color: var(--midnight); text-decoration: none; }
table.list a.strong:hover { text-decoration: underline; }
table.artifacts td { vertical-align: top; }
.digest { word-break: break-all; max-width: 360px; }

.tag {
  display: inline-block; font-family: "JetBrains Mono", monospace; font-size: 11px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--midnight);
  background: var(--teal-ghost); border-radius: 3px; padding: 2px 8px;
}
.button {
  display: inline-block; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  color: var(--midnight); background: #fff; border: 1px solid var(--midnight); border-radius: 4px;
  padding: 6px 14px; text-decoration: none; white-space: nowrap;
}
.button:hover { background: var(--midnight); color: #fff; }
form { margin: 0; }

pre {
  font-family: "JetBrains Mono", monospace; font-size: 13px; line-height: 1.6;
  background: var(--grey50); border: 1px solid var(--line); border-radius: 4px;
  padding: 14px 16px; overflow-x: auto; margin: 0;
}
iframe.notes { width: 100%; height: 640px; border: 1px solid var(--line); border-radius: 4px; }

footer {
  max-width: 1120px; width: 100%; margin: 0 auto; padding: 18px 24px 28px;
  border-top: 1px solid var(--line); color: var(--ink3); font-size: 13px;
}

@media (max-width: 720px) {
  .band-inner { flex-wrap: wrap; gap: 12px 20px; padding: 14px 16px; }
  .who { margin-left: 0; width: 100%; }
  .tabs { padding: 0 8px; overflow-x: auto; }
  main { padding: 24px 16px 40px; }
  table.list th:nth-child(3), table.list td:nth-child(3) { display: none; }
  table.artifacts td:nth-child(3), table.artifacts th:nth-child(3) { display: table-cell; }
  .digest { max-width: none; }
}

form.stack { display: flex; flex-direction: column; gap: 16px; max-width: 420px; }
form.stack h2 { margin: 16px 0 0; }
form.stack p { margin: 0; }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: 15px; }
input {
  font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid #b9c6c8; border-radius: 4px;
  color: var(--ink); background: #fff;
}
input:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.button.primary { background: var(--midnight); color: #fff; padding: 10px 18px; font-size: 15px; align-self: flex-start; }
.button.primary:hover { background: var(--teal); border-color: var(--teal); }
.error { color: #bb0000; font-weight: 500; }
.qr svg { width: 200px; height: 200px; display: block; border: 1px solid var(--line); border-radius: 4px; }
