:root {
  color: #16181d;
  background: #f5f7f8;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(#dfe5e7 1px, transparent 1px),
    linear-gradient(90deg, #dfe5e7 1px, transparent 1px),
    #f5f7f8;
  background-size: 40px 40px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 5vw;
  border-bottom: 1px solid #d5dcde;
  background: rgb(245 247 248 / 92%);
  backdrop-filter: blur(12px);
}

.header-action {
  min-height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #bdc7ca;
  border-radius: 4px;
  background: #ffffff;
  color: #16181d;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.header-action:hover {
  border-color: #879499;
  background: #eef2f3;
}

.header-action:focus-visible {
  outline: 3px solid #f2b84b;
  outline-offset: 2px;
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: #16181d;
  font-size: 15px;
  font-weight: 720;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #16181d;
  background: #f04438;
  color: #ffffff;
  font-size: 12px;
}

main {
  display: grid;
  min-height: calc(100vh - 72px);
  place-items: center;
  padding: 48px 5vw;
}

.download-layout {
  display: grid;
  width: min(1100px, 100%);
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(48px, 8vw, 112px);
  align-items: center;
}

.content {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: #087e70;
  font-size: 13px;
  font-weight: 760;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: #16181d;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 0.98;
  letter-spacing: 0;
}

.summary {
  max-width: 620px;
  margin: 28px 0 32px;
  color: #4f5961;
  font-size: 18px;
  line-height: 1.65;
}

.file-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 32px;
  border-top: 1px solid #bdc7ca;
  border-bottom: 1px solid #bdc7ca;
}

.file-facts div {
  min-width: 0;
  padding: 18px 16px 18px 0;
}

.file-facts div + div {
  padding-left: 18px;
  border-left: 1px solid #bdc7ca;
}

.file-facts dt {
  margin-bottom: 6px;
  color: #6a747c;
  font-size: 12px;
  font-weight: 680;
  text-transform: uppercase;
}

.file-facts dd {
  overflow-wrap: anywhere;
  margin: 0;
  color: #16181d;
  font-size: 14px;
  font-weight: 650;
}

.download-button {
  display: inline-flex;
  min-height: 50px;
  padding: 0 22px;
  gap: 10px;
  align-items: center;
  justify-content: center;
  border: 1px solid #075e54;
  border-radius: 4px;
  background: #087e70;
  color: #ffffff;
  font-size: 15px;
  font-weight: 720;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    transform 160ms ease;
}

.download-button:hover {
  background: #075e54;
  transform: translateY(-1px);
}

.download-button:focus-visible {
  outline: 3px solid #f2b84b;
  outline-offset: 3px;
}

.style-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.style-list li {
  padding: 5px 8px;
  border: 1px solid #c6ced1;
  border-radius: 4px;
  background: #ffffff;
  color: #4f5961;
  font-size: 12px;
}

.preview {
  position: relative;
  display: grid;
  aspect-ratio: 1;
  overflow: hidden;
  place-items: center;
  border: 1px solid #aab6b9;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 18px 18px 0 #f2b84b;
}

.preview-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(#e2e8ea 1px, transparent 1px),
    linear-gradient(90deg, #e2e8ea 1px, transparent 1px);
  background-size: 24px 24px;
}

.preview img {
  position: relative;
  z-index: 1;
  width: min(52%, 240px);
  height: auto;
  image-rendering: pixelated;
}

.preview p {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 16px;
  margin: 0;
  padding: 7px 9px;
  border: 1px solid #aab6b9;
  background: #ffffff;
  color: #4f5961;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 11px;
}

@media (max-width: 780px) {
  main {
    display: block;
    padding-top: 40px;
  }

  .download-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  h1 {
    font-size: 52px;
  }

  .summary {
    font-size: 16px;
  }

  .preview {
    width: calc(100% - 14px);
    max-width: 520px;
    box-shadow: 12px 12px 0 #f2b84b;
  }
}

@media (max-width: 470px) {
  .file-facts {
    grid-template-columns: 1fr;
  }

  .file-facts div,
  .file-facts div + div {
    padding: 13px 0;
    border-left: 0;
  }

  .file-facts div + div {
    border-top: 1px solid #bdc7ca;
  }

  .download-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .download-button {
    transition: none;
  }
}
