/* ============================================================
   AVANAY — every value derived from the brand manual.
   No gradients, no radii, no shadows, no hover zoom.
   ============================================================ */

:root {
  --engobe:    #EFEBE3;
  --arena:     #DCD2C3;
  --greda:     #A89A88;
  --barro:     #6B5344;
  --humo:      #241E1B;
  --terracota: #A85B3C;

  --ink:   var(--humo);
  --field: var(--engobe);

  --face: "Spectral", Georgia, serif;

  --t-display: clamp(1.75rem, 4.2vw, 3.25rem);
  --t-lead:    clamp(1.05rem, 1.6vw, 1.35rem);
  --t-body:    1rem;
  --t-data:    0.8125rem;
  --t-label:   0.6875rem;

  --track-wordmark: 0.32em;
  --track-label:    0.18em;

  --measure: 34em;
  --gut: clamp(1.5rem, 5vw, 4.5rem);
  --band: clamp(4.5rem, 11vh, 9rem);

  --rule: 1px solid currentColor;
  --hover: 180ms linear;
}

*, *::before, *::after { box-sizing: border-box; }
body, figure, h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--face);
  font-weight: 300;
  font-size: var(--t-body);
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  background: var(--field);
}

/* La Reserva: pale field, smoked field, one hard edge.
   Sections divide by a hard colour boundary, never a rule,
   never a gradient. This is the signature. */
.field        { background: var(--engobe); color: var(--humo); }
.field--sand  { background: var(--arena);  color: var(--humo); }
.field--smoke { background: var(--humo);   color: var(--engobe); }

section { padding: var(--band) var(--gut); }
.wrap { max-width: 74rem; margin-inline: auto; }
.measure { max-width: var(--measure); }

.wordmark {
  font-weight: 200; letter-spacing: var(--track-wordmark);
  text-transform: uppercase; font-size: var(--t-lead); line-height: 1;
}
.display {
  font-weight: 200; font-size: var(--t-display);
  line-height: 1.18; letter-spacing: 0.01em; text-wrap: balance;
}
.label {
  font-size: var(--t-label); letter-spacing: var(--track-label);
  text-transform: uppercase; font-weight: 400; opacity: 0.62;
}
.process-line { font-size: var(--t-lead); line-height: 1.5; max-width: 30em; }
.datum { font-size: var(--t-data); }

/* Empty photographic slots are treated as material, not as
   wireframe. Flat fields at the true aspect ratio. No labels. */
.slot { background: var(--arena); width: 100%; }
.field--sand .slot { background: var(--greda); }
.field--smoke .slot { background: var(--barro); }
.slot--land  { aspect-ratio: 3 / 2; }
.slot--tall  { aspect-ratio: 4 / 5; }
.slot--frame { aspect-ratio: 4 / 5; }

.threshold { min-height: 92svh; display: grid; grid-template-rows: auto 1fr auto; padding: var(--gut); }
.threshold__figure { margin: clamp(2rem, 6vh, 4rem) 0; animation: settle 900ms ease-out both; }
@keyframes settle { from { opacity: 0; transform: scale(1.02); } to { opacity: 1; transform: scale(1); } }

.claim { display: grid; grid-template-columns: 1fr; }
.claim__item { padding: clamp(1.75rem, 3vw, 2.75rem) 0; border-top: var(--rule); }
.claim__item:last-child { border-bottom: var(--rule); }
.claim__figure { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 200; line-height: 1; margin-bottom: 0.85rem; }
@media (min-width: 52rem) {
  .claim { grid-template-columns: repeat(3, 1fr); column-gap: var(--gut); }
  .claim__item { border-bottom: var(--rule); }
}

.piece { display: grid; gap: var(--gut); padding-block: var(--band); border-bottom: var(--rule); align-items: start; }
.piece:first-of-type { border-top: var(--rule); }
.piece__name { font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 300; line-height: 1.2; margin-bottom: 1.25rem; }
@media (min-width: 52rem) { .piece { grid-template-columns: 1.15fr 1fr; column-gap: calc(var(--gut) * 1.5); } }

