/* ============================================
   ACOMADA — Design Tokens
   ============================================ */

:root {
  /* Color */
  --pine: #1B3A34;
  --pine-light: #26504A;
  --pine-dark: #122823;
  --ivory: #F7F3EA;
  --ivory-warm: #F1EADA;
  --vermilion: #C1440E;
  --vermilion-dark: #9C3609;
  --marigold: #E8A33D;
  --marigold-light: #F3C878;
  --ink: #2B2B26;
  --ink-soft: #4A4A42;
  --sand: #DCD3C0;
  --sand-dark: #C7BB9F;
  --white: #FFFDF8;

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  /* Scale */
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.95rem + 0.2vw, 1.1rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.8vw, 1.9rem);
  --step-3: clamp(1.9rem, 1.6rem + 1.3vw, 2.6rem);
  --step-4: clamp(2.4rem, 1.9rem + 2.2vw, 3.6rem);
  --step-5: clamp(3rem, 2.2rem + 3.6vw, 5rem);

  /* Layout */
  --max-width: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius-sm: 4px;
  --radius-md: 8px;
  --shadow-card: 0 1px 2px rgba(27,58,52,0.06), 0 8px 24px rgba(27,58,52,0.08);
  --shadow-hover: 0 4px 8px rgba(27,58,52,0.08), 0 16px 40px rgba(27,58,52,0.14);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================
   Reset
   ============================================ */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.55;
  font-size: var(--step-0);
  -webkit-font-smoothing: antialiased;
}
img, picture, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

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

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--pine-dark);
}
h1 { font-size: var(--step-5); font-weight: 500; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); font-family: var(--font-body); font-weight: 700; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--vermilion);
  font-weight: 500;
}

.lede {
  font-size: var(--step-1);
  color: var(--ink-soft);
  max-width: 60ch;
}

/* ============================================
   Layout primitives
   ============================================ */

.wrap {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(3rem, 7vw, 6.5rem);
}

.section--tight { padding-block: clamp(2rem, 4vw, 3.5rem); }

.section--pine {
  background: var(--pine);
  color: var(--ivory);
}
.section--pine h2, .section--pine h3, .section--pine h4 { color: var(--white); }
.section--pine .lede { color: rgba(247,243,234,0.78); }

.section--sand { background: var(--ivory-warm); }

.grid {
  display: grid;
  gap: var(--gutter);
}

/* ============================================
   Origin stamp — signature motif
   ============================================ */

.stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  padding: 0.3em 0.7em 0.3em 0.5em;
  border: 1px solid currentColor;
  border-radius: 999px;
  position: relative;
}
.stamp::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.stamp--vermilion { color: var(--vermilion); }
.stamp--pine { color: var(--pine); }
.stamp--marigold { color: var(--marigold-light); }

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--step--1);
  padding: 0.85em 1.5em;
  border-radius: var(--radius-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--vermilion);
  color: var(--white);
}
.btn--primary:hover { background: var(--vermilion-dark); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn--outline {
  background: transparent;
  border: 1.5px solid currentColor;
}
.btn--outline:hover { background: rgba(0,0,0,0.04); transform: translateY(-2px); }
.btn--pine-outline { color: var(--pine); border: 1.5px solid var(--pine); }
.btn--pine-outline:hover { background: var(--pine); color: var(--white); }
.btn--on-pine { color: var(--ivory); border: 1.5px solid rgba(247,243,234,0.5); }
.btn--on-pine:hover { background: rgba(247,243,234,0.1); border-color: var(--ivory); }

/* ============================================
   Cards
   ============================================ */

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

/* ============================================
   Utility
   ============================================ */

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.center-text { text-align: center; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2.5rem; } .mt-5 { margin-top: 4rem; }
