/* The look of a 2006 freeware download site, on purpose: system fonts only
   (the host's CSP allows nothing from another origin), bevelled grey chrome,
   and a palette nobody would choose. */

:root {
  --navy: #000066;
  --navy-stripe: #00007a;
  --chrome: #c0c0c0;
  --chrome-light: #efefef;
  --chrome-dark: #6b6b6b;
  --paper: #ffffff;
  --ink: #000000;
  --link: #0000ee;
  --alarm: #e00000;
  --caution: #ffff00;
  --go: #19c519;
  --go-dark: #0a7a0a;

  --shouty: Impact, "Haettenschweiler", "Arial Narrow Bold", "Arial Black", sans-serif;
  --casual: "Comic Sans MS", "Comic Sans", "Chalkboard SE", "Comic Neue", cursive;
  --plain: Verdana, Geneva, Tahoma, sans-serif;
  --legal: "Times New Roman", Times, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  font-family: var(--plain);
  font-size: 100%;
  line-height: 1.45;
  color: var(--ink);
}

body {
  margin: 0;
  background-color: var(--navy);
  background-image: repeating-linear-gradient(45deg, var(--navy) 0 14px, var(--navy-stripe) 14px 28px);
}

a {
  color: var(--link);
}

:focus-visible {
  outline: 3px dashed var(--alarm);
  outline-offset: 3px;
}

/* For crawlers, agents and screen readers: off-screen, still in the text. */
.for-machines {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Ticker */

.ticker {
  overflow: hidden;
  background: var(--ink);
  color: var(--caution);
  font-family: var(--shouty);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  border-bottom: 3px solid var(--caution);
}

.ticker p {
  display: inline-block;
  margin: 0;
  padding: 0.3rem 0 0.3rem 100%;
  animation: ticker 28s linear infinite;
}

@keyframes ticker {
  to {
    transform: translateX(-100%);
  }
}

/* Page frame */

.frame {
  max-width: 50rem;
  margin: 1.25rem auto 2.5rem;
  padding: 0 1rem;
}

.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--chrome);
  border: 3px outset var(--chrome-light);
}

.logo {
  font-family: var(--shouty);
  font-size: clamp(1.9rem, 6vw, 2.75rem);
  line-height: 1;
  color: var(--alarm);
  text-decoration: none;
  text-shadow: 2px 2px 0 var(--caution), 4px 4px 0 var(--ink);
}

.logo span {
  color: var(--go);
}

.logo small {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--plain);
  font-size: 0.8rem;
  color: var(--ink);
  text-shadow: none;
}

