:root {
  color-scheme: light;
  --cream: #f8f1e7;
  --red: #c71d32;
  --wine: #802031;
  --ink: #171515;
  --paper: var(--cream);
  --text: var(--ink);
  --accent-text: var(--red);
  --eyebrow: var(--wine);
  --surface: #f3eadf;
  --hover: #ede3d8;
  --outline: #a8988a;
  --muted: #685c57;
  --line: #dfd3c7;
  --gutter: clamp(20px, 5vw, 84px);
  font-family: Inter, -apple-system, system-ui, sans-serif;
  color: var(--text);
  background: var(--paper);
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: var(--ink);
    --text: var(--cream);
    --accent-text: #ff828c;
    --eyebrow: #ffafb5;
    --surface: #231d1e;
    --hover: #372b2c;
    --outline: #8c7977;
    --muted: #cbbeb7;
    --line: #473b3c;
  }
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, ul, ol, figure { margin: 0; }
body { font-size: 1rem; line-height: 1.5; -webkit-text-size-adjust: 100%; }
button, a { font: inherit; color: inherit; }
button { cursor: pointer; }
a { text-decoration: none; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 4px; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
.wrap { width: min(100% - var(--gutter) * 2, 1344px); margin-inline: auto; }
.skip { position: absolute; top: 8px; left: 8px; z-index: 4; padding: 10px 18px; transform: translateY(-160%); color: white; background: var(--ink); }
.skip:focus { transform: none; }
.top { border-bottom: 1px solid var(--line); }
.bar { min-height: 82px; display: flex; align-items: center; gap: clamp(25px, 5vw, 80px); }
.brand { display: inline-flex; flex: none; gap: 9px; align-items: center; font-weight: 700; font-size: 1.85rem; line-height: 1; letter-spacing: -.075em; }
.brand img { border-radius: 24%; }
.top nav, .footer nav { display: flex; align-items: center; gap: 27px; }
.top nav a, .header-web { font-size: .94rem; font-weight: 600; }
.top nav a:hover, .footer nav a:hover { color: var(--accent-text); }
.header-web { margin-left: auto; display: inline-flex; gap: 9px; align-items: center; border: 1px solid var(--outline); border-radius: 30px; padding: 8px 17px; }
.window-icon { width: 15px; height: 12px; display: inline-block; border: 1.6px solid currentColor; border-radius: 3px; position: relative; }
.window-icon::before { content: ''; position: absolute; inset: 2px 0 auto; border-top: 1px solid; }
.header-web:hover, .secondary:hover { background-color: var(--hover); }
.hero { display: grid; grid-template-columns: minmax(0, .91fr) minmax(0, 1fr); align-items: center; gap: clamp(15px, 3.2vw, 65px); padding-block: clamp(25px, 3.6vw, 60px) clamp(38px, 4.8vw, 80px); }
.hero-copy { padding: 12px 0; }
.category { color: var(--eyebrow); font-size: clamp(.85rem, 1.2vw, 1.04rem); font-weight: 600; display: flex; align-items: center; gap: 12px; }
.category::before { content: ''; width: 27px; height: 3px; flex: none; background: var(--accent-text); border-radius: 2px; }
h1 { margin-top: clamp(22px, 2.3vw, 38px); font-weight: 700; font-size: clamp(4.05rem, 6.55vw, 7rem); line-height: .96; letter-spacing: -.076em; }
h1 span, h1 em { display: block; }
h1 em { font-style: normal; color: var(--accent-text); }
.tagline { margin-block: clamp(17px, 1.8vw, 27px) 7px; font-size: clamp(1.13rem, 1.65vw, 1.55rem); letter-spacing: -.045em; color: var(--text); }
.intro { max-width: 44ch; color: var(--muted); line-height: 1.5; margin: 0 0 clamp(19px, 2vw, 30px); }
.supported { display: flex; flex-wrap: wrap; align-items: center; list-style: none; gap: 0; margin-top: 12px; padding: 0; font-size: .89rem; color: var(--muted); }
.supported li { display: flex; align-items: center; }
.supported li + li::before { content: ''; width: 3px; height: 3px; border-radius: 50%; background: currentColor; margin: 0 8px; }
.supported a { padding-block: 4px; }
.supported a:hover { text-decoration: underline; text-underline-offset: .2em; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 11px 22px; border-radius: 30px; border: 1px solid transparent; font-weight: 600; font-size: .98rem; letter-spacing: -.025em; }
.primary { color: white; background: var(--red); }
.primary:hover { background: #a71c2e; }
.secondary { border-color: var(--outline); }
.hero-art { overflow: hidden; border-radius: clamp(22px, 2.4vw, 38px); background: var(--wine); }
.hero-art img { width: 100%; height: auto; }
.showcase { padding: clamp(35px, 4.2vw, 68px) 0 clamp(42px, 4.4vw, 72px); border-top: 1px solid var(--line); background: var(--surface); }
h2 { font-size: clamp(2.15rem, 3.75vw, 4rem); line-height: 1.03; font-weight: 600; letter-spacing: -.074em; }
.section-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 17px 30px; margin-bottom: clamp(24px, 2.7vw, 39px); }
.filters { display: flex; flex-wrap: wrap; gap: 4px; }
.filters button { border: 1px solid var(--outline); border-radius: 100px; padding: 8px 14px; background: transparent; font-size: .88rem; font-weight: 600; }
.filters button[aria-pressed=true] { background: var(--text); border-color: var(--text); color: var(--paper); }
.filters button:hover:not([aria-pressed=true]) { background: var(--hover); }
.gallery { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(29px, 3vw, 48px) clamp(14px, 1.65vw, 26px); padding: 0; list-style: none; }
.feature { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
.poster { background: #dfd1c5; display: block; border-radius: 17px; overflow: hidden; }
.poster:focus-visible { outline-offset: -4px; }
.poster img { width: 100%; height: auto; }
.feature h3 { margin: 17px 0 6px; font-size: clamp(1.1rem, 1.48vw, 1.42rem); font-weight: 600; letter-spacing: -.045em; line-height: 1.18; }
.feature p { font-size: 1rem; color: var(--muted); line-height: 1.47; }
.downloads { border-top: 1px solid var(--line); background: var(--ink); color: var(--cream); padding-block: clamp(47px, 6.4vw, 105px); }
.download-layout { display: grid; grid-template-columns: .64fr 1.36fr; gap: 5vw; }
.download-head h2 { font-size: clamp(3.2rem, 6vw, 6.7rem); line-height: .91; }
.download-head h2 span { color: #f35e68; }
.download-head p { margin: 25px 0 17px; max-width: 27ch; font-size: 1.1rem; color: #d9c9bf; }
.platforms { min-width: 0; }
.platform { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 22px; padding: 18px 12px; border-top: 1px solid #594d49; scroll-margin-top: 14px; }
.platform.recommended { margin-bottom: 12px; padding: 20px; border: 1px solid #975159; background: #332025; border-radius: 18px; }
.platform-info { display: flex; align-items: center; gap: 12px; }
.platform-info img { flex: none; width: 44px; height: 44px; padding: 7px; background: var(--cream); border-radius: 12px; }
.platform h3 { font-size: clamp(1.2rem, 1.65vw, 1.55rem); line-height: 1.2; letter-spacing: -.045em; font-weight: 600; }
.platform p { font-size: .94rem; color: #d8c8bf; margin-top: 2px; }
.recommendation { display: block; color: #ffb6bc; font-weight: 600; font-size: .84rem; margin-bottom: 3px; }
.install-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; padding: 0; }
.install { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 16px; border-radius: 24px; color: var(--cream); background: #322c2c; border: 1px solid #84726e; font-weight: 600; font-size: .92rem; }
.install:hover { background: #49393b; }
.recommended .install:not([aria-disabled=true]) { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.recommended .install:hover:not([aria-disabled=true]) { background: #f2d8d6; }
.install[aria-disabled=true] { border-style: dashed; color: #d2bfb7; background: transparent; }
.test-flow p { margin: 7px 0 0; font-size: .88rem; }
.downloads :focus-visible { outline-color: #ffb6bc; }
.release-error { color: #f2cdd0; margin-top: 6px; }
.retry { background: transparent; color: var(--cream); border: 1px solid #968780; border-radius: 20px; padding: 5px 14px; margin-top: 9px; }
.footer { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; padding-block: 34px; }
.footer .brand { font-size: 1.52rem; }
.footer nav { font-size: .9rem; gap: 8px 21px; flex-wrap: wrap; margin-left: auto; color: var(--muted); }
.age { font-size: .85rem; border: 1px solid var(--outline); color: var(--muted); padding: 1px 5px; border-radius: 6px; }
.viewer { border: 0; border-radius: 18px; padding: 14px; color: var(--cream); background: #292323; max-width: calc(100vw - 20px); max-height: 96vh; max-height: 96dvh; }
.viewer::backdrop { background: rgb(20 12 13 / .83); }
.viewer img { width: auto; height: auto; max-width: 100%; max-height: calc(94vh - 70px); max-height: calc(94dvh - 70px); margin: 0 auto; border-radius: 9px; }
.viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 10px; }
.viewer h2 { font-size: 1rem; letter-spacing: -.015em; }
.viewer button { border-radius: 18px; border: 1px solid #8e807b; color: inherit; background: none; padding: 5px 12px; font-size: .94rem; }
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .button, .header-web, .install, .poster { transition: transform 160ms ease-out; }
  .button:hover, .header-web:hover, .install[href]:hover, .poster:hover { transform: translateY(-2px); }
}
@media (max-width: 1100px) {
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1500px) { .hero { grid-template-columns: 1fr minmax(0, 680px); } }
@media (max-width: 1000px) {
  .download-layout { grid-template-columns: .65fr 1.35fr; gap: 5vw; }
  .bar { min-height: 70px; }
  .hero { grid-template-columns: 1fr .95fr; }
  h1 { font-size: clamp(3.5rem, 7.1vw, 4.5rem); }
  .button { padding-inline: 16px; }
}
@media (max-width: 700px) {
  .bar { min-height: 61px; gap: 15px; }
  .brand { font-size: 1.45rem; gap: 7px; }
  .brand img { width: 34px; height: 34px; }
  .top nav { margin-left: auto; gap: 12px; }
  .top nav a { font-size: .88rem; letter-spacing: -.025em; }
  .top nav a[href="#download"] { padding: 6px 13px; border: 1px solid var(--outline); border-radius: 30px; }
  .header-web { display: none; }
  .hero { grid-template-columns: 1fr; gap: 24px; padding-block: 32px; }
  .hero-copy { padding: 0; }
  .category { font-size: .88rem; gap: 8px; }
  .category::before { width: 20px; }
  h1 { font-size: clamp(3.4rem, 12.35vw, 5.3rem); margin-top: 16px; line-height: .95; }
  .tagline { margin: 13px 0 5px; font-size: 1.12rem; }
  .actions { gap: 8px; }
  .button { min-height: 44px; padding: 9px 16px; font-size: .9rem; }
  .hero-art { border-radius: 20px; }
  .section-head { margin-bottom: 17px; }
  .filters { max-width: 100%; gap: 4px; }
  .filters button { padding: 7px 8px; letter-spacing: -.035em; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 16px; }
  .feature h3 { font-size: 1.2rem; }
  .download-layout { grid-template-columns: 1fr; gap: 27px; }
  .download-head h2 { font-size: 2.8rem; }
  .download-head br { display: none; }
  .download-head br::after { content: ' '; }
  .download-head p { max-width: 34ch; margin: 13px 0 9px; font-size: 1rem; }
  .platform { gap: 12px; padding: 16px 0; }
  .footer { gap: 16px; align-items: flex-start; }
  .footer nav { order: 2; width: 100%; }
  .footer .age { margin-left: auto; }
}
@media (max-width: 520px) {
  .gallery { grid-template-columns: 1fr; gap: 20px; }
  .feature { display: grid; grid-template-columns: minmax(88px, 29%) minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 7px 17px; align-items: start; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
  .feature:last-child { padding-bottom: 0; border-bottom: 0; }
  .feature .poster { grid-row: span 2; border-radius: 10px; }
  .feature h3 { margin: 4px 0 0; }
  .platform { align-items: flex-start; }
  .platform-info { flex: 1 0 100%; }
  .platform.recommended { padding: 16px; }
  .install-actions { gap: 6px; }
  .install { padding-inline: 13px; }
}
@media (max-width: 380px) {
  .feature { grid-template-columns: minmax(78px, 26%) minmax(0, 1fr); column-gap: 12px; }
  .feature h3 { font-size: 1.12rem; }
  .bar, .top nav { gap: 8px; }
  .top nav a[href="#download"] { padding-inline: 8px; }
  .button { padding-inline: 13px; }
}

.install-fallback { display: none; }
@media (max-width: 700px) {
  .install-fallback { display: grid; gap: 8px; }
  body:has(.install-fallback) :is(.hero .actions, .supported, #install-web) { display: none; }
  body:has(.install-fallback) .downloads:not(:target):not(:has(:target)) { display: none; }
  body:has(.install-fallback) .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  body:has(.install-fallback) .feature { display: block; padding: 0; border: 0; }
  body:has(.install-fallback) .feature p { display: none; }
  body:has(.install-fallback) .poster img { height: 85px; object-fit: cover; object-position: 50% 62%; }
}

[data-mobile-os] :is(.header-web, .hero .actions, .supported, .filters) { display: none; }
[data-mobile-os] .bar { min-height: 54px; }
[data-mobile-os] .top nav { margin-left: auto; }
[data-mobile-os] .hero { gap: 16px; padding-block: 20px; }
[data-mobile-os] .hero-copy { padding: 0; }
[data-mobile-os] h1 { margin-top: 12px; }
[data-mobile-os] .intro { margin-bottom: 15px; }
.mobile-install { display: grid; gap: 3px; max-width: 32rem; }
.mobile-install > .primary { justify-self: stretch; min-height: 48px; margin-bottom: 4px; }
.mobile-install > [aria-disabled=true] { color: var(--muted); background: var(--surface); }
.mobile-install details { min-width: 0; }
.mobile-install summary { cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; padding: 8px 0; font-size: .94rem; font-weight: 600; list-style: none; }
.mobile-install summary::-webkit-details-marker { display: none; }
.mobile-install summary::after { content: ''; width: 8px; height: 8px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(45deg); margin: 0 5px 3px 0; }
.mobile-install details[open] > summary::after { transform: rotate(225deg); margin-top: 6px; }
.mobile-install summary:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.mobile-other { border-top: 1px solid var(--line); }
.mobile-install .platforms, .mobile-install .test-flow { margin: 4px 0 12px; padding: 6px 12px; border-radius: 14px; background: var(--surface); }
.mobile-install .test-flow { padding: 12px; }
.mobile-install .platform { padding: 10px 0; border-color: var(--line); }
.mobile-install .platform:first-of-type { border: 0; }
.mobile-install :is(.platform p, .test-flow p, .release-error) { color: var(--muted); }
.mobile-install :is(.install, .retry) { color: var(--text); background: var(--paper); border-color: var(--outline); }
.mobile-install .platform-info img { width: 34px; height: 34px; }
[data-mobile-os] .showcase { padding-block: 24px; }
[data-mobile-os] .section-head { margin-bottom: 16px; }
[data-mobile-os] .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
[data-mobile-os] .feature { display: flex; flex-direction: column; align-items: stretch; position: relative; gap: 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
[data-mobile-os] .poster { border-radius: 13px 13px 0 0; overflow: hidden; }
[data-mobile-os] .poster::after { content: ''; position: absolute; inset: 0; border-radius: 14px; }
[data-mobile-os] .poster img { width: 100%; height: clamp(62px, 18vw, 115px); object-fit: cover; object-position: 50% 62%; }
[data-mobile-os] .feature h3 { margin: 9px 10px 10px; font-size: clamp(.9rem, 3.8vw, 1.15rem); line-height: 1.16; }
[data-mobile-os] .feature p { display: none; }
[data-mobile-os] .viewer-description { margin: 0 0 10px; max-width: 40ch; line-height: 1.35; }
[data-mobile-os] .viewer img { max-height: 68vh; max-height: 68dvh; }

@media (orientation: landscape) and (max-height: 520px) {
  [data-mobile-os] .hero { grid-template-columns: 1.1fr 1fr; align-items: start; padding-block: 12px; }
  [data-mobile-os] .hero-copy { display: flex; flex-direction: column; }
  [data-mobile-os] h1 { font-size: clamp(2rem, 5vw, 3rem); margin-top: 8px; }
  [data-mobile-os] .tagline { margin-block: 6px 10px; font-size: 1rem; }
  [data-mobile-os] .intro { order: 1; margin-block: 8px 0; }
}
