/* ── Design tokens ──────────────────────────────────────────────
   Palette references the material world of climate-responsive design:
   stone walls, clay, brass sun instruments, shaded vegetation.
   ------------------------------------------------------------------ */
:root {
  --stone:       #E7E2D3;   /* page background — quarried stone, not paper */
  --stone-dark:  #D8D1BC;   /* panel background */
  --ink:         #26332F;   /* primary text — deep slate green-black */
  --ink-soft:    #5B665F;   /* secondary text */
  --clay:        #24333B;   /* headers, structural elements */
  --sun:         #B8842E;   /* accent — brass/ochre, sun instruments */
  --sun-soft:    #E4CFA0;   /* sun accent, low emphasis */
  --shade:       #3F6D5E;   /* secondary accent — vegetation, cooling */
  --shade-soft:  #CBDBD2;
  --line:        #C7C0AA;   /* hairline rules */
  --error:       #A44A3F;

  --font-display: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --font-body: "IBM Plex Sans", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", Menlo, monospace;

  --radius: 3px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}

a { color: var(--clay); }

/* ── Header, with the sun-arc signature mark ─────────────────── */
.hub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  border-bottom: 1px solid var(--line);
  background: var(--stone);
}

.hub-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hub-brand svg { width: 34px; height: 34px; flex-shrink: 0; }

.hub-brand h1 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.01em;
  color: var(--clay);
}

.hub-brand .tagline {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-top: 2px;
}

.hub-nav { display: flex; gap: 4px; align-items: center; }

.hub-nav a {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius);
  color: var(--ink-soft);
}

.hub-nav a:hover, .hub-nav a.active {
  color: var(--clay);
  background: var(--stone-dark);
}

.user-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Layout ──────────────────────────────────────────────────── */
main { max-width: 920px; margin: 0 auto; padding: 40px 32px 80px; }

.page-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--clay);
  margin: 0 0 4px;
}

.page-subtitle {
  color: var(--ink-soft);
  margin: 0 0 32px;
  font-size: 15px;
}

/* ── Controls ────────────────────────────────────────────────── */
.toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
  align-items: center;
}

input[type="text"], input[type="file"], textarea {
  font-family: var(--font-body);
  font-size: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}

.search-input { flex: 1; }

button, .btn {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--clay);
  background: var(--clay);
  color: var(--stone);
  cursor: pointer;
}

button:hover, .btn:hover { background: var(--ink); }

button.secondary {
  background: transparent;
  color: var(--clay);
}

button.secondary:hover { background: var(--stone-dark); }

button:disabled { opacity: 0.5; cursor: default; }

/* ── Document list ───────────────────────────────────────────── */
.doc-list { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }

.doc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: var(--stone);
}

.doc-info h3 {
  font-family: var(--font-display);
  font-size: 16px;
  margin: 0 0 4px;
  color: var(--clay);
}

.doc-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-soft);
}

.empty-state .glyph { margin-bottom: 12px; }

/* ── Auth page ───────────────────────────────────────────────── */
.auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
  text-align: center;
}

.auth-card {
  background: var(--stone-dark);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 48px 40px;
  max-width: 380px;
}

.google-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 12px 20px;
  font-family: var(--font-body);
  font-size: 14px;
  text-transform: none;
  letter-spacing: normal;
}

.google-btn:hover { background: var(--stone); }

.status-msg {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 10px 14px;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.status-msg.error { background: #F3E3DF; color: var(--error); }
.status-msg.info { background: var(--shade-soft); color: var(--shade); }
