@font-face {
  font-family: Inter;
  src: url("./assets/inter.woff2") format("woff2");
  font-display: swap;
  font-weight: 100 900;
}

:root {
  color-scheme: light;
  --paper: #f4f2ea;
  --ink: #181614;
  --burgundy: #8c1828;
  --highlight: #e6fb70;
  --line: 2px solid var(--ink);
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-padding-top: 1rem;
}

* { box-sizing: border-box; }
body { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #1765ca; outline-offset: 5px; }
.shell { width: min(90%, 83rem); margin-inline: auto; }
.skip { position: absolute; z-index: 1; top: 0; left: -100vw; padding: .75rem; background: var(--highlight); }
.skip:focus { left: 0; }

.header { border-bottom: var(--line); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 900; letter-spacing: -.045em; text-decoration: none; font-size: 1.35rem; }
nav { display: flex; flex-wrap: wrap; gap: clamp(.75rem, 3vw, 2rem); }
nav a { font-size: .9375rem; font-weight: 750; text-underline-offset: .25em; }
nav a:hover { text-decoration-thickness: 3px; }

.hero { display: grid; grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr); align-items: center; gap: clamp(1.75rem, 4vw, 4rem); padding-block: clamp(3.5rem, 8vw, 7.75rem); }
.label { font: 650 .875rem/1.5 ui-monospace, Consolas, monospace; letter-spacing: .025em; }
.eyebrow { color: var(--burgundy); text-transform: uppercase; margin-bottom: 1rem; }
h1 { font-size: clamp(3.25rem, 6.65vw, 7.5rem); font-weight: 900; letter-spacing: -.06em; line-height: .93; }
h1 span { color: var(--burgundy); }
.intro { font-size: clamp(1.05rem, 1.55vw, 1.35rem); line-height: 1.45; max-width: 34ch; margin-top: 1.5rem; }
.button { display: inline-flex; align-items: center; justify-content: center; width: fit-content; min-height: 3.2rem; margin-top: 1.5rem; padding: .7rem 1rem; border: var(--line); background: var(--paper); box-shadow: 4px 4px var(--ink); color: var(--ink); font: 800 1rem/1.2 Inter, Arial, sans-serif; text-decoration: none; text-align: center; cursor: pointer; }
.button-accent { background: var(--highlight); }
.button:hover:not(:disabled) { background: var(--ink); color: white; }
.button:active:not(:disabled) { box-shadow: none; transform: translate(4px, 4px); }
.button:disabled { opacity: .58; cursor: wait; }
.system { margin-top: 1.15rem; }
.hero-figure { min-width: 0; padding: clamp(.7rem, 2vw, 1.4rem); border: var(--line); background-color: var(--highlight); background-image: repeating-linear-gradient(90deg, transparent 0 23px, #1816141a 23px 24px), repeating-linear-gradient(transparent 0 23px, #1816141a 23px 24px); box-shadow: 7px 7px var(--ink); }
.shot { overflow: hidden; border: var(--line); background: #fff; }
.shot-bar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .25rem .75rem; border-bottom: var(--line); padding: .65rem .75rem; font: 800 .875rem/1.2 Inter, sans-serif; }
.shot img { width: 100%; height: auto; }
figcaption { margin-top: .75rem; }

.editor { color: #fdfaf3; background: var(--burgundy); border-block: var(--line); }
.editor-inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.75rem, 5vw, 4.5rem); padding-block: clamp(2.75rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2.6rem, 6vw, 5.7rem); font-weight: 900; letter-spacing: -.075em; line-height: .94; }
.editor-details { border-top: 1px solid currentColor; }
.editor-details > div { display: grid; grid-template-columns: minmax(6.4rem, .6fr) minmax(0, 1.4fr); gap: .8rem; padding: .95rem 0; border-bottom: 1px solid currentColor; }
h3 { font-size: 1.2rem; font-weight: 800; }
.editor-details p, .package p { line-height: 1.55; }

.downloads { padding-block: clamp(3.25rem, 8vw, 7rem); }
.download-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.6rem; }
.release { flex: none; }
.download-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.package { border: var(--line); padding: clamp(1rem, 3vw, 2rem); }
.package h3 { font-size: clamp(1.65rem, 3.5vw, 2.6rem); letter-spacing: -.06em; margin-bottom: .4rem; }
.size { margin-top: .9rem; }
.transfer { border-top: var(--line); margin-top: 1.6rem; padding-top: 1rem; }
.transfer progress { display: block; width: min(100%, 34rem); height: 1rem; margin-top: .75rem; accent-color: var(--burgundy); }
.cancel { margin-top: .65rem; border: var(--line); background: transparent; min-height: 2.5rem; padding-inline: .65rem; font: inherit; cursor: pointer; }
.footer { border-top: var(--line); }
.footer-inner { font-size: .875rem; }

@media (max-width: 54rem) {
  .hero, .editor-inner { grid-template-columns: 1fr; }
  .hero { gap: 1.75rem; }
  .hero-figure { max-width: 44rem; }
  h1 { font-size: clamp(3.25rem, 11vw, 6rem); }
}

@media (max-width: 36rem) {
  .header-inner { min-height: 4rem; }
  .brand { font-size: 1.1rem; gap: .4rem; }
  nav a, .shot-bar { font-size: .875rem; }
  .hero { padding-top: 2.5rem; }
  .download-heading { align-items: start; flex-direction: column; gap: .4rem; }
  .download-grid { grid-template-columns: 1fr; }
  .footer-inner { align-items: start; flex-direction: column; justify-content: center; gap: .25rem; }
}
