:root {
  --bg: #08090b;
  --panel: #121316;
  --line: #292b30;
  --gold: #c9a458;
  --text: #f5f2eb;
  --muted: #92949a;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    16px Arial,
    sans-serif;
}
button,
input,
textarea {
  font: inherit;
}
.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-brand {
  padding: 4rem;
  background: linear-gradient(145deg, #07090d, #14243d);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.login-brand img,
aside img {
  width: 150px;
}
.login-brand p {
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
}
.login-card {
  padding: clamp(2rem, 8vw, 8rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.kicker {
  color: var(--gold);
  letter-spacing: 0.15em;
  font-size: 0.7rem;
}
.login-card h1,
.editor-main h1 {
  font:
    400 clamp(2.5rem, 5vw, 4.5rem) Georgia,
    serif;
  margin: 1rem 0;
}
.login-card p,
.editor-card p,
.notice {
  color: var(--muted);
  line-height: 1.6;
}
.login-card label,
.editor-card label {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 1rem 0;
  color: #aaa;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.login-card input,
.editor-card input,
.editor-card textarea {
  background: #111216;
  color: white;
  border: 1px solid var(--line);
  padding: 1rem;
  outline: none;
}
.login-card button,
#save,
.quick-grid button {
  background: var(--gold);
  border: 0;
  padding: 1rem 1.2rem;
  font-weight: 700;
  margin-top: 1rem;
  cursor: pointer;
}
.login-card small {
  color: #666;
  margin-top: 1rem;
}
.dashboard {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 100vh;
}
aside {
  border-right: 1px solid var(--line);
  padding: 2rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
aside nav {
  display: grid;
  gap: 0.35rem;
}
aside nav button {
  background: transparent;
  color: #aaa;
  border: 0;
  text-align: left;
  padding: 0.8rem;
  border-radius: 6px;
  cursor: pointer;
}
aside nav button.active,
aside nav button:hover {
  background: #1a1b1f;
  color: white;
}
aside > a {
  margin-top: auto;
  color: var(--gold);
  font-size: 0.8rem;
  text-decoration: none;
}
.editor-main {
  padding: 3rem;
  max-width: 1200px;
  width: 100%;
}
.editor-main header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.editor-main h1 {
  font-size: 3rem;
  margin: 0.5rem 0;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}
.stat-row article,
.editor-card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 1.5rem;
}
.stat-row span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}
.stat-row strong {
  display: block;
  font:
    400 2rem Georgia,
    serif;
  margin-top: 0.8rem;
}
.editor-card {
  margin: 1rem 0;
}
.editor-card textarea {
  min-height: 100px;
  resize: vertical;
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.quick-grid button {
  background: #202126;
  color: white;
  border: 1px solid #333;
}
.notice.saved {
  color: #66d28f;
}
@media (max-width: 780px) {
  .login-shell,
  .dashboard {
    grid-template-columns: 1fr;
  }
  .login-brand {
    min-height: 230px;
  }
  .dashboard aside {
    display: none;
  }
  .editor-main {
    padding: 1.3rem;
  }
  .stat-row,
  .quick-grid {
    grid-template-columns: 1fr 1fr;
  }
  .editor-main header {
    align-items: flex-start;
  }
  .editor-main h1 {
    font-size: 2.2rem;
  }
}
