/* ============================================
   Wall Art Tool — global styles.
   Mobile-first, vanilla CSS, system font stack only.
   Tokens ported from the FR reference; identical palette
   for the cropper port. PDF accent color (navy) lives
   in shop-info defaults (Step 3).
   ============================================ */

:root {
  --color-bg: #fbfaf7;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #5a5a5a;
  --color-border: #e6e3dd;
  --color-primary: #d96e3c;
  --color-primary-dark: #b85728;
  --color-accent: #2a7a5a;
  --color-accent-bg: #e6f4ed;
  --color-warning-bg: #fdf5e6;
  --color-warning-border: #e9c46a;
  --color-success-bg: #e8f4ee;
  --color-success-border: #2a7a5a;
  --color-error-bg: #fdecea;
  --color-error-border: #c0392b;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;

  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);

  --content-max: 1100px;
  --content-narrow: 720px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--color-primary-dark); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--color-primary); }

h1, h2, h3, h4 { font-family: var(--font-serif); line-height: 1.25; margin: 0 0 .5em; }

/* ============= HEADER ============= */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: .75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-header__brand {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
}
.site-header__brand span { color: var(--color-primary); }
.site-header__tagline {
  font-size: .8rem;
  color: var(--color-text-muted);
  text-align: right;
}
@media (max-width: 540px) {
  .site-header__tagline { display: none; }
}

/* ============= FOOTER ============= */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: .85rem;
  color: var(--color-text-muted);
  margin-top: 3rem;
  background: var(--color-surface);
}
.site-footer p { margin: 0; }
