/* Palpo's website: one reading column, the app's teal in the header, light and dark. */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --text: #16191d;
  --muted: #60646c;
  --line: #e0e1e6;
  --surface: #f2f4f5;
  --brand: #134e5e;
  --link: #0e6a80;
  --gap-bg: #fde8e8;
  --gap-text: #b42318;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1416;
    --text: #eceef0;
    --muted: #a9b0b6;
    --line: #25333a;
    --surface: #142125;
    --link: #7fcadb;
    --gap-bg: #3b1818;
    --gap-text: #ff9d95;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    17px/1.6 system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  overflow-wrap: break-word;
}
a {
  color: var(--link);
}
.inner,
main {
  max-width: 720px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.preview-bar {
  background: #b42318;
  color: #fff;
  text-align: center;
  padding: 6px 16px;
  font-size: 0.9rem;
}
.site-header {
  background: var(--brand);
}
.site-header .inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
}
.brand img {
  border-radius: 8px;
}
.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}
.site-header nav a {
  color: #fff;
  text-decoration: none;
  opacity: 0.9;
}
.site-header nav a:hover {
  opacity: 1;
  text-decoration: underline;
}

main {
  padding-top: 32px;
  padding-bottom: 48px;
}
h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 8px;
}
h2 {
  font-size: 1.3rem;
  line-height: 1.3;
  margin: 2em 0 0.5em;
}
h2 .num {
  color: var(--muted);
}
h3 {
  font-size: 1.05rem;
  margin: 1.5em 0 0.4em;
}
code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.9em;
}
.meta {
  color: var(--muted);
  margin: 0 0 24px;
}

/* A markdown table, drawn as one card per row as the app does. */
.row {
  background: var(--surface);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 10px 0;
}
.row-title {
  font-weight: 600;
  margin: 0 0 6px;
}
.row dl {
  display: grid;
  grid-template-columns: minmax(0, 9em) minmax(0, 1fr);
  gap: 4px 12px;
  margin: 0;
}
.row dt {
  color: var(--muted);
  font-size: 0.9rem;
  padding-top: 2px;
}
.row dd {
  margin: 0;
}
@media (max-width: 520px) {
  .row dl {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .row dd {
    margin-bottom: 6px;
  }
}

/* Preview only: a detail nobody has filled in yet. */
.gap {
  background: var(--gap-bg);
  color: var(--gap-text);
  border-radius: 4px;
  padding: 0 4px;
  font-size: 0.9em;
}
.notice {
  border: 1px solid var(--gap-text);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 0 0 24px;
}

.hero {
  text-align: center;
  padding: 16px 0 8px;
}
.hero img {
  border-radius: 24px;
}
.lede {
  font-size: 1.15rem;
  max-width: 32em;
  margin: 0 auto 12px;
}
.hero p {
  max-width: 32em;
  margin-left: auto;
  margin-right: auto;
}
.soon {
  color: var(--muted);
}
.stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.store {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.store:hover {
  text-decoration: underline;
}

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
footer .inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-top: 20px;
  padding-bottom: 32px;
}
