.home {
  --forest: #0d3928;
  --cream: #faf7f0;
  --sage: #e9eee2;
  --line: #d5dbd0;
  background: var(--cream);
  color: #12251c;
}
.home-shell { width: min(100% - 2 * clamp(16px, 3.1vw, 52px), 1500px); margin-inline: auto; }
.home-header { border: 0; }
.home-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px 26px; padding-block: 16px; }
.home-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--forest); font: 700 clamp(1.65rem,3vw,2.65rem)/1 Georgia,serif; text-decoration: none; white-space: nowrap; }
.home-brand img { width: clamp(36px,5vw,58px); height: auto; }
.home-links { justify-content: center; gap: 12px clamp(12px,2vw,30px); }
.home-links summary { list-style: none; }
.home-links summary::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 8px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.home-links details div { max-width: min(290px,calc(100vw - 32px)); background: var(--cream); }
.home-links details:last-child div { left: auto; right: 0; }
.home-actions { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.home-button { display: inline-block; border: 1px solid var(--forest); border-radius: 9px; padding: 10px 17px; color: white; background: var(--forest); text-decoration: none; font-weight: 700; white-space: nowrap; }
.home-button:hover { background: #235b42; }
.home-button.secondary { color: var(--forest); background: var(--cream); }
.home-button.secondary:hover { background: var(--sage); }
.home-main { padding: 0; }
.home-hero { background: radial-gradient(ellipse 90% 42% at 70% 125%,#dfe8d5 99%,transparent 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.45fr); gap: clamp(20px,3.6vw,58px); align-items: center; padding-block: 18px 42px; }
.hero-copy h1,.editions h2 { color: var(--forest); font-family: Georgia,serif; letter-spacing: -.045em; }
.hero-copy h1 { margin: 0; font-size: clamp(2.75rem,5.25vw,5.3rem); line-height: .99; max-width: 12ch; }
.hero-copy p { margin: 21px 0 30px; max-width: 31ch; font-size: clamp(1.06rem,2vw,1.62rem); line-height: 1.35; }
.hero-copy .home-button { padding: 13px 21px; }
.preview { min-width: 0; margin: 0; }
.preview-window { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fffdf8; box-shadow: 0 12px 25px #17372822; }
.window-bar { display: flex; align-items: center; gap: 16px; padding: 8px 12px; background: #efeee8; }
.window-dots { width: 8px; height: 8px; margin-right: 25px; border-radius: 50%; background: #d5685a; box-shadow: 12px 0 #e8ad45,24px 0 #54a16a; }
.window-address { flex: 1; padding: 3px 10px; text-align: center; color: #435349; border: 1px solid var(--line); background: #fafafa; border-radius: 14px; font-size: .66rem; }
.preview-app { display: grid; grid-template-columns: clamp(36px,5vw,62px) minmax(0,1fr); }
.preview-rail { display: grid; align-content: start; justify-items: center; gap: 14px; padding: 12px 5px; color: #fff; background: var(--forest); }
.preview-rail img { filter: grayscale(1) brightness(0) invert(1); max-width: 100%; height: auto; }
.preview-rail svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.preview-rail .rail-active { box-sizing: content-box; border-radius: 5px; background: #367043; padding: 4px; }
.preview-content { padding: 12px clamp(7px,1.2vw,17px) 18px; min-width: 0; font-size: .76rem; }
.preview-path span { margin-inline: 5px; }
.preview-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-block: 10px; font-size: clamp(.9rem,1.65vw,1.36rem); line-height: 1.2; }
.project-symbol { display: grid; place-items: center; width: 32px; height: 32px; background: #e3edda; border-radius: 6px; color: var(--forest); }
.preview-status { padding: 4px 7px; background: #f7d689; border-radius: 5px; font-size: .6rem; }
.preview-tabs { display: flex; gap: clamp(4px,1vw,14px); margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.preview-tabs > * { padding: 5px 6px; }
.preview-tabs strong { background: #e3edda; border-bottom: 2px solid var(--forest); border-radius: 5px 5px 0 0; }
.preview-chart { --row-height: 24px; display: grid; grid-template-columns: minmax(95px,31%) minmax(0,1fr); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; font-size: clamp(.55rem,.92vw,.73rem); }
.chart-labels { border-right: 1px solid var(--line); }
.chart-row { display: flex; align-items: center; gap: 3px; height: var(--row-height); padding-inline: 6px; white-space: nowrap; overflow: hidden; }
.chart-row.phase,.chart-head { background: #f1f2eb; font-weight: 700; }
.chart-row.task { padding-inline-start: 11px; }
.done-icon { color: #246a36; font-weight: 800; }
.chart-months { justify-content: space-around; }
.chart-tracks { position: relative; height: calc(10 * var(--row-height)); background-image: linear-gradient(to right,#d6dbd0 1px,transparent 1px),linear-gradient(to bottom,#e6e8e1 1px,transparent 1px); background-size: 12.5% 100%,100% var(--row-height); }
.sample-bar { position: absolute; top: calc(var(--row) * var(--row-height) + 7px); left: calc(var(--start) * 1%); width: calc(var(--length) * 1%); height: 10px; border-radius: 5px; background: #aace9f; }
.sample-bar.complete { background: #408746; }
.sample-milestone { position: absolute; left: 95%; top: 95%; width: 12px; height: 12px; background: #ecab31; border-radius: 2px; transform: translate(-50%,-50%) rotate(45deg); }
.sample-arrows { position: absolute; inset: 0; width: 100%; height: 100%; }
.sample-arrows path { vector-effect: non-scaling-stroke; stroke: #225439; fill: none; stroke-width: 1.1; }
.editions { padding-block: 25px 32px; }
.editions h2 { margin: 0 0 20px; text-align: center; font-size: clamp(1.85rem,3.4vw,3rem); line-height: 1.1; }
.edition-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.edition-card { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 14px; align-items: center; padding: clamp(13px,1.8vw,24px); border-radius: 11px; color: var(--forest); background: var(--sage); text-decoration: none; }
.edition-card:hover { background: #dce8d6; }
.edition-card svg { width: clamp(28px,4vw,52px); fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; }
.edition-card strong,.edition-card strong + span { display: block; }
.edition-card strong { font-size: clamp(1rem,1.65vw,1.38rem); overflow-wrap: anywhere; }
.edition-card strong + span { margin-top: 4px; font-size: .9rem; }
.home-footer { padding-block: 16px; border-color: var(--line); }
.home-footer .home-brand { font-size: 1.55rem; }
.home-footer .home-brand img { width: 38px; }
.home-footer nav { font-size: .88rem; }
.screen-reader { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 980px) {
  .home-nav { flex-wrap: wrap; }
  .home-links { order: 3; width: 100%; justify-content: flex-start; }
}
@media (max-width: 720px) {
  .hero-grid { grid-template-columns: 1fr; padding-block: 20px 28px; }
  .edition-grid { grid-template-columns: 1fr; }
  .hero-copy h1 { max-width: 15ch; }
}
@media (max-width: 420px) {
  .home-nav { column-gap: 8px; }
  .home-nav .home-actions { gap: 6px; font-size: .78rem; }
  .home-nav .home-button { padding: 7px 8px; }
  .home-links { font-size: .9rem; }
  .preview-tabs { font-size: .65rem; }
}
@media (max-width: 580px) {
  .home-links details[open] { flex-basis: 100%; }
  .home-links details div { position: static; margin-top: 8px; }
}
.home-story { padding-bottom: 32px; }
.story-copy { padding: clamp(20px,4vw,48px); border-radius: 14px; background: var(--sage); }
.story-copy h2 { margin: 9px 0 14px; color: var(--forest); font: 700 clamp(1.8rem,3vw,2.8rem)/1.08 Georgia,serif; letter-spacing: -.035em; }
.story-copy p { max-width: 72ch; margin: 0; }
.story-copy p + p { margin-top: 12px; }
