:root {
  --bone: #EDE7DC;
  --ink: #141414;
  --oxblood: #5A1A22;
}

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

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

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Fine, constant film grain — the same thing that holds the feed together. */
.grain {
  position: fixed;
  inset: -50%;
  pointer-events: none;
  z-index: 2;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

main {
  max-width: 34rem;
  margin: 0 auto;
  padding: 0 1.75rem;
  position: relative;
  z-index: 1;
}

/* 1 — wordmark */
.mark {
  padding: 5.5rem 0 4.25rem;
  text-align: center;
}

.mark h1 {
  margin: 0;
  font-family: "Bodoni Moda", "Bodoni MT", Didot, "Times New Roman", serif;
  font-optical-sizing: none;
  font-variation-settings: "opsz" 11; /* óptico bajo: a óptico alto el pelo desaparece en pantalla */
  font-weight: 400;
  font-size: clamp(1.75rem, 9.6vw, 3.25rem);
  letter-spacing: .3em;
  text-indent: .3em; /* keeps the letterspaced word optically centred */
  line-height: 1;
}

/* 2 — the object */
.plate {
  margin: 0;
}

.plate img {
  display: block;
  width: 100%;
  height: auto;
}

/* 3 — voice */
.voice {
  padding: 4rem 0 5.5rem;
  text-align: center;
}

.voice p {
  margin: 0 0 1.15em;
  font-family: "Bodoni Moda", "Bodoni MT", Didot, "Times New Roman", serif;
  font-optical-sizing: none;
  font-variation-settings: "opsz" 11;
  font-weight: 400;
  font-size: clamp(1.0625rem, 4.6vw, 1.375rem);
  line-height: 1.5;
  text-wrap: balance;
}

.voice p:last-child { margin-bottom: 0; }

/* 4 — waiting list */
.list {
  padding-bottom: 5rem;
  text-align: center;
}

.list label {
  display: block;
  margin-bottom: 1.5rem;
  font-size: .6875rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--oxblood);
}

.field {
  display: flex;
  align-items: center;
  gap: .5rem;
  max-width: 20rem;
  margin: 0 auto;
  border-bottom: 1px solid rgba(20, 20, 20, .3);
  transition: border-color .25s ease;
}

.field:focus-within { border-bottom-color: var(--oxblood); }

.field input {
  flex: 1;
  min-width: 0;
  padding: .5rem 0 .65rem;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 1rem; /* 16px — stops iOS zooming on focus */
  letter-spacing: .04em;
  text-align: center;
  text-indent: 1rem; /* balances the arrow on the right */
}

.field input::placeholder {
  color: rgba(20, 20, 20, .35);
  letter-spacing: .14em;
}

.field input:focus { outline: none; }

.field button {
  flex: none;
  width: 1.5rem;
  padding: 0 0 .15rem;
  border: 0;
  background: none;
  color: var(--oxblood);
  font: inherit;
  font-size: 1.0625rem;
  line-height: 1;
  cursor: pointer;
  opacity: .75;
  transition: opacity .25s ease;
}

.field button:hover,
.field button:focus-visible { opacity: 1; }

.note {
  margin: 1.25rem 0 0;
  min-height: 1.25em;
  font-size: .8125rem;
  letter-spacing: .1em;
  color: var(--oxblood);
}

form.done .field { display: none; }
form.done label { margin-bottom: 0; }

/* 5 — foot */
footer {
  position: relative;
  z-index: 1;
  padding: 0 1.75rem 3.25rem;
  text-align: center;
}

footer a {
  font-size: .6875rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(20, 20, 20, .55);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: .15rem;
  transition: color .25s ease, border-color .25s ease;
}

footer a:hover,
footer a:focus-visible {
  color: var(--ink);
  border-bottom-color: rgba(20, 20, 20, .3);
}

@media (min-width: 40rem) {
  .mark { padding: 7.5rem 0 5rem; }
  .voice { padding: 5rem 0 5.5rem; }
  .list { padding-bottom: 6rem; }
  footer { padding-bottom: 4rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---- secuencia editorial: foto, línea, foto, línea ---- */

.plate + .line { margin-top: 0; }

.line {
  margin: 0;
  padding: 3.25rem 0 3.75rem;
  font-family: "Bodoni Moda", "Bodoni MT", Didot, "Times New Roman", serif;
  font-optical-sizing: none;
  font-variation-settings: "opsz" 11;
  font-weight: 400;
  font-size: clamp(1.0625rem, 4.6vw, 1.375rem);
  line-height: 1.5;
  text-align: center;
  text-wrap: balance;
}

.sello {
  margin: 0;
  padding: 1.25rem 0 3.5rem;
  text-align: center;
}

.sello img {
  width: 2.25rem;
  height: 2.25rem;
  opacity: .5;
}

@media (min-width: 40rem) {
  .line { padding: 4rem 0 4.5rem; }
}
