/* =============================================
   BASE — Reset, Variables, Typography
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --primary: #f97316;
  --primary-hover: #ea6c0a;
  --secondary: #515151;
  --accent: #000000;
  --bg: #fff7ed;
  --fg: #7c2d12;
  --white: #ffffff;
  --border: #fed7aa;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --font-heading: 'Roboto', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Courier New', Courier, monospace;
  --radius: 4px;
  --shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
  --max-w: 1280px;
  --content-w: 860px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--fg);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

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

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-hover); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--accent);
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.05rem; }
h6 { font-size: .95rem; }

p { margin-bottom: 1.25rem; }

ul, ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
li { margin-bottom: .4rem; }

strong, b { font-weight: 600; }
em, i { font-style: italic; }

hr {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: 2rem 0;
}

input, textarea, select, button {
  font-family: var(--font-body);
  font-size: 1rem;
}

button { cursor: pointer; }

.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1rem;
}

.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;
}

/* Screen reader skip link */
.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--primary); color: #fff;
  padding: .5rem 1rem; font-weight: 600;
  z-index: 9999; transition: top .2s;
}
.skip-link:focus { top: 0; }

/* Alignment helpers */
.alignleft  { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 1rem auto; }

/* Utility */
.text-primary { color: var(--primary); }
.bg-primary   { background: var(--primary); }
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .65rem 1.4rem; font-size: .9rem; font-weight: 700;
  border-radius: var(--radius); border: 2px solid transparent;
  transition: all .2s; cursor: pointer; line-height: 1;
}
.btn-primary {
  background: var(--primary); color: #fff; border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }
.btn-outline {
  background: transparent; color: var(--secondary); border-color: var(--secondary);
}
.btn-outline:hover { background: var(--gray-50); }
