:root {
  color-scheme: light;
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  --page: #efe6d3;
  --surface: #fff9ec;
  --surface-soft: #eadcc3;
  --ink: #17120d;
  --muted: #706552;
  --faint: #9b8d73;
  --line: rgba(69, 49, 30, 0.18);
  --green: #17614d;
  --green-dark: #102f28;
  --blue: #2c6d74;
  --amber: #d7a64f;
  --shadow: 0 24px 70px rgba(45, 29, 15, 0.16);
  font-family: var(--font-ui);
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  scroll-behavior: smooth;
  font-family: var(--font-ui);
}

body {
  margin: 0;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 82% 0%, rgba(215, 166, 79, 0.16), transparent 34vw),
    radial-gradient(circle at 12% 4%, rgba(23, 97, 77, 0.14), transparent 30vw),
    linear-gradient(180deg, #fbf4e6 0%, var(--page) 54%, #e6d5b9 100%);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}

h1,
h2,
h3,
p,
a,
button,
span,
small,
strong,
em,
li {
  overflow-wrap: break-word;
}

h1,
h2,
.hero-lead {
  text-wrap: balance;
}

section,
article,
div,
aside,
header,
nav,
main,
footer {
  min-width: 0;
}

.site-header,
main,
.site-footer {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  padding: 14px 0;
  backdrop-filter: blur(24px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(16, 24, 40, 0.14);
}

nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #4f4333;
  font-size: 14px;
  font-weight: 600;
}

nav a {
  text-decoration: none;
}

nav a:hover {
  color: var(--green);
}

.eyebrow {
  margin: 0 0 14px;
  color: #9c6b22;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 21px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.primary-button {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  box-shadow: 0 16px 34px rgba(16, 24, 40, 0.16);
}

.primary-button.light {
  border-color: #fff;
  background: #fff;
  color: var(--green-dark);
}

.primary-button.disabled,
.primary-button[aria-disabled="true"] {
  border-color: #8f98a1;
  background: #8f98a1;
  color: #fff;
  cursor: not-allowed;
  box-shadow: none;
}

.secondary-button {
  border: 1px solid rgba(69, 49, 30, 0.15);
  background: rgba(255, 249, 236, 0.86);
  color: var(--ink);
}

.release-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 560;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 36px 0 52px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 520;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
}

.plain-page,
.legal-page,
.support-panel,
.concept-page {
  padding: 68px 0 96px;
}

.page-hero,
.download-panel,
.support-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 249, 236, 0.86);
  box-shadow: var(--shadow);
}

.download-panel {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 42px;
}

.download-panel > img {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: 0 18px 42px rgba(16, 24, 40, 0.16);
}

.download-panel h1,
.support-panel h1,
.legal-page h1,
.concept-page h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 720;
  line-height: 1.08;
  letter-spacing: 0;
}

.download-panel p:not(.eyebrow),
.support-panel > p:not(.eyebrow),
.legal-page > p,
.concept-page > p {
  margin: 0;
  max-width: 760px;
  color: #544838;
  font-size: clamp(17px, 1.8vw, 20px);
  font-weight: 450;
  line-height: 1.68;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.workflow,
.info-grid,
.concept-grid,
.download-options,
.release-grid {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.download-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.download-options article {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 249, 236, 0.86);
  box-shadow: 0 18px 52px rgba(45, 29, 15, 0.1);
}

.download-options span {
  color: var(--green);
  font-size: 13px;
  font-weight: 760;
}

.download-options h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 700;
  line-height: 1.14;
}

.download-options p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 450;
  line-height: 1.62;
}

.download-options a {
  justify-self: start;
  margin-top: 6px;
}

.download-status {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 560;
  line-height: 1.55;
}

.release-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.release-grid article,
.checksum-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 249, 236, 0.78);
}

.release-grid span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.release-grid b {
  display: block;
  color: var(--ink);
  font-size: 30px;
  font-weight: 720;
  line-height: 1.05;
}

.release-grid p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 450;
  line-height: 1.55;
}

.workflow {
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  align-items: start;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.install-visual {
  display: grid;
  gap: 14px;
}

.install-visual article {
  display: grid;
  grid-template-columns: 34px minmax(0, 180px) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 106px;
  padding: 18px;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 8px;
  background: #fff;
}

.install-visual article > span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 760;
}

