/* LOVR Discovery — single-page editorial doc, voice OR type */

@font-face {
  font-family: 'GT Sectra';
  src: url('assets/fonts/GT-Sectra-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'GT Pressura';
  src: url('assets/fonts/GT-Pressura-Standard-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bordeaux: #4A0D1A;
  --ecru: #F5F0E8;
  --ecru-soft: #EAE3D6;
  --ink: #1d1410;
  --serif: 'GT Sectra', 'Times New Roman', Georgia, serif;
  --mono: 'GT Pressura', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --gutter-x: clamp(1.4rem, 5vw, 5rem);
  --max-width: 58rem;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html, body {
  background: var(--ecru);
  color: var(--bordeaux);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.5;
}

/* gate */
.gate {
  position: fixed;
  inset: 0;
  background: var(--bordeaux);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 420ms ease, visibility 0s linear 420ms;
}
.locked .gate { opacity: 1; visibility: visible; transition: opacity 420ms ease, visibility 0s; }
body.unlocked .gate { opacity: 0; visibility: hidden; pointer-events: none; }

.gate__inner { display: flex; flex-direction: column; align-items: center; gap: 2.2rem; }
.gate__logo { width: 84px; height: auto; filter: brightness(0) invert(1); opacity: 0.92; }
.gate__form {
  width: min(280px, 82vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}
.gate__input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--ecru) 50%, transparent);
  color: var(--ecru);
  font-family: var(--mono);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 0.75rem 0;
  outline: none;
  caret-color: var(--ecru);
  transition: border-bottom-color 180ms ease;
}
.gate__input:focus { border-bottom-color: var(--ecru); }
.gate__input::placeholder {
  color: color-mix(in srgb, var(--ecru) 42%, transparent);
  font-family: var(--mono);
  letter-spacing: 0.08em;
}
.gate__input.shake { animation: shake 320ms ease; }
.gate__btn {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ecru);
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--ecru) 38%, transparent);
  padding: 0.7rem 1.8rem;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}
.gate__btn:hover {
  background: var(--ecru);
  color: var(--bordeaux);
  border-color: var(--ecru);
}
.gate__btn:focus-visible {
  outline: none;
  border-color: var(--ecru);
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

/* doc layout */
.doc {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(3rem, 7vh, 5rem) var(--gutter-x) clamp(3rem, 6vh, 4rem);
}

/* triptych */
.triptych {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.55rem;
  aspect-ratio: 16 / 11;
  margin-bottom: clamp(2.4rem, 5vh, 3.6rem);
}
.triptych__cell {
  background-size: cover;
  background-position: center;
  background-color: var(--ecru-soft);
}
.triptych__cell--1 { grid-row: 1 / span 2; grid-column: 1; }
.triptych__cell--2 { grid-row: 1; grid-column: 2; }
.triptych__cell--3 { grid-row: 2; grid-column: 2; }

/* header */
.head__eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 1.2rem;
  opacity: 0.7;
}
.head__title {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.012em;
  margin: 0 0 1.6rem;
  max-width: 28rem;
}
.head__letter {
  font-family: var(--serif);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.6;
  max-width: 36rem;
  color: var(--bordeaux);
  opacity: 0.92;
  margin: 0 0 0.9rem;
}
.head__letter:last-of-type { margin-bottom: 0; }
.head__letter em {
  font-style: normal;
  opacity: 1;
  border-bottom: 1px solid color-mix(in srgb, var(--bordeaux) 35%, transparent);
  padding-bottom: 0.05em;
}
.head__sig {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.65;
  margin: 1.8rem 0 0;
}

/* divider */
.rule {
  border: 0;
  border-top: 1px solid color-mix(in srgb, var(--bordeaux) 22%, transparent);
  margin: clamp(2.8rem, 6vh, 4rem) 0;
}

