:root {
  --cream: #f4efe4;
  --cream-deep: #e7efe8;
  --aqua: #d5f3ee;
  --aqua-deep: #b7e6de;
  --teal: #1c7f72;
  --teal-dark: #0f3f3a;
  --ink: #16302c;
  --muted: #3d5551;
  --card: #fffdf8;
  --line: #d3e3de;
  --focus: #0b6b5e;
  --shadow: 0 18px 50px rgba(15, 63, 58, 0.1);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(213, 243, 238, 0.9), transparent 60%),
    var(--cream);
  line-height: 1.6;
  font-size: 1.08rem;
}

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

a:focus-visible,
button:focus-visible,
.button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--teal-dark);
  color: white;
  padding: 0.5rem 0.8rem;
  z-index: 10;
}

.skip:focus { top: 1rem; }

.wrap {
  width: min(1200px, calc(100% - 2.4rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(244, 239, 228, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(15, 63, 58, 0.08);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.wordmark img,
.footer-logo {
  display: block;
  width: auto;
  max-width: none;
  object-fit: contain;
}

.wordmark img { height: 3.6rem; }

.site-header nav {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.site-header nav a {
  text-decoration: none;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
}

.site-header nav a:hover { background: var(--aqua); }

.hero-band { padding: 1.2rem 0 2.5rem; }

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2.2rem 0 1rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.7rem;
  color: var(--teal);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.eyebrow::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--teal);
}

.eyebrow.light { color: var(--aqua); }
.eyebrow.light::before { background: var(--aqua); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 560;
  line-height: 1.12;
  color: var(--teal-dark);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(3rem, 6vw, 5rem); margin: 0 0 1rem; }

h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 0 0 0.6rem; }

.lede { color: var(--muted); max-width: 38rem; font-size: 1.2rem; margin: 0; }

.actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.6rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-dark);
  color: white;
  text-decoration: none;
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(15, 63, 58, 0.18);
}

.button:hover { background: #14564e; }

.button.secondary {
  background: transparent;
  color: var(--teal-dark);
  border: 2px solid var(--teal-dark);
  box-shadow: none;
}

.button.secondary:hover { background: var(--aqua); }

.button[aria-disabled="true"] {
  background: #8aa09c;
  box-shadow: none;
  pointer-events: none;
}

.hero-stage { position: relative; min-height: 280px; padding: 0 1.2rem 1.2rem 0; }

.preview-back {
  position: absolute;
  inset: 1.4rem 0 0 1.6rem;
  border-radius: 28px;
  background: linear-gradient(160deg, var(--teal) 0%, var(--teal-dark) 85%);
}

.preview {
  position: relative;
  background: var(--card);
  border-radius: 28px;
  padding: 1.4rem 1.4rem 1.2rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.preview-kicker {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
}

.preview-url {
  margin: 0.7rem 0 0.2rem;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.95rem;
  color: var(--muted);
}

.preview-result {
  margin: 0.2rem 0;
  font-family: var(--serif);
  font-size: 2rem;
  color: #8a5a12;
}

.preview-note { margin: 0 0 1rem; color: var(--muted); }

.preview-pills { display: flex; gap: 0.45rem; flex-wrap: wrap; }

.preview-pills span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.preview-pills .active {
  background: #f8e7c4;
  border-color: #e6c98a;
  color: #6d4710;
  font-weight: 700;
}

.section { padding: 3.4rem 0; }

.section-head { max-width: 40rem; margin-bottom: 1.6rem; }

.band {
  background: linear-gradient(180deg, rgba(213, 243, 238, 0.55), rgba(244, 239, 228, 0));
}

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

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

.card, .download-card, .faq details, .release-list li, .page-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.25rem 1.25rem 1.15rem;
  box-shadow: 0 10px 30px rgba(15, 63, 58, 0.05);
}

.card h3 { margin: 0.85rem 0 0.35rem; font-size: 1.35rem; }

.card p, .page-card p { color: var(--muted); margin: 0; }

.card.quiet h3 { margin-top: 0; }

.icon {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 14px;
  background: var(--teal);
}

.icon svg { width: 1.45rem; height: 1.45rem; fill: var(--aqua); }

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  counter-reset: step;
}

.steps li {
  background: var(--card);
  border-radius: 22px;
  padding: 1.3rem 1.2rem 1.2rem;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(15, 63, 58, 0.05);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: var(--teal-dark);
  color: white;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.steps h3 { margin: 0 0 0.35rem; font-size: 1.35rem; }

.steps p { margin: 0; color: var(--muted); }

.download-band {
  background:
    radial-gradient(500px 220px at 10% 0%, rgba(213, 243, 238, 0.18), transparent 70%),
    var(--teal-dark);
  color: #e7f6f3;
}

.download-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: center;
  padding: 3.6rem 0;
}

