:root {
  --ink: #17332f;
  --muted: #5c6d69;
  --paper: #fbfaf5;
  --surface: #ffffff;
  --line: #d7ded9;
  --green: #1f6658;
  --green-dark: #164c42;
  --green-soft: #e9f2ee;
  --blue: #2e74b5;
  --warm: #f1eadb;
  --shadow: 0 18px 50px rgba(23, 51, 47, 0.09);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--green-dark); }

a:focus-visible,
.button:focus-visible {
  outline: 3px solid #d69a2d;
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: white;
}

.skip-link:focus { top: 1rem; }

.shell {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 245, 0.96);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--ink);
  color: white;
  font-family: Georgia, serif;
}

.version {
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.hero {
  padding-block: clamp(4rem, 9vw, 7.5rem) 3.5rem;
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin-top: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.15;
}

h1 {
  max-width: 850px;
  margin-inline: auto;
  margin-bottom: 1.25rem;
  font-size: clamp(2.5rem, 7vw, 4.7rem);
  letter-spacing: -0.04em;
}

h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: 1.45rem; }

.lede {
  max-width: 760px;
  margin: 0 auto 2rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.notice {
  max-width: 750px;
  margin-inline: auto;
  padding: 1rem 1.25rem;
  border: 1px solid #cddfd7;
  border-radius: 14px;
  background: var(--green-soft);
  text-align: left;
}

.downloads,
.details { padding-block: 3.5rem 5rem; }

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

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.download-card {
  display: flex;
  flex-direction: column;
  min-height: 390px;
  padding: 1.8rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.download-card.recommended { border-top: 5px solid var(--green); }
.download-card.web-card { background: var(--warm); }

.card-label {
  align-self: flex-start;
  margin-bottom: 1rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.download-card p { color: var(--muted); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  margin-top: auto;
  padding: 0.75rem 1rem;
  border: 2px solid transparent;
  border-radius: 12px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: transform 120ms ease, background 120ms ease;
}

.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--green); color: white; }
.button.primary:hover { background: var(--green-dark); }
.button.secondary { border-color: var(--green); background: transparent; color: var(--green-dark); }
.button.light { background: white; color: var(--green-dark); }

.file-note {
  margin: 0.75rem 0 0;
  font-size: 0.84rem;
  text-align: center;
}

.guidance { padding-block: 1rem 5rem; }

.guide-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  padding: clamp(1.5rem, 5vw, 3rem);
  border-radius: 24px;
  background: var(--ink);
  color: white;
}

.guide-card .eyebrow { color: #a9d7c8; }
.guide-card p { color: #d7e3df; }
.guide-card ol { margin: 0; padding-left: 1.4rem; }
.guide-card li { margin-bottom: 0.6rem; }
.guide-link { grid-column: 1 / -1; margin: 0; }
.guide-link a { color: white; font-weight: 750; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature-grid article {
  padding: 1.4rem;
  border-left: 4px solid var(--blue);
  background: white;
}

.feature-grid p { margin-bottom: 0; color: var(--muted); }

.scope-note {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-left: 4px solid #b57919;
  background: #fff4d9;
}

.feedback {
  padding-block: 3.5rem;
  background: var(--green);
  color: white;
}

.feedback-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.feedback .eyebrow { color: #c6e7db; }
.feedback h2 { margin-bottom: 0.6rem; }
.feedback p { margin-bottom: 0; color: #e1eee9; }

footer {
  padding-block: 1.25rem;
  border-top: 1px solid var(--line);
  background: white;
  color: var(--muted);
  font-size: 0.88rem;
}

footer p { margin: 0.25rem 0; }

@media (max-width: 860px) {
  .download-grid,
  .feature-grid { grid-template-columns: 1fr; }
  .download-card { min-height: auto; }
  .button { margin-top: 1rem; }
  .guide-card { grid-template-columns: 1fr; }
  .guide-link { grid-column: auto; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .header-inner,
  .footer-inner,
  .feedback-inner { align-items: flex-start; flex-direction: column; }
  .header-inner { padding-block: 0.8rem; }
  .version { align-self: flex-start; }
  .hero { text-align: left; }
  h1 { margin-inline: 0; }
  .notice { margin-inline: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