.badges {
  display: flex;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.badge {
  display: grid;
  place-content: center;
  width: 4.75rem;
  height: 4.75rem;
  border-radius: 50%;
  border: 3px double var(--ink);
  font-family: var(--shouty);
  font-size: 0.95rem;
  line-height: 1.05;
  text-align: center;
  transform: rotate(-8deg);
}

.badge small {
  font-family: var(--legal);
  font-size: 0.65rem;
  font-style: italic;
}

.badge-safe {
  background: var(--go);
}

.badge-secure {
  background: var(--caution);
  transform: rotate(6deg);
}

.badge-award {
  background: #ffa500;
}

/* The fictional product ad */

.ad {
  margin-top: 1rem;
  padding: 0.5rem 0.75rem 0.75rem;
  background: linear-gradient(180deg, #3b2a14, #5a7d2b);
  border: 4px ridge #8b5a2b;
  color: var(--paper);
}

.ad-label {
  margin: 0 0 0.25rem;
  font-size: 0.65rem;
  color: var(--chrome);
}

.ad-body {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ad-art {
  flex: none;
  display: grid;
  place-items: center;
  width: 6rem;
  height: 6rem;
  background:
    linear-gradient(90deg, #6aa84f 0 25%, #93c47d 25% 50%, #6aa84f 50% 75%, #93c47d 75%) top / 100% 30% no-repeat,
    linear-gradient(90deg, #7f5f3f 0 25%, #96714b 25% 50%, #7f5f3f 50% 75%, #96714b 75%) bottom / 100% 70% no-repeat;
  border: 3px solid var(--ink);
  image-rendering: pixelated;
}

/* A blocky sword, drawn with box-shadow pixels. */
.sword {
  width: 6px;
  height: 6px;
  background: transparent;
  box-shadow:
    18px -24px #e0f7ff, 12px -18px #e0f7ff, 6px -12px #e0f7ff, 0 -6px #b8e2f2,
    -6px 0 #b8e2f2, -12px 6px #7a4a1c, -18px 12px #7a4a1c,
    -6px 12px #3a3a3a, -18px 0 #3a3a3a, -24px 18px #7a4a1c;
}

.ad-copy {
  flex: 1;
}

.ad-name {
  margin: 0;
  font-family: var(--shouty);
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  line-height: 1;
  color: var(--caution);
  text-shadow: 3px 3px 0 var(--ink);
}

.ad-pitch {
  margin: 0.35rem 0 0.6rem;
  font-family: var(--casual);
  font-size: 1.05rem;
}

.ad-cta {
  padding: 0.35rem 0.9rem;
  font-family: var(--shouty);
  font-size: 1.1rem;
  color: var(--ink);
  background: var(--caution);
  border: 3px outset #fff7a0;
  cursor: pointer;
}

.ad-cta:active {
  border-style: inset;
}

.ad-sold-out {
  margin: 0;
  font-family: var(--shouty);
  font-size: 1.1rem;
  color: var(--caution);
}

.ad-fine {
  margin: 0.6rem 0 0;
  font-family: var(--legal);
  font-size: 0.62rem;
  line-height: 1.3;
  color: #d9d9d9;
}

/* Main panel */

.panel {
  margin-top: 1rem;
  padding: 1.25rem clamp(1rem, 4vw, 2rem) 1.5rem;
  background: var(--paper);
  border: 3px outset var(--chrome-light);
}

h1 {
  margin: 0;
  font-family: var(--shouty);
  font-size: clamp(2rem, 7vw, 3.25rem);
  font-weight: normal;
  line-height: 1.05;
}

.free {
  display: inline-block;
  padding: 0 0.35rem;
  color: var(--paper);
  background: var(--alarm);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% {
    color: var(--caution);
  }
}

.lede {
  max-width: 36rem;
  margin: 0.75rem 0 1rem;
  font-size: 1.05rem;
}

h2 {
  margin: 0 0 0.5rem;
  font-family: var(--shouty);
  font-size: 1.5rem;
  font-weight: normal;
  color: var(--alarm);
}

.promises {
  margin: 0 0 1.5rem;
  padding: 0.75rem 1rem;
  list-style: none;
  font-family: var(--casual);
  background: #eaffea;
  border: 2px dashed var(--go-dark);
}

.promises li {
  padding-left: 1.75rem;
  text-indent: -1.75rem;
}

.promises li::before {
  content: "✔";
  display: inline-block;
  width: 1.75rem;
  text-indent: 0;
  color: var(--go-dark);
  font-weight: bold;
}

/* Verification */

.verify {
  padding: 1rem;
  background: #fffbe0;
  border: 3px solid var(--caution);
  outline: 3px solid var(--ink);
}

.verify > p {
  max-width: 36rem;
  margin-top: 0;
}

.verify-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.verify-form label {
  font-weight: bold;
}

select {
  min-height: 2.75rem;
  max-width: 100%;
  padding: 0.25rem 0.5rem;
  font: inherit;
  background: var(--paper);
  border: 2px inset var(--chrome);
}

.unlock {
  min-height: 2.75rem;
  padding: 0.35rem 1.1rem;
  font-family: var(--shouty);
  font-size: 1.2rem;
  color: var(--paper);
  background: var(--alarm);
  border: 3px outset #ff8080;
  cursor: pointer;
}

.unlock:active {
  border-style: inset;
}

.verify-error {
  flex-basis: 100%;
  margin: 0;
  color: var(--alarm);
  font-weight: bold;
}

.verify-error:empty,
.verify-progress:empty {
  display: none;
}

.verify-progress {
  margin: 0;
  font-family: var(--casual);
  font-size: 1.1rem;
}

/* Download */

.download {
  margin-top: 1.5rem;
  text-align: center;
}

.download-button,
.button-link {
  display: inline-block;
  padding: 0.6rem 1.75rem;
  font-family: var(--shouty);
  font-size: clamp(1.75rem, 7vw, 2.75rem);
  color: var(--paper);
  text-decoration: none;
  text-shadow: 2px 2px 0 var(--go-dark);
  background: linear-gradient(180deg, #7dff6e, var(--go) 45%, var(--go-dark));
  border: 4px outset #9dff8f;
  border-radius: 0.6rem;
}

.download p {
  max-width: 34rem;
  margin: 0.75rem auto 0;
}

.smartscreen {
  font-size: 0.85rem;
}

/* Reviews */

.reviews {
  margin-top: 2rem;
}

blockquote {
  margin: 0 0 0.75rem;
  padding: 0.5rem 0.75rem;
  background: var(--chrome-light);
  border-left: 5px solid var(--caution);
}

blockquote p {
  margin: 0;
  font-family: var(--casual);
}

blockquote p::before {
  content: "★★★★★ ";
  color: #e0a800;
}

blockquote footer {
  font-size: 0.8rem;
  color: var(--chrome-dark);
}

/* Footer */

.fineprint {
  margin-top: 1rem;
  font-family: var(--legal);
  font-size: 0.75rem;
  color: var(--chrome);
}

.fineprint a {
  color: var(--caution);
}

.notfound {
  text-align: center;
}

@media (max-width: 30rem) {
  .badge {
    width: 4rem;
    height: 4rem;
    font-size: 0.8rem;
  }

  .ad-body {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker p,
  .free {
    animation: none;
  }

  .ticker p {
    padding-left: 1rem;
    white-space: normal;
  }
}
