/* ==========================================================================
   Essencia Body & Skin — Coming Soon
   ========================================================================== */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Jost";
  src: url("../fonts/jost.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ivory: #f7f2eb;
  --cream: #efe6da;
  --sand: #e2d3c0;
  --taupe: #9a8676;
  --umber: #6f5d50;
  --ink: #3d332c;

  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, system-ui, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 3rem);
  --arch-w: min(84vw, 600px);
}

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

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

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background-color: var(--ivory);
  background-image:
    radial-gradient(ellipse 70% 55% at 50% 38%, rgba(255, 252, 247, 0.95) 0%, rgba(255, 252, 247, 0) 70%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(226, 211, 192, 0.55) 0%, rgba(226, 211, 192, 0) 70%),
    radial-gradient(ellipse 55% 45% at 100% 0%, rgba(239, 230, 218, 0.9) 0%, rgba(239, 230, 218, 0) 70%),
    linear-gradient(180deg, var(--ivory) 0%, var(--cream) 100%);
}

/* Fine paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .32 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Hairline frame */
body::after {
  content: "";
  position: fixed;
  inset: clamp(0.75rem, 2.2vw, 1.5rem);
  z-index: 0;
  pointer-events: none;
  border: 1px solid rgba(154, 134, 118, 0.22);
}

/* Page shell — fills the viewport and clips the arch */
.page {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
}

::selection {
  background: var(--sand);
  color: var(--ink);
}

/* Content -------------------------------------------------------------- */

.stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(4rem, 12vh, 7rem) var(--gutter) 2rem;
}

.brand {
  position: relative;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: inherit;
}

/* Arch motif — anchored to the wordmark, running out of the viewport */
.brand::before,
.brand::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: calc(var(--arch-w) * -0.21);
  width: var(--arch-w);
  height: 300vh;
  transform: translateX(-50%);
  border: 1px solid rgba(154, 134, 118, 0.3);
  border-bottom: 0;
  border-radius: calc(var(--arch-w) / 2) calc(var(--arch-w) / 2) 0 0;
  pointer-events: none;
}

.brand::after {
  top: calc(var(--arch-w) * -0.21 + 1.25rem);
  width: calc(var(--arch-w) - 2.5rem);
  border-color: rgba(154, 134, 118, 0.15);
  border-radius: calc(var(--arch-w) / 2 - 1.25rem) calc(var(--arch-w) / 2 - 1.25rem) 0 0;
}

.brand__name {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 11.5vw, 5rem);
  line-height: 1;
  letter-spacing: 0.16em;
  /* optically re-center tracked text */
  margin-right: -0.16em;
  text-transform: uppercase;
  color: var(--ink);
}

.brand__sub {
  display: inline-flex;
  align-items: center;
  gap: 0.9em;
  margin-top: clamp(0.9rem, 2.4vw, 1.4rem);
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(0.66rem, 1.9vw, 0.8rem);
  letter-spacing: 0.52em;
  text-transform: uppercase;
  color: var(--umber);
}

.brand__sub::before,
.brand__sub::after {
  content: "";
  width: clamp(1.25rem, 5vw, 2.5rem);
  height: 1px;
  background: currentColor;
  opacity: 0.35;
}

.brand__sub::after {
  margin-left: -0.52em;
}

.rule {
  display: block;
  width: 1px;
  height: clamp(2.25rem, 7vh, 3.75rem);
  margin: clamp(1.75rem, 5vh, 2.75rem) 0;
  background: linear-gradient(180deg, rgba(154, 134, 118, 0) 0%, rgba(154, 134, 118, 0.6) 100%);
}

.status {
  margin: 0;
  font-weight: 400;
  font-size: clamp(0.7rem, 2vw, 0.8rem);
  letter-spacing: 0.44em;
  margin-right: -0.44em;
  text-transform: uppercase;
  color: var(--taupe);
}

.tagline {
  margin: clamp(0.75rem, 2vh, 1rem) 0 0;
  max-width: min(34ch, calc(var(--arch-w) - 4.5rem));
  text-wrap: balance;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.2rem, 3.6vw, 1.5rem);
  line-height: 1.35;
  color: var(--umber);
}

.contact {
  margin-top: clamp(2.5rem, 7vh, 4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  font-style: normal;
}

.contact__mail {
  position: relative;
  padding: 0.35rem 0;
  font-size: clamp(0.88rem, 2.4vw, 0.95rem);
  letter-spacing: 0.08em;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.4s ease;
}

.contact__mail::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.15rem;
  height: 1px;
  background: var(--taupe);
  opacity: 0.45;
  transform-origin: center;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.contact__mail:hover {
  color: var(--umber);
}

.contact__mail:hover::after {
  opacity: 0.9;
  transform: scaleX(0.6);
}

.contact__mail:focus-visible {
  outline: 1px solid var(--taupe);
  outline-offset: 0.35rem;
}

.contact__place {
  font-size: 0.66rem;
  letter-spacing: 0.4em;
  margin-right: -0.4em;
  text-transform: uppercase;
  color: var(--taupe);
}

/* Footer --------------------------------------------------------------- */

.footer {
  position: relative;
  z-index: 1;
  padding: 1.25rem var(--gutter) calc(clamp(1.5rem, 4vh, 2.5rem) + env(safe-area-inset-bottom));
  text-align: center;
}

.footer p {
  margin: 0;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  margin-right: -0.22em;
  text-transform: uppercase;
  color: var(--taupe);
  opacity: 0.85;
}

/* Single, calm entrance ------------------------------------------------ */

@media (prefers-reduced-motion: no-preference) {
  .stage {
    animation: reveal 1.6s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  }

  @keyframes reveal {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

/* Larger screens ------------------------------------------------------- */

@media (min-width: 48em) {
  .brand__name {
    letter-spacing: 0.2em;
    margin-right: -0.2em;
  }
}

/* Short landscape phones */
@media (max-height: 30em) and (orientation: landscape) {
  .brand::before,
  .brand::after {
    display: none;
  }

  .stage {
    padding-top: 2.5rem;
  }

  .rule {
    height: 1.5rem;
    margin: 1.25rem 0;
  }

  .contact {
    margin-top: 1.5rem;
  }
}
