@font-face {
  font-family: "Open Sans Variable";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("fonts/open-sans-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "TKE Titillium";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/titillium-web-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "TKE Titillium";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/titillium-web-latin-600-normal.woff2") format("woff2");
}

:root {
  --purple-dark: #311b33;
  --purple: #612166;
  --purple-bright: #96239f;
  --yellow: #ffce00;
  --off-white: #f7f7f2;
  --line: #e6e6e6;
  --muted: #5a495c;
  --font-text: "Open Sans Variable", Arial, Helvetica, sans-serif;
  --font-head: "TKE Titillium", "Titillium Web", Arial, Helvetica, sans-serif;
  --wrap: 102.5rem;
  --gutter: 2rem;
  --arrow-out: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 17 17 7M8 7h9v9' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

@media (max-width: 899px) {
  :root { --gutter: 1.5rem; }
}
@media (max-width: 640px) {
  :root { --gutter: 1rem; }
}

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

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: #fff;
  color: #000;
  font: 400 1.125rem/1.5 var(--font-text);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--purple-bright); }
a:hover { color: var(--purple-dark); }
a:focus-visible {
  outline: 2px solid var(--purple-dark);
  outline-offset: 2px;
}

.wrap {
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  top: -4rem;
  left: 0.5rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  background: var(--purple-dark);
  color: #fff;
}
.skip-link:focus { top: 0.5rem; }

.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
}
@media (min-width: 900px) {
  .home-layout {
    grid-template-columns: 15rem minmax(0, 1fr);
    gap: 4rem;
  }
  .home-sidebar {
    position: sticky;
    top: 1.5rem;
    align-self: start;
  }
}
@media (max-width: 899px) {
  .home-sidebar { display: none; }
}

.sidebar-title {
  margin: 0 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--purple);
  color: var(--muted);
  font: 600 1.25rem/1.2 var(--font-head);
}
.product-list,
.version-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.product-list > li + li { margin-top: 1.5rem; }

.product-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--purple-dark);
  font: 600 1.375rem/1.2 var(--font-head);
  text-decoration: none;
}
.product-link:hover { color: var(--purple-bright); }
.product-link img {
  flex: none;
  width: 2rem;
  height: 2rem;
  border-radius: 0.45rem;
}
.version-list { margin: 0.5rem 0 0 2.75rem; }
.version-list a {
  display: block;
  padding: 0.25rem 0;
  font-size: 1rem;
  text-decoration: none;
}
.version-list a:hover { text-decoration: underline; }

.home-main { max-width: 66rem; }

.cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2400 / 500;
  object-fit: cover;
  border-radius: 6px;
}
@media (max-width: 640px) {
  .cover { aspect-ratio: 2.2 / 1; }
}

.home-main h1 {
  margin: 2rem 0 0.75rem;
  color: var(--purple-dark);
  font: 400 clamp(2.25rem, 4vw, 3.25rem)/1.1 var(--font-head);
}
.lead {
  max-width: 40rem;
  margin: 0 0 2.5rem;
  color: var(--muted);
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
}

.section-title {
  margin: 0 0 1.5rem;
  color: var(--purple-dark);
  font: 400 1.875rem/1.1 var(--font-head);
}
.section-title::after {
  content: "";
  display: block;
  width: 2.75rem;
  height: 0.1875rem;
  margin-top: 0.625rem;
  background: var(--yellow);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.5rem;
  border: 1px solid var(--purple);
  border-radius: 1.875rem;
  background: transparent;
  color: var(--purple-dark);
  font: 400 1.125rem/1.5 var(--font-head);
  text-decoration: none;
  transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out, color 0.2s ease-in-out;
}
.button:hover {
  border-color: var(--purple-dark);
  background: var(--purple-dark);
  color: #fff;
}
.button-primary {
  border-color: var(--yellow);
  background: var(--yellow);
}
.button-out::after {
  content: "";
  flex: none;
  width: 1rem;
  height: 1rem;
  background-color: currentColor;
  -webkit-mask: var(--arrow-out) center / contain no-repeat;
  mask: var(--arrow-out) center / contain no-repeat;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
  gap: 1.5rem;
  container-type: inline-size;
}
.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  scroll-margin-top: 1.5rem;
  transition: box-shadow 0.2s ease-in-out;
}
.card:hover { box-shadow: 0 0.375rem 1.25rem rgba(49, 27, 51, 0.14); }
.card:only-child { grid-column: 1 / -1; }

.card-media {
  position: relative;
  display: block;
  max-height: 20rem;
  aspect-ratio: 2 / 1;
  background: var(--off-white);
}
.card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
}
.card-body p {
  margin: 0;
  font-size: 1rem;
}
.card-head {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.card-icon {
  flex: none;
  width: 3rem;
  height: 3rem;
  border-radius: 0.6rem;
}
.card h3 {
  margin: 0;
  color: var(--purple-dark);
  font: 400 2rem/1.1 var(--font-head);
}
.card-body .card-sub {
  margin: 0.125rem 0 0;
  color: var(--muted);
  font: 400 1.25rem/1.2 var(--font-head);
}
.card-body .card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

@container (min-width: 60rem) {
  .card:only-child { flex-direction: row; }
  .card:only-child .card-media {
    flex: 0 0 52%;
    max-height: none;
    aspect-ratio: auto;
  }
  .card:only-child .card-body {
    justify-content: center;
    padding: 2rem;
  }
}

.help {
  max-width: 46rem;
  margin-top: 3rem;
  padding: 1.5rem 2rem;
  border-left: 4px solid var(--yellow);
  background: var(--off-white);
}
.help h2 {
  margin: 0 0 0.5rem;
  color: var(--purple-dark);
  font: 400 1.625rem/1.1 var(--font-head);
}
.help p { margin: 0; }
@media (max-width: 640px) {
  .help { padding: 1.25rem; }
}

.home-footer {
  margin-top: 4rem;
  background: var(--purple-dark);
  color: #fff;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.footer-brand img {
  display: block;
  width: 120px;
  height: auto;
}
.footer-brand p {
  margin: 0;
  font-size: 1rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  margin: 0;
  padding: 0;
  font-size: 1rem;
  list-style: none;
}
.home-footer a { color: #fff; }
.home-footer a:hover { color: var(--yellow); }
.home-footer a:focus-visible { outline-color: #fff; }
