:root {
  color-scheme: dark;
  --bg: #070504;
  --bg-2: #100906;
  --panel: #17100c;
  --panel-2: #21150e;
  --line: rgba(244, 139, 64, 0.28);
  --text: #fff7ee;
  --muted: #c5aa96;
  --accent: #f28b32;
  --accent-2: #ffd099;
  --brand-primary: #f28b32;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.58);
}

html {
  background: #050403;
  accent-color: var(--brand-primary);
}

body,
body.has-hero-image {
  background:
    radial-gradient(circle at 12% -4%, rgba(242, 139, 50, 0.2), transparent 30rem),
    radial-gradient(circle at 92% 16%, rgba(255, 208, 153, 0.08), transparent 28rem),
    linear-gradient(145deg, #050403 0%, #100906 48%, #020202 100%);
  background-attachment: fixed;
}

body::before {
  background:
    radial-gradient(circle at 18% 12%, rgba(242, 139, 50, 0.1), transparent 22rem),
    repeating-radial-gradient(
      ellipse at 50% -10%,
      rgba(255, 208, 153, 0.08) 0 1px,
      transparent 2px 36px
    ),
    linear-gradient(120deg, transparent 0 38%, rgba(242, 139, 50, 0.09) 48%, transparent 60%);
  opacity: 0.82;
}

body::after {
  content: "";
  position: fixed;
  right: -7rem;
  bottom: -9rem;
  z-index: -1;
  width: min(44rem, 72vw);
  aspect-ratio: 1;
  pointer-events: none;
  background: url("/assets/mia-rose-app-mark.png") center / contain no-repeat;
  filter: drop-shadow(0 0 2rem rgba(242, 139, 50, 0.24));
  opacity: 0.055;
}

.topbar {
  border-bottom-color: rgba(242, 139, 50, 0.24);
  background:
    linear-gradient(180deg, rgba(18, 11, 7, 0.96), rgba(8, 6, 5, 0.9)),
    rgba(8, 6, 5, 0.92);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(18px) saturate(125%);
}

.brand-logo,
.topbar img[alt] {
  filter:
    drop-shadow(0 0 0.55rem rgba(242, 139, 50, 0.38))
    drop-shadow(0 0 1.5rem rgba(242, 139, 50, 0.14));
}

.brand-title,
h1,
h2 {
  text-wrap: balance;
}

.brand-title {
  color: #fff4e7;
  letter-spacing: 0.015em;
  text-shadow: 0 0 1.1rem rgba(242, 139, 50, 0.24);
}

.card,
.panel,
.tool-card,
.modal-card,
.dialog-card,
.table-wrap {
  border-color: rgba(242, 139, 50, 0.2);
  background:
    linear-gradient(145deg, rgba(33, 21, 14, 0.94), rgba(12, 8, 6, 0.94));
  box-shadow: var(--shadow);
}

button,
.button,
.btn {
  border-color: rgba(242, 139, 50, 0.34);
}

button:hover,
.button:hover,
.btn:hover {
  border-color: rgba(255, 208, 153, 0.62);
  box-shadow: 0 10px 32px rgba(242, 139, 50, 0.14);
}

input,
textarea,
select {
  border-color: rgba(242, 139, 50, 0.24);
  background-color: rgba(8, 6, 5, 0.82);
  color: var(--text);
}

input:focus,
textarea:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: 2px solid rgba(255, 208, 153, 0.9);
  outline-offset: 2px;
}

::selection {
  background: rgba(242, 139, 50, 0.36);
  color: #fffaf5;
}

@media (prefers-reduced-motion: reduce) {
  body::before {
    animation: none !important;
  }
}
