:root {
  --forest: #12382a;
  --leaf: #2f7d4f;
  --mint: #dff2e6;
  --sage: #8fb59b;
  --lime: #cde86b;
  --paper: #f7f8f3;
  --ink: #17211c;
  --muted: #5d6b62;
  --line: #d7dfd4;
  --white: #ffffff;
  --danger: #9b2d20;
  --shadow: 0 18px 45px rgba(18, 56, 42, 0.13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font: inherit; }

.editor-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px clamp(14px, 3vw, 32px);
  color: var(--forest);
  background: #eef7ef;
  border-bottom: 1px solid var(--line);
}

.editor-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--forest);
  background: var(--white);
  font-weight: 750;
  cursor: pointer;
  text-decoration: none;
}

.editor-button.primary, .editor-button.add-button {
  color: var(--white);
  background: var(--forest);
  border-color: var(--forest);
}

.editor-button.danger { color: var(--danger); }
.file-button { cursor: pointer; }
#importData { display: none; }
.editor-status { color: var(--muted); font-size: 0.9rem; }
body.editing .editor-status { color: var(--forest); font-weight: 800; }

.site-header {
  position: sticky;
  top: 57px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(247, 248, 243, 0.88);
  border-bottom: 1px solid rgba(215, 223, 212, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--white);
  background: var(--forest);
  border-radius: 8px;
  font-size: 0.8rem;
}
.main-nav { display: flex; align-items: center; gap: clamp(10px, 2.2vw, 26px); color: var(--muted); font-size: 0.95rem; }
.main-nav a { text-decoration: none; }
.main-nav a:hover, .main-nav a.is-active { color: var(--forest); }

