/* Shelves site — shared styles. Colours and type match the app (apps/mobile/src/design/v2). */
:root {
  color-scheme: light dark;
  --ground: #FBF7F1;
  --wash-a: #DFD8FF;
  --wash-b: #FFD4BB;
  --card: #FFFFFF;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-edge: rgba(255, 255, 255, 0.75);
  --well: #EEEEF2;
  --hairline: #E2E3E9;
  --ink: #101116;
  --secondary: #565A6B;
  --tertiary: #62667A;
  --accent: #0033A0;
  --accent-soft: #E6EDFF;
  --accent-on: #FFFFFF;
  --danger: #C62B2B;
  --bezel: #15161B;
  --shadow-1: 0 2px 8px rgba(16, 17, 22, 0.06), 0 0 0 1px rgba(16, 17, 22, 0.04);
  --shadow-2: 0 8px 24px rgba(16, 17, 22, 0.12), 0 1px 2px rgba(16, 17, 22, 0.06);
  --font-title: "Chivo", system-ui, -apple-system, sans-serif;
  --font-text: "Instrument Sans", system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #121318;
    --wash-a: #312C45;
    --wash-b: #422A1A;
    --card: #1D1E25;
    --glass: rgba(29, 30, 37, 0.9);
    --glass-edge: rgba(255, 255, 255, 0.06);
    --well: #2A2B34;
    --hairline: #32333D;
    --ink: #F2F2F6;
    --secondary: #A9ACBB;
    --tertiary: #9498AB;
    --accent: #7AA2FF;
    --accent-soft: #1B2A4F;
    --accent-on: #0E0F13;
    --danger: #FF6E64;
    --bezel: #2A2B33;
    --shadow-1: 0 2px 8px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.04);
    --shadow-2: 0 8px 24px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.3);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}
svg { display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
::selection { background: var(--accent-soft); color: var(--ink); }

.wrap { max-width: 680px; margin: 0 auto; padding: 0 16px; }

header.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.brand img { width: 48px; height: 34px; object-fit: contain; }
nav a {
  color: var(--secondary);
  text-decoration: none;
  margin-left: 18px;
  font-size: 15px;
  font-weight: 500;
}
nav a:first-child { margin-left: 0; }
nav a:hover, nav a[aria-current="page"] { color: var(--ink); }

h1, h2, h3 { font-family: var(--font-title); color: var(--ink); text-wrap: balance; }
h1 { font-weight: 800; font-size: 40px; line-height: 1.1; letter-spacing: -0.02em; margin: 48px 0 16px; }
h2 { font-weight: 800; font-size: 22px; line-height: 1.25; letter-spacing: -0.02em; margin: 0 0 8px; }
h3 { font-weight: 500; font-size: 17px; letter-spacing: -0.01em; margin: 0 0 4px; }
p, li { color: var(--secondary); }
p { text-wrap: pretty; }
.lede { font-size: 20px; line-height: 1.45; color: var(--ink); margin: 0 0 40px; }
section { padding: 28px 0; border-top: 1px solid var(--hairline); }
ul, ol { padding-left: 22px; }
li { margin: 6px 0; }
strong { color: var(--ink); font-weight: 600; }
.meta { color: var(--tertiary); font-size: 15px; }

footer {
  margin-top: 56px;
  padding: 28px 0 56px;
  border-top: 1px solid var(--hairline);
  color: var(--tertiary);
  font-size: 15px;
}
footer a { color: var(--tertiary); margin-right: 16px; }
footer p { color: var(--tertiary); margin: 12px 0 0; }

@media (max-width: 480px) {
  h1 { font-size: 32px; margin-top: 36px; }
  .lede { font-size: 18px; }
  nav a { margin-left: 12px; font-size: 14px; }
}
