:root {
  --color-background: #dddddd;
  --color-surface: #ffffff;
  --color-text: #20242a;
  --color-muted: #626a75;
  --color-border: #d8dde4;
  --color-brand: #3f5a86;
  --color-brand-dark: #2d4265;
  --color-nav: #eec84e;
  --color-nav-border: #bfa13f;
  --color-store: #d0d8e4;
  --content-gutter: clamp(1rem, 4.2vw, 2.5rem);
  --site-width: 59.375rem;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
}

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

html {
  background: var(--color-background);
  color: var(--color-text);
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 100%;
  line-height: 1.5;
}

body {
  margin: 0;
  background: var(--color-background);
}

img {
  display: inline-block;
  height: auto;
  max-width: 100%;
  vertical-align: middle;
}

a {
  color: var(--color-brand);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.14em;
}

a:hover,
a:focus-visible {
  color: var(--color-brand-dark);
}

h1,
h2 {
  line-height: 1.2;
}

h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
}

h2 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
}

.u-content {
  padding-inline: var(--content-gutter);
}

.u-list-reset {
  margin: 0;
  padding: 0;
  list-style: none;
}

.u-m-0 {
  margin: 0;
}

.u-mb-2 {
  margin-bottom: var(--space-2);
}

.u-text-center {
  text-align: center;
}

.u-text-muted {
  color: var(--color-muted);
}

.u-text-sm {
  font-size: 0.875rem;
}

.site-shell {
  width: min(100%, var(--site-width));
  min-height: 100vh;
  margin-inline: auto;
  overflow: hidden;
  background: var(--color-surface);
  border-inline: 1px solid #cccccc;
}

.site-header__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 15rem;
  min-height: 7.5rem;
  background: #c8d1df url("/images/gradient.png") repeat-x;
}

.site-brand {
  display: block;
  min-width: 0;
}

.site-brand__image {
  display: block;
  width: 100%;
  max-width: 40.625rem;
}

.store-card {
  display: grid;
  grid-template-columns: 4.375rem minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: var(--space-1) var(--space-2);
  align-self: start;
  min-height: 6.25rem;
  margin: 0.625rem;
  padding: 0.3125rem;
  color: var(--color-brand);
  background: var(--color-store);
  border: 1px solid #748bb1;
  font-size: 0.75rem;
  line-height: 1.35;
  text-align: center;
}

.store-card__box-art {
  grid-row: 1 / 3;
  width: 4.375rem;
  border: 1px solid #666666;
}

.store-card__copy {
  align-self: end;
}

.store-card__markets {
  display: flex;
  gap: var(--space-2);
  align-items: start;
  justify-content: center;
}

.store-card__markets a {
  display: inline-flex;
  padding: var(--space-1);
}

.site-nav {
  background: var(--color-nav);
  border-block: 1px solid var(--color-nav-border);
}

.site-nav__list {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: space-evenly;
}

.site-nav a {
  display: grid;
  min-height: 2.75rem;
  padding: var(--space-2) var(--space-3);
  place-items: center;
  color: var(--color-brand);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #ffffff;
  background: rgba(63, 90, 134, 0.16);
}

.page-intro,
.section-intro {
  padding-block: var(--space-5);
}

.section-intro {
  border-top: 1px solid var(--color-border);
}

.page-intro p,
.section-intro p {
  max-width: 75ch;
}

.trophy {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: var(--space-4);
  align-items: center;
  min-height: 6rem;
  padding-block: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.trophy__art {
  width: 4rem;
}

.trophy__name {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  margin: 0 0 var(--space-1);
  font-weight: 600;
}

.trophy__medal {
  flex: 0 0 auto;
  width: 1.0625rem;
  height: 1.0625rem;
}

.trophy-list {
  border-bottom: 1px solid var(--color-border);
}

.ad-slot {
  max-width: 100%;
  padding-block: var(--space-4);
  overflow: hidden;
  border-top: 1px solid var(--color-border);
}

.ad-slot iframe,
.ad-slot ins {
  max-width: 100% !important;
}

.site-footer {
  padding-block: var(--space-5);
}

@media (max-width: 48rem) {
  .site-shell {
    border-inline: 0;
  }

  .site-header__top {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-brand__image {
    width: 100%;
  }

  .store-card {
    width: min(22rem, calc(100% - 2rem));
    margin: var(--space-3) auto;
  }

  .site-nav__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }

  .site-nav li:nth-child(odd) {
    border-right: 1px solid rgba(63, 90, 134, 0.18);
  }

  .site-nav li:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(63, 90, 134, 0.18);
  }
}

@media (max-width: 30rem) {
  .trophy {
    grid-template-columns: 3.5rem minmax(0, 1fr);
    gap: var(--space-3);
    min-height: 5.5rem;
  }

  .trophy__art {
    width: 3.5rem;
  }
}

@media print {
  html,
  body,
  .site-shell {
    background: #ffffff;
  }

  .site-shell {
    width: 100%;
    border: 0;
  }

  .store-card,
  .site-nav,
  .ad-slot {
    display: none;
  }

  a {
    color: inherit;
  }
}
