/* DogSpots site — shared styles.
   Colours mirror the app's tokens (src/constants/tokens.ts) so the site and
   the app read as one product: brand #E1306C, warm off-white background. */

:root {
  --brand: #e1306c;
  --brand-dark: #ff5c8d;
  --bg: #fbf5f3;
  --surface: #ffffff;
  --text: #221019;
  --text-secondary: #7c6a72;
  --border: rgba(34, 16, 25, 0.1);
  --radius: 16px;
  --measure: 34rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #ff5c8d;
    --bg: #251f27;
    --surface: #312b34;
    --text: #f6eaf0;
    --text-secondary: #b7a4ac;
    --border: rgba(246, 234, 240, 0.12);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0 1.5rem 5rem;
  background: var(--bg);
  color: var(--text);
  font-family: Montserrat, -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
}

/* ── Logo lockup ────────────────────────────────────────────────────────── */

/* The mark is a full-bleed magenta tile, so the rounding comes from CSS rather
   than the SVG — keeps the supplied artwork untouched. The wordmark is live
   Montserrat text, not an image, so it recolours with the theme and stays
   crisp at any size. */

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.6875rem;
  text-decoration: none;
  color: inherit;
}

.lockup img {
  display: block;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 22.5%; /* iOS-ish squircle ratio, scales with the mark */
  flex: none;
}

.lockup span {
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
}

.lockup--lg img {
  width: 3.5rem;
  height: 3.5rem;
}

.lockup--lg span {
  font-size: 2.125rem;
}

/* ── Header ─────────────────────────────────────────────────────────────── */

header.site {
  padding: 2.5rem 0 1rem;
}

/* ── Type ───────────────────────────────────────────────────────────────── */

h1 {
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 1.5rem 0 0.5rem;
}

h2 {
  font-size: 1.1875rem;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 2.75rem 0 0.75rem;
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.75rem 0 0.5rem;
}

p,
ul,
ol {
  margin: 0 0 1rem;
}

ul,
ol {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.5rem;
}

li::marker {
  color: var(--brand);
}

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

strong {
  font-weight: 600;
}

.lede {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.updated {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0 0 2.5rem;
}

/* ── Callout ────────────────────────────────────────────────────────────── */

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.375rem;
  margin: 1.5rem 0 2rem;
}

.callout :last-child {
  margin-bottom: 0;
}

.callout h3 {
  margin-top: 0;
}

/* ── Home ───────────────────────────────────────────────────────────────── */

.hero {
  padding: 3rem 0 1rem;
}

.hero .lockup {
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-top: 0;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.links a {
  display: inline-block;
  padding: 0.6875rem 1.125rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
}

.links a:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

footer.site {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

footer.site a {
  color: var(--text-secondary);
}

footer.site a:hover {
  color: var(--brand);
}

footer.site nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
