/* Arcilla Madre - root tokens, reset, typography, utilities */

@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Caveat';
  src: url('../fonts/caveat-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --terracotta: #B05B3B;
  --terracotta-deep: #7E3D26;
  --oat: #C9A878;
  --oat-soft: #D8BC92;
  --graphite: #23201D;
  --mist: #7A716A;
  --paper: #F4ECDD;
  --paper-2: #EBE0C8;
  --line: #D8C9AC;

  --ff-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --ff-body: 'Inter', system-ui, -apple-system, sans-serif;
  --ff-hand: 'Caveat', cursive;

  --gutter: 24px;
  --gutter-lg: 48px;
  --container: 1200px;
  --radius: 2px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--graphite);
  background: var(--paper);
  background-image:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201, 168, 120, 0.18), transparent 70%),
    repeating-linear-gradient(45deg, rgba(126, 61, 38, 0.012) 0 1px, transparent 1px 6px);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--graphite);
  margin: 0 0 0.6em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.4rem, 5vw + 0.5rem, 3.8rem); font-weight: 400; }
h2 { font-size: clamp(1.9rem, 3vw + 0.5rem, 2.6rem); }
h3 { font-size: clamp(1.3rem, 1.5vw + 0.6rem, 1.55rem); }
h4 { font-size: 1.1rem; font-family: var(--ff-body); font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase; }

p { margin: 0 0 1.2em; max-width: 68ch; }

a {
  color: var(--terracotta-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}
a:hover { color: var(--terracotta); }

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

button { font: inherit; cursor: pointer; }

/* utilities */
.wrap { width: min(100% - 32px, var(--container)); margin: 0 auto; }
.eyebrow {
  font-family: var(--ff-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 16px;
}
.hand {
  font-family: var(--ff-hand);
  font-weight: 400;
  color: var(--terracotta-deep);
}
.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;
}
.divider {
  height: 1px;
  background: var(--terracotta);
  opacity: 0.35;
  border: 0;
  margin: 0;
}
.btn {
  display: inline-block;
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  padding: 14px 28px;
  border-radius: var(--radius);
  background: var(--graphite);
  color: var(--paper);
  text-decoration: none;
  border: 1px solid var(--graphite);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
  min-height: 48px;
}
.btn:hover { background: var(--terracotta-deep); border-color: var(--terracotta-deep); color: var(--paper); }
.btn.ghost {
  background: transparent;
  color: var(--graphite);
}
.btn.ghost:hover { background: var(--graphite); color: var(--paper); }

.jump-to-main {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--graphite);
  color: var(--paper);
  padding: 12px 18px;
  z-index: 100;
  text-decoration: none;
}
.jump-to-main:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
