@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #f4eee6;
  --bg-mesh: #efe3d4;
  --bg-card: rgba(255, 250, 243, 0.92);
  --bg-hover: #f9f1e6;
  --border: #dccdbd;
  --text: #1d1813;
  --text-muted: #6d6256;
  --accent: #ff6900;
  --accent-dim: #e65f00;
  --green: #0c8a63;
  --amber: #fcb900;
  --blue: #0693e3;
  --shadow: 0 26px 70px rgba(68, 39, 13, 0.12);
  --hero-shadow: 0 18px 46px rgba(255, 105, 0, 0.12);
}

body[data-quickpage-color-mode="dark"] {
  --bg: #171616;
  --bg-mesh: #1f1b1b;
  --bg-card: rgba(30, 29, 29, 0.96);
  --bg-hover: #333131;
  --border: #2a2929;
  --text: #ffffff;
  --text-muted: #abb8c3;
  --green: #00d084;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --hero-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 105, 0, 0.14), transparent 30%),
    radial-gradient(circle at top right, rgba(255, 201, 143, 0.24), transparent 28%),
    linear-gradient(180deg, var(--bg-mesh) 0%, var(--bg) 44%, #fbf7f1 100%);
  color: var(--text);
  font-family: "Avenir", "Avenir Next", "Nunito Sans", system-ui, -apple-system, sans-serif;
  transition: background 0.22s ease, color 0.22s ease;
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 72px;
}

.hero {
  display: grid;
  gap: 18px;
  margin-bottom: 28px;
}

.hero-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
}

h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.subtitle {
  max-width: 760px;
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
}

.shell-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 18px;
  align-items: start;
}

.panel {
  background: linear-gradient(180deg, rgba(255, 251, 246, 0.98), rgba(249, 243, 235, 0.96));
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  transition: background 0.22s ease, border-color 0.22s ease;
}

body[data-quickpage-color-mode="dark"] .panel {
  background: linear-gradient(180deg, rgba(30, 29, 29, 0.98), rgba(23, 22, 22, 0.96));
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 0;
}

.panel-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.panel-copy {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.list {
  list-style: none;
  margin: 0;
  padding: 20px;
  display: grid;
  gap: 12px;
}

.item {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.item:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 105, 0, 0.8);
  background: var(--bg-hover);
}

body[data-quickpage-color-mode="dark"] .item {
  background: rgba(51, 49, 49, 0.32);
}

body[data-quickpage-color-mode="dark"] .item:hover {
  background: rgba(51, 49, 49, 0.52);
}

.item a {
  color: var(--text);
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
}

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

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text-muted);
  font-size: 12px;
}

.meta code,
.stat code {
  background: rgba(255,255,255,0.66);
  border: 1px solid rgba(32, 24, 18, 0.08);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

body[data-quickpage-color-mode="dark"] .meta code,
body[data-quickpage-color-mode="dark"] .stat code {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.08);
}

.status {
  padding: 20px;
  color: var(--text-muted);
}

.stats {
  padding: 18px 20px 20px;
  display: grid;
  gap: 12px;
}

.stat {
  padding: 14px 14px 13px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255,255,255,0.42);
}

body[data-quickpage-color-mode="dark"] .stat {
  background: rgba(255,255,255,0.02);
}

.stat-label {
  margin: 0 0 6px;
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-value {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
}

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

.theme-toggle {
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.72);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: var(--hero-shadow);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 105, 0, 0.7);
  background: #fffaf3;
}

body[data-quickpage-color-mode="dark"] .theme-toggle {
  background: rgba(30,29,29,0.9);
}

@media (max-width: 900px) {
  .shell-grid {
    grid-template-columns: 1fr;
  }

  main {
    width: min(100% - 24px, 1120px);
    padding-top: 28px;
  }

  .hero-head {
    flex-direction: column;
  }
}
