/* =========================================================================
   Casa Andrea — Coming-soon landing
   Editorial Puglia masseria aesthetic.
   References: Masseria Moroseta · Casa Anguilla · Borgo Gallana
   ========================================================================= */

:root {
  /* Ink & paper */
  --paper:        #ffffff;   /* pure white, the page itself */
  --paper-edge:   #f4f4f2;   /* a half-tone deeper, for photo placeholders */
  --ink:          #1a1814;   /* near-black, slightly warm */
  --ink-soft:     #4a463f;   /* secondary text */
  --ink-mute:     #8a8478;   /* tertiary, captions, eyebrows */
  --rule:         #ececec;   /* hairline divider, neutral grey */

  /* Type */
  --serif:   "Cormorant Garamond", "Garamond", "EB Garamond", Georgia, serif;
  --sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Geometry */
  --gutter:  clamp(20px, 5vw, 56px);
  --rhythm:  clamp(28px, 5vw, 56px);
}

/* -------------------------------------------------------------------------
   Reset (light)
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; }
img, picture, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--ink); color: var(--paper); }

/* -------------------------------------------------------------------------
   Body / global type
   ------------------------------------------------------------------------- */
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "liga" 1, "kern" 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

p { margin: 0 0 1em; }
em, i { font-style: italic; }

/* Tiny uppercase eyebrow / label */
.eyebrow {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0;
}

.eyebrow--rule {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow--rule::before,
.eyebrow--rule::after {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

/* Display — italic serif. Restrained: the logo carries the name, the H1 is
   a refined echo, not the loudest thing on the page. */
.display {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  letter-spacing: -0.005em;
  line-height: 1;
  margin: 0;
  font-size: clamp(40px, 4.6vw, 68px);
  color: var(--ink);
}

/* -------------------------------------------------------------------------
   Top bar — three columns: brand · opening · language
   ------------------------------------------------------------------------- */
.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: clamp(14px, 1.8vh, 22px) var(--gutter);
}

.topbar__brand   { justify-self: start; }
.topbar__opening { justify-self: center; color: var(--ink-soft); }
.topbar__lang    { justify-self: end; }

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand-img {
  display: block;
  height: clamp(26px, 3vw, 36px);
  width: auto;
}

.lang {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.lang a {
  color: var(--ink-soft);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.25s ease;
}
.lang a:hover { color: var(--ink); }
.lang a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s cubic-bezier(.2,.7,.2,1);
}
.lang a:hover::after { transform: scaleX(1); transform-origin: left; }
.lang [aria-current="true"] { color: var(--ink); }
.lang [aria-current="true"]::after {
  content: "";
  display: block;
  height: 1px;
  background: currentColor;
  margin-top: 2px;
}
.lang__sep { opacity: 0.4; }

/* -------------------------------------------------------------------------
   Hero — topbar + compact title + photo. Sized so legend fits below it
   inside a single 1080-tall viewport on a standard PC.
   ------------------------------------------------------------------------- */
.hero {
  display: flex;
  flex-direction: column;
}

.hero__title {
  text-align: center;
  padding: clamp(18px, 2.6vh, 36px) var(--gutter) clamp(22px, 3vh, 40px);
}

.hero__photo {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  overflow: visible;
  background: transparent;
}

.hero__photo-frame {
  width: 100%;
  aspect-ratio: 3 / 2;
  max-height: 48vh;            /* leaves room for the legend in the same viewport */
  overflow: hidden;
  background: var(--paper-edge);
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;   /* favour the pool + villa over the sky */
  display: block;
}

/* -------------------------------------------------------------------------
   Legend — the lede, location, email. Sized to sit in the same viewport
   as the hero on a standard PC.
   ------------------------------------------------------------------------- */
.below {
  padding: clamp(24px, 3.5vh, 48px) var(--gutter) clamp(28px, 4vh, 56px);
  text-align: center;
  display: grid;
  gap: clamp(14px, 2vh, 22px);
  justify-items: center;
}

.below__lede {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  color: var(--ink-soft);
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.4;
  max-width: 38ch;
  margin: 0;
}

.below__mail {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(20px, 2.2vw, 28px);
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.005em;
  display: inline-block;
  position: relative;
  padding-bottom: 4px;
}
.below__mail::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--ink);
  opacity: 0.3;
  transition: opacity 0.3s ease;
}
.below__mail:hover::after { opacity: 1; }

.below__hint {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  margin: 0;
}

/* -------------------------------------------------------------------------
   Footer — barely there
   ------------------------------------------------------------------------- */
.foot {
  margin-top: auto;
  padding: clamp(20px, 3vw, 32px) var(--gutter);
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.foot a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.25s ease;
}
.foot a:hover { color: var(--ink); }

.foot__left,
.foot__right { display: inline-flex; gap: 18px; align-items: center; }
.foot__sep {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.4;
}

/* -------------------------------------------------------------------------
   Tablet & phones — stack the topbar, give the photo its natural ratio.
   ------------------------------------------------------------------------- */
@media (max-width: 720px) {
  .topbar {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    row-gap: 8px;
    padding-top: 14px;
    padding-bottom: 12px;
  }
  .topbar__brand   { grid-row: 1; grid-column: 1; }
  .topbar__lang    { grid-row: 1; grid-column: 2; justify-self: end; }
  .topbar__opening {
    grid-row: 2;
    grid-column: 1 / -1;
    justify-self: center;
  }
  .topbar__opening.eyebrow--rule { gap: 10px; }
  .topbar__opening.eyebrow--rule::before,
  .topbar__opening.eyebrow--rule::after { width: 18px; }

  .hero__title {
    padding-top: clamp(14px, 2vh, 22px);
    padding-bottom: clamp(18px, 2.4vh, 26px);
  }

  .display { font-size: clamp(34px, 8vw, 52px); }

  .hero__photo-frame {
    /* On phones, drop the viewport cap so the photo keeps its natural 3:2
       composition. */
    max-height: none;
  }
  .hero__photo img {
    object-position: center;
  }

  .foot {
    flex-direction: column;
    text-align: center;
  }
}

/* On very small phones, give the photo every pixel we can. */
@media (max-width: 480px) {
  .hero__photo { padding: 0 16px; }
}

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

/* -------------------------------------------------------------------------
   Print
   ------------------------------------------------------------------------- */
@media print {
  .topbar, .foot { display: none; }
  body { background: #fff; color: #000; }
  .hero { height: auto; }
  .hero__photo { height: auto; aspect-ratio: 3/2; }
}
