:root {
  color-scheme: light;
  --bg: #f7f7f2;
  --paper: #fffefa;
  --ink: #1c1c1a;
  --muted: #696961;
  --line: #dedbd0;
  --accent: #176a5f;
  --accent-2: #9d4f2d;
  --accent-3: #2f5f9b;
  --soft: #e9efe9;
  --shadow: 0 18px 50px rgba(34, 31, 25, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic",
    "Noto Sans JP", system-ui, sans-serif;
  line-height: 1.7;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(23, 106, 95, 0.12), transparent 42%),
    linear-gradient(320deg, rgba(157, 79, 45, 0.12), transparent 40%),
    var(--paper);
}

.header-inner,
main,
footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: end;
  min-height: 420px;
  padding: 72px 0 48px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  max-width: 760px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 9vw, 104px);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: 0;
}

.lead {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
}

.status-panel {
  display: grid;
  gap: 8px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.86);
  box-shadow: var(--shadow);
}

.status-label,
#last-updated {
  color: var(--muted);
  font-size: 13px;
}

#current-phase {
  color: var(--accent);
  font-size: 26px;
  line-height: 1.2;
}

main {
  padding: 40px 0 64px;
}

.overview {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 32px;
  align-items: start;
  padding: 28px 0 44px;
}

.overview p {
  max-width: 720px;
  color: var(--muted);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.metric,
.decision-card,
.task,
.share-card,
.deliverable-card,
.notes,
.log-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.metric {
  min-height: 118px;
  padding: 18px;
}

.metric strong {
  display: block;
  font-size: 34px;
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.section-band {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.decision-grid,
.share-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.decision-card,
.share-card {
  padding: 22px;
}

.decision-card p,
.share-card p,
.deliverable-card p,
.task p,
.log-item p {
  color: var(--muted);
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin-bottom: 14px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.timeline {
  position: relative;
  display: grid;
  gap: 14px;
}

.phase {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 140px;
  gap: 18px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.phase:last-child {
  border-bottom: 0;
}

.phase-number {
  color: var(--accent-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  line-height: 1;
}

.phase-status {
  justify-self: end;
  min-width: 112px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}

.phase-status.active {
  border-color: rgba(23, 106, 95, 0.45);
  background: var(--soft);
  color: var(--accent);
}

.phase-status.pending {
  color: var(--muted);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
}

.task-list,
.log-list {
  display: grid;
  gap: 12px;
}

.task {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px;
  gap: 18px;
  align-items: center;
  padding: 18px;
}

.progress {
  overflow: hidden;
  height: 9px;
  border-radius: 999px;
  background: #e8e4d9;
}

.progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
}

.task-meta {
  color: var(--muted);
  font-size: 13px;
}

.notes {
  align-self: start;
  padding: 22px;
}

.notes ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.share-card.recommended {
  border-color: rgba(23, 106, 95, 0.55);
  background: #fbfffb;
}

.deliverable-list {
  display: grid;
  gap: 12px;
}

.deliverable-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 18px;
  align-items: center;
  padding: 18px;
}

.deliverable-link {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  text-decoration-color: rgba(23, 106, 95, 0.35);
  text-underline-offset: 4px;
}

.deliverable-link:hover {
  color: var(--accent);
}

.deliverable-meta {
  justify-self: end;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.log-item {
  padding: 18px;
}

.log-item time {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 800;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 860px) {
  .header-inner,
  .overview,
  .two-column {
    grid-template-columns: 1fr;
  }

  .header-inner {
    min-height: auto;
    padding-top: 52px;
  }

  .decision-grid,
  .share-grid {
    grid-template-columns: 1fr;
  }

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

  .phase {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .phase-status {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .header-inner,
  main,
  footer {
    width: min(100% - 28px, 1120px);
  }

  h1 {
    font-size: 48px;
  }

  .metrics,
  .deliverable-card,
  .task {
    grid-template-columns: 1fr;
  }

  .deliverable-meta {
    justify-self: start;
  }

  .section-heading,
  footer {
    display: block;
  }
}
