/* Market Paper tokens, matching ios/keba/DesignSystem/Tokens.swift. Fonts are self-hosted:
   a privacy page that sends every visitor's IP to a font CDN would contradict itself. */

@font-face { font-family: "Instrument Serif"; src: url("/keba/fonts/InstrumentSerif-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Karla"; src: url("/keba/fonts/Karla-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Karla"; src: url("/keba/fonts/Karla-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: light dark;
  --paper: #F6F6F3; --ink: #16181A; --ink2: #6B7075; --line: #E4E4DE;
  --accent: #265E4B; --accent-soft: #E8F0EB;
  --warn-soft: #F7EFDC; --warn-line: #E6D3A8;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121412; --ink: #F2F3F0; --ink2: #9BA29C; --line: #2C302D;
    --accent: #6DC49C; --accent-soft: #16241D;
    --warn-soft: #2A2417; --warn-line: #4A3E22;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.6 "Karla", -apple-system, "Helvetica Neue", Arial, sans-serif;
  padding-inline: 20px; padding-block: 28px 64px;
}
header, main, footer { max-width: 40rem; margin-inline: auto; }

.brand { font-family: "Instrument Serif", Georgia, serif; font-size: 28px; color: var(--accent); text-decoration: none; }
h1, h2 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(38px, 9vw, 52px); line-height: 1.05; margin: 28px 0 6px; }
h2 { font-size: 27px; line-height: 1.15; margin: 44px 0 10px; }
h3 { font-size: 17px; font-weight: 700; margin: 22px 0 2px; }
.date { color: var(--ink2); font-size: 15px; margin: 0; }

p, ul { margin: 0 0 14px; }
ul { padding-left: 1.2em; }
li { margin-bottom: 6px; }
li::marker { color: var(--accent); }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

.summary, .important { border-radius: 16px; padding: 16px 20px; margin: 26px 0 10px; }
.summary { background: var(--accent-soft); }
.important { background: var(--warn-soft); border: 1px solid var(--warn-line); }
.summary ul, .important p { margin: 0; }
.summary li:last-child { margin-bottom: 0; }

footer {
  margin-top: 56px; padding-top: 18px; border-top: 1px solid var(--line);
  color: var(--ink2); font-size: 15px; display: flex; flex-wrap: wrap; gap: 6px 20px;
}

/* Home page (/): the same paper, plus a store button and a row of screenshots. */
.lede { font-size: 19px; color: var(--ink2); margin: 14px 0 22px; }
.store {
  display: inline-block; background: var(--accent); color: var(--paper); text-decoration: none;
  font-weight: 700; padding: 13px 22px; border-radius: 14px;
}
.store:hover { filter: brightness(1.08); }
.shots {
  display: flex; gap: 14px; margin: 36px -20px 22px; padding: 0 20px 8px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 20px;
}
.shots img {
  flex: 0 0 auto; width: min(62vw, 230px); height: auto; border-radius: 18px;
  border: 1px solid var(--line); scroll-snap-align: start;
}
@media (min-width: 1000px) {
  /* Wide enough for all four side by side: break out of the text column, no scrolling. */
  .shots { width: 60rem; margin-inline: 0; padding: 0; position: relative; left: 50%; transform: translateX(-50%); overflow: visible; }
  .shots img { width: calc((100% - 42px) / 4); }
}
