@font-face {
  font-family: "Medeo Sans";
  src: url("/assets/medeo-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --gap: clamp(10px, 1.67vw, 24px);
  --gutter: clamp(10px, 2.2vw, 24px);
  --radius: clamp(16px, 2.15vw, 28px);
  --tile-shadow: 0 1px 2px rgb(0 0 0 / 4%), 0 3px 10px rgb(0 0 0 / 4%);
}

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

html, body {
  block-size: 100%;
  margin: 0;
  overflow: clip;
}

body {
  background: #fff;
  color: #000;
  font-family: "Medeo Sans", system-ui, sans-serif;
  font-optical-sizing: auto;
}

h1, h2, p {
  margin: 0;
}

.screen {
  display: grid;
  block-size: 100%;
}

.wrap {
  inline-size: min(1200px, calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.home-screen {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.announce {
  border-block-end: 1px solid #e7e5e2;
  background: #f4f3f1;
  color: #5f5e5c;
  font-size: clamp(11px, 1.2vw, 13px);
}

.announce .wrap, .hl, .mn, .hr {
  display: flex;
  align-items: center;
}

.announce .wrap {
  justify-content: space-between;
  gap: var(--gap);
  min-block-size: clamp(30px, 3vw, 40px);
  padding-block: 6px;
}

.hd {
  border-block-end: 1px solid #e7e5e2;
}

.header-grid {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  gap: var(--gap);
  min-block-size: clamp(52px, 6vw, 77px);
}

.pick-logo {
  inline-size: clamp(48px, 5.25vw, 76px);
  block-size: auto;
}

.hl {
  gap: clamp(6px, 1.4vw, 20px);
}

.mn {
  justify-content: center;
  gap: 2px;
}

.hr {
  justify-content: flex-end;
  gap: clamp(6px, .84vw, 12px);
}

.nl {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-inline: clamp(5px, 1vw, 14px);
  font-size: clamp(12px, 1.35vw, 15px);
  white-space: nowrap;
}

.icon-button, .sa {
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.icon-button {
  inline-size: clamp(28px, 3.4vw, 44px);
  aspect-ratio: 1;
  background: #f4f3f1;
}

.home-hero {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  padding-block: var(--gap);
}

.sl {
  --banner: min(1200px, calc(100% - 4 * var(--gutter)));
  position: relative;
  overflow: hidden;
}

.bn {
  position: absolute;
  inset-block: 0;
  inline-size: var(--banner);
  container-type: inline-size;
  overflow: hidden;
  border-radius: var(--radius);
}

.bn img, .story > img, .pm img {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
}

.bn img, .story > img {
  object-fit: cover;
}

.featured-banner {
  inset-inline-start: 50%;
  transform: translateX(-50%);
  background: #ffb54e;
}

.featured-banner > img {
  object-position: center 28%;
}

.previous {
  inset-inline-end: calc(50% + var(--banner) / 2 + var(--gap));
  background: #6731fc;
}

.next {
  inset-inline-start: calc(50% + var(--banner) / 2 + var(--gap));
  background: #a9d6c6;
}

.bc {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  inline-size: 50%;
  block-size: 100%;
  padding: 3.125cqw;
  text-align: center;
}

.bh {
  font-size: 3.75cqw;
  font-weight: 700;
  line-height: 1.2;
}

.bs, .bb {
  font-size: 2.083cqw;
  line-height: 1.2;
}

.bs {
  margin-block-start: 2.083cqw;
  color: #222;
}

.bb {
  margin-block-start: 3.333cqw;
  padding: 1.458cqw 2.5cqw;
  border-radius: 999px;
  background: #fff;
  white-space: nowrap;
}

.sa {
  position: absolute;
  inset-block-start: 50%;
  inline-size: clamp(30px, 3.5vw, 44px);
  aspect-ratio: 1;
  translate: 0 -50%;
  background: #fff;
}

.sa-l {
  inset-inline-start: calc(50% - var(--banner) / 2 + 16px);
}

.sa-l svg {
  rotate: 180deg;
}

.sa-r {
  inset-inline-end: calc(50% - var(--banner) / 2 + 16px);
}

.sd {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.sd span {
  inline-size: 10px;
  block-size: 10px;
  border-radius: 999px;
  background: #f4f3f1;
}

.sd .on {
  inline-size: 28px;
  background: #6731fc;
}

.catalog-screen, .editorial-screen {
  gap: var(--gap);
  padding-block: var(--gutter);
}

.catalog-screen {
  grid-template-rows: minmax(0, 1fr) minmax(0, .29fr);
}

.pcs, .pcx {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  min-block-size: 0;
}

.pcs {
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.pc {
  display: flex;
  flex-direction: column;
  min-inline-size: 0;
  min-block-size: 0;
  padding: clamp(10px, 2vw, 28px);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--tile-shadow);
}

.pcs .featured {
  grid-column: span 5;
  grid-row: span 2;
}

.pcs .wide {
  grid-column: span 4;
}

.pcs .compact {
  grid-column: span 3;
}

.tx {
  display: flex;
  flex-direction: column;
  gap: clamp(4px, .625vw, 8px);
}

.tt, .story-title {
  font-size: clamp(15px, 2vw, 26px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.sub {
  color: #4d4d4d;
  font-size: clamp(11px, 1.25vw, 15px);
  line-height: 1.35;
}

.pm {
  position: relative;
  flex: 1;
  min-block-size: 0;
  margin-block-start: clamp(4px, 1.1vw, 16px);
}

.pm img {
  object-fit: contain;
  object-position: center bottom;
}

.pcx .pc {
  grid-column: span 4;
  flex-direction: row;
  align-items: center;
  gap: clamp(4px, 1vw, 16px);
}

.pcx .tx {
  flex: 1;
}

.pcx .pm {
  flex: 0 0 min(36%, 120px);
  align-self: stretch;
  margin: 0;
}

.pcx .pm img {
  object-position: center;
}

.editorial-screen {
  --stories-per-row: 3;
  --story-button-size: 44px;
  align-content: center;
  justify-items: center;
}

.story-carousel {
  --available-card-height: calc(100vh - 2 * var(--gutter) - var(--gap) - var(--story-button-size));
  display: grid;
  gap: var(--gap);
  inline-size: 100%;
  max-inline-size: calc(.8 * var(--available-card-height) * var(--stories-per-row) + (var(--stories-per-row) - 1) * var(--gap));
}

.story-viewport {
  min-inline-size: 0;
  overflow: clip;
}

.story-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--stories-per-row) - 1) * var(--gap)) / var(--stories-per-row));
  gap: var(--gap);
}

.story {
  position: relative;
  min-inline-size: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  background: #f4f3f1;
}

.story-coffee > img {
  object-position: 78% center;
}

.story-playstation > img {
  object-position: 85% center;
}

.story-pencil > img {
  object-position: 60% center;
}

.story-ipad > img {
  object-position: 72% center;
}

.story-copy {
  position: relative;
  max-inline-size: 83%;
  padding: clamp(12px, 2vw, 28px);
}

.story-copy .sub {
  color: rgb(0 0 0 / 78%);
}

.story-controls {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.story-step {
  display: grid;
  place-items: center;
  inline-size: var(--story-button-size);
  block-size: var(--story-button-size);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f4f3f1;
  color: #000;
  cursor: pointer;
}

.story-step:hover:not(:disabled) {
  background: #e7e5e2;
}

.story-step:focus-visible {
  outline: 2px solid #6731fc;
  outline-offset: 2px;
}

.story-step:disabled {
  opacity: .5;
  cursor: default;
}

.story-previous svg {
  rotate: 180deg;
}

.story-status {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 60rem) {
  .editorial-screen {
    --stories-per-row: 2;
  }
}

@media (max-width: 42rem) {
  .address, .mn, .previous, .next, .sa {
    display: none;
  }

  .header-grid {
    grid-template-columns: 1fr auto;
  }

  .sl {
    --banner: calc(100% - 2 * var(--gutter));
  }

  .featured-banner {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .featured-banner img {
    position: static;
    grid-row: 2;
    min-block-size: 0;
    object-position: 72% center;
  }

  .bc {
    grid-row: 1;
    inline-size: 100%;
    padding: 16px;
  }

  .bh {
    font-size: clamp(22px, 5.7cqw, 33px);
  }

  .bs, .bb {
    font-size: clamp(13px, 3.5cqw, 16px);
  }

  .bb {
    padding: 8px 14px;
  }

  .catalog-screen {
    grid-template-rows: minmax(0, 3fr) minmax(0, 2fr);
  }

  .pcs, .pcx {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pcs {
    grid-template-rows: repeat(3, minmax(0, 1fr));
  }

  .pcs :is(.wide, .compact), .pcx .pc {
    grid-column: auto;
  }

  .pcs .featured, .pcx .pc:last-child {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .pcs .featured {
    flex-direction: row;
    align-items: center;
    gap: var(--gap);
  }

  .pcs .featured .pm {
    align-self: stretch;
    margin: 0;
  }

  .editorial-screen {
    --stories-per-row: 1;
  }
}
