/* Tallo — tokens, reset, typography.
   Palette: greenhouse film (fog), Andean night (paramo), the Freedom rose (freedom),
   cold chain (ice), flower-box cardboard (kraft). */

:root {
  --fog: #e7eae3;
  --fog-2: #dce1d7;
  --fog-3: #c6cdc1;
  --white: #fbfcfa;
  --paramo: #16251e;
  --moss: #536156;
  --freedom: #a10f2b;
  --freedom-deep: #7c0a20;
  --petal: #f4c9d0;
  --ice: #cfe1e6;
  --ice-ink: #1b3a44;
  --kraft: #c6a477;
  --kraft-light: #d6b98e;
  --kraft-dark: #94744a;

  --line: rgb(22 37 30 / 0.16);

  --font-serif: "Alegreya", Georgia, "Times New Roman", serif;
  --font-sans: "Sofia Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-cond: "Sofia Sans Extra Condensed", "Arial Narrow", "Sofia Sans", sans-serif;

  --text-sm: 0.9375rem;
  --text-base: 1.125rem;
  --text-lead: clamp(1.1875rem, 1.05rem + 0.45vw, 1.375rem);
  --text-h3: clamp(1.5rem, 1.3rem + 0.6vw, 1.875rem);
  --text-h2: clamp(2.25rem, 1.35rem + 3vw, 4.25rem);
  --text-h1: clamp(2.75rem, 1.2rem + 5.2vw, 6.25rem);
  --text-stage: clamp(3.5rem, 2.4rem + 3.4vw, 6rem);

  --max: 1360px;
  --gutter: clamp(16px, 4vw, 56px);
  --gap: clamp(16px, 2vw, 28px);
  --section-y: clamp(80px, 9vw, 160px);
  --header-h: 64px;
  --rail-h: 3px;
  --rail-gap: 6px;

  --radius-photo: 2px;
  --radius-field: 6px;
  --radius-card: 8px;
  --radius-pill: 999px;
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (max-width: 640px) {
  :root { --header-h: 58px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--rail-h) + var(--rail-gap) + 12px);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--fog);
  color: var(--paramo);
  font: 400 var(--text-base) / 1.55 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

figure,
ul,
ol,
dl,
dd { margin: 0; padding: 0; }

ul { list-style: none; }

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

h1 { font-size: var(--text-h1); line-height: 0.98; letter-spacing: -0.022em; }
h2 { font-size: var(--text-h2); line-height: 1.02; letter-spacing: -0.018em; }
h3 { font-size: var(--text-h3); line-height: 1.15; }

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

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

button,
input,
textarea,
select { font: inherit; color: inherit; }

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

::selection { background: var(--freedom); color: var(--white); }

.lead { max-width: 34em; font-size: var(--text-lead); line-height: 1.5; }

.caption {
  margin-top: 14px;
  font: italic 400 var(--text-sm) / 1.45 var(--font-serif);
  color: var(--moss);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
