.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 32px 24px 96px;
  position: relative;
  z-index: 1;
}

.page > main {
  flex: 1 0 auto;
}

.page-background {
  position: fixed;
  inset: 0;
  overflow: clip;
  pointer-events: none;
  background: radial-gradient(circle at 20% 0%, #e6eefc 0%, #f5f7fb 45%, #eff3f9 100%);
  z-index: 0;
}

.page-background::before,
.page-background::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(31, 58, 101, 0.08);
  filter: blur(0);
}

.page-background::before {
  width: 420px;
  height: 420px;
  top: -180px;
  right: -140px;
}

.page-background::after {
  width: 520px;
  height: 520px;
  bottom: -260px;
  left: -220px;
  background: rgba(31, 58, 101, 0.06);
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 28px;
  position: relative;
  z-index: 20;
}

.hero h1 {
  font-family: "Iowan Old Style", "Georgia", "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 8px 0 6px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(19, 32, 67, 0.16);
}

.hero-subtitle {
  line-height: 1.6;
}

.hero-subtitle {
  margin: 0;
  color: var(--ink-muted);
  max-width: 540px;
  font-size: 1.05rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--accent);
  margin: 0;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 280px;
  justify-content: flex-end;
  position: relative;
  z-index: 21;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  align-items: start;
  align-content: start;
  position: relative;
  z-index: 1;
}

.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  transform: none;
  width: 100%;
  padding: 14px 20px 16px;
  border-top: 1px solid rgba(31, 58, 101, 0.16);
  background: rgba(245, 247, 251, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.08);
  color: rgba(21, 26, 39, 0.82);
  font-size: 0.92rem;
  line-height: 1.5;
  z-index: 30;
  text-align: center;
}

.site-footer-copy {
  margin: 0;
  font-weight: 600;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 16px 40px var(--shadow);
  padding: 22px;
  backdrop-filter: blur(4px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(17, 26, 44, 0.22);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.card-focus {
  grid-column: span 8;
}

.card-update {
  grid-column: span 4;
}

.card-activity {
  grid-column: span 12;
}

.card-metrics {
  grid-column: span 12;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  grid-column: 1 / -1;
  width: min(1480px, 100%);
  margin: 0 auto;
  min-width: 0;
}

@media (max-width: 1024px) {
  .card-focus,
  .card-update,
  .card-activity {
    grid-column: span 12;
  }

  .panel-grid {
    grid-template-columns: 1fr;
  }
}

.panel-todo .card-focus {
  grid-column: span 12;
}

@media (max-width: 1280px) {
  .page {
    padding: 24px 18px 36px;
  }

  .hero {
    gap: 18px;
    margin-bottom: 22px;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  }

  .hero-subtitle {
    font-size: 0.98rem;
    max-width: 100%;
  }

  .hero-meta {
    min-width: 0;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px;
  }

  .grid,
  .panel-grid {
    gap: 16px;
  }

  .card {
    padding: 18px;
  }
}

@media (max-width: 1100px) {
  .hero {
    align-items: flex-start;
  }

  .hero-meta {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .page {
    padding: 24px 16px 92px;
  }

  .card-header {
    flex-direction: column;
    align-items: stretch;
  }

  .site-footer {
    padding: 12px 14px 14px;
    font-size: 0.82rem;
  }
}
