/* clearwater — shared base styles. Sparse, warm, quiet. */

:root {
  --bg: #14100c;
  --fg: #f2ece2;
  --fg-dim: #b9ada0;
  --fg-faint: #7d7368;
  --accent: #b9673f;
  --line: #2c2620;

  --font-display: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.75rem;
  --step-3: 2.5rem;
  --step-4: 3.5rem;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

a:hover {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }

p { margin: 0 0 1em; }

.wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 var(--step-1);
}

/* --- nav --- */

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--step-1);
  padding: var(--step-1) 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--step-3);
  font-size: 0.9rem;
}

.site-nav a {
  border-bottom: none;
  color: var(--fg-dim);
}

.site-nav a:hover {
  color: var(--accent);
}

.site-nav .brand {
  color: var(--fg);
  margin-right: auto;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.site-nav .admin-link {
  color: var(--fg-faint);
  font-size: 0.8rem;
}

main {
  padding-bottom: var(--step-4);
}

/* --- hairline divider, no boxes --- */

.divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: var(--step-2) 0;
}

/* --- generic list of sparse "rooms" --- */

.stack > * + * {
  margin-top: var(--step-2);
  padding-top: var(--step-2);
  border-top: 1px solid var(--line);
}

.stack:first-child > *:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

/* --- brief card --- */

.brief-card h3 {
  margin-bottom: 0.25em;
}

.brief-meta {
  color: var(--fg-dim);
  font-size: 0.9rem;
}

.brief-status {
  color: var(--accent);
  text-transform: lowercase;
}

.brief-card .enter {
  display: inline-block;
  margin-top: 0.75em;
  color: var(--accent);
  border-bottom: 1px solid transparent;
}

.brief-card .enter:hover {
  border-bottom-color: var(--accent);
}

/* --- forms, minimal --- */

label {
  display: block;
  font-size: 0.85rem;
  color: var(--fg-dim);
  margin-bottom: 0.3em;
}

input, textarea, select, button {
  font-family: inherit;
  font-size: 1rem;
  color: var(--fg);
  background: transparent;
  border: 1px solid var(--line);
  padding: 0.6em 0.8em;
  border-radius: 2px;
}

textarea {
  width: 100%;
  resize: vertical;
  min-height: 4em;
}

button, .btn {
  cursor: pointer;
  color: var(--accent);
  border-color: var(--accent);
  background: transparent;
  transition: opacity 0.15s ease;
}

button:hover, .btn:hover {
  opacity: 0.8;
}

.field {
  margin-bottom: var(--step-1);
}

/* --- room / studio stream --- */

.message {
  padding: 0.6em 0;
}

.message .author {
  color: var(--accent);
  font-size: 0.85rem;
}

.message .time {
  color: var(--fg-faint);
  font-size: 0.75rem;
  margin-left: 0.5em;
}

.message .body {
  margin: 0.2em 0 0;
}

.message img, .message .attachment {
  max-width: 100%;
  margin-top: 0.4em;
  border: 1px solid var(--line);
}

/* --- submission veil --- */

.veiled {
  position: relative;
}

.veiled .veil-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(20, 16, 12, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.veil-overlay .veil-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--fg);
}

.veil-overlay .veil-sub {
  color: var(--fg-dim);
  font-size: 0.8rem;
  margin-top: 0.3em;
}

/* --- small text / secondary --- */

.small {
  font-size: 0.85rem;
  color: var(--fg-dim);
}

.faint {
  color: var(--fg-faint);
}

.center {
  text-align: center;
}

.empty-note {
  color: var(--fg-faint);
  font-style: italic;
}

/* --- moola / ubuntu switch --- */

.economy-switch {
  display: flex;
  gap: 0.5em;
  margin-bottom: 0.5em;
}

.econ-btn {
  color: var(--fg-faint);
  border-color: var(--line);
  text-transform: lowercase;
}

.econ-btn.is-active {
  color: var(--accent);
  border-color: var(--accent);
}

/* --- notifications --- */

.notif-row {
  padding: 0.4em 0;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
}

.notif-row:first-child {
  border-top: none;
}

.notif-row.is-unread {
  color: var(--fg);
}

.notif-row.is-read {
  color: var(--fg-faint);
}

/* --- balance block --- */

.balance-block, .balance {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0.5em 0 1.5em;
}

.at-capacity {
  color: var(--accent);
}

footer.site-footer {
  border-top: 1px solid var(--line);
  margin-top: var(--step-4);
  padding: var(--step-2) 0;
  color: var(--fg-faint);
  font-size: 0.8rem;
}


/* --- moola / ubuntu switch (the workroom's primary control) --- */

.switch {
  display: flex;
  gap: var(--step-1);
  align-items: baseline;
  margin-bottom: 0.2em;
}

.switch a {
  font-family: var(--font-display);
  font-size: var(--step-3);
  color: var(--fg-faint);
  border-bottom: none;
}

.switch a.on {
  color: var(--fg);
}

.switch a:hover {
  color: var(--accent);
}

.switch-note {
  margin-bottom: 0.6em;
}

/* --- capacity + balance state --- */

.at-capacity {
  color: var(--accent);
}

.balance {
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--fg);
}

button[disabled], button:disabled {
  color: var(--fg-faint);
  border-color: var(--line);
  cursor: default;
  opacity: 1;
}

/* --- admin quick-pick chips (ubuntu value) --- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
  margin-bottom: 0.5em;
}

.chips button {
  padding: 0.2em 0.6em;
  font-size: 0.85rem;
}
