/*
 * mobwerk.com — one stylesheet for every page.
 *
 * No web fonts and no third-party requests of any kind: the privacy policy on
 * this same site says the site makes none, and a font CDN would make that false.
 * The type stacks below are chosen per platform instead (Charter on Apple,
 * Sitka on Windows, then the common serifs).
 */

:root {
  --paper: #ffffff;
  --ink: #1a2433;
  --muted: #586374;
  --rule: #dce1e7;
  --sheet: #eef2f6;
  --accent: #2647c9;

  --serif: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --measure: 66ch;
  --gutter: 16px;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121822;
    --ink: #e6eaf0;
    --muted: #9aa5b4;
    --rule: #2b3544;
    --sheet: #1b2330;
    --accent: #8ea6ff;
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.6 var(--sans);
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

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

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem);
  letter-spacing: -0.01em;
  max-width: 18ch;
}

h2 {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.15rem;
}

p,
ul,
ol,
dl {
  margin: 0 0 1rem;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Header and footer */

.masthead {
  border-bottom: 1px solid var(--rule);
}

.masthead .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.brand {
  font: 600 1.25rem/1 var(--serif);
  color: var(--ink);
  text-decoration: none;
}

.masthead nav {
  display: flex;
  gap: 1.25rem;
}

.masthead nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.masthead nav a[aria-current="page"] {
  color: var(--ink);
}

/* Where a page sits under mobwerk.com, above its heading. */
.crumbs {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.crumbs a {
  color: var(--muted);
}

/* A list of apps, or of platforms: name, what it does, where it stands. */
.catalog {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.catalog li {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
}

.catalog p {
  margin: 0.35rem 0 0;
}

.catalog-name {
  font: 600 1.3rem/1.3 var(--serif);
}

.catalog-status {
  color: var(--muted);
  font-size: 0.95rem;
}

.masthead nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}

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

.colophon .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}

.colophon a {
  color: var(--muted);
}

/* Hero: the headline beside the price sheet it promises */

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

@media (min-width: 860px) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: center;
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }
}

.lede {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 34ch;
  margin-top: 1.25rem;
}

.status {
  margin-top: 1.75rem;
  font-size: 0.95rem;
}

/*
 * The price sheet. Same product, same numbers as the wholesale price block on
 * the demo store, set as a printed wholesale price list.
 */

.sheet {
  margin: 0;
  background: var(--sheet);
  border-radius: 6px;
  padding: 1.5rem 1.25rem 1.25rem;
}

.sheet-product {
  font: 600 1.15rem/1.3 var(--serif);
}

.sheet-retail {
  color: var(--muted);
  margin: 0.25rem 0 1.25rem;
  font-size: 0.95rem;
}

.sheet table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--serif);
  font-variant-numeric: tabular-nums lining-nums;
}

.sheet th {
  font: 400 0.9rem/1.3 var(--sans);
  color: var(--muted);
  text-align: right;
  padding: 0 0 0.6rem;
  border-bottom: 1px solid var(--rule);
}

.sheet th:first-child,
.sheet td:first-child {
  text-align: left;
}

.sheet td {
  text-align: right;
  padding: 0.7rem 0 0.2rem;
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem);
  line-height: 1.1;
}

.sheet td:first-child {
  font: 400 0.95rem/1.3 var(--sans);
  color: var(--muted);
  vertical-align: middle;
}

.sheet td s {
  color: var(--muted);
  text-decoration-thickness: 1px;
}

.sheet figcaption {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 44ch;
}

/* Body sections */

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

.section .wrap {
  padding-top: 3rem;
  padding-bottom: 1rem;
}

.section .wrap > * {
  max-width: var(--measure);
}

/* On a wide screen each heading sits beside its text, level with the hero's two columns. */
@media (min-width: 860px) {
  .section .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    column-gap: 2.5rem;
    align-items: start;
  }

  .section .wrap > h2 {
    grid-column: 1;
    grid-row: 1 / span 10;
  }

  .section .wrap > :not(h2) {
    grid-column: 2;
  }

  /* Numbers and bullets hang in the column gap, so list text keeps the paragraphs' left edge. */
  .section .wrap > ol,
  .section .wrap > ul {
    padding-left: 0;
  }
}

.section ol,
.section ul {
  padding-left: 1.4rem;
}

.steps li {
  margin-bottom: 0.9rem;
  padding-left: 0.3rem;
}

.steps li::marker {
  font-family: var(--serif);
  font-weight: 600;
}

.settings dt {
  font-weight: 600;
  margin-top: 1rem;
}

.settings dt:first-child {
  margin-top: 0;
}

.settings dd {
  margin: 0.15rem 0 0;
  color: var(--muted);
}

/* Long-form pages: the privacy policy */

.doc .wrap {
  padding-top: 3rem;
}

.doc .wrap > * {
  max-width: var(--measure);
}

.doc h1 {
  max-width: none;
  font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.5rem);
}

.doc .updated {
  color: var(--muted);
  margin-top: 0.75rem;
  margin-bottom: 2rem;
}

.doc h2 {
  font-size: 1.35rem;
  margin-top: 2.5rem;
}

.doc h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
}

.doc li {
  margin-bottom: 0.4rem;
}

.summary {
  border-left: 3px solid var(--accent);
  padding: 0.25rem 0 0.25rem 1rem;
}

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

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
