/* ============================================================
   RIVAGE — coming soon
   Charte verrouillée : 3 couleurs, 2 familles, 1 hairline.
   ============================================================ */

:root {
  /* Colours — the only three permitted (opacity variants allowed) */
  --sand:  #EBE5D8;   /* sand — dominant background */
  --ink:   #2B3A43;   /* deep blue — text, dark fills, overlays */
  --steel: #6B7880;   /* blue-grey — labels, captions, lines */

  --hairline: rgba(43, 58, 67, 0.18);

  /* Type */
  --font-display: 'Tenor Sans', serif;
  --font-body:    'Questrial', sans-serif;

  --wordmark-tracking: 0.18em;
  --label-tracking:    0.32em;
  --sub-tracking:      0.44em;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---- Labels (Questrial, uppercase, wide) ---- */
.label {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: var(--label-tracking);
  padding-left: var(--label-tracking);   /* compensate the tracking */
  font-size: 11px;
  color: var(--steel);
  white-space: nowrap;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 96px 24px 72px;
}

.hero__corners {
  position: absolute;
  top: 32px;
  left: 32px;
  right: 32px;
  display: flex;
  justify-content: space-between;
}

.hero__center {
  width: 100%;
  max-width: 620px;
  text-align: center;
}

/* ---- Lockup (slow fade-in on load) ---- */
.lockup {
  display: inline-block;
  opacity: 0;
  animation: fade-in 1.8s ease forwards;
}

@keyframes fade-in {
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .lockup { animation: none; opacity: 1; }
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
  letter-spacing: var(--wordmark-tracking);
  padding-left: var(--wordmark-tracking);   /* compensate tracking, keep optically centred */
  font-size: clamp(64px, 12vw, 96px);
}

/* Horizon line — 1px, full width of the word, never thicker */
.horizon {
  height: 1px;
  background: var(--ink);
  width: 100%;
  margin-top: 14px;
}

/* Brand slogan — never wider than the wordmark (sits inside the shrink-wrapped lockup) */
.slogan {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: 0.04em;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.2;
  margin-top: 28px;
}

/* ---- Announcement ---- */
.announce {
  margin-top: 56px;
}

.announce__sub {
  font-family: var(--font-body);
  color: var(--steel);
  font-size: 15px;
  letter-spacing: 0.02em;
  margin: 16px 0 0;
}

/* ---- Email capture ---- */
.capture {
  margin-top: 48px;
  display: inline-flex;
  gap: 10px;
  width: 100%;
  max-width: 460px;
}

.capture__field {
  flex: 1 1 auto;
  min-width: 0;
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.6s ease;
}

.capture__field::placeholder {
  color: var(--steel);
}

.capture__field:focus {
  border-color: var(--ink);
}

.capture__btn {
  flex: 0 0 auto;
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 2px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.06em;
  padding: 14px 22px;
  cursor: pointer;
  transition: background-color 0.6s ease, color 0.6s ease;
}

.capture__btn:hover {
  background: var(--ink);
  color: var(--sand);
}

.capture__note {
  margin: 20px 0 0;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--steel);
}

/* ============ PHOTO BAND ============ */
.band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);   /* the gap reads as a hairline seam */
  padding: 0;
}

.plate {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 2px;
  background: var(--ink);        /* ink block shows through when no photo yet */
}

.plate__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Overlay: ink rising from the bottom — transparent to 58%, then dense to ~80% */
.plate__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(43, 58, 67, 0.80) 0%,
    rgba(43, 58, 67, 0.62) 20%,
    rgba(43, 58, 67, 0.0) 58%
  );
}

/* Monogram R + hairline, centred within the dark zone (lower third) */
.plate__mark {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 11%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.plate__r {
  font-family: var(--font-display);
  color: var(--sand);
  font-size: 34px;
  line-height: 1;
}

.plate__hair {
  width: 40px;
  height: 1px;
  background: var(--sand);
}

/* ============ FOOTER ============ */
.footer {
  padding: 0 32px 40px;
}

/* Functional descriptor — small, discreet, centred above the footer hairline */
.footer__descriptor {
  font-family: var(--font-body);
  text-transform: uppercase;
  color: var(--steel);
  letter-spacing: var(--sub-tracking);
  padding-left: var(--sub-tracking);
  font-size: 11px;
  text-align: center;
  margin-top: 56px;
}

.footer__line {
  height: 1px;
  background: var(--hairline);
  width: 100%;
  margin: 40px 0 24px;
}

.footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__mark {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 15px;
  letter-spacing: 0.12em;
  padding-left: 0.12em;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 720px) {
  .hero { padding: 104px 22px 64px; }

  .hero__corners {
    top: 24px;
    left: 22px;
    right: 22px;
  }

  .label { font-size: 10px; letter-spacing: 0.26em; padding-left: 0.26em; }

  .announce { margin-top: 44px; }

  .capture {
    flex-direction: column;
    gap: 12px;
  }

  .capture__btn { width: 100%; }

  /* Photos stack in a single column */
  .band { grid-template-columns: 1fr; }

  .plate { aspect-ratio: 4 / 5; }
}
