/* Shared by the Telltale pages and the two Wayfarer Labs pages.
   Components have their own stylesheets and their own class prefixes. */

:root {
  --ink: #0b1f3a;
  --text: #2d3b52;
  --muted: #45526a;
  --muted-warm: #4f5b6e;
  --rule: #d9d4c7;
  --rule-cool: #dde3ec;
  --paper: #f6f5f1;
  --cool: #f3f6fa;
  --navy: #06122b;
  --engine: #04070e;
  --on-navy: #c7d3e6;
  --accent: #0a6fa8;
  --sky: #2ebeff;
  --brass: #8a5a00;
  --worse: #9a4308;
  --same: #6b788d;
  --lab: #060e1a;
  --font-text:
    "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", Verdana, sans-serif;
  --font-engine: Geist, Inter, system-ui, sans-serif;
  --gutter: 32px;
}

/* Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  overflow-wrap: break-word;
}
body.white {
  background: #fff;
}
a {
  color: var(--ink);
}
a:hover {
  color: var(--accent);
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
}
[hidden] {
  display: none;
}
.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 10;
  background: #fff;
  color: var(--ink);
  padding: 12px 18px;
  border-radius: 8px;
}
.skip:focus {
  top: 12px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Header and footer */
.site-nav {
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.white .site-nav {
  border-bottom: 1px solid var(--rule-cool);
}
.site-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.site-brand img {
  width: 60px;
  height: 63px;
}
.site-brand .wordmark {
  font-size: 34px;
}
.wordmark {
  font-family: Jost, Futura, sans-serif;
  font-weight: 300;
  font-size: 30px;
  line-height: 1;
}
.site-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  font-size: 16px;
}
.site-links a:not(.btn) {
  text-decoration: none;
}
.site-links a[aria-current] {
  text-decoration: underline;
  text-underline-offset: 6px;
}
.site-foot {
  border-top: 1px solid var(--rule);
}
.site-foot > div {
  max-width: 1240px;
  margin: 0 auto;
  padding: 36px var(--gutter) 44px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px 40px;
  font-size: 15px;
  color: var(--muted);
}
.site-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}
.site-foot a {
  text-underline-offset: 4px;
}
/* Who made Telltale and since when: the footer here, and the Telltale page at wayfarerlab.com */
.origin {
  flex-basis: 100%;
  max-width: 820px;
}

/* Wayfarer Labs header and footer */
.lab-top {
  background: var(--lab);
  color: #edece6;
}
.lab-top a {
  color: #edece6;
}
.lab-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.lab-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.lab-brand img {
  width: 66px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
}
.lab-name {
  font-size: 17px;
  letter-spacing: 0.14em;
}
.lab-name b {
  font-weight: 700;
}
.lab-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  font-size: 16px;
}
.lab-links a {
  text-decoration: none;
}
.lab-links a[aria-current] {
  text-decoration: underline;
  text-underline-offset: 6px;
}
.lab-foot {
  background: var(--lab);
  color: #9daebe;
}
.lab-foot > div {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px var(--gutter) 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  font-size: 15px;
}
.lab-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.lab-foot a {
  color: #9daebe;
}
.lab-foot .lab-name {
  font-size: inherit;
  color: #edece6;
}
.lab-hardware {
  font-size: 20px;
  font-weight: 600;
  text-underline-offset: 4px;
}
.lab-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.engine-word {
  font-family: Montserrat, sans-serif;
  font-weight: 800;
  color: #0a1b2a;
}
/* The engine's wordmark as a link to its page, looking as it does in a sentence. */
.engine-link {
  text-decoration: none;
}
.engine-link:hover .engine-word,
.engine-link:focus-visible .engine-word {
  text-decoration: underline;
  text-underline-offset: 4px;
}
/* Sergio's Edge: the family's mark beside the kicker, and each product's icon. */
.edge-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d3b77d;
}
.edge-lockup > img {
  width: 72px;
  height: 72px;
  flex: none;
}
.edge-icon {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 14px;
}
/* A product's emblem and wordmark at the head of its page. */
.lockup-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 15px;
  color: var(--muted);
}
.lockup-row > img {
  width: 96px;
  height: 101px;
  flex: none;
}
.lockup-row > .wordmark {
  font-size: 48px;
  color: var(--ink);
}

/* Buttons and links */
.btn,
.btn-lg {
  text-decoration: none;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
}
.btn-lg {
  padding: 14px 24px;
}
.btn:hover,
.btn-lg:hover {
  color: #fff;
  background: #16355f;
}
.btn-line {
  text-decoration: none;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 13px 23px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 17px;
}
.btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btns.mid {
  align-items: center;
}
.link {
  text-underline-offset: 4px;
}
.f17 {
  font-size: 17px;
}
.after-btn {
  margin-left: 8px;
}