/* Data read as data makes the price read as data. */
.spec { width: 100%; border-collapse: collapse; margin-block: 1.5rem; }
.spec th, .spec td { text-align: left; padding: 0.6rem 0; border-bottom: var(--rule); font-size: var(--t-data); font-weight: 300; vertical-align: baseline; }
.spec th { font-weight: 400; letter-spacing: var(--track-label); text-transform: uppercase; font-size: var(--t-label); opacity: 0.62; width: 42%; padding-right: 1rem; }
.spec tr:first-child th, .spec tr:first-child td { border-top: var(--rule); }

/* Eight frames maximum. A ninth weakens the eighth. */
.sequence { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; }
@media (min-width: 52rem) { .sequence { grid-template-columns: repeat(4, 1fr); } }
.frame { position: relative; }
.frame__n { position: absolute; top: 0.6rem; left: 0.7rem; font-size: var(--t-label); letter-spacing: var(--track-label); color: var(--engobe); opacity: 0.7; z-index: 1; }

/* La Boca — the kiln arch. Once per site. Do not add another. */
.boca { --arch: 46vmin; width: var(--arch); max-width: 100%; aspect-ratio: 3 / 4; overflow: hidden;
  clip-path: polygon(0% 100%, 0% 38%, 12% 16%, 34% 3%, 50% 0%, 66% 3%, 88% 16%, 100% 38%, 100% 100%); }
.boca > .slot { height: 100%; aspect-ratio: auto; }

.document { display: grid; gap: var(--gut); align-items: center; }
@media (min-width: 52rem) { .document { grid-template-columns: auto 1fr; column-gap: calc(var(--gut) * 1.5); } }

.doors { display: grid; }
.door { padding-block: var(--band); border-top: var(--rule); }
.door:last-child { border-bottom: var(--rule); }
@media (min-width: 52rem) {
  .doors { grid-template-columns: 1fr 1fr; column-gap: calc(var(--gut) * 1.5); }
  .door:last-child { border-bottom: none; }
}

.form { margin-top: 2rem; display: grid; gap: 1.35rem; }
.f { display: grid; gap: 0.4rem; }
.f > input, .f > select, .f > textarea {
  border: 0; border-bottom: var(--rule); background: transparent;
  padding: 0.5rem 0; font-weight: 300; border-radius: 0;
  -webkit-appearance: none; appearance: none;
}
.f > textarea { resize: vertical; min-height: 3.5rem; }
.f > :is(input, select, textarea):focus-visible { outline: none; border-bottom-width: 2px; }

/* Never filled by default. Fills with ink on hover. */
.btn {
  justify-self: start; display: inline-block; margin-top: 0.75rem;
  padding: 0.8rem 1.9rem; border: var(--rule); border-radius: 0;
  background: transparent; color: inherit; cursor: pointer; text-decoration: none;
  font-size: var(--t-label); letter-spacing: var(--track-label); text-transform: uppercase;
  transition: background-color var(--hover), color var(--hover);
}
.btn:hover, .btn:focus-visible { background: currentColor; }
.btn:hover > span, .btn:focus-visible > span { color: var(--engobe); }
.field--smoke .btn:hover > span { color: var(--humo); }
:where(a):focus-visible, .btn:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.colophon { display: grid; gap: 1.5rem; }
.colophon a { color: inherit; text-decoration: none; border-bottom: var(--rule); }

/* El Registro — graduated horizontal bands. Never enclosing. */
.registro { display: grid; gap: 5px; }
.registro span { display: block; background: currentColor; opacity: 0.9; }
.registro span:nth-child(1) { height: 1px; }
.registro span:nth-child(2) { height: 2px; }
.registro span:nth-child(3) { height: 4px; }
.registro span:nth-child(4) { height: 1px; }

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