:root {
  /* 2004 had no dark mode, and the homage should not grow one. */
  color-scheme: light;
  --page: #fff;
  --ink: #333;
  --muted: #666;
  --link: #0b5fbf;
  --focus: #0b5fbf;
  --lead-sub: #5a6b80;
  --rule: #ccc;
  --photo-edge: #bbb;
  --silver-top: #fbfbfb;
  --silver-bottom: #d6d6d6;
  --silver-hover-top: #fff;
  --silver-hover-bottom: #e8e8e8;
  --silver-edge: #9c9c9c;
  --divider-dark: #8f8f8f;
  --divider-light: #fff;
  --graphite-top: #6c6c6c;
  --graphite-bottom: #434343;
  --strip-top: #f8f8f8;
  --strip-bottom: #e2e2e2;
  --panel: #f7f7f7;
  --panel-edge: #b0b0b0;
  --panel-head-top: #f4f4f4;
  --panel-head-bottom: #d3d3d3;
  --info: #f2f2f2;
  --notice: #fffbe3;
  --notice-edge: #d8c870;
  --gel-edge: #123f8a;
  --gel-top-light: #4d8fe3;
  --gel-top-deep: #2a6ed0;
  --gel-bottom-deep: #1654b4;
  --gel-bottom-light: #3d88e4;
  --gel-text-shadow: rgba(0, 28, 88, 0.6);
  font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Verdana, Tahoma, sans-serif;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-size: 0.75rem;
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
a {
  color: var(--link);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
/* Links inside sentences get no other cue than colour, which is not enough on its own. */
.box__body a,
.foot a {
  text-decoration: underline;
}
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
img {
  max-width: 100%;
}
.skip-link {
  position: absolute;
  left: 8px;
  top: -4rem;
  z-index: 5;
  padding: 8px 12px;
  border: 1px solid var(--silver-edge);
  background: var(--page);
}
.skip-link:focus {
  top: 8px;
}
.page {
  width: min(780px, 100% - 32px);
  margin: 0 auto;
  padding-top: 12px;
}

/* Tab bar. The back link comes first in the markup, so it sits on its own row above the tabs to keep tab order and visual order the same. */
.back {
  display: block;
  width: fit-content;
  margin: 0 0 6px auto;
  font-size: 0.6875rem;
}
.tabs__list {
  display: flex;
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--silver-edge);
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  /* Clips the tab backgrounds to the rounded end caps. */
  overflow: hidden;
  background: linear-gradient(var(--silver-top), var(--silver-bottom));
}
.tabs__item + .tabs__item {
  border-left: 1px solid var(--divider-dark);
}
.tabs__link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  color: var(--ink);
  font-size: 0.6875rem;
  box-shadow: inset 1px 0 0 var(--divider-light);
}
.tabs__link:hover {
  background: linear-gradient(var(--silver-hover-top), var(--silver-hover-bottom));
  text-decoration: none;
}
.tabs__link[aria-current="page"] {
  background: linear-gradient(var(--graphite-top), var(--graphite-bottom));
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5), inset 1px 0 0 rgba(255, 255, 255, 0.16);
  color: #fff;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.6);
}
.tabs__link:focus-visible {
  /* Inset, because the list clips anything drawn outside the tabs; the white keeps the ring visible on graphite. */
  outline-offset: -4px;
  box-shadow: inset 0 0 0 3px #fff;
}
.tabs__item--mark .tabs__link {
  padding: 0 13px;
}
.disc {
  display: block;
}

/* Section strip */
.strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
  min-height: 40px;
  padding: 4px 14px;
  border: 1px solid var(--silver-edge);
  background: linear-gradient(var(--strip-top), var(--strip-bottom));
}
.strip__title {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.2;
  text-shadow: 0 1px 0 #fff;
}
.strip__links {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.6875rem;
}
.strip__links li + li {
  margin-left: 9px;
  padding-left: 9px;
  border-left: 1px solid var(--rule);
}

/* Two-column area. The DOM order is headline, download box, then the rest, so the stacked layout needs no reordering. */
.main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  grid-template-areas:
    "lead dl"
    "body dl";
  grid-template-rows: auto 1fr;
  column-gap: 40px;
  align-items: start;
  padding-top: 22px;
}
.lead {
  grid-area: lead;
}
.lead h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: normal;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.lead__sub {
  display: block;
  color: var(--lead-sub);
}
.lead__tagline {
  margin: 10px 0 0;
  font-size: 0.875rem;
}
.lead__body {
  grid-area: body;
}
.hero {
  margin: 18px 0 14px;
  border: 1px solid var(--photo-edge);
  background: var(--page);
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.28);
  line-height: 0;
}
.hero img {
  display: block;
  width: 100%;
  height: auto;
}
.lead__body p {
  margin: 0 0 10px;
}

/* Download box */
.dl {
  grid-area: dl;
  overflow: hidden;
  border: 1px solid var(--panel-edge);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14);
}
.dl__head {
  margin: 0;
  padding: 8px 12px;
  border-bottom: 1px solid var(--panel-edge);
  background: linear-gradient(var(--panel-head-top), var(--panel-head-bottom));
  font-size: 0.75rem;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}