.install-visual p {
  margin: 0;
  color: #544838;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
}

.dmg-icon,
.launch-card,
.permission-card,
.drag-lane > div {
  border: 1px solid rgba(16, 24, 40, 0.1);
  border-radius: 8px;
  background: #f7f9fb;
}

.dmg-icon {
  display: grid;
  place-items: center;
  width: 78px;
  height: 64px;
  color: var(--green);
  font-size: 18px;
  font-weight: 780;
  box-shadow: inset 0 -12px 24px rgba(13, 107, 88, 0.08);
}

.drag-lane {
  display: flex;
  align-items: center;
  gap: 12px;
}

.drag-lane img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
}

.drag-lane i {
  flex: 1;
  min-width: 28px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), rgba(13, 107, 88, 0.08));
}

.drag-lane > div {
  display: grid;
  place-items: center;
  min-width: 84px;
  min-height: 52px;
  color: #394650;
  font-size: 13px;
  font-weight: 700;
}

.launch-card {
  display: grid;
  gap: 5px;
  padding: 14px;
}

.permission-card {
  display: grid;
  gap: 5px;
  padding: 14px;
  background: #f0f6f3;
}

.launch-card b,
.permission-card b {
  color: var(--ink);
  font-size: 17px;
  font-weight: 720;
}

.launch-card small,
.permission-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 520;
}

.checksum-panel {
  margin-top: 28px;
}

.checksum-panel h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 700;
  line-height: 1.18;
}

.checksum-panel code {
  display: block;
  padding: 16px;
  overflow-wrap: anywhere;
  border-radius: 8px;
  background: #101418;
  color: #d9fbe8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.6;
}

.checksum-panel code + code {
  margin-top: 10px;
}

.workflow h2,
.legal-page h2,
.concept-page h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0;
}

.workflow ol,
.legal-page ul,
.concept-page ul {
  margin: 0;
  padding-left: 22px;
  color: #3d4852;
  font-size: 17px;
  font-weight: 450;
  line-height: 1.78;
}

.support-panel {
  max-width: 920px;
  padding: 42px;
}

.support-card,
.legal-card,
.concept-card {
  margin-top: 28px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 249, 236, 0.78);
}

.support-card p,
.legal-card p,
.concept-card p {
  margin: 0;
  color: #544838;
  font-size: 17px;
  font-weight: 450;
  line-height: 1.7;
}

.support-card p + p,
.legal-card p + p {
  margin-top: 12px;
}

.legal-page,
.concept-page {
  max-width: 860px;
}

.legal-page > p:first-of-type,
.concept-page > p:first-of-type {
  color: var(--muted);
  font-size: 15px;
}

.legal-page h2,
.concept-page h2 {
  margin-top: 44px;
}

.legal-page li + li,
.concept-page li + li {
  margin-top: 8px;
}

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

.concept-card {
  margin-top: 0;
}

.concept-card h2 {
  margin-top: 0;
  font-size: 23px;
}

@media (max-width: 820px) {
  .site-header {
    position: static;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  nav {
    width: 100%;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 2px;
    white-space: nowrap;
  }

  .download-panel,
  .workflow,
  .concept-grid,
  .download-options,
  .release-grid {
    grid-template-columns: 1fr;
  }

  .install-visual article {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .install-visual article > p {
    grid-column: 2;
  }
}

@media (max-width: 560px) {
  .site-header,
  main,
  .site-footer {
    width: 100%;
    padding-left: 14px;
    padding-right: 14px;
  }

  .plain-page,
  .legal-page,
  .support-panel,
  .concept-page {
    padding-top: 44px;
    padding-bottom: 72px;
  }

  .download-panel,
  .workflow,
  .download-options article,
  .support-panel,
  .support-card,
  .legal-card,
  .concept-card,
  .release-grid article,
  .checksum-panel {
    padding: 22px;
  }

  .download-panel h1,
  .support-panel h1,
  .legal-page h1,
  .concept-page h1 {
    font-size: 36px;
    line-height: 1.12;
  }

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

  .primary-button,
  .secondary-button {
    width: 100%;
  }
}
