/* Rastarbrain LLC: one column, system serif, cool paper, one marker-yellow rule. */

:root {
  --paper:  #EDF0F2;
  --ink:    #1F2A33;
  --muted:  #5B6873;
  --rule:   #C9D1D7;
  --marker: #F3DD5A;
  --link:   #1F4E8C;

  --serif: Charter, "Bitstream Charter", "Iowan Old Style", "Sitka Text", Cambria, Georgia, serif;
  --measure: 34rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:  #151B20;
    --ink:    #E3E8EC;
    --muted:  #98A4AD;
    --rule:   #2E3942;
    --marker: #E8CF4A;
    --link:   #9DBCF0;
  }
}

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

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.6;
  font-kerning: normal;
  font-variant-numeric: oldstyle-nums;
}

.page {
  max-width: calc(var(--measure) + 2rem);
  margin: 0 auto;
  padding: clamp(3rem, 12vh, 7.5rem) 1rem 3rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Masthead: the name is the one large thing on the page. */
.name {
  margin: 0;
  font-size: clamp(3rem, 13vw, 5.25rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.lead {
  margin: 1.25rem 0 0;
  font-size: 1.375rem;
  line-height: 1.45;
  max-width: 30rem;
}

/* Catalog: the apps, set like entries in a printed catalog. */
.catalog {
  margin: 3.5rem 0 0;
  border-top: 4px solid var(--marker);
}

.catalog dl { margin: 0; }

.item {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
}

.item dt {
  color: var(--muted);
  font-style: italic;
  padding-top: 0.2rem;
}

.item dd { margin: 0; }
.item p { margin: 0.35rem 0 0; }

.app {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.app a { color: inherit; }

.status {
  color: var(--muted);
  font-style: italic;
}

.more {
  margin: 1rem 0 0;
  color: var(--muted);
}

/* Body copy, links and footer. */
.about { margin: 2.75rem 0 0; }
.about p { margin: 0 0 1rem; }

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover { text-decoration-thickness: 2px; }

a:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
  border-radius: 2px;
}

.colophon {
  margin: 4rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9375rem;
}

.colophon p { margin: 0 0 0.25rem; }

@media (max-width: 30rem) {
  body { font-size: 1.0625rem; }
  .lead { font-size: 1.25rem; }
  .item { grid-template-columns: 1fr; }
  .item dt { font-size: 0.9375rem; padding-top: 0; }
}

/* slotWM's promo video: vertical, so it stays phone-sized. */
.promo {
  display: block;
  width: 100%;
  max-width: 20rem;
  height: auto;
  margin: 2.5rem 0 0;
  border-radius: 12px;
  background: #0d0f1a;
}

.code {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.5;
  border: 1px solid var(--rule);
  border-radius: 6px;
}

.key {
  white-space: pre-wrap;
  word-break: break-all;
  font-size: 0.9rem;
  padding: 0.75rem;
  border: 1px solid currentColor;
  border-radius: 6px;
  user-select: all;
}

/* slotWM's page: on wide screens the video stands beside the text so the
   whole page fits on one screen. */
@media (min-width: 56rem) {
  .product {
    max-width: 72rem;
    padding: clamp(1.25rem, 4vh, 3rem) 2rem 0.75rem;
    font-size: 1.0625rem;
    line-height: 1.5;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "head video" "pitch video" "get video" "foot video";
    grid-template-rows: auto auto auto 1fr;
    column-gap: 3.5rem;
  }
  .product .masthead { grid-area: head; }
  .product .pitch { grid-area: pitch; }
  .product .get { grid-area: get; }
  .product .about .status { font-size: 0.9375rem; margin-bottom: 0.35rem; }
  .product .actions { margin-bottom: 0.35rem; }
  .product .colophon { grid-area: foot; margin-top: 0.75rem; font-size: 0.875rem; }
  .product .colophon p { display: inline; margin-right: 0.75rem; white-space: nowrap; }
  .product .lead { margin-top: 0.75rem; font-size: 1.25rem; max-width: none; }
  .product .code { margin-bottom: 0.6rem; padding: 0.5rem 0.875rem; }
  .product .about { margin-top: 1.25rem; }
  .product .get { margin-top: 1.25rem; }
  .product .about p { margin-bottom: 0.6rem; }
  .product .name { font-size: clamp(3rem, 5vw, 4rem); }
  .product .promo {
    grid-area: video;
    align-self: start;
    margin: 0.5rem 0 0;
    max-width: none;
    width: auto;
    height: min(calc(100vh - 5rem), 44rem);
  }
}

@media (min-width: 56rem) and (max-height: 800px) {
  .product { font-size: 1rem; line-height: 1.45; }
  .product .name { font-size: 3rem; }
  .product .lead { font-size: 1.125rem; }
  .product .about { margin-top: 1rem; }
}

/* Download and Buy, with the MacPip badge beside them. */
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  margin: 0 0 0.6rem;
}
.about .actions p { margin: 0; }
.badge { line-height: 0; }
.badge img { display: block; }
