:root {
  color-scheme: dark;
  font-family: "Segoe UI", sans-serif;
  color: #f6f3ee;
  background: #111217;
  --muted: #b9b7c3;
  --accent: #e0cef9;
  --border: #3b3546;
}

* { box-sizing: border-box; }
body { margin: 0; }
main, .site-header, footer {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header, .brand { display: flex; align-items: center; }
.site-header { min-height: 83px; justify-content: space-between; gap: 16px; }
.brand { width: clamp(112px, 20vw, 152px); }
.brand img { display: block; width: 100%; height: auto; mix-blend-mode: screen; }
.header-label { color: var(--muted); font-size: .86rem; }
.brand:focus-visible, .download-action a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  min-height: 355px;
  overflow: hidden;
  isolation: isolate;
  background: #22202a;
  border: 1px solid var(--border);
  border-radius: 16px;
}
.hero-image, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-image { object-fit: cover; object-position: center 57%; }
.hero::after {
  content: "";
  background: linear-gradient(90deg, #11121bea, #11121b55 80%), linear-gradient(0deg, #11121bce, transparent 80%);
}
.hero-content { max-width: 670px; padding: clamp(24px, 6vw, 64px); }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-size: .75rem; letter-spacing: .16em; font-weight: 650; text-transform: uppercase; }
h1, h2 { font-family: Georgia, serif; font-weight: 400; margin: 0; }
h1 { font-size: clamp(2.7rem, 7vw, 5.4rem); line-height: 1.02; letter-spacing: -.045em; overflow-wrap: anywhere; }
.hero-content > p:last-child { max-width: 420px; color: #e4dfea; line-height: 1.6; margin: 18px 0 0; }

.downloads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.download-card {
  display: flex;
  flex-direction: column;
  align-items: start;
  background: #1b1a23;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: clamp(22px, 4vw, 36px);
}
.download-card h2 { font-size: clamp(1.9rem, 4vw, 2.5rem); }
.download-card h2 + p { color: var(--muted); line-height: 1.65; margin: 12px 0 24px; }
.download-action { margin-top: auto; display: grid; gap: 10px; }
.download-action button, .download-action a {
  width: fit-content;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 7px;
  border: 1px solid #6c587e;
  background: #342a42;
  color: #e8ddf2;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
}
.download-action button:disabled { cursor: not-allowed; }
.download-action a:hover { background: #453552; }
.download-action span, footer { color: var(--muted); font-size: .84rem; }

.access-note { margin-top: 24px; padding: 0 2px; }
.access-note p { margin: 5px 0 0; color: var(--muted); line-height: 1.6; }
footer { padding: 24px 0 34px; margin-top: 24px; border-top: 1px solid var(--border); }

@media (max-width: 660px) {
  main, .site-header, footer { width: calc(100% - 32px); }
  .site-header { min-height: 69px; }
  .hero { min-height: 290px; }
  .hero-image { object-position: 60% center; }
  .hero::after { background: linear-gradient(90deg, #11121be8, #11121b66), linear-gradient(0deg, #11121bce, transparent); }
  .downloads { grid-template-columns: 1fr; gap: 12px; margin-top: 12px; }
}
