:root {
  --ivory: #e2d3c1;
  --ivory-soft: rgba(226, 211, 193, 0.72);
  --ivory-faint: rgba(226, 211, 193, 0.28);
  --brown: #706050;
  --brown-hover: #7c6a59;
  --shadow: rgba(18, 12, 8, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #241d18;
}

body {
  margin: 0;
  color: var(--ivory);
  font-family: "Manrope", "Helvetica Neue", sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

/* Fullscreen hero */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background-color: #241d18;
  background-image: url("assets/objecto-interior.png");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero__veil {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgba(19, 14, 11, 0.35);
}

/* Brand mark */
.brand {
  display: flex;
  justify-content: center;
  padding: clamp(1.75rem, 4.5vh, 3.5rem) 1.5rem 0;
}

.brand__logo {
  display: block;
  width: clamp(13.5rem, 20vw, 19rem);
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

/* Central content */
.content {
  align-self: center;
  width: min(100% - 2.5rem, 32.5rem);
  margin: clamp(1.25rem, 3vh, 2.25rem) auto;
  text-align: center;
}

.intro {
  margin-bottom: clamp(1.35rem, 3vh, 2rem);
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--ivory-soft);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3.2rem, 6.8vw, 5.6rem);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.035em;
}

.intro__copy {
  max-width: 31rem;
  margin: 1rem auto 0;
  font-size: clamp(0.78rem, 1.2vw, 0.9rem);
  line-height: 1.75;
}

/* Newsletter form */
.newsletter {
  text-align: left;
}

.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.field {
  position: relative;
}

.field label {
  position: absolute;
  top: 0.55rem;
  left: 0.85rem;
  color: var(--ivory-soft);
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
}

.field input {
  width: 100%;
  min-height: 3.45rem;
  padding: 1.35rem 0.85rem 0.45rem;
  border: 1px solid var(--ivory-faint);
  border-radius: 8px;
  outline: 0;
  background: rgba(30, 23, 19, 0.34);
  color: var(--ivory);
  font-size: 0.84rem;
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.field input:hover {
  border-color: rgba(226, 211, 193, 0.48);
}

.field input:focus {
  border-color: rgba(226, 211, 193, 0.75);
  background: rgba(30, 23, 19, 0.48);
  box-shadow: 0 0 0 3px rgba(226, 211, 193, 0.08);
}

.field input[aria-invalid="true"] {
  border-color: rgba(238, 184, 167, 0.9);
}

.consent {
  display: grid;
  grid-template-columns: 1rem 1fr;
  gap: 0.65rem;
  align-items: start;
  margin: 0.9rem 0 1rem;
  color: var(--ivory-soft);
  font-size: 0.61rem;
  line-height: 1.55;
  cursor: pointer;
}

.consent input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.consent__box {
  display: grid;
  width: 1rem;
  height: 1rem;
  margin-top: 0.05rem;
  place-items: center;
  border: 1px solid var(--ivory-faint);
  border-radius: 3px;
  background: rgba(30, 23, 19, 0.34);
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.consent__box svg {
  width: 0.65rem;
  fill: none;
  stroke: var(--ivory);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  opacity: 0;
  transform: scale(0.75);
  transition: opacity 140ms ease, transform 140ms ease;
}

.consent input:checked + .consent__box {
  border-color: var(--brown);
  background: var(--brown);
}

.consent input:checked + .consent__box svg {
  opacity: 1;
  transform: scale(1);
}

.consent input:focus-visible + .consent__box {
  box-shadow: 0 0 0 3px rgba(226, 211, 193, 0.16);
}

.consent input[aria-invalid="true"] + .consent__box {
  border-color: rgba(238, 184, 167, 0.9);
}

.submit-button {
  position: relative;
  width: 100%;
  min-height: 3.25rem;
  overflow: hidden;
  border: 1px solid var(--brown);
  border-radius: 8px;
  background: var(--brown);
  color: var(--ivory);
  font-size: 0.69rem;
  font-weight: 500;
  letter-spacing: 0.095em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0.8rem 2rem var(--shadow);
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.submit-button:hover {
  border-color: var(--brown-hover);
  background: var(--brown-hover);
  box-shadow: 0 1rem 2.25rem rgba(18, 12, 8, 0.32);
  transform: translateY(-1px);
}

.submit-button:active {
  transform: translateY(0);
}

.submit-button:focus-visible {
  outline: 2px solid var(--ivory);
  outline-offset: 3px;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.form-status {
  min-height: 0;
  margin: 0;
  text-align: center;
  font-size: 0.7rem;
  line-height: 1.6;
}

.form-status:not(:empty) {
  margin-top: 0.85rem;
}

.form-status.is-success {
  color: var(--ivory);
}

.form-status.is-error {
  color: #eeb8a7;
}

/* Contact and social links */
.contact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: clamp(1.25rem, 2.6vh, 1.8rem);
  padding-top: 1rem;
  border-top: 1px solid rgba(226, 211, 193, 0.18);
}

.contact__details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
}

.contact__details a {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.65rem;
  text-decoration: none;
  transition: color 180ms ease;
}

.contact__details svg {
  width: 0.86rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
}

.contact__details a:hover {
  color: #fff5e9;
}

.socials {
  display: flex;
  gap: 0.45rem;
  flex: 0 0 auto;
}

.socials a {
  display: grid;
  width: 1.85rem;
  height: 1.85rem;
  place-items: center;
  border: 1px solid rgba(226, 211, 193, 0.28);
  border-radius: 50%;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.socials a:hover {
  border-color: var(--ivory);
  background: rgba(226, 211, 193, 0.08);
  transform: translateY(-2px);
}

.socials a:focus-visible,
.contact__details a:focus-visible {
  outline: 2px solid var(--ivory);
  outline-offset: 3px;
}

.socials svg {
  width: 0.9rem;
  height: 0.9rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
}

.socials a:last-child svg {
  fill: currentColor;
  stroke: none;
}

.socials__dot {
  fill: currentColor;
  stroke: none;
}

/* Footer */
.footer {
  padding: 0 1.5rem clamp(1.25rem, 3vh, 2rem);
  color: rgba(226, 211, 193, 0.58);
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  text-align: center;
  text-transform: uppercase;
}

@media (max-width: 600px) {
  .hero {
    overflow: auto;
    background-position: 52% center;
  }

  .brand {
    padding-top: 1.3rem;
  }

  .brand__logo {
    width: 12rem;
  }

  .content {
    width: min(100% - 2rem, 30rem);
    margin-block: 1.5rem;
  }

  .intro {
    margin-bottom: 1.3rem;
  }

  h1 {
    font-size: clamp(3.1rem, 16vw, 4.2rem);
  }

  .intro__copy {
    font-size: 0.77rem;
    line-height: 1.65;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .field input {
    min-height: 3.35rem;
  }

  .contact {
    align-items: flex-end;
  }

  .contact__details {
    flex-direction: column;
    gap: 0.55rem;
  }
}

@media (max-height: 760px) and (min-width: 601px) {
  .brand {
    padding-top: 1.25rem;
  }

  .brand__logo {
    width: 12.5rem;
  }

  .content {
    margin-block: 0.75rem;
  }

  .intro {
    margin-bottom: 1rem;
  }

  h1 {
    font-size: 3.75rem;
  }

  .contact {
    margin-top: 1rem;
    padding-top: 0.8rem;
  }

  .footer {
    padding-bottom: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
