/* hub.css — Calm project room shell. */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--hero); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- masthead ---------- */
.mast {
  border-top: 3px solid var(--hero);
  background: var(--white);
  border-bottom: 1px solid var(--border-soft);
}
.mast-inner {
  width: 100%;
  margin: 0;
  padding: 16px 28px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.wordmark {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  text-transform: lowercase;
  color: var(--ink);
  justify-self: start;
}
.mast-center {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  justify-self: center;
}
.mast-logout,
.mast-spacer {
  justify-self: end;
}
.mast-logout {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
}
.mast-logout:hover { color: var(--ink); text-decoration: none; }

/* ---------- layout ---------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px 22px 72px;
}

/* ---------- gate ---------- */
.gate {
  max-width: 400px;
  margin: 10vh auto 0;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 28px 26px 26px;
}
.gate h1 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 4px;
}
.gate p.sub {
  margin: 0 0 18px;
  color: var(--ink-60);
  font-size: 14px;
}
.gate label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 6px;
}
.gate input[type='password'] {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  font-size: 15px;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  outline: none;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.gate input[type='password']:focus {
  border-color: var(--hero);
  box-shadow: 0 0 0 3px var(--ice);
}
.gate input.error { border-color: #C2410C; }
.btn {
  margin-top: 14px;
  width: 100%;
  padding: 11px 14px;
  background: var(--hero);
  color: var(--white);
  border: 0;
  border-radius: var(--radius-input);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.12s;
}
.btn:hover { background: var(--hero-deep); }
.btn:disabled { opacity: 0.55; cursor: default; }
.gate-hint {
  margin-top: 12px;
  font-size: 13px;
  color: #C2410C;
  min-height: 1.2em;
}
.gate .back-link {
  display: block;
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

/* ---------- hub content ---------- */
.hub-head {
  margin: 8px 0 28px;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 8px;
}
.hub-head h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
  color: var(--ink);
}

/* Document list */
.docgroup { margin-bottom: 8px; }
.docgroup.proposals { margin-top: 48px; }
.docgroup > h2 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 4px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-soft);
}
.docrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 2px;
  border-bottom: 1px solid var(--border-soft);
  text-decoration: none;
  color: inherit;
}
.docrow:last-child { border-bottom: 0; }
.doc-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 4px;
}
.docrow .t {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.docrow .d { color: var(--ink-60); font-size: 13.5px; margin-top: 2px; }
.docrow .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--slate);
  white-space: nowrap;
  display: flex;
  gap: 12px;
  align-items: center;
  flex: 0 0 auto;
}
.doc-arrow {
  color: var(--ink-40);
  font-size: 16px;
  line-height: 1;
  transition: transform 0.12s, color 0.12s;
}
.docrow:hover { text-decoration: none; }
.docrow:hover .t { color: var(--hero); }
.docrow:hover .doc-arrow { color: var(--hero); transform: translateX(3px); }
.empty-state { color: var(--ink-40); font-size: 13.5px; padding: 10px 2px; }

footer.foot {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 22px 40px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-40);
  letter-spacing: 0.04em;
}

/* Document (artefact) pages keep a slim top rule only; artefact fills viewport. */
body.doc-page { background: var(--white); }
body.doc-page .mast { border-top-width: 3px; }

/* ---------- responsive ---------- */
@media (max-width: 560px) {
  .mast-inner { padding: 14px 16px; gap: 10px; }
  .wordmark { font-size: 20px; }
  .docrow { align-items: flex-start; }
  .docrow .meta { padding-top: 2px; }
  .wrap { padding-top: 20px; }
}

/* ---------- focus & motion ---------- */
:focus-visible {
  outline: 2px solid var(--hero);
  outline-offset: 2px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
