:root {
  --bordeaux: #7a1530;
  --bordeaux-dark: #5a0f23;
  --ink: #25252a;
  --muted: #595b63;
  --border: #dcdde1;
  --header-height: 155px;
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  letter-spacing: 0;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #fff; line-height: 1.65; }
.package-name { font-family: "Courier New", Courier, monospace; font-size: inherit; font-weight: 400; }
.inner { width: min(1080px, calc(100% - 64px)); margin-inline: auto; }
a { color: var(--bordeaux); text-underline-offset: 3px; }
a:hover { color: var(--bordeaux-dark); text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid #286fa5; outline-offset: 5px; }

.skip-link { position: fixed; left: 16px; top: -100px; z-index: 20; padding: 8px 16px; background: #fff; }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 10; background: var(--bordeaux); color: #fff; padding: 24px 0 20px; }
.site-header h1 { margin: 0 0 18px; font-size: 30px; line-height: 1.25; font-weight: 600; }
nav { display: flex; gap: 12px; }
nav a { min-width: 130px; padding: 7px 20px; border: 1px solid #c98b9b; border-radius: 6px; color: #fff; text-align: center; text-decoration: none; font-weight: 600; }
nav a:hover, nav a[aria-current="location"] { background: var(--bordeaux-dark); border-color: #fff; color: #fff; }
nav a[aria-current="location"] { box-shadow: inset 0 0 0 1px #fff; }
nav a:focus-visible { outline-color: #fff; }

section { padding: 42px 0; }
h2 { margin: 0 0 14px; color: var(--bordeaux-dark); font-size: 26px; line-height: 1.3; }
.section-intro { margin: 0 0 28px; max-width: 850px; color: var(--muted); }
.package-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.package { min-width: 0; border: 1px solid var(--border); border-top: 4px solid var(--bordeaux); border-radius: 6px; padding: 25px 26px 21px; background: #fff; }
.package-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 18px; }
.package h3 { margin: 0; color: var(--bordeaux-dark); font-size: 25px; line-height: 1.3; }
.package-subtitle { margin: 7px 0 16px; color: var(--muted); font-size: 15px; }
.package p:not(.package-subtitle) { margin-top: 0; margin-bottom: 16px; }
.package-detail { color: var(--muted); font-size: 14px; }
.package-downloads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 320px; margin-top: 22px; }
.package-download { min-width: 0; }
.package-links { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 14px; margin-top: 9px; font-size: 14px; }
.download { display: inline-flex; width: 100%; min-height: 42px; align-items: center; justify-content: center; gap: 8px; padding: 8px 15px; border: 1px solid var(--bordeaux); border-radius: 4px; background: var(--bordeaux); color: #fff; font-weight: 600; text-decoration: none; }
.package p.download-status { margin-top: 14px; margin-bottom: 0; }
.download img { filter: brightness(0) invert(1); }
.download:hover { color: #fff; background: var(--bordeaux-dark); }
.package-pending { border-top-color: #92979e; background: #fafbfc; }
.status { color: #62656b; font-size: 13px; font-weight: 600; }

#references { border-top: 1px solid var(--border); background: #fafbfc; padding-bottom: 48px; }
.reference-list { margin: 24px 0 0; padding-left: 23px; }
.reference-list li { padding-left: 7px; margin-bottom: 20px; }
.reference-list li:last-child { margin-bottom: 0; }
.reference-list a { overflow-wrap: anywhere; }
footer { padding: 23px 0; color: #fff; background: var(--bordeaux-dark); font-size: 13px; }
footer .inner { display: flex; justify-content: space-between; align-items: baseline; gap: 14px 30px; flex-wrap: wrap; }
footer p { margin: 0; }
footer a { color: #fff; }
footer a:hover { color: #fff; }

@media (max-width: 740px) {
  .inner { width: calc(100% - 36px); }
  .site-header { padding-top: 20px; }
  .site-header h1 { font-size: 26px; }
  .package-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .package { padding: 22px; }
  section { padding: 30px 0; }
  h2 { font-size: 24px; }
  nav a { min-width: 0; flex: 1; max-width: 170px; padding-inline: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
}