.dl__body {
  padding: 12px;
}
.dl__app {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dl__app img {
  flex: none;
  width: 64px;
  height: 64px;
}
.dl__app p {
  margin: 0;
}
.dl__name {
  font-size: 0.875rem;
  font-weight: bold;
}
.dl__tag {
  color: var(--muted);
  font-size: 0.625rem;
}
.dl__choose {
  min-width: 0;
  margin: 14px 0 0;
  padding: 0;
  border: 0;
}
.dl__choose legend,
.dl__step {
  padding: 0;
  font-size: 0.75rem;
  font-weight: bold;
}
.dl__choose legend {
  margin-bottom: 3px;
}
.dl__option {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 3px 0;
  cursor: pointer;
}
.dl__option input {
  flex: none;
  margin: 1px 0 0;
  accent-color: var(--gel-bottom-deep);
}
.dl__small {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.625rem;
}
.dl__step {
  margin: 14px 0 0;
}
.gel {
  position: relative;
  isolation: isolate;
  display: block;
  margin-top: 14px;
  padding: 10px 14px 11px;
  border: 1px solid var(--gel-edge);
  border-radius: 999px;
  background: linear-gradient(
    var(--gel-top-light),
    var(--gel-top-deep) 50%,
    var(--gel-bottom-deep) 50%,
    var(--gel-bottom-light)
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 1px 3px rgba(0, 0, 0, 0.35);
  color: #fff;
  /* 19px bold counts as large text, and the highlight stays light enough that the label keeps 3:1 against it. */
  font-size: 1.1875rem;
  font-weight: bold;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 -1px 1px var(--gel-text-shadow);
}
.gel::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 2px;
  right: 8px;
  bottom: 50%;
  left: 8px;
  border-radius: 999px 999px 40% 40% / 100% 100% 40% 40%;
  background: linear-gradient(rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.02));
}
.gel:hover {
  filter: brightness(1.12) saturate(1.05);
  text-decoration: none;
}
.gel:active {
  filter: brightness(0.88);
  box-shadow: inset 0 2px 5px rgba(0, 0, 40, 0.45);
  transform: translateY(1px);
}
.gel:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.dl__meta {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.625rem;
  text-align: center;
}
.dl__notice {
  margin: 10px 0 0;
  padding: 6px 8px;
  border: 1px solid var(--notice-edge);
  border-radius: 4px;
  background: var(--notice);
  font-size: 0.625rem;
}
.dl__links {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
  font-size: 0.6875rem;
  text-align: center;
}

/* Info boxes */
.info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.box {
  overflow: hidden;
  border: 1px solid var(--panel-edge);
  border-radius: 4px;
  background: var(--info);
}
.box__head {
  margin: 0;
  padding: 5px 10px;
  border-bottom: 1px solid var(--panel-edge);
  background: linear-gradient(var(--panel-head-top), var(--panel-head-bottom));
  font-size: 0.6875rem;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}
.box__body {
  margin: 0;
  padding: 9px 10px 4px 26px;
  font-size: 0.6875rem;
}
.box__body li {
  margin: 0 0 6px;
}

/* How to and FAQ: one native disclosure per task, so it works without JavaScript and by keyboard. */
.guide {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 16px;
  overflow-wrap: anywhere;
}
.guide summary {
  padding: 6px 10px 6px 26px;
  border-top: 1px solid var(--rule);
  font-size: 0.6875rem;
  font-weight: bold;
  cursor: pointer;
}
.guide .box__head + details > summary,
.guide .guide__intro + details > summary {
  border-top: 0;
}
.guide summary:hover,
.guide details[open] > summary {
  background: var(--panel);
}
.guide summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}
.guide .box__body {
  padding-top: 2px;
}
.guide__text {
  margin: 0;
  padding: 0 10px 8px 26px;
  font-size: 0.6875rem;
}
.guide__intro {
  padding-top: 6px;
  color: var(--muted);
}
.guide__limits {
  color: var(--muted);
}

/* Screenshots */
.shots {
  margin-top: 26px;
}
.shots__head,
.badges__label {
  margin: 0;
  font-size: 0.75rem;
}
.shots__head {
  padding-bottom: 4px;
  border-bottom: 1px solid var(--rule);
}
.shots__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 12px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.shot {
  margin: 0;
}
.shot a {
  display: block;
  border: 1px solid var(--photo-edge);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  line-height: 0;
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
}
.shot figcaption {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.625rem;
}
.shots__note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.625rem;
}

/* 88x31 badges */
.badges {
  margin-top: 24px;
}
.badges__label {
  color: var(--muted);
  font-size: 0.625rem;
  font-weight: normal;
}
.badges__list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}
.badges__list img {
  display: block;
}

/* Footer */
.foot {
  margin: 24px 0 32px;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.625rem;
}
.foot p {
  margin: 0 0 6px;
}

@media (max-width: 720px) {
  body {
    font-size: 0.875rem;
  }
  .dl__head,
  .dl__choose legend,
  .dl__step,
  .shots__head {
    font-size: 0.875rem;
  }
  .back,
  .tabs__link,
  .strip__links,
  .dl__links,
  .box__head,
  .box__body,
  .guide summary,
  .guide__text {
    font-size: 0.8125rem;
  }
  .dl__small,
  .dl__meta,
  .dl__notice,
  .dl__tag,
  .shot figcaption,
  .shots__note,
  .badges__label,
  .foot {
    font-size: 0.75rem;
  }
  .tabs__list {
    width: auto;
  }
  .tabs__item {
    flex: 1 1 auto;
    border-bottom: 1px solid var(--silver-edge);
  }
  .tabs__item--mark {
    flex: 0 0 auto;
  }
  .tabs__link {
    padding: 0 10px;
  }
  .strip {
    border-top: 0;
  }
  /* The pipe dividers would be left stranded at the start of a wrapped line. */
  .strip__links {
    gap: 2px 14px;
  }
  .strip__links li + li {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }
  .main {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "lead"
      "dl"
      "body";
    grid-template-rows: auto;
    padding-top: 16px;
  }
  .dl {
    margin-top: 16px;
  }
  .lead__body {
    margin-top: 4px;
  }
  .info {
    grid-template-columns: minmax(0, 1fr);
  }
  .shots__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
