/* ---------- Self-hosted fonts (GDPR-friendly, CSP-safe) ---------- */
/* Instrument Sans — variable 400–700 */
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/instrument-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/instrument-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Instrument Sans — italic, variable 400–700 */
@font-face {
  font-family: "Instrument Sans";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/instrument-sans-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/instrument-sans-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Instrument Serif — 400 */
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-serif-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-serif-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #fbc3ce;
  --ink: #04564a;
  --font-sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
}

/* ---------- Base ---------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
}

body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Header ---------- */
.site-head {
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
}

.brand {
  font-family: var(--font-sans);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(1.4rem, 2.2vw, 1.65rem);
  letter-spacing: 0.05em;
  /* Instrument Sans maxes at 700; nudge a hair bolder with a thin stroke. */
  -webkit-text-stroke: 0.4px currentColor;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}

/* ---------- Hero ---------- */
/* Mobile: centered text, full-width image below */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 2.5rem);
  padding: 1.5rem 0 clamp(2rem, 6vw, 4rem);
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  padding-inline: clamp(1.25rem, 5vw, 2rem);
}

.hero-media {
  display: block;
  width: 100%;
  max-width: 100%;
}

.hero-img {
  width: 100%;
  height: auto;
  /* Photo has a solid pink background with a faint gradient; feather the
     edges so the rectangle dissolves seamlessly into the page background. */
  -webkit-mask-image: linear-gradient(
      to right,
      transparent,
      #000 6%,
      #000 94%,
      transparent
    ),
    linear-gradient(to bottom, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(
      to right,
      transparent,
      #000 6%,
      #000 94%,
      transparent
    ),
    linear-gradient(to bottom, transparent, #000 5%, #000 95%, transparent);
  mask-composite: intersect;
}

.title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(1.7rem, 6.4vw, 5.25rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
  max-width: min(15ch, 100%);
}

.copy {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.35rem, 3vw, 2.05rem);
  line-height: 1.32;
  text-wrap: balance;
  max-width: min(30ch, 100%);
}

/* ---------- Footer ---------- */
.site-foot {
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  opacity: 0.65;
}

/* ---------- Desktop: text left, larger image right ---------- */
@media (min-width: 768px) {
  .hero {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: clamp(1rem, 2vw, 1.75rem);
    width: 100%;
    max-width: 75rem;
    margin-inline: auto;
    padding-inline: clamp(1.75rem, 5vw, 4rem);
  }
  .hero-text {
    flex: 0 1 auto;
    max-width: 30rem;
    align-items: flex-start;
    text-align: left;
    padding-inline: 0;
  }
  .hero-media {
    flex: 1 1 auto;
    max-width: 1000px;
  }
  .title {
    font-size: clamp(2.6rem, 4.5vw, 4.25rem);
  }
}

/* ---------- Motion ---------- */
/* Entrance */
.hero > * {
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}
.hero-text {
  animation-delay: 0.05s;
}
.hero-media {
  animation-delay: 0.18s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
  }
}
