:root {
  --bg: #f5ecdd;
  --surface: rgba(255, 249, 240, 0.9);
  --surface-strong: #fffaf2;
  --surface-tint: rgba(209, 138, 29, 0.08);
  --ink: #183937;
  --muted: #61706d;
  --accent: #d18a1d;
  --accent-strong: #bd5225;
  --border: rgba(24, 57, 55, 0.12);
  --shadow: 0 22px 58px rgba(88, 44, 25, 0.14);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --font-serif: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Inter", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(234, 193, 110, 0.42), transparent 28%),
    radial-gradient(circle at bottom right, rgba(189, 82, 37, 0.16), transparent 25%),
    linear-gradient(135deg, #faf3e6 0%, #efe4cf 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font: inherit;
}

.dashboard-shell {
  padding: 1.25rem;
  display: grid;
  gap: 1.25rem;
}

.hero,
.section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero {
  padding: 1.25rem;
  background:
    linear-gradient(140deg, rgba(255, 249, 240, 0.94), rgba(250, 241, 226, 0.88)),
    radial-gradient(circle at top right, rgba(209, 138, 29, 0.16), transparent 38%);
}

.topbar,
.hero-grid,
.section-head,
.topbar-actions,
.hero-actions,
.action-row {
  display: flex;
  gap: 0.8rem;
}

.topbar,
.section-head {
  justify-content: space-between;
  align-items: center;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.topbar-brand img {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: rgba(209, 138, 29, 0.12);
  padding: 0.35rem;
}

.eyebrow,
.section-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-grid {
  margin-top: 1.2rem;
  align-items: stretch;
}

.hero-copy {
  flex: 1.35;
  padding: 1.2rem;
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  border: 1px solid var(--border);
}

.hero-copy h1,
.section-head h2 {
  margin: 0.4rem 0 0.7rem;
  font-family: var(--font-serif);
  line-height: 0.98;
}

.hero-copy h1 {
  font-size: clamp(2.6rem, 4vw, 4.6rem);
  max-width: 14ch;
}

.hero-text {
  max-width: 68ch;
  line-height: 1.65;
  font-size: 1.02rem;
}

.hero-panel {
  width: min(380px, 100%);
  padding: 1.15rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #194947 0%, #133735 58%, #6c1c19 100%);
  color: #f8f1e4;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-note {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.signal-list {
  margin: 0.7rem 0 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.45rem;
  line-height: 1.55;
}

.primary-button,
.ghost-button,
.meta-pill {
  border-radius: 999px;
  padding: 0.78rem 1.1rem;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.primary-button {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff9f1;
}

.ghost-button,
.meta-pill {
  background: rgba(255, 255, 255, 0.66);
  border-color: var(--border);
  color: var(--ink);
}

.is-placeholder {
  opacity: 0.65;
}

.dashboard-main {
  display: grid;
  gap: 1.25rem;
}

.section {
  padding: 1.25rem;
}

.section-head {
  margin-bottom: 1rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.project-card,
.priority-spotlight,
.context-card,
.update-card {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
}

.project-card {
  display: grid;
  gap: 0.7rem;
}

.project-card h3,
.priority-spotlight h3 {
  margin: 0;
  font-size: 1.15rem;
}

.project-meta,
.context-grid,
.updates-grid,
.priority-layout {
  display: grid;
  gap: 0.9rem;
}

.project-meta {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.meta-block {
  background: var(--surface-tint);
  border-radius: var(--radius-sm);
  padding: 0.7rem;
}

.priority-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.context-grid,
.updates-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.update-card--placeholder {
  border-style: dashed;
}

.action-row {
  flex-wrap: wrap;
}

@media (max-width: 1100px) {
  .project-grid,
  .priority-layout,
  .context-grid,
  .updates-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .hero-panel {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .topbar,
  .section-head {
    flex-direction: column;
    align-items: start;
  }

  .topbar-actions,
  .hero-actions,
  .action-row {
    flex-wrap: wrap;
  }

  .project-grid,
  .priority-layout,
  .context-grid,
  .updates-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: none;
  }
}
