@font-face {
  font-family: 'Alef';
  src: url('../fonts/Alef-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Alef';
  src: url('../fonts/Alef-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

:root {
  --primary: #713600;
  --primary-hover: #5a2b00;
  --accent: #ffca99;
  --bg: #faf6f0;
  --surface: #fffdf9;
  --ink: #2b1d12;
  --muted: #6e5b4b;
  --line: #e6d9c8;
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Alef', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.5;
  overflow-x: hidden;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  padding: 10px 14px; border-radius: 10px;
  background: var(--primary); color: #fff; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- header ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1320px; margin: 0 auto;
  padding: 18px var(--gutter);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -.01em;
  border-radius: 10px;
}
.brand-mark { width: 32px; height: 32px; flex: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  border-radius: 14px; border: 1.5px solid transparent;
  font: inherit; font-size: 17px; font-weight: 700; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-secondary:hover { background: #f6eadc; }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 15px; border-radius: 12px; }

a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--primary);
}
.hero-demo:focus { outline: none; }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  max-width: 1320px; margin: 0 auto;
  padding: clamp(8px, 2vw, 24px) var(--gutter) clamp(40px, 6vw, 72px);
}
.hero-copy { max-width: 520px; }
h1 {
  margin: 0;
  font-size: clamp(2.6rem, 5.2vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -.025em;
  font-weight: 700;
}
h1 .line { display: block; }
h1 .accent { color: var(--primary); }
.lede {
  margin: 22px 0 0;
  max-width: 30ch;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.45;
  color: var(--muted);
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-demo { min-width: 0; --rd-stage-max: calc(100svh - 300px); }
.noscript { padding: 24px; border-radius: 16px; background: #efe6da; color: var(--muted); }

/* ---------- mobile ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 4px; }
  .hero-copy { max-width: 640px; }
  .hero-demo { --rd-stage-max: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .site-header { padding-top: 12px; padding-bottom: 12px; }
  .brand { font-size: 18px; }
  .brand-mark { width: 28px; height: 28px; }
  .site-header .btn { display: none; } /* the hero CTA sits right below */
  h1 { font-size: clamp(2.3rem, 10.5vw, 2.9rem); }
  .lede { margin-top: 14px; }
  .cta-row { flex-direction: column; margin-top: 22px; }
  .cta-row .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}
