/* The reading pages (start, use cases, compare, packs, what's new, about,
   privacy), and the pieces the home page shares with them: links in running
   text, the foot's lists. Builds on page.css. */

/* A reading page has no set behind it. */
.doc {
  background: #fffcfa;
}

.doc .page,
.doc .pagenav {
  border-radius: 0;
  box-shadow: none;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.sec a:not([class]),
.foot p a {
  color: var(--violet);
  font-weight: 500;
  text-underline-offset: 3px;
}

.sec--top {
  padding-top: clamp(28px, 4vw, 48px);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(24px, 4vw, 44px);
  color: var(--ink-3);
  font-size: 14px;
  font-weight: 500;
}

.crumbs a:not([class]) {
  color: var(--ink-2);
  text-decoration: none;
}

.page h1 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(34px, 4.2vw, 47.8px);
  font-weight: 480;
  line-height: 1.1;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.sec__more {
  margin-top: 28px;
  font-size: 16px;
  font-weight: 400;
}

/* Words beside a video or a picture. */
.case {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.case__text .chips {
  margin-top: 20px;
}

.case__text .btn {
  margin-top: 24px;
  text-decoration: none;
}

.case__video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #17161a;
  box-shadow: 0 30px 60px -30px rgba(60, 40, 120, 0.45);
}

.case__art {
  width: min(340px, 70%);
  margin-inline: auto;
  rotate: -4deg;
  filter: drop-shadow(0 18px 30px rgba(80, 50, 180, 0.22));
}

/* Running text. */
.prose > h2,
.prose .walk--big h2 {
  max-width: 28ch;
  margin-top: 1.6em;
  font-size: clamp(24px, 3vw, 32px);
}

.prose > h2:first-child,
.prose .walk--big h2 {
  margin-top: 0;
}

.prose > p,
.prose li > p {
  max-width: 68ch;
  margin-top: 12px;
  color: var(--ink-2);
  font-weight: 400;
}

.prose > p.lead {
  margin-top: 20px;
}

.prose > p strong,
.prose li strong {
  color: var(--ink);
  font-weight: 600;
}

.quote {
  max-width: 60ch;
  margin-top: 14px;
  padding: 18px 22px;
  border-left: 4px solid var(--violet);
  border-radius: 0 16px 16px 0;
  background: var(--raised);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 500;
  line-height: 1.4;
}

.walk {
  display: grid;
  gap: 12px;
  max-width: 72ch;
  margin-top: 16px;
  counter-reset: walk;
}

.walk > li {
  position: relative;
  padding-left: 46px;
  color: var(--ink-2);
  font-weight: 400;
  counter-increment: walk;
}

.walk > li::before {
  content: counter(walk);
  position: absolute;
  left: 0;
  top: -2px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 20px;
}

.walk--big h2 {
  color: var(--ink);
}

.walk--big {
  gap: 34px;
  margin-top: 40px;
}

.walk--big > li {
  padding-left: 58px;
}

.walk--big > li::before {
  top: 0;
  width: 40px;
  height: 40px;
  font-size: 26px;
}

.ticks {
  display: grid;
  gap: 10px;
  max-width: 72ch;
  margin-top: 14px;
  color: var(--ink-2);
  font-weight: 400;
}

.ticks li {
  display: flex;
  gap: 10px;
}

.ticks .i {
  margin-top: 3px;
  color: var(--ok);
}

kbd {
  display: inline-block;
  min-width: 1.7em;
  padding: 1px 7px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 7px;
  background: var(--raised);
  color: var(--ink);
  font: 500 0.86em var(--sans);
  text-align: center;
}

/* Side by side. */
.cmp__scroll {
  margin-top: clamp(24px, 4vw, 40px);
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--raised);
}

.cmp {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 16px;
  font-weight: 400;
  text-align: left;
}

.cmp th,
.cmp td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.cmp tbody tr:last-child > * {
  border-bottom: 0;
}