/* sections (read-only list) */
.section {
  margin-bottom: clamp(2.6rem, 5vh, 3.6rem);
}
.section:last-child { margin-bottom: 0; }
.section__eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 0.6rem;
  opacity: 0.65;
}
.section__head {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  line-height: 1.1;
  margin: 0 0 1.6rem;
  max-width: 28rem;
}
.section__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.section__list li {
  display: flex;
  gap: 0.85rem;
  font-family: var(--serif);
  font-size: clamp(1rem, 1.3vw, 1.08rem);
  line-height: 1.5;
  padding: 0;
  align-items: flex-start;
}
.section__list li::before {
  content: '';
  display: inline-block;
  flex: 0 0 auto;
  width: 1rem;
  height: 1px;
  background: color-mix(in srgb, var(--bordeaux) 50%, transparent);
  margin-top: 0.85em;
}
.section__hint {
  display: block;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-top: 0.3rem;
}

/* two-path chooser */
.paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2.4vw, 1.8rem);
  margin: 0 0 clamp(2.4rem, 5vh, 3.4rem);
}
.path {
  border: 1px solid color-mix(in srgb, var(--bordeaux) 22%, transparent);
  padding: clamp(1.4rem, 2.6vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: transparent;
}
.path__num {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.6;
}
.path__head {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(1.4rem, 2vw, 1.7rem);
  line-height: 1.1;
  margin: 0;
}
.path__body {
  font-family: var(--serif);
  font-size: 0.98rem;
  line-height: 1.55;
  margin: 0;
  flex: 1;
  opacity: 0.9;
}
.path__body strong {
  font-weight: 600;
  color: var(--bordeaux);
}
.path__cta {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.95rem 1.6rem;
  background: var(--bordeaux);
  color: var(--ecru);
  border: 0;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  align-self: flex-start;
  transition: background 180ms ease;
}
.path__cta:hover { background: color-mix(in srgb, var(--bordeaux) 88%, #000 12%); }

/* typed form (collapsed by default) */
.typed {
  display: none;
  margin-top: clamp(2rem, 4vh, 3rem);
  padding-top: clamp(2rem, 4vh, 3rem);
  border-top: 1px solid color-mix(in srgb, var(--bordeaux) 18%, transparent);
}
.typed.is-open { display: block; }
.typed__head {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.7;
  margin: 0 0 2.4rem;
}
.typed__section {
  margin-bottom: clamp(2rem, 4vh, 3rem);
}
.typed__eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.6;
  margin: 0 0 0.5rem;
}
.typed__head-text {
  font-family: var(--serif);
  font-style: normal;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  line-height: 1.1;
  margin: 0 0 1.6rem;
  max-width: 28rem;
}
.q {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.6rem;
}
.q:last-child { margin-bottom: 0; }
.q__text {
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.5;
  margin: 0;
}
.q__input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--bordeaux) 28%, transparent);
  background: transparent;
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--bordeaux);
  padding: 0.5rem 0 0.7rem;
  resize: none;
  min-height: 2.7rem;
  outline: none;
  caret-color: var(--bordeaux);
  transition: border-bottom-color 180ms ease;
}
.q__input:focus { border-bottom-color: var(--bordeaux); border-bottom-width: 1.5px; }
.q__input::placeholder { color: color-mix(in srgb, var(--bordeaux) 35%, transparent); }

.typed__submit-row {
  margin-top: clamp(2rem, 4vh, 3rem);
  padding-top: clamp(1.6rem, 3vh, 2.4rem);
  border-top: 1px solid color-mix(in srgb, var(--bordeaux) 14%, transparent);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}
.typed__submit {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1.05rem 2rem;
  background: var(--bordeaux);
  color: var(--ecru);
  border: 0;
  cursor: pointer;
  transition: background 180ms ease;
}
.typed__submit:hover { background: color-mix(in srgb, var(--bordeaux) 88%, #000 12%); }
.typed__submit:disabled { opacity: 0.7; cursor: default; }
.typed__status {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.65;
  min-height: 1.2em;
}

/* footer */
.foot {
  margin-top: clamp(2.6rem, 5vh, 3.6rem);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.5;
  text-align: center;
}

/* mobile */
@media (max-width: 720px) {
  .triptych {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1.4fr 1fr;
    aspect-ratio: 4 / 3.4;
  }
  .triptych__cell--1 { grid-row: 1; grid-column: 1 / span 2; }
  .triptych__cell--2 { grid-row: 2; grid-column: 1; }
  .triptych__cell--3 { grid-row: 2; grid-column: 2; }
  .paths { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
