/*
 * giropalla.com — shared styles for every page.
 * Values come from the design system (giropalla-design-system/tokens.json):
 * keep them in step when a token changes.
 */

:root {
  --surface-page: #fdf0ea;
  --surface-card: #ffffff;
  --card-border: #ffffff;
  --border: #e5e7eb;
  --line: #111827;
  --text: #111827;
  --text-secondary: #5b6470;
  --text-accent: #b3454a;
  --action: #be555a;
  --on-action: #ffffff;
  --brand: #c4666a;
  --focus-ring: #b3454a;
  --shadow-card: 0 2px 3px rgba(0, 0, 0, 0.1);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --surface-page: #232e41;
    --surface-card: #303d54;
    --card-border: #475670;
    --border: #475670;
    --line: #8a9ab5;
    --text: #e8ecf2;
    --text-secondary: #b4bfcf;
    --text-accent: #e0a3b2;
    --brand: #e0a3b2;
    --focus-ring: #e0a3b2;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--surface-page);
  color: var(--text);
  font: 16px/1.5 var(--font);
}
img { max-width: 100%; }
a { color: var(--text-accent); }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
[hidden] { display: none !important; }

.page { width: 100%; max-width: 1040px; margin: 0 auto; padding-inline: 16px; }

/* The drawn wordmark, inked in the brand colour of each theme */
.wordmark {
  display: block;
  aspect-ratio: 3125 / 2412;
  height: 96px;
  background: var(--brand);
  -webkit-mask: url("/wordmark.svg") center / contain no-repeat;
  mask: url("/wordmark.svg") center / contain no-repeat;
}

/* Type */
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1 { font-size: clamp(30px, 6vw, 44px); line-height: 1.12; font-weight: 700; }
h2 { font-size: clamp(24px, 4.5vw, 30px); line-height: 1.2; font-weight: 700; }
h3 { font-size: 20px; line-height: 1.3; font-weight: 600; }
p { margin: 0; }
.lede { font-size: 18px; color: var(--text-secondary); max-width: 60ch; }
.secondary { font-size: 14px; color: var(--text-secondary); }

/* Card */
.card {
  background: var(--surface-card);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  box-shadow: var(--shadow-card);
  padding: 24px;
}

/* Buttons: the sticker, a one-colour outline with a hard shadow */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 20px;
  border-radius: 8px; border: 1px solid var(--line); box-shadow: 2px 3px 0 0 var(--line);
  font: 600 16px/1.3 var(--font); text-align: center; text-decoration: none; cursor: pointer;
  transition: transform .08s, box-shadow .08s, filter .12s;
}
.button.solid { background: var(--action); color: var(--on-action); }
.button.outline { background: var(--surface-card); color: var(--text-accent); }
.button.ghost { background: transparent; color: var(--text-accent); border-color: transparent; box-shadow: none; }
.button.block { display: flex; width: 100%; }
.button.solid:hover { filter: brightness(1.07); }
.button.solid:active, .button.outline:active { transform: translate(2px, 3px); box-shadow: none; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--text-accent);
  font-size: 14px; font-weight: 600;
}

.site-footer {
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center;
  padding-block: 32px 48px; border-top: 1px solid var(--border);
  font-size: 14px; color: var(--text-secondary);
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