.download-copy h2 { color: white; }

.download-copy p { color: #d5ebe7; font-size: 1.15rem; max-width: 28rem; }

.download-card {
  max-width: none;
  color: #16302c;
}

.download-band .download-card,
.download-band .download-card p,
.download-band .download-card li,
.download-band .download-card strong,
.download-band .download-card h3,
.download-band .download-card .hash {
  color: #0f3f3a;
}

.download-band .download-card .meta span,
.download-band .download-card .note {
  color: #3d5551;
}

.coming {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--teal-dark);
  margin-top: 0;
}

.meta { list-style: none; padding: 0; margin: 0 0 1.2rem; }

.meta li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}

.meta span { color: #3d5551; }

.meta strong { font-weight: 700; color: #0f3f3a; }

.meta-hash {
  flex-direction: column;
  align-items: flex-start;
}

.hash,
.checksum,
.checksum code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f3f3a;
  word-break: break-all;
  text-align: left;
}

.note { color: var(--muted); font-size: 0.95rem; }

.install-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
  display: grid;
  gap: 0.7rem;
  counter-reset: install;
}

.install-steps li {
  counter-increment: install;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.85rem 1rem;
}

.install-steps li::before {
  content: counter(install);
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--aqua);
  color: var(--teal-dark);
  font-weight: 700;
}

.callout {
  background: var(--aqua);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  margin: 0;
  color: var(--teal-dark);
  font-weight: 600;
}

.privacy-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 1.8rem;
  box-shadow: var(--shadow);
}

.checks { list-style: none; padding: 0; margin: 0; }

.checks li {
  position: relative;
  padding: 0.75rem 0 0.75rem 2rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.checks li:last-child { border-bottom: 0; }

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 0.7rem;
  height: 0.4rem;
  border-left: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(-45deg);
}

.text-link { font-weight: 700; }

.faq details { margin-bottom: 0.7rem; padding: 0; }

.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 1rem 1.15rem;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  float: right;
  color: var(--teal);
  font-size: 1.3rem;
  line-height: 1;
}

.faq details[open] summary::after { content: "–"; }

.faq details p { margin: 0; padding: 0 1.15rem 1rem; color: var(--muted); }

.site-footer {
  background: var(--teal-dark);
  color: #d7ebe7;
  margin-top: 1rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
  padding: 2.2rem 0 2.4rem;
  flex-wrap: wrap;
}

.footer-logo {
  height: 3rem;
  margin-bottom: 0.7rem;
  padding: 0.4rem 0.65rem;
  background: #fffdf8;
  border-radius: 12px;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 1.6rem;
  margin: 0 0 0.2rem;
  color: white;
}

.site-footer p { margin: 0; }

.site-footer nav { display: flex; gap: 1rem; flex-wrap: wrap; }

.site-footer a { color: #d5f3ee; }

.release-list { list-style: none; padding: 0; }

.release-list li { margin-bottom: 0.7rem; }

.release-list .notes { color: #3d5551; }

.release-list .checksum {
  display: block;
  margin: 0.8rem 0;
  text-align: left;
  color: #0f3f3a;
  line-height: 1.45;
}

.release-list .checksum span {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #3d5551;
}

.release-list .checksum code {
  display: block;
  text-align: left;
  color: #0f3f3a;
}

main > .wrap.section:first-child:last-child {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  padding: 2rem 1.6rem;
  box-shadow: var(--shadow);
  width: min(760px, calc(100% - 2.4rem));
}

main > .wrap.section:first-child:last-child h1 { margin-top: 0; }

main > .wrap.section:first-child:last-child li { margin: 0.45rem 0; color: var(--muted); }

@media (max-width: 900px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 0 0.65rem;
  }

  .site-header nav { gap: 0.15rem; }

  .hero, .grid, .grid.three, .steps, .download-layout, .privacy-panel {
    grid-template-columns: 1fr;
  }

  .hero { gap: 1.6rem; padding-top: 1.4rem; }

  .hero-stage { min-height: 0; padding-right: 0.6rem; padding-bottom: 0.8rem; }

  .actions { flex-direction: column; align-items: stretch; }

  .button { width: 100%; }

  .meta li { flex-direction: column; gap: 0.15rem; }

  .meta-hash { align-items: stretch; }

  h1 { font-size: clamp(2.5rem, 12vw, 3.4rem); }

  .footer-inner { align-items: flex-start; }
}
