/* The main page keeps the original website's section order, generous type, planet and
   container. Surface colors follow the shared LMS token sheet in either theme. */
@font-face { font-family: "DM Serif Display"; src: url("DMSerifDisplay-Regular.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Serif Display"; src: url("DMSerifDisplay-Italic.woff2") format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("DMMono-Regular.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }
.mercury-home { width: 100%; }
.home-container { width: 100%; max-width: var(--lms-container); box-sizing: border-box; margin: 0 auto; padding-inline: var(--lms-gutter); }
.mercury-home section[id] { scroll-margin-top: calc(var(--lms-header-height) + 24px); }
.mercury-home h1, .mercury-home h2, .mercury-home h3, .mercury-home p { margin-top: 0; }
.mercury-home em { font-family: "DM Serif Display", Georgia, serif; font-weight: 400; }
.mercury-home a { color: inherit; }
.mercury-home a:focus-visible, .home-platforms input:focus-visible + label { outline: 3px solid rgb(var(--lms-accent)); outline-offset: 5px; }
.home-ink { background: #111113; color: #edeef0; }
.home-hero { overflow:hidden; background:#111113; color:#edeef0; }
.home-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; min-height: 720px; padding-top: var(--lms-gutter); padding-bottom: clamp(80px, 12vw, 160px); }
.home-eyebrow { display: flex; align-items: center; gap: 12px; color: #b7b8be; font-size: 13px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; margin-bottom: 32px; }
.home-eyebrow span { width: 8px; height: 8px; border-radius: 50%; background: rgb(var(--lms-accent)); flex-shrink: 0; }
.home-hero h1 { font-size: clamp(56px, 8vw, 112px); line-height: .98; letter-spacing: -.045em; margin-bottom: 32px; text-wrap: balance; }
.home-hero h1 em { display: block; width: fit-content; transform: rotate(-5deg); }
.home-lede { font-size: 20px; line-height: 1.6; color: #b7b8be; max-width: 46ch; margin-bottom: 40px; }
.home-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.home-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 16px 24px; border: 1px solid transparent; border-radius: 10px; background: rgb(var(--bg-brand)); color: rgb(var(--fg-on-brand)) !important; font-size: 15px; line-height: 1.4; font-weight: 600; text-decoration: none; }
.home-button:hover { opacity: .86; }
.home-button-light { background: #fff; color: #111113 !important; }
.home-button-outline { background: transparent; color: #edeef0 !important; border-color: #67676c; }
.home-facts { display: flex; flex-wrap: wrap; gap: 20px 28px; list-style: none; padding: 0; margin: 40px 0 0; font-size: 12px; color: #b7b8be; }
.home-facts li { max-width: 15ch; }
.home-facts strong { display: block; color: #edeef0; font-size: 16px; margin-bottom: 4px; }
.home-orb { position: relative; min-width: 0; }
.home-orb::after { content: ""; position: absolute; inset: 83% 10% 0; border-radius: 50%; background: #000; filter: blur(20px); }
.home-orb img { position: relative; z-index: 0; display: block; width: 125%; max-width: none; height: auto; margin-left: -8%; }
.home-section { padding-block: clamp(80px, 10vw, 144px); }
.home-alt { background: rgb(var(--bg-secondary)); }
.home-section-label { display: flex; align-items: center; gap: 20px; margin-bottom: 32px; }
.home-section-label > span:first-child { font-size: 24px; color: rgb(var(--fg-secondary)); }
.home-ink .home-section-label > span:first-child { color: #b7b8be; }
.home-section-label > span:last-child { padding: 10px 20px; border-radius: 36px; background: rgb(var(--lms-accent)); color: rgb(var(--fg-on-active)); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.mercury-home h2 { max-width: 22ch; margin-bottom: 24px; font-size: clamp(40px, 5vw, 72px); line-height: 1.04; letter-spacing: -.03em; text-wrap: balance; }
.home-section-lede { font-size: 20px; line-height: 1.6; color: rgb(var(--fg-secondary)); max-width: 60ch; margin-bottom: 64px; }
.home-ink .home-section-lede { color: #b7b8be; }
.home-principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.home-principle { padding: 32px; border-radius: 16px; background: rgb(var(--bg-secondary)); display: flex; flex-direction: column; }
.home-principle.home-ink { background: #111113; color: #edeef0; }
.home-purple { background: rgb(var(--lms-accent)) !important; color: rgb(var(--fg-on-active)); }
.home-overline { font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.mercury-home h3 { font-size: 25px; line-height: 1.2; letter-spacing: -.02em; margin-bottom: 20px; }
.mercury-home h3.home-overline { font-size: 12px; letter-spacing: .13em; }
.home-principle p:not(.home-overline), .home-card p { font-size: 16px; line-height: 1.6; }
.home-principle a { margin-top: auto; padding-top: 24px; font-size: 14px; font-weight: 600; text-underline-offset: 4px; }
.home-why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.home-card { padding: 36px; background: rgb(var(--bg-primary)); border: 1px solid rgb(var(--border-secondary)); border-radius: 16px; }
.home-card:first-child { grid-row: span 2; display: flex; flex-direction: column; justify-content: center; }
.home-wide { grid-column: span 2; }
.home-swatches { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 64px; }
.home-swatch { display: flex; align-items: flex-end; min-height: 120px; border: 1px solid #67676c; border-radius: 12px; padding: 16px; box-sizing: border-box; font-size: 12px; font-weight: 700; }
.home-swatch-surface { background: rgb(var(--bg-primary)); color: rgb(var(--fg-primary)); }
.home-swatch-ink { background: rgb(var(--fg-primary)); color: rgb(var(--bg-primary)); }
.home-swatch-accent { background: rgb(var(--lms-accent)); color: rgb(var(--fg-on-active)); }
.home-swatch-positive { background: rgb(var(--green-9)); color: rgb(var(--fg-inverse)); }
.home-swatch-caution { background: rgb(var(--orange-9)); color: rgb(var(--fg-inverse)); }
.home-swatch-negative { background: rgb(var(--red-9)); color: rgb(var(--fg-inverse)); }
.home-type { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.home-type p { font-size: 20px; line-height: 1.6; }
.home-type .home-type-sample { font-size: clamp(40px, 6vw, 80px); font-weight: 700; letter-spacing: -.04em; line-height: 1.2; }
.home-type-sample span { font-family: "DM Serif Display", Georgia, serif; font-weight: 400; }
.home-type code { font-family: "DM Mono", var(--font-secondary); font-size: 13px; overflow-wrap: anywhere; }
.home-type a { text-underline-offset: 5px; }
.home-families { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 32px; }
.home-families a { display: block; border: 1px solid rgb(var(--border-secondary)); border-radius: 12px; padding: 28px; text-decoration: none; }
.home-families a:hover { background: rgb(var(--bg-secondary)); }
.home-families h3 { display: flex; justify-content: space-between; gap: 16px; font-size: 20px; }
.home-families h3 span { color: rgb(var(--fg-secondary)); }
.home-families p { margin-bottom: 0; color: rgb(var(--fg-secondary)); font-size: 13px; line-height: 1.7; }
.home-install-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.home-download, .home-example { min-width: 0; padding: 40px; border-radius: 16px; background: rgb(var(--bg-primary)); border: 1px solid rgb(var(--border-secondary)); }
.home-download > p, .home-example > p, .home-install-status { font-size: 14px; line-height: 1.6; color: rgb(var(--fg-secondary)); }
.home-download > a, .home-install-status a { color: rgb(var(--fg-primary)); font-weight: 600; text-underline-offset: 4px; }
.home-platforms { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0 0 20px; padding: 0; border: 0; }
.home-platforms input { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
.home-platforms label { padding: 12px 8px; text-align: center; font-size: 13px; font-weight: 600; border-bottom: 2px solid rgb(var(--border-secondary)); cursor: pointer; }
.home-platforms input:checked + label { color: rgb(var(--fg-primary)); border-bottom-color: rgb(var(--lms-accent)); background: rgb(var(--bg-secondary)); }
.home-platform-panel { display: none; grid-column: 1 / -1; padding-top: 24px; font-size: 15px; }
#mx-macos:checked ~ .home-macos, #mx-windows:checked ~ .home-windows { display: block; }
.home-release-status { padding: 12px; border: 1px solid rgb(var(--border-secondary)); border-radius: 8px; font-size: 13px; color: rgb(var(--fg-secondary)); }
.home-example pre { overflow-x: auto; margin: 32px 0; padding: 0; font-family: "DM Mono", var(--font-secondary); font-size: 14px; line-height: 1.8; }
.home-install-status { max-width: 85ch; margin: 24px 0 0; }
.home-cta { padding-block: 80px; background: rgb(var(--lms-accent)); color: rgb(var(--fg-on-active)); }
.home-cta .home-container { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.home-cta h2 { font-size: clamp(40px, 5vw, 64px); }
.home-cta p { font-size: 18px; line-height: 1.6; max-width: 46ch; }
.home-cta .home-actions { justify-content: flex-end; }
.home-cta .home-button-outline { color: rgb(var(--fg-on-active)) !important; border-color: currentColor; }
.home-footer { padding-top: 64px; background: rgb(var(--bg-primary)); }
.home-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; }
.home-wordmark { font-size: 28px; font-weight: 700; text-decoration: none; letter-spacing: -.04em; }
.home-footer p { font-size: 14px; line-height: 1.7; color: rgb(var(--fg-secondary)); margin-top: 16px; }
.home-footer h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; }
.home-footer-grid > div > a:not(.home-wordmark) { display: block; margin-block: 10px; font-size: 14px; text-decoration: none; }
.home-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.home-copyright { padding-block: 32px; border-top: 1px solid rgb(var(--border-secondary)); margin-top: 48px !important; }
.home-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 1023px) {
  .home-hero-grid { grid-template-columns: 1fr; min-height: 0; padding-top: 64px; gap: 24px; }
  .home-orb { max-width: 500px; margin: 0 auto; }
  .home-orb img { width: 100%; margin: 0; }
  .home-principles, .home-why { grid-template-columns: 1fr; }
  .home-card:first-child, .home-wide { grid-column: auto; grid-row: auto; }
  .home-families { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-install-grid, .home-cta .home-container { grid-template-columns: 1fr; }
  .home-cta .home-actions { justify-content: flex-start; }
  .home-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .home-container { padding-inline: var(--lms-gutter-mobile); }
  .home-hero h1 { font-size: clamp(46px, 12vw, 72px); }
  .home-eyebrow { font-size: 11px; letter-spacing: .12em; }
  .home-lede, .home-section-lede { font-size: 18px; }
  .home-principle, .home-card, .home-download, .home-example { padding: 24px; }
  .home-swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-swatch { min-height: 100px; padding: 12px; }
  .home-type, .home-families { grid-template-columns: 1fr; }
  .home-footer-grid { gap: 32px 24px; }
  .home-facts { gap: 20px; }
}

.home-package-install { margin-top: 48px; }
.home-package-install .home-install-grid { margin-top: 24px; }
.home-package-install pre { margin: 0; padding: 24px; overflow-x: auto; border: 1px solid rgb(var(--border-secondary)); border-radius: 12px; background: rgb(var(--bg-primary)); font-family: "DM Mono", var(--font-secondary); font-size: 13px; line-height: 1.7; }
.home-package-install code { font: inherit; }

.home-install-commands { min-width: 0; }

/* The actual browser example stays separate from the documentation shell. */
.home-browser-preview { display: block; width: 100%; height: 480px; margin-top: 24px; border: 1px solid rgb(var(--border-secondary)); border-radius: 12px; background: rgb(var(--bg-primary)); }

/* One composition: the readable installer rests over the decorative planet. */
.home-hero-grid { grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); grid-template-areas:"intro stage" "facts stage"; gap:1.5rem 3rem; padding-block:2rem 3rem; align-items:center; min-height:0; }
.home-hero-intro { grid-area:intro; align-self:end; }
.home-hero-grid > * { min-width:0; }
.home-facts { grid-area:facts; align-self:start; margin:0; }
.home-hero .home-button-light { background:#edeef0; color:#111113 !important; }
.home-orbit { grid-area:stage; position:relative; isolation:isolate; display:grid; align-items:center; min-height:36rem; padding-block:2rem; }
.home-orbit .home-orb { position:absolute; inset:0; display:grid; align-items:center; max-width:none; width:100%; margin:0; pointer-events:none; }
.home-orbit .home-orb::after { display:none; }
.home-orbit .home-orb img { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width:calc(100% + 6rem); max-width:none; margin:0; }
.home-installer { position:relative; z-index:1; justify-self:center; box-sizing:border-box; width:calc(100% - 2rem); max-width:30rem; margin:0; border:1px solid rgb(var(--border-secondary)); border-radius:1rem; overflow:hidden; background:rgb(var(--bg-primary)); box-shadow:0 1.5rem 4rem rgb(0 0 0 / .14); }
.home-installer-frame { display:block; width:100%; height:24rem; border:0; background:transparent; }
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {
  .home-installer { background:rgb(var(--bg-primary) / .8); backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px); }
}
@media (prefers-reduced-transparency:reduce), (forced-colors:active) {
  .home-installer { background:rgb(var(--bg-primary)); backdrop-filter:none; -webkit-backdrop-filter:none; box-shadow:none; }
}
@media(max-width:1023px) {
  .home-hero-grid { grid-template-columns:minmax(0,1fr); grid-template-areas:"intro" "stage" "facts"; gap:1.5rem; }
  .home-orbit { width:100%; max-width:38rem; justify-self:center; min-height:36rem; padding-block:2rem; }
  .home-orbit .home-orb img { width:max(100%,36rem); justify-self:center; margin:0; }
}
.home-eyebrow { margin-bottom:1.25rem; }
.home-hero h1 { font-size:clamp(2.75rem,5vw,4rem); margin-bottom:1.5rem; }
.home-lede { font-size:1.125rem; line-height:1.5; margin-bottom:1.5rem; }
.home-example pre { padding:1rem; border-radius:.5rem; background:rgb(var(--bg-secondary)); font-size:.8125rem; line-height:1.7; }
/* Reuse the LMS syntax palette, including its verified light/dark contrast. */
.home-example .code-keyword { color:rgb(var(--lms-syntax-keyword)); font-weight:600; }
.home-example .code-string { color:rgb(var(--lms-syntax-string)); }
.home-example .code-number { color:rgb(var(--lms-syntax-number)); }
.home-example .code-comment { color:rgb(var(--lms-syntax-comment)); font-style:italic; }
.home-example .code-call { color:rgb(var(--lms-syntax-function)); }
@media(max-width:600px) { .home-hero-grid { padding-top:2rem; } }