/* Bands, wraps, stacks, grids */
.band {
  background: #fff;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.band-top {
  background: #fff;
  border-top: 1px solid var(--rule);
}
.band-cool {
  background: var(--cool);
  border-top: 1px solid var(--rule-cool);
  border-bottom: 1px solid var(--rule-cool);
}
.rule-top {
  border-top: 1px solid var(--rule);
}
.rule-bottom {
  border-bottom: 1px solid var(--rule);
}
.rule-ink {
  border-top: 2px solid var(--ink);
}
.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.wrap[class*="pad-"] {
  display: flex;
  flex-direction: column;
}
.pad-72 {
  padding-top: 72px;
  padding-bottom: 72px;
}
.pad-64 {
  padding-top: 64px;
  padding-bottom: 64px;
}
.pad-56 {
  padding-top: 56px;
  padding-bottom: 56px;
}
.wrap.halves {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 56px;
}
.stack {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.cols {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(
      auto-fit,
      minmax(min(var(--min, 300px), 100%), 1fr)
    );
}
.min-220 {
  --min: 220px;
}
.min-240 {
  --min: 240px;
}
.min-250 {
  --min: 250px;
}
.min-260 {
  --min: 260px;
  gap: 28px;
}
.min-300 {
  --min: 300px;
  gap: 28px;
}
.min-320 {
  --min: 320px;
  gap: 20px;
}
.min-340 {
  --min: 340px;
}
.min-360 {
  --min: 360px;
}
/* Four items: one column, then two, then four, so none is left alone on a row. */
.cols.quad {
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 640px) {
  .cols.quad {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1120px) {
  .cols.quad {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.min-440 {
  --min: 440px;
  gap: 48px;
  align-items: start;
}
.mt-44 {
  margin-top: 44px;
}
.gap-4 {
  gap: 4px;
}
.gap-6 {
  gap: 6px;
}
.gap-8 {
  gap: 8px;
}
.gap-10 {
  gap: 10px;
}
.gap-12 {
  gap: 12px;
}
.gap-14 {
  gap: 14px;
}
.gap-16 {
  gap: 16px;
}
.gap-24 {
  gap: 24px;
}
.gap-28 {
  gap: 28px;
}
.gap-32 {
  gap: 32px;
}
.gap-36 {
  gap: 36px;
}
.w820 {
  max-width: 820px;
}
.w860 {
  max-width: 860px;
}
.w900 {
  max-width: 900px;
}
.w1000 {
  max-width: 1000px;
}
.m0 {
  margin: 0;
}

/* Headings */
.h1,
.h2,
.h2-md,
[class^="h-"] {
  margin: 0;
}
.h1 {
  font-weight: 700;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.1;
  max-width: 900px;
}
.h2 {
  font-weight: 700;
  font-size: clamp(28px, 2.8vw, 38px);
  line-height: 1.15;
}
.h2-md {
  font-weight: 700;
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.15;
}
.h-30 {
  font-size: 30px;
  font-weight: 700;
}
.h-26 {
  font-size: 26px;
  font-weight: 700;
}
.h-24 {
  font-size: 24px;
  font-weight: 700;
}
.h-24.tight {
  line-height: 1.2;
}
.h-22b {
  font-size: 22px;
  font-weight: 700;
}
.h-23 {
  font-size: 23px;
  font-weight: 600;
  line-height: 1.25;
}
.h-22 {
  font-size: 22px;
  font-weight: 600;
}
.h-21 {
  font-size: 21px;
  font-weight: 600;
}
.h-20 {
  font-size: 20px;
  font-weight: 600;
}
.h-19 {
  font-size: 19px;
  font-weight: 600;
}

/* Text */
.intro,
.intro-19,
.lead,
.body,
.copy,
.note,
.fine {
  margin: 0;
  color: var(--text);
  line-height: 1.55;
}
.intro {
  font-size: 20px;
  max-width: 820px;
}
.intro-19 {
  font-size: 19px;
  max-width: 860px;
}
.lead {
  font-size: 18px;
}
.body {
  font-size: 17px;
}
.copy {
  font-size: 16px;
}
.note {
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}
.fine {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.loose {
  line-height: 1.6;
}
.snug {
  line-height: 1.5;
}
.copy.tight,
.body.tight {
  line-height: 1.45;
}
.copy.plain {
  line-height: normal;
}
.note.warm {
  color: var(--muted-warm);
}
.note.brass {
  color: var(--brass);
}
.note.flat {
  line-height: normal;
}
.gap-note {
  margin: 6px 0 12px;
}
.muted-16 {
  font-size: 16px;
  color: var(--muted);
}
.muted-14 {
  font-size: 14px;
  color: var(--muted);
}
.muted-13 {
  font-size: 13px;
  color: var(--muted);
}
.muted-13.light {
  font-weight: 400;
}
.text-15 {
  font-size: 15px;
  color: var(--text);
}
.kicker {
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-warm);
}
.label-18 {
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}
.label-20 {
  font-size: 20px;
  font-weight: 600;
}
.label-17 {
  font-size: 17px;
  font-weight: 600;
}
.strong {
  font-weight: 700;
}
.semi {
  font-weight: 600;
}
.accent {
  color: var(--accent);
}
.sky {
  color: var(--sky);
}
.num {
  text-align: right;
}
.list {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
}
.list.loose {
  gap: 10px;
  line-height: 1.55;
}

/* Items with a rule above, and large figures */
.item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 2px solid var(--ink);
}
.item.pt-18 {
  padding-top: 18px;
}
.item.pt-20 {
  padding-top: 20px;
  gap: 12px;
}
.item.stat {
  padding-top: 14px;
  gap: 4px;
}
.item.thin {
  padding-top: 14px;
  gap: 4px;
  border-top-width: 1px;
}
a.item {
  text-decoration: none;
}
[class*="figure-"] {
  font-weight: 700;
  line-height: 1.1;
}
.figure-42 {
  font-size: 42px;
  line-height: 1.05;
}
.figure-34 {
  font-size: 34px;
}
.figure-30 {
  font-size: 30px;
  font-variant-numeric: tabular-nums;
}
.figure-26 {
  font-size: 26px;
}
.row-210,
.row-170 {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}
.row-170 {
  grid-template-columns: 170px 1fr;
  padding: 14px 0;
  border-bottom-color: var(--rule-cool);
}
.top-stat {
  padding: 18px 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Cards and pictures */
.card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.pad-26 {
  padding: 26px;
  gap: 12px;
}
.pad-28 {
  padding: 28px;
}
.card.gap-8 {
  gap: 8px;
}
.card-head {
  background: var(--navy);
  color: #fff;
  padding: 16px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 100px;
  justify-content: center;
}
.card-kicker {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-navy);
}
.card-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card-caption {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.card-product {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card-picture {
  height: 260px;
  background: #0b1829;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 17px;
  padding-top: 4px;
}
.picture {
  display: block;
  width: 100%;
  height: auto;
}
.picture.round {
  border-radius: 12px;
}
.cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.logo-207 {
  display: block;
  width: 207px;
  height: 48px;
  flex: none;
  align-self: flex-start;
}
.pill-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}
.pill {
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #9aa7b8;
  color: var(--text);
}
.chart-box {
  background: #fff;
  border: 1px solid var(--rule-cool);
  border-radius: 10px;
  padding: 14px 14px 8px;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 14px;
  color: var(--text);
}
.key {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Tables and bars */
.scroll-x {
  overflow-x: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.th {
  padding: 10px 12px 10px 0;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
  border-bottom: 2px solid var(--ink);
}
.td {
  padding: 12px 12px 12px 0;
  border-bottom: 1px solid var(--rule-cool);
  font-size: 16px;
}
.td.mid {
  vertical-align: middle;
}
.td.best {
  font-weight: 700;
  background: #e6f2fa;
}
.td.muted {
  color: var(--muted);
}
.nowrap {
  white-space: nowrap;
}
.cell {
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule-cool);
}
.cell.head {
  border-bottom-color: var(--ink);
  font-weight: 600;
}
.cell.warm {
  border-bottom-color: var(--rule);
}
.cell.last {
  border-bottom: 0;
}
.cell.worse {
  color: var(--worse);
}
.cell-row {
  padding: 14px 16px 14px 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  font-weight: 600;
  color: var(--ink);
}
.cell-end {
  padding: 14px 0 14px 16px;
  border-bottom: 1px solid var(--rule);
}
.cell-side {
  padding: 20px;
  border-left: 1px solid var(--rule-cool);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.table-head {
  text-align: left;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.bar-row {
  display: grid;
  grid-template-columns: 160px 1fr 56px;
  align-items: center;
  gap: 10px;
}
.bar {
  position: relative;
  height: 14px;
}
.bar-zero {
  position: absolute;
  left: 50%;
  top: -3px;
  bottom: -3px;
  width: 1px;
  background: var(--ink);
}
.bar-fill {
  position: absolute;
  top: 0;
  height: 14px;
}
.bar-fill.down {
  right: 50%;
}
.bar-fill.up {
  left: 50%;
}
.bar-fill.better {
  background: var(--accent);
}
.bar-fill.same {
  background: var(--same);
}
.bar-fill.worse {
  background: #b4500b;
}

/* Home */
.hero {
  background: var(--engine);
  color: #f4f7fb;
}
.hero-words {
  max-width: 1240px;
  margin: 0 auto;
  padding: 26px var(--gutter) 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 18px 56px;
  align-items: center;
}
.hero-words > div {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (max-width: 900px) {
  .hero-words {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 32px;
    padding-bottom: 28px;
  }
}

/* Phones */
@media (max-width: 640px) {
  :root {
    --gutter: 20px;
  }
  .lockup-row > img {
    width: 72px;
    height: 76px;
  }
  .lockup-row > .wordmark {
    font-size: 38px;
  }
  .site-nav {
    padding-top: 16px;
    padding-bottom: 16px;
  }
  .site-brand {
    gap: 10px;
  }
  .site-brand img {
    width: 46px;
    height: 48px;
  }
  .site-brand .wordmark {
    font-size: 28px;
  }
  .site-links,
  .lab-links {
    gap: 12px 20px;
  }
  .pad-72 {
    padding-top: 52px;
    padding-bottom: 52px;
  }
  .row-210,
  .row-170 {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .bar-row {
    grid-template-columns: 112px 1fr 52px;
    gap: 8px;
  }
}
