/* Tokens: assets/brand/DESIGN.md. Hollow looks like NightOwl, in amber. */
:root {
  --bg: #050507;
  --panel: #0B0B10;
  --field: #131319;
  --field-border: rgba(255, 255, 255, 0.09);
  --border-soft: rgba(255, 255, 255, 0.07);
  --text: #F2F1F7;
  --text-dim: #A9A7B8;
  --text-faint: #6F6D7D;
  --accent: #F5A524;
  --accent-bright: #FFC45C;
  --accent-dim: #C47F0E;
  --accent-rgb: 245, 165, 36;
  --on-accent: #1F1400;
  --warn: #FF7A45;
  --danger: #FF4D5E;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.5 Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}
h1, h2 { font-weight: 800; letter-spacing: -0.6px; }
a { color: var(--accent-bright); text-decoration: none; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.mono { font-family: var(--mono); }

/* Until Phase 4's amber badge exists: the blue badge, hue-rotated. Blacks stay black. */
.badge { border-radius: 50%; filter: hue-rotate(205deg) saturate(1.15); }
.brand { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; }
.brand b { color: var(--accent); font-weight: 700; }

input, .btn {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  font: inherit;
}
input {
  background: var(--field);
  border: 1px solid var(--field-border);
  color: var(--text);
  outline: none;
}
input:focus, .btn:focus-visible, .icon-btn:focus-visible, .item:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.18);
}
.btn {
  border: 1px solid transparent;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  min-height: 44px;
}
.btn:hover:not(:disabled) { background: var(--accent-bright); }
.btn:active { background: var(--accent-dim); }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn.secondary { background: var(--field); border-color: var(--field-border); color: var(--text); }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: var(--field); border: 1px solid var(--field-border); color: var(--text);
}

/* ---------- Login (NightOwl's, in amber) ---------- */
.login-page { display: flex; align-items: center; justify-content: center; padding: 16px; min-height: 100dvh; }
.stage {
  width: 100%; max-width: 1180px; min-height: 720px;
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--panel); border: 1px solid var(--border-soft); border-radius: 28px; overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55), 0 0 40px -10px rgba(var(--accent-rgb), 0.25);
}
.form-side { padding: 48px 48px 32px; display: flex; flex-direction: column; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; width: max-content;
  padding: 9px 20px; border-radius: 999px; margin-bottom: 40px;
  background: var(--text); color: var(--bg); font-size: 13px; font-weight: 600;
  box-shadow: 0 0 0 4px var(--field), 0 0 0 5px var(--field-border);
}
.form-side .brand { margin-bottom: 28px; }
.form-side h1 { font-size: 32px; margin-bottom: 6px; }
.sub { color: var(--text-dim); margin-bottom: 28px; }
label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 8px; }
.field { margin-bottom: 18px; }
.field-top { display: flex; justify-content: space-between; align-items: baseline; }
.field-top a { font-size: 13px; font-weight: 600; }
.msg { font-size: 14px; font-weight: 600; margin-bottom: 16px; color: var(--warn); min-height: 0; }
.msg:empty { display: none; }
.link-btn { background: none; border: 0; color: var(--accent-bright); font-weight: 600; padding: 0; }
.footer-note { margin-top: auto; padding-top: 28px; text-align: center; color: var(--text-faint); font-size: 13px; }
.visual { position: relative; background: #000; min-height: 280px; }
.visual video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.visual::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5, 5, 7, 0) 0%, rgba(5, 5, 7, 0.15) 45%, rgba(5, 5, 7, 0.92) 100%),
    linear-gradient(0deg, rgba(var(--accent-rgb), 0.25), transparent 55%);
}
.visual-top {
  position: absolute; top: 28px; left: 28px; z-index: 1; display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.75);
}
.visual-top i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-bright); box-shadow: 0 0 8px var(--accent-bright); }
.quote {
  position: absolute; left: 20px; right: 20px; bottom: 20px; z-index: 1; padding: 24px;
  background: rgba(8, 8, 12, 0.55); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 14px;
  backdrop-filter: blur(10px); font-size: 18px; font-weight: 700; line-height: 1.35;
}
@media (max-width: 900px) {
  .stage { grid-template-columns: 1fr; min-height: auto; }
  .visual { order: -1; }
  .form-side { padding: 32px 24px 24px; }
}

/* ---------- App shell ---------- */
.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100dvh; }
.sidebar { border-right: 1px solid var(--border-soft); padding: 24px 16px; display: flex; flex-direction: column; gap: 24px; }
.sidebar nav a { display: block; padding: 10px 12px; border-radius: 12px; color: var(--text-dim); font-weight: 600; }
.sidebar nav a[aria-current] { background: var(--field); color: var(--text); }
.sidebar .btn { margin-top: auto; }
main { padding: 34px 40px; min-width: 0; }

.banner {
  position: relative; height: 104px; border-radius: 14px; overflow: hidden; margin-bottom: 28px;
  display: flex; align-items: center; padding: 0 24px; background: var(--panel);
}
.banner video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(5, 5, 7, 0.85), rgba(5, 5, 7, 0) 55%, rgba(5, 5, 7, 0.6)),
    linear-gradient(0deg, rgba(var(--accent-rgb), 0.2), rgba(var(--accent-rgb), 0) 60%);
}
.banner > * { position: relative; z-index: 1; }
.banner .host { position: absolute; right: 20px; bottom: 14px; font-size: 12.5px; font-weight: 700; }

.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 20px; color: var(--text-dim); font-weight: 600; }
.crumbs button { background: none; border: 0; color: inherit; padding: 6px 4px; }
.crumbs button:last-child { color: var(--text); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; }
.item {
  background: none; border: 1px solid transparent; border-radius: 14px; padding: 10px; color: var(--text);
  text-align: left; display: flex; flex-direction: column; gap: 8px; min-width: 0;
}
.item:hover { background: var(--panel); border-color: var(--border-soft); }
/* The arch: Hollow's own shape, on folders and file cards only. */
.folder-icon { height: 96px; border-radius: 26px 26px 12px 12px; background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.3), rgba(var(--accent-rgb), 0.08)); border: 1px solid rgba(var(--accent-rgb), 0.35); }
.file-card { height: 120px; border-radius: 120px 120px 14px 14px; background: var(--panel); border: 1px solid var(--field-border); display: grid; place-items: center; color: var(--text-faint); font: 500 12px var(--mono); text-transform: uppercase; }
.item .name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .meta { font: 400 12px var(--mono); color: var(--text-faint); }

.moment { text-align: center; padding: 64px 16px; color: var(--text-dim); }
.moment img { width: 96px; height: 96px; margin-bottom: 18px; }
.moment.asleep img { opacity: 0.45; }
.moment h2 { color: var(--text); font-size: 22px; margin-bottom: 6px; }
.moment .btn { width: auto; margin-top: 20px; padding-inline: 28px; }

@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { flex-direction: row; align-items: center; border-right: 0; border-bottom: 1px solid var(--border-soft); padding: 12px 16px; }
  .sidebar nav { display: none; }
  .sidebar .btn { margin: 0 0 0 auto; width: auto; }
  main { padding: 20px 16px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  video { display: none; }
}
.center-link { margin-top: 18px; text-align: center; }
