/* ============================================================
   base.css — Gachafruit design tokens, reset, and typography
   All components depend on these custom properties.
   ============================================================ */

:root {
  /* Color palette — warm neutral + terracotta */
  --color-bg:           #FAF8F5;
  --color-surface:      #F2EDE6;
  --color-surface-alt:  #EDE5DA;
  --color-border:       #E3D9CE;
  --color-border-soft:  #EDE5DB;
  --color-text:         #2C2724;
  --color-muted:        #8A7E75;
  --color-muted-light:  #B5A99E;
  --color-accent:       #B85C38;
  --color-accent-hover: #9E4D2E;
  --color-accent-soft:  #F5E8E2;

  /* Badge — sage green, complements terracotta */
  --color-badge-bg:   #E8EFE4;
  --color-badge-text: #3E5C35;

  /* Spacing scale */
  --space-xs:  0.25rem;   /*  4px */
  --space-sm:  0.5rem;    /*  8px */
  --space-md:  1rem;      /* 16px */
  --space-lg:  1.5rem;    /* 24px */
  --space-xl:  2.5rem;    /* 40px */
  --space-2xl: 4rem;      /* 64px */
  --space-3xl: 6rem;      /* 96px */

  /* Layout */
  --max-width:    1200px;
  --header-height: 72px;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-size-xs:   0.75rem;
  --font-size-sm:   0.875rem;
  --font-size-base: 1rem;
  --font-size-lg:   1.125rem;
  --font-size-xl:   1.25rem;
  --font-size-2xl:  1.5rem;
  --font-size-3xl:  2rem;
  --font-size-4xl:  2.75rem;
  --font-size-5xl:  3.75rem;

  --font-weight-normal:   400;
  --font-weight-medium:   500;
  --font-weight-semibold: 600;
  --font-weight-bold:     700;
  --font-weight-black:    800;

  --line-height-tight: 1.15;
  --line-height-snug:  1.35;
  --line-height-base:  1.6;

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
}

/* ---- Reset ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ---- Layout helper — used inside full-width sections ---- */
.inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

/* ---- Screen-reader only (visually hidden but accessible) ---- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Image placeholder — replaces real images during development ---- */
.img-placeholder {
  width: 100%;
  background-color: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-placeholder::after {
  content: '';
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  opacity: 0.5;
}
