/* PTM. / CHNGN. — Edición 001
   Mobile-first. Designed at 390px, then widened. */

@font-face {
  font-family: "PTMC Serif";
  src: url("../fonts/ptmc-serif-regular.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "PTMC Serif";
  src: url("../fonts/ptmc-serif-bold.woff") format("woff");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "PTMC Sans";
  src: url("../fonts/ptmc-sans-regular.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "PTMC Sans";
  src: url("../fonts/ptmc-sans-medium.woff") format("woff");
  font-weight: 500; font-style: normal; font-display: swap;
}

:root {
  --ink: #1B1A18;
  --bone: #F2EDE4;
  --stone: #D7CDBE;
  --grey: #8B847A;
  --brown: #6C5949;
  --error: #E7B39C;

  --serif: "PTMC Serif", "Times New Roman", Times, serif;
  --sans: "PTMC Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --pad: 1.5rem;
  --max: 90rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
figure { margin: 0; }
h1, h2, p, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
section[id] { scroll-margin-top: 0; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.skip {
  position: fixed; left: var(--pad); top: -4rem; z-index: 10;
  background: var(--bone); color: var(--ink);
  padding: .75rem 1rem; font-weight: 500; text-decoration: none;
}
.skip:focus { top: .75rem; }

/* ---------- Type primitives ---------- */
.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 11.4vw, 6.25rem);
  line-height: .94;
  letter-spacing: -.012em;
}
.eyebrow {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.wordmark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(3.75rem, 19vw, 9rem);
  line-height: .9;
  letter-spacing: -.005em;
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: 0 1.75rem;
  border: 1px solid currentColor;
  font: 500 .8125rem/1 var(--sans);
  letter-spacing: .16em;
  text-decoration: none; text-transform: uppercase;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.button--light { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.button--light:hover { background: transparent; color: var(--bone); }
.button--dark { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.button--dark:hover { background: transparent; color: var(--ink); }
.button--block { width: 100%; }
.button[disabled] { opacity: .6; cursor: progress; }
@media (prefers-reduced-motion: reduce) { .button { transition: none; } }

/* ---------- Header ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: 3.5rem; padding: 0 var(--pad);
}
.site-mark {
  font-family: var(--serif); font-weight: 700; font-size: 1.0625rem;
  letter-spacing: .02em; text-decoration: none; white-space: nowrap;
}
.site-mark span { font-weight: 400; color: var(--grey); padding: 0 .2em; }
.site-header ul { display: flex; gap: .25rem; }
.site-header nav a {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 .5rem;
  font-size: .75rem; font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; text-decoration: none;
}
.site-header nav a:hover { text-decoration: underline; text-underline-offset: .3em; }
.site-header .nav-cta { border-bottom: 1px solid var(--bone); }
@media (max-width: 429px) {
  .site-header { padding: 0 1rem 0 1.25rem; gap: .5rem; }
  .site-mark { font-size: 1rem; }
  .site-header ul { gap: 0; }
  .site-header nav a { padding: 0 .45rem; letter-spacing: .1em; font-size: .6875rem; }
}
@media (max-width: 359px) {
  .site-header ul li:not(:last-child) { display: none; }
}

/* ---------- 1 · Hero ---------- */
.hero__media {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
}
.hero__media img {
  width: 100%; height: 100%;
  aspect-ratio: 650 / 1140;
  object-fit: cover;
  background: #2a2724;
}
.hero__text {
  padding: 1.75rem var(--pad) 2.75rem;
}
.signature {
  margin-top: 1.25rem;
  font-size: .75rem; font-weight: 500; letter-spacing: .24em;
  color: var(--stone);
}
.hero__text .button { margin-top: 1.75rem; }

/* ---------- 2 · Edición 001 ---------- */
.edition {
  background: var(--bone); color: var(--ink);
  padding: 4.5rem var(--pad) 4rem;
}
.edition .eyebrow { color: var(--brown); }
.edition__title {
  margin-top: 1.25rem;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2rem, 8.6vw, 4rem); line-height: 1.02; letter-spacing: -.01em;
}
.edition__body { margin-top: 1.5rem; max-width: 30rem; font-size: 1.0625rem; color: #3a352f; }
.edition__body p + p { margin-top: .5rem; }
.edition__index { margin-top: 3rem; border-top: 1px solid var(--stone); }
.edition__index a {
  display: grid; grid-template-columns: 2.5rem 1fr auto; align-items: baseline;
  padding: 1.25rem 0; border-bottom: 1px solid var(--stone);
  text-decoration: none;
}
.edition__index .num, .edition__index .meta {
  font-size: .75rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--brown);
}
.edition__index .wm { font-family: var(--serif); font-weight: 700; font-size: 2.25rem; line-height: 1; }
.edition__index a:hover .wm { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .12em; }

/* ---------- 3/4 · Identities ---------- */
.identity { padding-bottom: 4.5rem; }
.identity--ptm { background: var(--ink); color: var(--bone); }
.identity--chngn { background: var(--bone); color: var(--ink); }
.identity__primary img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: #2a2724; }
.identity--chngn .identity__primary img { background: var(--stone); }
.identity__info { padding: 2.25rem var(--pad) 0; }
.identity__num { font-size: .75rem; font-weight: 500; letter-spacing: .22em; color: var(--grey); }
.identity--chngn .identity__num { color: var(--brown); }
.identity .wordmark { margin-top: .75rem; }
.identity__line {
  margin-top: 1rem; max-width: 22rem;
  font-family: var(--serif); font-size: 1.375rem; line-height: 1.25;
}
.specs { margin-top: 1.75rem; display: grid; gap: 0; max-width: 22rem; }
.specs > div {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .75rem 0; border-top: 1px solid rgba(215, 205, 190, .25);
  font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase;
}
.identity--chngn .specs > div { border-top-color: var(--stone); }
.specs > div:last-child { border-bottom: 1px solid rgba(215, 205, 190, .25); }
.identity--chngn .specs > div:last-child { border-bottom-color: var(--stone); }
.specs dt { color: var(--grey); }
.identity--chngn .specs dt { color: var(--brown); }
.specs dd { font-weight: 500; }
.identity__info .button { margin-top: 2rem; width: 100%; }
.identity__secondary { margin-top: 3.5rem; width: 82%; margin-left: auto; }
.identity--chngn .identity__secondary { width: 72%; margin-left: 0; }
.identity__secondary img { width: 100%; }

/* ---------- 5 · Garment ---------- */
.garment {
  background: var(--stone); color: var(--ink);
  padding: 4.5rem var(--pad);
}
.garment .eyebrow { color: #5A4A3D; }
.garment__title {
  margin-top: 1.25rem;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.25rem, 10vw, 5rem); line-height: .96; letter-spacing: -.01em;
}
.garment__intro { margin-top: 1.5rem; max-width: 28rem; font-size: 1.0625rem; }
.garment__specs { margin-top: 2.25rem; border-top: 1px solid rgba(27, 26, 24, .25); }
.garment__specs > div {
  display: grid; grid-template-columns: 7rem 1fr; gap: 1rem;
  padding: 1rem 0; border-bottom: 1px solid rgba(27, 26, 24, .25);
}
.garment__specs dt { font-size: .75rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: #5A4A3D; padding-top: .2rem; }
.garment__specs dd { font-family: var(--serif); font-size: 1.25rem; line-height: 1.3; }
.garment__note { margin-top: 2rem; max-width: 34rem; font-size: .875rem; color: #4a4038; }

/* ---------- 6 · Signup ---------- */
.signup { padding: 5rem var(--pad) 5rem; }
.signup .eyebrow { color: var(--stone); }
.signup__title {
  margin-top: 1.25rem;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.125rem, 9.4vw, 4.75rem); line-height: .98; letter-spacing: -.01em;
}
.signup__lede { margin-top: 1.25rem; color: var(--stone); font-size: 1.0625rem; }

.form { margin-top: 2.5rem; max-width: 32rem; }
.field { margin: 0 0 1.75rem; padding: 0; border: 0; min-width: 0; }
.field > label:not(.consent__label), .field legend {
  display: block; margin-bottom: .5rem; padding: 0;
  font-size: .75rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--stone);
}
.field input[type="email"] {
  width: 100%; min-height: 3.25rem; padding: .5rem 0;
  background: transparent; color: var(--bone);
  border: 0; border-bottom: 1px solid var(--stone); border-radius: 0;
  font: 400 1.125rem/1.3 var(--sans);
}
.field input[type="email"]:focus-visible { outline: none; border-bottom: 2px solid var(--bone); margin-bottom: -1px; }
.field input[aria-invalid="true"] { border-bottom-color: var(--error); }
.field__error { margin-top: .5rem; color: var(--error); font-size: .875rem; }

.choice__options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.choice__options label { position: relative; display: block; cursor: pointer; }
.choice__options input {
  position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer;
}
.choice__options span {
  display: flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: 0 .5rem;
  border: 1px solid var(--grey); margin-left: -1px;
  font-family: var(--serif); font-weight: 700; font-size: 1.125rem; letter-spacing: .01em;
}
.choice__options label:first-child span { margin-left: 0; }
.choice__options label:last-child span { font-family: var(--sans); font-weight: 500; font-size: .8125rem; letter-spacing: .16em; text-transform: uppercase; }
.choice__options input:checked + span { background: var(--bone); color: var(--ink); border-color: var(--bone); position: relative; z-index: 1; }
.choice__options input:focus-visible + span { outline: 2px solid var(--bone); outline-offset: 3px; position: relative; z-index: 2; }
.choice[aria-invalid="true"] .choice__options span { border-color: var(--error); }

.consent__label { display: flex; gap: .875rem; align-items: flex-start; cursor: pointer; font-size: .9375rem; color: var(--stone); }
.consent__label input {
  flex: none; appearance: none; -webkit-appearance: none;
  width: 1.5rem; height: 1.5rem; margin: 0; border: 1px solid var(--stone); background: transparent;
  display: grid; place-content: center; cursor: pointer;
}
.consent__label input::before { content: ""; width: .8rem; height: .45rem; border: solid var(--ink); border-width: 0 0 2px 2px; transform: translateY(-2px) rotate(-45deg); opacity: 0; }
.consent__label input:checked { background: var(--bone); border-color: var(--bone); }
.consent__label input:checked::before { opacity: 1; }
.consent__label input:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form__privacy { margin-top: 1.25rem; font-size: .8125rem; color: var(--grey); }
.form__privacy a { color: var(--stone); text-underline-offset: .2em; }

.form__status { margin-top: 1.75rem; padding: 1.25rem; border: 1px solid var(--stone); }
.form__status:focus { outline: none; }
.form__status.is-error { border-color: var(--error); color: var(--error); }
.form__status strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.5rem; line-height: 1.15; color: var(--bone); margin-bottom: .35rem; }
.form.is-done .field, .form.is-done .button, .form.is-done .form__privacy { display: none; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 2.5rem var(--pad) 3rem;
  border-top: 1px solid rgba(139, 132, 122, .35);
  font-size: .8125rem; color: var(--grey);
}
.site-footer__mark { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; color: var(--bone); letter-spacing: .02em; }
.site-footer__links { margin-top: 1rem; display: flex; align-items: center; flex-wrap: wrap; gap: .25rem 1.5rem; letter-spacing: .12em; text-transform: uppercase; font-size: .75rem; }
.site-footer__links a { display: inline-block; padding: .5rem 0; color: var(--stone); }
.site-footer__note { margin-top: 1.25rem; }

/* ================= ≥ 768px ================= */
@media (min-width: 768px) {
  :root { --pad: 2.5rem; }
  .site-header { height: 4rem; }
  .site-header ul { gap: 1rem; }
  .hero__text { padding: 2.5rem var(--pad) 4rem; }
  .hero__media img { aspect-ratio: 4 / 5; object-position: 50% 20%; }
  .edition { padding: 7rem var(--pad) 6rem; display: grid; grid-template-columns: 1fr 1fr; column-gap: 3rem; }
  .edition .eyebrow, .edition__title { grid-column: 1 / -1; }
  .edition__body { grid-column: 1; }
  .edition__index { grid-column: 2; margin-top: 1.5rem; align-self: end; }

  .identity__info { padding-top: 3rem; }
  .identity__info .button { width: auto; }
  .identity__secondary { width: 58%; margin-right: var(--pad); }
  .identity--chngn .identity__secondary { width: 48%; margin-left: var(--pad); }

  .garment { padding: 7rem var(--pad); display: grid; grid-template-columns: 1fr 1fr; column-gap: 4rem; }
  .garment .eyebrow, .garment__title { grid-column: 1 / -1; }
  .garment__intro { grid-column: 1; }
  .garment__specs { grid-column: 2; grid-row: 3 / span 2; margin-top: 1.5rem; }
  .garment__note { grid-column: 1; align-self: end; }

  .signup { padding: 7rem var(--pad); }
  .site-footer { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 1rem 3rem; }
  .site-footer__links, .site-footer__note { margin-top: 0; }
  .site-footer__note { grid-column: 1 / -1; }
}

/* ================= ≥ 1024px ================= */
@media (min-width: 1024px) {
  :root { --pad: 3.5rem; }
  .site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 5; }
  .site-header nav { background: rgba(27, 26, 24, .78); padding: 0 .5rem; }
  .hero {
    display: grid; grid-template-columns: 46fr 54fr;
    min-height: 100vh; min-height: 100svh;
  }
  .hero__text {
    grid-column: 1; grid-row: 1;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 7rem var(--pad) 4rem;
  }
  .hero .display { font-size: clamp(2.875rem, 4.4vw, 5.5rem); }
  .hero__media { grid-column: 2; grid-row: 1; }
  .hero__media img { aspect-ratio: auto; height: 100%; min-height: 100svh; }

  .identity {
    display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 2rem;
    padding: 0 var(--pad) 7rem 0;
  }
  .identity__primary { grid-column: 1 / 8; grid-row: 1 / 3; }
  .identity__info { grid-column: 8 / 13; grid-row: 1; align-self: start; padding: 7rem 0 0; }
  .identity__secondary { grid-column: 9 / 13; grid-row: 2; align-self: end; width: 100%; margin: 3rem 0 0; }

  .identity--chngn { padding: 0 0 7rem var(--pad); }
  .identity--chngn .identity__primary { grid-column: 6 / 13; }
  .identity--chngn .identity__info { grid-column: 1 / 6; }
  .identity--chngn .identity__secondary { grid-column: 1 / 5; width: 100%; margin: 3rem 0 0; }

  .signup { display: grid; grid-template-columns: 1fr 1fr; column-gap: 4rem; align-items: start; }
  .signup .form { margin-top: 2.75rem; }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .hero { grid-template-columns: 38fr 62fr; }
  .hero__text { padding-left: 2.5rem; padding-right: 2rem; }
  .hero .display { font-size: 3.6vw; }
}
@media (min-width: 1024px) {
  .hero__media picture:first-child img { object-position: 52% 50%; }
  .hero__media picture:last-child img { object-position: 42% 50%; }
}

@media (min-width: 1440px) {
  .edition, .garment, .signup, .site-footer { padding-left: max(var(--pad), calc((100vw - var(--max)) / 2)); padding-right: max(var(--pad), calc((100vw - var(--max)) / 2)); }
}

/* WordPress admin bar (logged-in only) */
@media (min-width: 1024px) {
  .admin-bar .site-header { top: 32px; }
}

/* ---------- v1.1 single paired hero (temporary concept 02) ---------- */
.hero__media { display: block; }
.hero__media img { width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; object-position: 50% 30%; }
@media (min-width: 768px) {
  .hero__media img { aspect-ratio: 5 / 4; object-position: 50% 30%; }
}
@media (min-width: 1024px) {
  .hero { grid-template-columns: 38fr 62fr; min-height: 0; align-items: stretch; }
  .hero__text { justify-content: center; padding-top: 6rem; padding-bottom: 3rem; }
  .hero__media img { aspect-ratio: 3 / 2; height: 100%; min-height: 0; object-position: 50% 40%; }
  .hero__media picture:first-child img, .hero__media picture:last-child img { object-position: 50% 40%; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .hero { grid-template-columns: 40fr 60fr; }
}

/* v1.2: desktop nav sits in its own bar, never over the hero photo */
@media (min-width: 1024px) {
  .site-header { position: static; background: var(--ink); }
  .site-header nav { background: none; padding: 0; }
  .admin-bar .site-header { top: auto; }
  .hero__text { padding-top: 3rem; }
}

/* v1.5.1: shop link in every header; on small phones the brand links give way to it */
@media (max-width: 519px) { .site-header .nav-brand { display: none; } }
.identity__reserve { display: inline-flex; align-items: center; min-height: 2.75rem; margin-top: .75rem; font-size: .75rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; text-decoration: underline; text-underline-offset: .35em; }

/* v1.6.1: space between the reserve button and the secondary link on wider screens */
@media (min-width: 768px) { .identity__reserve { margin-left: 1.5rem; } }
