@font-face {
  font-family: Anton;
  src: url("assets/Anton.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #1a1a1a;
  --muted: #626262;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #fff;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; margin: 0; }
main { display: flex; flex: 1; flex-direction: column; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 6px; }
::selection { color: #fff; background: var(--ink); }
.wrap { width: min(1280px, calc(100% - 96px)); margin-inline: auto; }

.skip-link {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  padding: 12px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.masthead { display: flex; align-items: center; min-height: clamp(60px, 9vh, 84px); gap: 16px; }
.wordmark { font-size: 21px; font-weight: 800; letter-spacing: .04em; }
.edition { border-left: 2px solid var(--ink); padding: 9px 0 9px 16px; }
.edition, dt, .footer nav, small {
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .04em;
}
.edition { color: var(--muted); }
.footer a:hover { text-decoration: underline; text-underline-offset: 5px; }

.hero {
  flex: 1;
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  align-items: center;
  gap: 64px;
  padding-block: clamp(12px, 3vh, 24px) clamp(20px, 5vh, 40px);
}
h1, h2 { margin: 0; font-family: Anton, Impact, "Arial Narrow", sans-serif; font-weight: 400; }
h1 { font-size: clamp(64px, min(10.4vw, 13.5vh), 150px); line-height: 1.06; letter-spacing: -.025em; }
.lede { margin: clamp(16px, 3.5vh, 30px) 0 12px; font-size: 20px; line-height: 1.4; letter-spacing: -.025em; }
.description { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.app { min-width: 0; width: 100%; max-width: max(320px, calc((100svh - 500px) * 1.774)); margin: 0; justify-self: end; }
.app img { display: block; width: 100%; height: auto; border: 1px solid #ddd; }
.app figcaption { padding-top: 22px; }
.shortcuts { display: flex; justify-content: space-between; gap: 12px; margin: 0; }
dt { color: var(--muted); font-size: 10px; }
dd { margin: 7px 0 0; }
kbd { font: 11px "Courier New", Courier, monospace; white-space: nowrap; }

.download { padding-block: clamp(20px, 4vh, 32px) clamp(16px, 3.5vh, 28px); background: var(--ink); color: #fff; }
.download ::selection { color: var(--ink); background: #fff; }
.download-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: clamp(14px, 3.4vh, 28px); }
h2 { font-size: clamp(36px, 6vh, 48px); line-height: 1.1; letter-spacing: -.015em; }
.download-heading p { margin: 0; color: #c4c4c4; font-size: 14px; line-height: 1.7; }
code { color: #fff; font: inherit; font-family: "Courier New", Courier, monospace; }
.downloads { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid #606060; }
.downloads a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: clamp(64px, 10vh, 88px); padding: 12px 24px; border-left: 1px solid #606060; }
.downloads a:first-child { padding-left: 0; border-left: 0; }
.downloads a:last-child { padding-right: 0; }
.downloads a:hover { background: #2b2b2b; }
.downloads a:focus-visible { outline-offset: -5px; }
.downloads strong { display: block; font-size: 22px; font-weight: 400; letter-spacing: -.035em; }
small { display: block; margin-top: 7px; color: #c4c4c4; font-size: 10px; }
.download-arrow { font-size: 28px; font-weight: 400; }

.footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: clamp(56px, 8vh, 76px); }
.web-link { display: flex; align-items: center; gap: 16px; min-height: 44px; font-size: 14px; }
.footer nav { display: flex; gap: 28px; color: var(--muted); }
.footer nav a { display: flex; align-items: center; min-height: 44px; gap: 8px; }

@media (min-width: 721px) and (max-height: 700px) {
  .masthead { min-height: 52px; }
  .hero { padding-block: 8px 16px; }
  h1 { font-size: clamp(56px, min(10.4vw, 12vh), 150px); }
  .lede { margin-top: 14px; }
  .app figcaption { padding-top: 14px; }
  .download { padding-block: 16px 14px; }
  .download-heading { margin-bottom: 12px; }
  h2 { font-size: 34px; }
  .downloads a { min-height: 56px; padding-block: 8px; }
  .footer { min-height: 48px; }
  .web-link, .footer nav a { min-height: 36px; }
}

@media (max-width: 1050px) {
  .wrap { width: calc(100% - 64px); }
  .hero { gap: 40px; padding-block: 32px 44px; }
  h1 { font-size: clamp(80px, 10.4vw, 120px); }
  .lede { max-width: 290px; font-size: 18px; }
  .shortcuts { flex-wrap: wrap; gap: 16px 22px; }
  .downloads a { padding-inline: 16px; }
}

@media (max-width: 720px) {
  .wrap { width: calc(100% - 40px); }
  .masthead { min-height: 76px; gap: 12px; }
  .wordmark { font-size: 18px; }
  .edition { max-width: 130px; padding: 5px 0 5px 12px; font-size: 9px; line-height: 1.5; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding-block: 28px 44px; }
  h1 { font-size: clamp(80px, 17.6vw, 126px); }
  .lede { max-width: none; margin-top: 24px; font-size: 18px; }
  .description { font-size: 15px; }
  .app { max-width: 550px; }
  .app figcaption { padding-top: 16px; }
  .shortcuts { flex-wrap: nowrap; gap: 8px; }
  dt { font-size: 9px; }
  kbd { font-size: 10px; }
  .download { padding-block: 28px; }
  .download-heading { display: block; margin-bottom: 24px; }
  h2 { font-size: 42px; }
  .download-heading p { margin-top: 16px; font-size: 13px; }
  .downloads { grid-template-columns: repeat(2, 1fr); }
  .downloads a { min-height: 88px; padding-inline: 16px; }
  .downloads a:nth-child(odd) { padding-left: 0; border-left: 0; }
  .downloads a:nth-child(even) { padding-right: 0; }
  .downloads a:nth-child(n + 3) { border-top: 1px solid #606060; }
  .downloads strong { font-size: 21px; }
  .footer { align-items: flex-start; flex-direction: column; gap: 6px; padding-block: 20px; }
  .footer nav { flex-wrap: wrap; gap: 8px 24px; font-size: 10px; }
}