.cmp thead th {
  color: var(--ink-3);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cmp tbody th {
  width: 22%;
  font-weight: 600;
}

.cmp td {
  color: var(--ink-2);
}

/* Apex's column. */
.cmp:not(.cmp--plain) td:nth-child(2),
.cmp:not(.cmp--plain) thead th:nth-child(2) {
  background: color-mix(in srgb, var(--violet) 7%, transparent);
  color: var(--ink);
}

.cmp--keys {
  min-width: 420px;
}

.vcard__text :is(h3, h4) {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

/* :not([class]) to outweigh the running-text links (.sec a:not([class])): a card's title is ink, violet on hover. */
.vcard__text :is(h3, h4) a:not([class]) {
  color: var(--ink);
  font-weight: inherit;
  text-decoration: none;
}

.vcard__text :is(h3, h4) a:not([class]):hover {
  color: var(--violet);
}

.vgroup > h2 {
  font-size: clamp(24px, 3vw, 32px);
}

.vgrid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 28px;
}

.vgrid--flat {
  margin-top: 24px;
}

/* The releases. */
.log {
  margin-top: clamp(28px, 4vw, 48px);
  border-top: 1px solid var(--line);
}

.log__entry {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 24px;
  padding-block: 28px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 60px;
}

.log__when {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--ink-3);
  font-size: 14px;
  font-weight: 500;
}

.log__when b {
  color: var(--violet);
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
}

.log__entry h2 {
  max-width: 30ch;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.log__entry dl {
  display: grid;
  gap: 4px;
  max-width: 68ch;
  margin-top: 12px;
}

.log__entry dt {
  margin-top: 8px;
  font-weight: 600;
}

.log__entry dd {
  color: var(--ink-2);
  font-weight: 400;
}

/* The contact form. */
.form {
  display: grid;
  gap: 16px;
  max-width: 560px;
  margin-top: 28px;
}

.form__field {
  display: grid;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
}

.form :is(input, select, textarea) {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--raised);
  color: var(--ink);
  font: 400 16px var(--sans);
}

.form textarea {
  resize: vertical;
}

.form__trap {
  position: absolute;
  left: -9999px;
}

.form__msg {
  min-height: 1.5em;
  color: var(--ink-2);
  font-weight: 500;
}

.form__msg[data-ok] {
  color: var(--ok);
}

/* Plain cards: a mark, a name, a line. */
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(28px, 4vw, 44px);
}

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

.card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
}

.card h3,
.card .card__h {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.card p {
  margin: 8px 0 16px;
  color: var(--ink-2);
  font-size: 15.5px;
}

.card > :last-child {
  margin-bottom: 0;
}

.card .more {
  margin-top: auto;
}

.card__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper-2);
}

.form .btn {
  justify-self: start;
}

@media (max-width: 980px) {
  .case {
    grid-template-columns: 1fr;
  }

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

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

  .log__entry {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .log__when {
    flex-direction: row;
    align-items: baseline;
    gap: 12px;
  }
}

@media (max-width: 620px) {
  .cards,
  .cards--3 {
    grid-template-columns: 1fr;
  }

  .vgrid--4 {
    grid-template-columns: none;
  }
}

/* ---- the brand page ---- */

.brandshow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.brandshow__tile {
  display: grid;
  place-items: center;
  min-height: 190px;
  margin: 0;
  padding: 24px;
  border-radius: 20px;
  background: var(--paper-2);
  box-shadow: var(--ring);
}

.brandshow__tile--dark {
  background: #1b1922;
}

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

.prose > p.brandshow__get {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  max-width: none;
  margin-top: 14px;
}

.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 16px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.swatch {
  display: grid;
  gap: 2px;
  font-size: 14px;
}

.swatch i {
  height: 84px;
  margin-bottom: 8px;
  border-radius: 16px;
  box-shadow: var(--ring);
}

.swatch b {
  font-size: 15px;
  font-weight: 600;
}

.swatch code {
  color: var(--ink-2);
  font: 500 13px/1.4 ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

.swatch span {
  color: var(--ink-3);
}

.types {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.types > div {
  padding: 22px 24px;
  border-radius: 20px;
  background: var(--paper-2);
  box-shadow: var(--ring);
}

.types p {
  margin: 0 0 8px;
  color: var(--ink);
}

.types span {
  color: var(--ink-3);
  font-size: 14.5px;
}

.types .types__a {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 480;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.types .types__b {
  font: 800 22px/1.25 var(--round, 'Nunito', system-ui, sans-serif);
}

.types .types__c {
  display: table;
  padding: 5px 12px 4px;
  border-radius: 9px;
  background: #1b1922;
  color: #b9a8ff !important;
  font: 400 20px/1 var(--pixel, 'VT323', ui-monospace, monospace);
  letter-spacing: 0.06em;
}

/* ---- not found ---- */

.lost {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: clamp(24px, 6vw, 72px);
  text-align: center;
}

.lost__pal {
  width: 200px;
  height: auto;
}

.lost h1 {
  max-width: 20ch;
}

.lost .lead {
  margin-inline: auto;
}

.lost__keys {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

@media (max-width: 760px) {
  .brandshow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
