:root {
  color-scheme: dark;
  --bg: #0b1019;
  --surface: #111823;
  --line: rgba(228, 217, 133, .2);
  --text: #f4f4f1;
  --muted: #b8bec8;
  --gold: #c8b75f;
  --gold-light: #e4d985;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
}

* { box-sizing: border-box; }

html { min-width: 320px; min-height: 100%; background: var(--bg); }

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Montserrat, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.page-shell {
  width: min(100% - 48px, 960px);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin-inline: auto;
}

.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.brand { display: inline-flex; align-items: center; }
.brand img { display: block; width: 164px; height: auto; }

.back-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 2px 0 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition: color 160ms ease;
}

.back-link span { color: var(--gold-light); font-size: 16px; }
.back-link:hover { color: var(--gold-light); }

main { flex: 1; padding: clamp(64px, 11vh, 112px) 0 80px; }

.materials { width: min(100%, 720px); margin-inline: auto; }

h1 {
  margin: 0 0 38px;
  color: var(--text);
  font-size: clamp(40px, 7vw, 60px);
  font-weight: 780;
  letter-spacing: -.045em;
  line-height: 1;
}

.download-list { border-top: 1px solid var(--line); }

.download-item {
  min-height: 104px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px 12px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease-out;
}

.file-mark {
  width: 42px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(228, 217, 133, .35);
  border-radius: 6px;
  color: var(--gold-light);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .06em;
}

.file-name { font-size: 18px; font-weight: 700; letter-spacing: -.015em; }
.file-name span { color: var(--muted); font-weight: 500; }

.download-action {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1px solid rgba(228, 217, 133, .48);
  border-radius: 5px;
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 750;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.download-action svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.download-item:focus-visible, .back-link:focus-visible, .brand:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 4px;
}

.download-item:active { transform: scale(.99); }

.site-footer {
  min-height: 64px;
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, .09);
  color: #929aa7;
  font-size: 12px;
}

@media (hover: hover) and (pointer: fine) {
  .download-item:hover { background: rgba(255, 255, 255, .025); }
  .download-item:hover .download-action {
    border-color: var(--gold-light);
    background: var(--gold);
    color: #10141a;
  }
}

@media (max-width: 640px) {
  .page-shell { width: min(100% - 36px, 960px); }
  .site-header { min-height: 72px; }
  .brand img { width: 142px; }
  .back-link { font-size: 12px; }
  main { padding: 58px 0 72px; }
  h1 { margin-bottom: 28px; font-size: 42px; }
  .download-item { min-height: 88px; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 12px; padding: 12px 4px; }
  .file-mark { width: 38px; height: 44px; }
  .file-name { font-size: 16px; }
  .download-action { min-height: 44px; gap: 0; padding: 10px 11px; }
  .download-action span { display: none; }
  .download-action svg { width: 19px; height: 19px; }
  .site-footer { min-height: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
