:root {
  --bg: #f4efe6;
  --bg-accent: #efe4d3;
  --panel: rgba(255, 252, 246, 0.78);
  --panel-strong: #fffaf2;
  --text: #261d14;
  --muted: #6a5847;
  --line: rgba(72, 49, 28, 0.14);
  --primary: #9f3e2f;
  --primary-deep: #6b241a;
  --gold: #c48a2c;
  --shadow: 0 24px 80px rgba(62, 38, 15, 0.12);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(196, 138, 44, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(159, 62, 47, 0.15), transparent 24%),
    linear-gradient(180deg, #f8f3eb 0%, var(--bg) 55%, #efe4d6 100%);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
}

.page-shell {
  width: min(1400px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.hero {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr;
  gap: 24px;
  align-items: end;
  padding: 28px;
  background: linear-gradient(135deg, rgba(255, 248, 238, 0.95), rgba(247, 235, 220, 0.82));
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(2.4rem, 5vw, 4.7rem);
  line-height: 0.93;
  letter-spacing: -0.05em;
}

.hero__subtitle {
  margin: 16px 0 0;
  max-width: 64ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #fff8f2;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(107, 36, 26, 0.22);
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 36px rgba(107, 36, 26, 0.28);
}

.button--compact {
  padding: 10px 14px;
  font-size: 0.92rem;
  box-shadow: 0 10px 20px rgba(107, 36, 26, 0.18);
}

.button--secondary {
  background: rgba(255, 250, 242, 0.82);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
}

.dashboard {
  margin-top: 24px;
}

.summary-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.panel,
.project-card,
.empty-state {
  background: var(--panel);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.panel {
  padding: 24px;
}

.panel--summary {
  display: flex;
  flex-direction: column;
}

.panel__label,
.card-section__title,
.project-card__kicker {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 1.08;
}

.panel__subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.5;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(196, 138, 44, 0.12);
  color: var(--primary-deep);
  font-size: 0.92rem;
}

.meta-list {
  display: grid;
  gap: 14px;
  margin: 14px 0 0;
}

.panel__header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.meta-list div,
.project-meta div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.meta-list dt,
.project-meta dt {
  color: var(--muted);
}

.meta-list dd,
.project-meta dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

.project-section {
  margin-top: 28px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.55rem;
}

.section-heading span {
  min-width: 40px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(38, 29, 20, 0.08);
  text-align: center;
  font-weight: 700;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 18px;
}

.secondary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.journal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.project-card {
  padding: 22px;
}

.project-card.priority-primary {
  border-color: rgba(159, 62, 47, 0.34);
  background: linear-gradient(180deg, rgba(255, 248, 240, 0.96), rgba(255, 244, 238, 0.86));
}

.project-card__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.project-card h3 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.05;
}

.priority-pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(196, 138, 44, 0.12);
  color: var(--primary-deep);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: capitalize;
}

.project-card__goal {
  margin: 16px 0;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.5;
}

.journal-card {
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.95), rgba(249, 240, 227, 0.82));
}

.project-meta {
  display: grid;
  gap: 10px;
  padding: 16px 0;
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.card-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.card-section ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.card-section ol {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.card-section li + li {
  margin-top: 8px;
}

.card-section--progress {
  margin-top: 16px;
}

.journal-sections {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.journal-section {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.journal-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.journal-section ul,
.journal-subsection ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.journal-section li + li,
.journal-subsection li + li {
  margin-top: 8px;
}

.journal-subsection {
  margin-top: 12px;
}

.journal-subsection__title {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 700;
}

.journal-empty {
  margin: 0;
  color: var(--muted);
}

.strategy-subsection {
  margin-top: 14px;
}

.strategy-subsection__title {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 700;
}

.strategy-subsection__text {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.5;
}

.strategy-subsection .strategy-subsection {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(72, 49, 28, 0.12);
}

.empty-state {
  padding: 26px;
  color: var(--muted);
}

.status {
  min-height: 24px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 920px) {
  .hero,
  .summary-grid,
  .card-columns {
    grid-template-columns: 1fr;
  }

  .secondary-grid {
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  }

  .hero__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100vw - 20px, 1400px);
    padding-top: 16px;
  }

  .hero,
  .panel,
  .project-card {
    padding: 18px;
  }

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