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

/* ──────────────────────────────────────────────
   Custom Properties — edit these to rebrand
   ────────────────────────────────────────────── */
:root {
  --color-accent: #3b82f6;
  --color-accent-hover: #2563eb;
  --color-accent-text: #ffffff;
  --color-surface: #ffffff;
  --color-surface-alt: #f8fafc;
  --color-border: #e2e8f0;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 0.5rem;
  --max-width: 1200px;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-surface);
}

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

/* ──────────────────────────────────────────────
   Typography
   ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
  margin-bottom: 0.5em;
}

h1 { font-size: 2.5rem; letter-spacing: -0.025em; }
h2 { font-size: 2rem;   letter-spacing: -0.02em;  }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; font-weight: 600; }

p {
  margin-bottom: 1rem;
}

small {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* ──────────────────────────────────────────────
   Links
   ────────────────────────────────────────────── */
a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus-visible {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

/* ──────────────────────────────────────────────
   Buttons
   ────────────────────────────────────────────── */
.btn-accent,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.btn-accent {
  background-color: var(--color-accent);
  color: var(--color-accent-text);
  border-color: var(--color-accent);
}

.btn-accent:hover,
.btn-accent:focus-visible {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: var(--color-accent-text);
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background-color: var(--color-accent);
  color: var(--color-accent-text);
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

/* ──────────────────────────────────────────────
   Form Inputs
   ────────────────────────────────────────────── */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="tel"],
input[type="number"],
textarea,
select {
  display: block;
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

input::placeholder,
textarea::placeholder {
  color: var(--color-text-muted);
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
  color: var(--color-text);
}

/* ──────────────────────────────────────────────
   Section Spacing Utilities
   ────────────────────────────────────────────── */
.section {
  padding: 4rem 1.5rem;
}

.section-sm {
  padding: 2rem 1.5rem;
}

.section-lg {
  padding: 6rem 1.5rem;
}

.section-alt {
  background-color: var(--color-surface-alt);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* ──────────────────────────────────────────────
   Prose / Rich Text Typography
   ────────────────────────────────────────────── */
.prose {
  max-width: 70ch;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--color-text);
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  margin-top: 1.75em;
  margin-bottom: 0.5em;
}

.prose h1:first-child,
.prose h2:first-child,
.prose h3:first-child {
  margin-top: 0;
}

.prose p + p {
  margin-top: 0;
}

.prose ul,
.prose ol {
  padding-left: 1.5em;
  margin-bottom: 1rem;
}

.prose li {
  margin-bottom: 0.375rem;
}

.prose blockquote {
  border-left: 4px solid var(--color-accent);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background-color: var(--color-surface-alt);
  color: var(--color-text-muted);
  font-style: italic;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.prose code {
  font-size: 0.875em;
  background-color: var(--color-surface-alt);
  padding: 0.15em 0.4em;
  border-radius: 0.25rem;
  font-weight: 500;
}

.prose pre {
  background-color: var(--color-text);
  color: var(--color-surface-alt);
  padding: 1.25rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 1.5rem 0;
}

.prose pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-weight: 400;
}

.prose hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2rem 0;
}

.prose img {
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

.prose a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose a:hover {
  color: var(--color-accent-hover);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.prose th,
.prose td {
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--color-border);
  text-align: left;
}

.prose th {
  background-color: var(--color-surface-alt);
  font-weight: 600;
}

/* ──────────────────────────────────────────────
   Utility Helpers
   ────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted  { color: var(--color-text-muted); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ──────────────────────────────────────────────
   Responsive
   ────────────────────────────────────────────── */
@media (max-width: 768px) {
  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  .section    { padding: 2.5rem 1rem; }
  .section-lg { padding: 3.5rem 1rem; }
}
