/* RePax site: one template for all pages in site/pages (server/src/site.ts) */
:root {
  --accent: #B3221B;
  --accent-dark: #951b15;
  --text: #17191E;
  --muted: #4A4D55;
  --faint: #5B5F68;
  --line: #ECECEF;
  --bg: #FFFFFF;
  --soft: #F7F7F8;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { font-weight: 700; font-size: 20px; color: var(--text); letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
nav { display: flex; gap: 22px; flex: 1; overflow-x: auto; }
nav a { color: var(--muted); font-size: 15px; white-space: nowrap; }
nav a:hover { color: var(--text); text-decoration: none; }

/* Pill buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
.btn:hover { background: var(--accent-dark); text-decoration: none; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }

/* Content */
main.wrap { padding-top: 64px; padding-bottom: 80px; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 16px; }
h1 { font-size: clamp(34px, 6vw, 56px); max-width: 16em; }
h1 + p { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 36em; margin-bottom: 40px; }
h2 { font-size: clamp(26px, 3.6vw, 34px); margin-top: 64px; }
h3 { font-size: 20px; margin-top: 24px; }
h4 { font-size: 17px; margin-top: 20px; }
p, ul, ol { margin: 0 0 16px; max-width: 44em; }
p, li { color: var(--muted); }
strong { color: var(--text); }
ul, ol { padding-left: 1.3em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }
img { max-width: 100%; height: auto; border-radius: 20px; }

/* Cards: :::card blocks next to each other */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 24px 0 32px; }
.card { border: 1px solid var(--line); border-radius: 22px; padding: 24px; background: var(--bg); }
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.card h3, .card h4 { margin-top: 0; }
.card p, .card li { font-size: 16px; }

/* Footer */
footer { border-top: 1px solid var(--line); color: var(--faint); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 6px 10px; padding-top: 24px; padding-bottom: 32px; }
footer a { color: var(--faint); }
.dot { color: var(--line); }

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .top .wrap { flex-wrap: wrap; gap: 10px 16px; padding-top: 10px; padding-bottom: 10px; }
  nav { order: 3; flex-basis: 100%; gap: 18px; }
  .top .btn { margin-left: auto; }
  main.wrap { padding-top: 40px; }
}
