/* Same colours and headline font as the app (lib/theme/tokens.ts). No third-party requests. */
@font-face {
  font-family: 'Barlow Condensed';
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/BarlowCondensed_700Bold.ttf') format('truetype');
}

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #f5f5f5;
  --text: #0a0a0a;
  --muted: #6b6b6b;
  --border: #e5e5e5;
  --accent: #ff5a1f;
  --accent-text: #c93f0c;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --surface: #141414;
    --text: #fafafa;
    --muted: #9a9a9a;
    --border: #262626;
    --accent-text: #ff5a1f;
  }
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}
a {
  color: inherit;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--accent-text);
}
a:focus-visible,
.scroll:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: min(1032px, 100% - 48px);
  margin: 0 auto;
}

/* Header and footer */
.top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-top: 28px;
  padding-bottom: 28px;
}
.mark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 34px;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
}
.mark:hover {
  color: var(--text);
}
.top nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 22px;
  font-size: 15px;
}
.top nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 6px 0;
}
.top nav a:hover,
.top nav a[aria-current='page'] {
  color: var(--text);
}

.foot {
  margin-top: 96px;
  border-top: 1px solid var(--border);
  padding-top: 28px;
  padding-bottom: 48px;
  color: var(--muted);
  font-size: 15px;
}
.foot ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  margin: 0 0 14px;
  padding: 0;
}
.foot a {
  display: inline-block;
  padding: 6px 0;
}
.foot p {
  margin: 0;
}

/* Home */
.hero {
  padding-top: 56px;
  padding-bottom: 72px;
}
.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 11.5vw, 150px);
  line-height: 0.88;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.hero h1 span {
  display: block;
  white-space: nowrap;
}
.hero .lead {
  max-width: 34em;
  margin: 36px 0 0;
  font-size: 20px;
  line-height: 1.5;
}
.hero .stores {
  margin: 20px 0 0;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 72px;
  align-items: start;
  border-top: 1px solid var(--border);
  padding-top: 56px;
}

.ledger {
  position: sticky;
  top: 24px;
}
.ledger caption {
  text-align: left;
  font-weight: 600;
  padding-bottom: 12px;
}
.ledger table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.ledger th,
.ledger td {
  padding: 14px 0;
  border-top: 1px solid var(--border);
  font-weight: 400;
  text-align: left;
  vertical-align: baseline;
}
.ledger td {
  text-align: right;
  font-family: var(--display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
}
.ledger tfoot th,
.ledger tfoot td {
  border-top: 2px solid var(--text);
  font-weight: 600;
}
.ledger tfoot td {
  color: var(--accent-text);
  font-weight: 700;
  font-size: 44px;
}
.ledger .note {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 15px;
}

.does h2 {
  margin: 0 0 20px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 40px;
  line-height: 1;
  text-transform: uppercase;
}
.does dl {
  margin: 0;
}
.does dt {
  font-weight: 600;
  margin-top: 22px;
}
.does dd {
  margin: 2px 0 0;
  color: var(--muted);
}
.does .small {
  margin: 32px 0 0;
  color: var(--muted);
  font-size: 15px;
}

/* Text pages */
.doc {
  max-width: 720px;
  padding-top: 40px;
}
.doc h1 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(48px, 9vw, 84px);
  line-height: 0.92;
  text-transform: uppercase;
}
.doc .meta {
  margin: 0 0 40px;
  color: var(--muted);
}
.doc h2 {
  margin: 56px 0 12px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.05;
  text-transform: uppercase;
}
.doc h3 {
  margin: 28px 0 6px;
  font-size: 17px;
  font-weight: 600;
}
.doc p,
.doc ul,
.doc ol {
  margin: 0 0 16px;
}
.doc ul,
.doc ol {
  padding-left: 22px;
}
.doc li {
  margin-bottom: 6px;
}
.doc .summary {
  margin: 0 0 8px;
  padding: 20px 24px;
  background: var(--surface);
  border-left: 3px solid var(--accent);
}
.doc .summary p:last-child,
.doc .summary ul:last-child {
  margin-bottom: 0;
}
.doc .scroll {
  overflow-x: auto;
  margin: 0 0 16px;
}
.doc table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 16px;
}
.doc th,
.doc td {
  padding: 12px 16px 12px 0;
  border-top: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.doc thead th {
  border-top: 0;
  color: var(--muted);
  font-weight: 400;
  font-size: 15px;
}
.doc tbody th {
  font-weight: 600;
}

@media (max-width: 820px) {
  .split {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .hero {
    padding-top: 28px;
    padding-bottom: 56px;
  }
  .ledger {
    position: static;
  }
}

/* Phones: each table row becomes a small block, so nothing is cut off */
@media (max-width: 600px) {
  .doc .summary {
    padding: 16px;
  }
  .doc table {
    min-width: 0;
  }
  .doc thead {
    display: none;
  }
  .doc tr,
  .doc tbody th,
  .doc td {
    display: block;
  }
  .doc tr {
    padding: 14px 0;
    border-top: 1px solid var(--border);
  }
  .doc tbody th,
  .doc td {
    padding: 0 0 4px;
    border-top: 0;
  }
}
