/* ===== Arvomeklarit — design tokens ===== */
:root {
  --bg: #FAF7F2;
  --bg-2: #F5F3F0;
  --ink: #1F2937;
  --ink-2: #6B7280;
  --gold: #C9A050;
  --gold-deep: #A8842F;
  --blue: #1E3A8A;
  --green: #047857;
  --line: #E5E1D8;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --maxw: 1280px;
  --readw: 680px;

  --radius: 8px;
  --section-y: clamp(72px, 9vw, 128px);

  --t: 200ms cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

@media (min-width: 720px) { body { font-size: 18px; } }

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

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

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

::selection { background: rgba(184, 146, 74, .25); color: var(--ink); }

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  font-size: clamp(40px, 5.6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(30px, 3.6vw, 40px);
  line-height: 1.15;
}

h3 {
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.3;
  letter-spacing: -0.015em;
}

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.55;
  color: var(--ink);
  max-width: 600px;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 16px;
}

.tnum { font-feature-settings: "tnum" 1, "lnum" 1; }

/* ===== Layout primitives ===== */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 720px) { .container { padding: 0 40px; } }

.section {
  padding: var(--section-y) 0;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  padding: 16px 28px;
  border-radius: var(--radius);
  transition: transform var(--t), background var(--t), color var(--t), border-color var(--t), box-shadow var(--t);
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover {
  background: #16306e;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -10px rgba(30, 58, 138, .45);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover {
  background: var(--ink);
  color: var(--bg);
}

.btn-gold {
  background: var(--gold);
  color: #fff;
}
.btn-gold:hover { background: #a37e3a; transform: translateY(-1px); }

.btn-ghost {
  padding: 12px 0;
  color: var(--ink);
  font-weight: 500;
  position: relative;
}
.btn-ghost::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 6px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}
.btn-ghost:hover::after { transform: scaleX(1); }

/* arrow that nudges on hover */
.btn .arrow,
.linkish .arrow { transition: transform var(--t); }
.btn:hover .arrow,
.linkish:hover .arrow { transform: translateX(3px); }

.linkish {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  transition: border-color var(--t), color var(--t);
}
.linkish:hover { border-color: var(--gold); }

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  html { scroll-behavior: auto; }
}

/* Focus rings */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip-to-content link (WCAG 2.4.1) */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 999;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--bg);
  font: 500 14px/1.4 var(--sans);
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 200ms cubic-bezier(.4,0,.2,1);
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 0;
  outline: 2px solid var(--gold);
  outline-offset: -4px;
}

/* Visually hidden, screen-reader only */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