.hero { position: relative; min-height: 82vh; display: grid; align-items: end; overflow: hidden; background: var(--forest); }
.hero-media {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(18, 56, 42, 0.9), rgba(18, 56, 42, 0.5) 48%, rgba(18, 56, 42, 0.18)), url("https://images.unsplash.com/photo-1441974231531-c6227db76b6e?auto=format&fit=crop&w=1800&q=82");
  background-size: cover;
  background-position: center;
  transform: scale(1.01);
}
.hero-content { position: relative; width: min(900px, calc(100% - 36px)); margin: 0 auto; padding: 112px 0 96px; color: var(--white); }
.eyebrow { margin: 0 0 12px; color: var(--lime); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { max-width: 850px; margin: 0; font-size: clamp(2.45rem, 7vw, 5.6rem); line-height: 0.98; letter-spacing: 0; }
.hero-copy { max-width: 660px; margin: 24px 0 0; color: rgba(255, 255, 255, 0.88); font-size: clamp(1.04rem, 2vw, 1.28rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border: 1px solid transparent; border-radius: 8px; font-weight: 750; text-decoration: none; }
.button.primary { color: var(--forest); background: var(--lime); }
.button.secondary { color: var(--white); border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.08); }

.intro-band, .section { padding: clamp(58px, 8vw, 104px) clamp(18px, 4vw, 56px); }
.intro-grid, .project-grid, .timeline, .learning-grid, .split-section, .evidence-table { width: min(1160px, 100%); margin: 0 auto; }
.intro-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.intro-grid article, .project-card, .product-list article, .learning-grid article, .timeline-item { background: var(--white); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.intro-grid article { padding: 26px; }
.stat { color: var(--leaf); font-weight: 900; }
.intro-grid h2, .project-card h3, .timeline-item h3, .product-list h3, .learning-grid h3 { margin: 8px 0 8px; line-height: 1.18; }
.intro-grid p, .project-card p, .timeline-item p, .product-list p, .learning-grid p, .section-heading p { margin: 0; color: var(--muted); }
.section-light { background: var(--white); }
.section-heading { width: min(820px, 100%); margin: 0 auto 34px; text-align: center; }
.section-heading.align-left { margin-left: 0; text-align: left; }
.section-heading.compact { margin-bottom: 30px; }
.section-heading h2 { margin: 0 0 12px; color: var(--forest); font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.05; }
.section-tools { width: min(1160px, 100%); margin: -12px auto 22px; display: none; justify-content: flex-end; }
.left-tools { margin: 22px 0 0; justify-content: flex-start; }
body.editing .section-tools { display: flex; }

.project-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr; gap: 18px; }
.project-card { position: relative; min-height: 260px; padding: 26px; }
.project-card.featured { display: grid; grid-template-columns: 1fr 0.75fr; gap: 20px; background: var(--forest); color: var(--white); }
.project-card.featured p, .project-card.featured .label { color: rgba(255, 255, 255, 0.82); }
.label { margin: 0 0 10px; color: var(--leaf); font-size: 0.78rem; font-weight: 800; text-transform: uppercase; }
.check-list { margin: 0; padding-left: 19px; color: rgba(255, 255, 255, 0.9); }
.project-card:not(.featured) .check-list { color: var(--muted); }
.timeline-section { background: var(--mint); }
.timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.timeline-item { position: relative; padding: 24px; }
.timeline-item span { display: grid; width: 36px; height: 36px; place-items: center; color: var(--forest); background: var(--lime); border-radius: 50%; font-weight: 900; }
.split-section { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 5vw, 70px); align-items: start; }
.product-list { display: grid; gap: 14px; }
.product-list article, .learning-grid article { position: relative; padding: 22px; }
.learning-section { color: var(--white); background: var(--forest); }
.learning-section .section-heading h2, .learning-section .section-heading p { color: var(--white); }
.learning-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.learning-grid article { color: var(--ink); box-shadow: none; }
.evidence-section { background: var(--paper); }
.evidence-table { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--white); box-shadow: var(--shadow); }
.table-row { position: relative; display: grid; grid-template-columns: 1fr 1.4fr 110px; gap: 18px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.table-row:last-child { border-bottom: 0; }
.table-head { color: var(--white); background: var(--forest); font-weight: 800; }
.status { display: inline-flex; align-items: center; justify-content: center; width: fit-content; min-width: 70px; padding: 4px 10px; border-radius: 999px; color: var(--forest); background: var(--mint); font-weight: 800; }
.site-footer { display: flex; justify-content: space-between; gap: 18px; padding: 28px clamp(18px, 4vw, 56px); color: rgba(255, 255, 255, 0.78); background: #0c241b; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--lime); text-decoration: none; }

[contenteditable="true"] { outline: 2px dashed rgba(205, 232, 107, 0.78); outline-offset: 4px; border-radius: 6px; cursor: text; }
.section-light [contenteditable="true"], .intro-band [contenteditable="true"], .evidence-section [contenteditable="true"] { outline-color: rgba(47, 125, 79, 0.45); }
.remove-item { display: none; position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border: 0; border-radius: 50%; color: var(--white); background: var(--danger); cursor: pointer; font-size: 1.1rem; line-height: 1; }
body.editing .remove-item { display: grid; place-items: center; }
.table-head .remove-item { display: none; }

@media (max-width: 920px) {
  .site-header { top: 105px; align-items: flex-start; flex-direction: column; }
  .main-nav { width: 100%; overflow-x: auto; padding-bottom: 4px; }
  .intro-grid, .project-grid, .timeline, .learning-grid, .split-section { grid-template-columns: 1fr; }
  .project-card.featured { grid-template-columns: 1fr; }
  .hero { min-height: 760px; }
}

@media (max-width: 640px) {
  .editor-bar { position: static; }
  .site-header { top: 0; }
  .hero-content { width: min(100% - 28px, 900px); padding: 90px 0 78px; }
  .hero-actions, .site-footer { flex-direction: column; }
  .button { width: 100%; }
  .table-row { grid-template-columns: 1fr; gap: 8px; }
}
