:root {
  --paper: #faf9f5;
  --ink: #20221e;
  --muted: #74756e;
  --green: #174b39;
  --green-soft: #e8ede8;
  --line: #deded7;
  --panel: rgba(255, 255, 255, 0.34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.topbar {
  position: fixed;
  z-index: 3;
  top: 0;
  left: 0;
  right: 0;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  border-bottom: 1px solid var(--line);
  background: rgba(250, 249, 245, 0.95);
  backdrop-filter: blur(12px);
}

.brand, h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.brand { font-size: 29px; letter-spacing: -1.4px; color: var(--ink); text-decoration: none; }
.project-status { display: flex; align-items: center; gap: 10px; color: var(--green); font-family: Georgia, "Times New Roman", serif; font-size: 16px; }
.project-status > span:first-child { width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.chevron { margin-left: 2px; font-family: sans-serif; font-size: 19px; transform: translateY(-2px); }

.sidebar {
  position: fixed;
  z-index: 2;
  top: 74px;
  bottom: 0;
  width: 266px;
  padding: 30px 12px;
  border-right: 1px solid var(--line);
  background: rgba(250, 249, 245, 0.76);
}
.navigation { display: grid; gap: 6px; }
.nav-item {
  height: 53px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 17px;
  color: #4b4e48;
  border-radius: 5px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}
.nav-item:hover, .nav-item.active { background: var(--green-soft); color: #183f31; }
.icon { width: 20px; text-align: center; font-family: Arial, sans-serif; font-size: 24px; line-height: 1; }

.content { margin-left: 266px; padding: 107px 7.25vw 70px; max-width: 1700px; }
.view { display: none; max-width: 1224px; }
.view.active { display: block; animation: appear 180ms ease-out; }
@keyframes appear { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.eyebrow { margin: 0 0 14px; color: #51544e; font-family: Georgia, "Times New Roman", serif; font-size: 12px; font-weight: 700; letter-spacing: 1.15px; }
h1 { margin: 0; font-size: clamp(48px, 4.2vw, 64px); letter-spacing: -2.5px; line-height: 1.04; }
.intro { max-width: 690px; margin: 9px 0 28px; color: var(--muted); font-family: Georgia, "Times New Roman", serif; font-size: 22px; line-height: 1.28; }

.stage-card { min-height: 267px; border: 1px solid var(--line); background: var(--panel); }
.stage-main { padding: 28px 32px 29px; }
.stage-main h2 { margin: 0; font-size: clamp(34px, 3.6vw, 51px); letter-spacing: -1.9px; line-height: 1.08; }
.stage-main > p:not(.eyebrow) { margin: 13px 0 23px; font-family: Georgia, "Times New Roman", serif; font-size: 20px; }
.primary-button {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 16px 27px;
  border-radius: 4px;
  background: var(--green);
  color: #fffefa;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.12);
}
.primary-button span { font-size: 26px; font-family: Arial, sans-serif; line-height: 12px; }
.primary-button.disabled { opacity: .56; cursor: default; }

.project-plan { margin-top: 33px; }
.timeline { display: grid; grid-template-columns: repeat(7, minmax(80px, 1fr)); gap: 0; }
.step { position: relative; min-width: 0; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 21px; left: 41px; right: -2px; height: 1px; background: #c5ccc5; }
.step.complete:not(:last-child)::after, .step.current:not(:last-child)::after { background: var(--green); }
.step-dot {
  position: relative;
  z-index: 1;
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e1e2e1;
  color: #5d5f5a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
}
.step.complete .step-dot { background: var(--green); color: white; font-family: Arial, sans-serif; font-size: 21px; }
.step.current .step-dot { background: var(--green); outline: 1px solid var(--green); outline-offset: 3px; color: white; }
.step-name { margin-top: 16px; font-family: Georgia, "Times New Roman", serif; font-size: 17px; }
.step-label { margin-top: 4px; color: var(--muted); font-family: Georgia, "Times New Roman", serif; font-size: 14px; }
.step.complete .step-label, .step.current .step-name, .step.current .step-label { color: var(--green); }

.next-actions { margin-top: 54px; max-width: 830px; }
.task-row, .detail-row { display: flex; align-items: center; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.task-checkbox { width: 27px; height: 27px; flex: 0 0 auto; border: 1px solid #bfc2bc; border-radius: 4px; }
.task-text { font-family: Georgia, "Times New Roman", serif; font-size: 18px; line-height: 1.3; }

.detail-list { max-width: 850px; border-top: 1px solid var(--line); }
.detail-row { padding: 19px 0; justify-content: space-between; }
.detail-row .task-text { max-width: 700px; }
.tag, .resource-note { color: var(--muted); font-size: 14px; }
.tag { padding: 6px 9px; border: 1px solid var(--line); border-radius: 99px; white-space: nowrap; }
.resource-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 900px; }
.resource-card { min-height: 148px; padding: 24px; border: 1px solid var(--line); background: var(--panel); }
.resource-card h2 { margin: 0 0 11px; font-size: 27px; letter-spacing: -1px; }
.resource-card p { margin: 0; color: var(--muted); font-family: Georgia, "Times New Roman", serif; font-size: 16px; line-height: 1.35; }
.resource-link { display: inline-block; margin-top: 19px; color: var(--green); font-family: Georgia, "Times New Roman", serif; text-decoration: underline; text-underline-offset: 3px; }
.resource-link.disabled { color: var(--muted); text-decoration: none; cursor: default; }

@media (max-width: 850px) {
  .topbar { padding: 0 22px; }
  .sidebar { position: fixed; top: 74px; width: 100%; height: 61px; padding: 7px 12px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .navigation { display: flex; width: max-content; gap: 4px; }
  .nav-item { height: 43px; padding: 0 12px; gap: 8px; font-size: 15px; }
  .icon { font-size: 19px; width: 17px; }
  .content { margin-left: 0; padding: 164px 22px 55px; }
  .timeline { grid-template-columns: repeat(7, 112px); overflow-x: auto; padding: 4px; }
  .resource-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .topbar { height: 65px; padding: 0 18px; }
  .brand { font-size: 26px; }
  .project-status { gap: 7px; font-size: 14px; }
  .project-status > span:first-child { width: 8px; height: 8px; }
  .chevron { display: none; }

  .sidebar { top: 65px; height: 58px; padding: 7px 10px; }
  .nav-item { height: 40px; padding: 0 11px; gap: 6px; font-size: 14px; }
  .icon { width: 16px; font-size: 17px; }
  .content { padding: 151px 18px 45px; }
  .eyebrow { margin-bottom: 11px; font-size: 11px; }
  h1 { font-size: 45px; letter-spacing: -2px; }
  .intro { margin: 8px 0 24px; font-size: 19px; line-height: 1.32; }

  .stage-card { min-height: 0; }
  .stage-main { padding: 23px 20px 21px; }
  .stage-main h2 { font-size: 36px; letter-spacing: -1.35px; }
  .stage-main > p:not(.eyebrow) { margin: 12px 0 21px; font-size: 18px; line-height: 1.32; }
  .primary-button { width: 100%; justify-content: center; padding: 15px 20px; font-size: 17px; }

  .project-plan { margin-top: 34px; }
  .timeline { display: block; overflow: visible; padding: 0; }
  .step { min-height: 64px; padding: 1px 0 16px 60px; }
  .step:last-child { min-height: 47px; padding-bottom: 0; }
  .step:not(:last-child)::after { top: 42px; bottom: -1px; left: 21px; right: auto; width: 1px; height: auto; }
  .step-dot { position: absolute; top: 0; left: 0; width: 43px; height: 43px; }
  .step-name { margin: 0; font-size: 17px; line-height: 1.2; }
  .step-label { margin-top: 4px; font-size: 14px; }

  .next-actions { margin-top: 43px; }
  .task-row { gap: 14px; padding: 15px 0; align-items: flex-start; }
  .task-checkbox { width: 24px; height: 24px; margin-top: 1px; }
  .task-text { font-size: 16px; }
  .detail-row { align-items: flex-start; gap: 12px; padding: 16px 0; }
  .detail-row .task-row { flex: 1; }
  .tag { margin-top: 1px; font-size: 12px; }
  .resource-card { min-height: 132px; padding: 20px; }
  .resource-card h2 { font-size: 25px; }
}


.task-row.is-complete .task-checkbox { display: grid; place-items: center; border-color: var(--green); background: var(--green); color: white; font-family: Arial, sans-serif; font-size: 16px; }
.task-row.is-complete .task-text { color: #6b7069; text-decoration: line-through; text-decoration-color: #b7beb7; }
