:root {
  color-scheme: dark;
  --ink: #101716;
  --ink-soft: #17201d;
  --paper: #eff1e8;
  --paper-dim: #b7c0b5;
  --muted: #8c9a8d;
  --line: #334139;
  --acid: #b6f36a;
  --acid-dark: #7eaa45;
  --orange: #e58b5d;
  --mono: "DM Mono", "Courier New", monospace;
  --sans: "DM Sans", Arial, sans-serif;
  --display: "Space Grotesk", "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--ink); color: var(--paper); font: 15px/1.65 var(--sans); }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.site-header { height: 82px; padding-inline: max(32px, calc((100% - 1160px) / 2)); display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(183, 192, 181, .12); }
.brand { display: inline-flex; align-items: center; gap: 13px; }
.brand-mark { width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid var(--acid); color: var(--paper); font: 700 19px var(--display); }
.brand-mark span, .accent { color: var(--acid); }
.brand-label, .header-link, .eyebrow, .site-footer { font-family: var(--mono); letter-spacing: .08em; }
.brand-label { font-size: 10px; font-weight: 500; }
.brand-slash { color: var(--acid); }
.header-link { color: var(--paper-dim); font-size: 11px; }
.header-link:hover, .site-footer a:hover { color: var(--acid); }
.admin-shell { width: min(850px, calc(100% - 48px)); min-height: calc(100vh - 154px); margin-inline: auto; padding-block: 76px 100px; }
.eyebrow { margin: 0 0 22px; color: var(--muted); font-size: 10px; font-weight: 500; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 10px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 13px rgba(182, 243, 106, .55); }
h1 { margin: 0; font: 600 clamp(48px, 7vw, 66px)/.99 var(--display); letter-spacing: -.075em; }
h1 > span { color: var(--acid); }
.admin-description { margin: 19px 0 29px; color: var(--muted); font-size: 14px; }
.login-panel { width: min(470px, 100%); margin: 20px auto; }
.login-form, .profile-form { display: grid; gap: 19px; }
.login-form label, .profile-form label { display: grid; gap: 8px; color: var(--paper-dim); font-size: 11px; font-weight: 600; }
.login-form input, .profile-form input, .profile-form textarea { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 0; outline: none; background: #141d19; color: var(--paper); font-size: 13px; }
.login-form input:focus, .profile-form input:focus, .profile-form textarea:focus { border-color: var(--acid-dark); }
.button { min-height: 48px; display: inline-flex; justify-content: center; align-items: center; gap: 15px; padding: 0 20px; border: 1px solid transparent; cursor: pointer; font-size: 12px; font-weight: 700; transition: background .2s, color .2s, border-color .2s; }
.button-primary { background: var(--acid); color: var(--ink); }
.button-primary:hover { background: #d0ff93; }
.button-outline { border-color: var(--line); background: transparent; color: var(--paper); }
.button-outline:hover { border-color: var(--acid); color: var(--acid); }
.form-message { margin: 0; color: var(--acid); font-size: 12px; }
.form-message.message-error { color: #ff9a83; }
.editor-heading { display: flex; justify-content: space-between; align-items: center; gap: 22px; margin-bottom: 43px; }
.editor-heading .admin-description { margin-bottom: 0; }
.editor-heading > .button { flex: 0 0 auto; }
.profile-form fieldset { min-width: 0; margin: 0; padding: 25px; border: 1px solid var(--line); }
.profile-form legend { padding-inline: 8px; color: var(--acid); font: 500 15px var(--display); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.profile-form .field-wide { grid-column: 1 / -1; }
.profile-form textarea { min-height: unset; resize: vertical; line-height: 1.6; }
.profile-form .json-field { color: #d5e0d1; font: 11px/1.65 var(--mono); tab-size: 2; }
.field-help { margin: -4px 0 16px; color: var(--muted); font-size: 12px; }
.editor-actions { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.editor-actions .form-message { max-width: 500px; }
.site-footer { min-height: 72px; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-inline: max(32px, calc((100% - 1160px) / 2)); border-top: 1px solid rgba(183, 192, 181, .12); color: var(--muted); font-size: 8px; }
.site-footer a { font: 10px var(--sans); letter-spacing: 0; }

@media (max-width: 760px) {
  .site-header { height: 70px; padding-inline: 20px; }
  .brand-label { font-size: 8px; }
  .admin-shell { width: min(100% - 40px, 560px); padding-block: 55px 72px; }
  .profile-form fieldset { padding: 19px 15px; }
  .form-grid { grid-template-columns: 1fr; }
  .profile-form .field-wide { grid-column: auto; }
  .editor-heading { align-items: flex-start; flex-direction: column; }
  .site-footer { min-height: 80px; align-items: flex-start; justify-content: center; flex-direction: column; gap: 8px; padding: 17px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
