/* ---------- Tokens ---------- */
:root {
  /* Palette — drawn from the property photo:
     ivory plaster, thatch, hydrangea white, deep hedge, soft slate. */
  --c-ink: #0f1d1a;
  --c-ink-soft: #2a3a36;
  --c-paper: #f6f1e7;
  --c-paper-2: #ede4d2;
  --c-line: rgba(15, 29, 26, 0.12);
  --c-line-light: rgba(246, 241, 231, 0.18);

  --font-serif: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;

  --maxw: 1200px;
  --gutter: clamp(1.5rem, 3.5vw, 3rem);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem var(--gutter);
  color: var(--c-paper);
  transition: background-color 0.4s var(--ease),
    color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(15, 29, 26, 0.78);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.brand__mark {
  display: inline-grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0;
}
.brand__word {
  font-weight: 500;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.site-nav a {
  position: relative;
  opacity: 0.85;
  transition: opacity 0.2s var(--ease);
}
.site-nav a:hover {
  opacity: 1;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: grid;
  align-items: center;
  color: var(--c-paper);
  overflow: hidden;
  isolation: isolate;
  padding: 0 var(--gutter);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  animation: hero-zoom 16s var(--ease) forwards;
}
@keyframes hero-zoom {
  to {
    transform: scale(1);
  }
}

.hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 29, 26, 0.45) 0%,
    rgba(15, 29, 26, 0.1) 40%,
    rgba(15, 29, 26, 0.2) 60%,
    rgba(15, 29, 26, 0.7) 100%
  );
}

.hero__content {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 3rem var(--gutter) 3rem;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 29, 26, 0.45) 0%,
    rgba(15, 29, 26, 0.1) 40%,
    rgba(15, 29, 26, 0.2) 60%,
    rgba(15, 29, 26, 0.7) 100%
  );
    border-radius: 2rem;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 9vw, 7.5rem);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.025em;
  max-width: 14ch;
  margin: 0;
  text-wrap: balance;
}
.hero__title-line {
  display: block;
}
.hero__title em {
  font-style: italic;
  font-weight: 300;
  color: #f1ead7;
}

/* ---------- Intro ---------- */
.intro {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(5rem, 12vw, 9rem) var(--gutter);
}
.intro__text {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: -0.005em;
  max-width: 36ch;
  margin: 0;
  color: var(--c-ink);
  text-wrap: balance;
}

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.5rem var(--gutter) 2rem;
  border-top: 1px solid var(--c-line);
}
.site-footer__email {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 300;
  letter-spacing: -0.005em;
  border-bottom: 1px solid var(--c-line);
  padding-bottom: 0.2rem;
  transition: opacity 0.2s var(--ease);
}
.site-footer__email:hover {
  opacity: 0.55;
}
.site-footer__meta {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0;
  color: var(--c-ink-soft);
  opacity: 0.7;
}

/* ---------- Responsive ---------- */

/* Ultra-wide displays: don't let the title feel small on a 27" iMac */
@media (min-width: 1800px) {
  :root {
    --maxw: 800px;
  }
  .hero__title {
    font-size: clamp(5rem, 7vw, 9rem);
  }
}

/* Landscape tablets / small laptops: tighten the hero bottom padding */
@media (max-width: 1024px) and (min-width: 721px) {
  .hero__content {
    padding: 7rem var(--gutter) 4rem;
  }
  .hero__title {
    font-size: clamp(3.5rem, 7vw, 5.5rem);
  }
}

/* Phones */
@media (max-width: 720px) {
  .site-header {
    padding: 1rem var(--gutter);
  }
  .brand__word {
    font-size: 1rem;
  }
  .site-nav {
    gap: 1rem;
  }
  .hero__content {
    padding: 6.5rem var(--gutter) 3.5rem;
  }
  .hero__title {
    /* Smaller min so it doesn't dominate 320px screens */
    font-size: clamp(2.5rem, 11vw, 4.5rem);
  }
  .intro {
    padding: 4rem var(--gutter);
  }
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 2rem var(--gutter) 1.5rem;
  }
}

/* Very narrow phones: drop the wordmark, keep just the monogram + nav */
@media (max-width: 380px) {
  .brand__word {
    display: none;
  }
}

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