:root {
  --ink: #f8efe1;
  --muted: rgba(248, 239, 225, 0.72);
  --charcoal: #10100f;
  --coal: #191614;
  --smoke: #2b2925;
  --ember: #e35d1f;
  --ember-hot: #ff8a32;
  --brass: #c39a59;
  --herb: #8aa06a;
  --line: rgba(248, 239, 225, 0.16);
  --panel: rgba(248, 239, 225, 0.075);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--charcoal);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--ember-hot);
  outline-offset: 4px;
}

.topbar {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(16, 16, 15, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  text-decoration: none;
}

.brand span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--ember), var(--brass));
  color: #170c07;
  font-size: 0.82rem;
  box-shadow: 0 16px 42px rgba(227, 93, 31, 0.28);
}

.topbar nav,
.sidebar nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-weight: 750;
}

.topbar nav a,
.sidebar nav a {
  text-decoration: none;
}

.topbar nav a:hover,
.sidebar nav a:hover,
.sidebar nav .active {
  color: var(--ember-hot);
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 154px clamp(22px, 6vw, 76px) 90px;
}

.hero img,
.heroOverlay {
  position: absolute;
  inset: 0;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.heroOverlay {
  background:
    linear-gradient(90deg, rgba(16, 16, 15, 0.98), rgba(16, 16, 15, 0.78) 38%, rgba(16, 16, 15, 0.22) 82%),
    linear-gradient(0deg, rgba(16, 16, 15, 0.9), rgba(16, 16, 15, 0.16));
}

.heroContent {
  position: relative;
  z-index: 2;
  max-width: 860px;
}

.kicker {
  margin: 0;
  color: var(--ember-hot);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 12px 0 22px;
  font-size: clamp(3.2rem, 8vw, 7.8rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.4vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.24rem;
}

.heroContent p:not(.kicker),
.sectionIntro p,
.metric p,
.panel,
.footer {
  color: var(--muted);
}

.heroContent p:not(.kicker) {
  max-width: 680px;
  margin: 0;
  font-size: clamp(1.08rem, 2vw, 1.34rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
}

.primary {
  background: var(--ember);
  color: #170c07;
  box-shadow: 0 18px 44px rgba(227, 93, 31, 0.26);
}

.primary:hover {
  background: var(--ember-hot);
}

.secondary {
  background: rgba(248, 239, 225, 0.08);
  border-color: var(--line);
  color: var(--ink);
}

.section {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(66px, 9vw, 118px) clamp(22px, 6vw, 76px);
}

.sectionIntro {
  max-width: 760px;
}

.sectionIntro h2 {
  margin-top: 12px;
}

.metricGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.metric,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(248, 239, 225, 0.08), rgba(248, 239, 225, 0.035));
  box-shadow: var(--shadow);
}

.metric {
  min-height: 230px;
  padding: 24px;
}

.metric strong {
  display: block;
  margin-bottom: 44px;
  color: var(--brass);
  font-size: 2.35rem;
  line-height: 1;
}

.metric p {
  margin-bottom: 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: clamp(34px, 6vw, 84px);
  border-top: 1px solid var(--line);
}

.panel {
  padding: clamp(24px, 4vw, 38px);
}

.panel ul,
.activityList {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.panel li,
.activityList li {
  position: relative;
  padding-left: 26px;
}

.panel li::before,
.activityList li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--ember);
}

.appShell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px;
  border-right: 1px solid var(--line);
  background: #0c0b0a;
}

.sidebar nav {
  flex-direction: column;
  align-items: flex-start;
  margin-top: 48px;
}

.dashboard {
  padding: clamp(24px, 4vw, 56px);
}

.dashboardHeader {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.dashboardHeader h1 {
  margin-bottom: 0;
  font-size: clamp(2.6rem, 6vw, 5.8rem);
}

.dashboardGrid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.detailList {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
}

.detailList div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.detailList dt {
  color: var(--brass);
  font-weight: 900;
}

.detailList dd {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
}

.notFound {
  min-height: 100vh;
  display: grid;
  place-content: center;
  padding: 32px;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(22px, 6vw, 76px);
  border-top: 1px solid var(--line);
  background: #0c0b0a;
}

.footer a {
  font-weight: 850;
  text-decoration: none;
}

@media (max-width: 900px) {
  .topbar {
    position: sticky;
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    white-space: nowrap;
  }

  .hero {
    min-height: 88vh;
    padding-top: 96px;
  }

  .heroOverlay {
    background: linear-gradient(0deg, rgba(16, 16, 15, 0.98), rgba(16, 16, 15, 0.74) 58%, rgba(16, 16, 15, 0.34));
  }

  .metricGrid,
  .split,
  .appShell,
  .dashboardGrid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .dashboardHeader {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: clamp(2.6rem, 15vw, 4.6rem);
  }

  .actions,
  .button {
    width: 100%;
  }

  .detailList div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
