:root {
  --bg: #f3e8d6;
  --ink: #362b26;
  --serif: "adobe-caslon-pro", "Adobe Caslon Pro", "Adobe Caslon", "Caslon", Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 700;
  font-style: italic;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

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

button {
  font: inherit;
}

/* ---------- LANDING PAGE ---------- */

.home-page {
  height: 100dvh;
  min-height: 520px;
  overflow: hidden;
}

.landing {
  height: 100dvh;
  min-height: 520px;
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  padding: max(1.3vh, 8px) 0 max(5.6vh, 52px);
}

.mega-row {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  overflow: hidden;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.row-label {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.025em;
  width: max-content;
  max-width: 100vw;
  white-space: nowrap;
  font-size: min(11.45vw, 20.5vh);
  line-height: 0.78;
  letter-spacing: -0.055em;
  transform-origin: center;
}

.row-label .and {
  display: inline-block;
  font-size: 0.53em;
  letter-spacing: -0.035em;
  margin-inline: 0.035em 0.055em;
}

.row-default,
.row-active {
  position: absolute;
  transition: opacity 150ms ease;
}

.row-default {
  opacity: 1;
}

.row-active {
  opacity: 0;
  font-size: min(11.7vw, 20.8vh);
  letter-spacing: -0.058em;
  transform: scaleX(var(--active-scale, 1));
  transform-origin: center center;
}

.switch-row:hover .row-default,
.switch-row:focus-visible .row-default,
.switch-row.is-selected .row-default {
  opacity: 0;
}

.switch-row:hover .row-active,
.switch-row:focus-visible .row-active,
.switch-row.is-selected .row-active {
  opacity: 1;
}

.instagram-trigger {
  position: fixed;
  z-index: 8;
  left: 50%;
  bottom: max(15px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  opacity: 1;
  transition: opacity 150ms ease;
}

.instagram-trigger:hover,
.instagram-trigger:focus-visible {
  opacity: 0.55;
}

.instagram-trigger svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.instagram-trigger .ig-dot {
  fill: currentColor;
  stroke: none;
}

/* ---------- INSTAGRAM OVERLAY ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  color: var(--ink);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(243, 232, 214, 0.97);
  cursor: default;
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100vw - 38px));
  padding: 56px 28px;
  text-align: center;
}

.modal-title {
  margin-bottom: 42px;
  font-size: clamp(0.86rem, 1.1vw, 1.1rem);
  letter-spacing: 0.015em;
}

.instagram-links {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.instagram-links a {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  font-size: clamp(2rem, 5vw, 5.8rem);
  line-height: 0.88;
  letter-spacing: -0.052em;
  transition: opacity 150ms ease;
}

.instagram-links a:hover,
.instagram-links a:focus-visible {
  opacity: 0.5;
}

.modal-close {
  position: absolute;
  top: 4px;
  right: 10px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 2.25rem;
  line-height: 1;
  font-weight: 400;
  cursor: pointer;
}

/* ---------- BIO PAGE ---------- */

.about-page {
  overflow-x: hidden;
}

.about-header {
  padding: clamp(22px, 3vw, 44px) clamp(20px, 4vw, 64px);
}

.back-arrow {
  display: inline-block;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-style: normal;
  font-weight: 300;
  font-size: clamp(1.35rem, 1.8vw, 1.8rem);
  line-height: 1;
  letter-spacing: 0;
  transition: opacity 150ms ease;
}

.back-arrow:hover,
.back-arrow:focus-visible {
  opacity: 0.5;
}

.about-content {
  width: 100%;
}

.bio {
  width: min(980px, calc(100% - 40px));
  margin: 4vh auto 13vh;
}

.bio h1 {
  margin: 0 0 clamp(34px, 6vw, 70px);
  font-size: clamp(3.1rem, 7.6vw, 9rem);
  line-height: 0.83;
  letter-spacing: -0.055em;
}

.bio p {
  margin: 0 0 1.15em;
  font-family: var(--serif);
  font-weight: 600;
  font-style: normal;
  font-size: clamp(1.2rem, 1.72vw, 1.9rem);
  line-height: 1.3;
  letter-spacing: -0.018em;
}

.about-photo-wrap {
  margin: 0;
  width: 100%;
}

.about-photo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 100dvh;
  object-fit: cover;
  object-position: center;
}

.about-footer {
  position: relative;
  height: 76px;
  display: grid;
  place-items: center;
}

.about-instagram-trigger {
  position: static;
  transform: none;
}

/* ---------- MOBILE / TOUCH ---------- */

@media (max-width: 760px) {
  .home-page,
  .landing {
    min-height: 560px;
  }

  .landing {
    padding-top: max(1vh, 6px);
    padding-bottom: max(7vh, 58px);
  }

  .row-label {
    font-size: min(12.15vw, 18.8vh);
    letter-spacing: -0.06em;
  }

  .row-active {
    font-size: min(12.3vw, 19vh);
  }

  .instagram-trigger {
    width: 28px;
    height: 28px;
  }

  .modal-card {
    width: calc(100vw - 24px);
    padding-inline: 12px;
  }

  .instagram-links {
    gap: 28px;
  }

  .instagram-links a {
    font-size: clamp(2rem, 10vw, 3.6rem);
  }

  .about-header {
    padding: 18px 18px 8px;
  }

  .back-arrow {
    font-size: 1.45rem;
  }

  .bio {
    width: calc(100% - 36px);
    margin-top: 7vh;
    margin-bottom: 12vh;
  }

  .bio h1 {
    font-size: clamp(3rem, 15vw, 5.2rem);
  }

  .bio p {
    font-size: 1.08rem;
    line-height: 1.38;
  }

  .about-photo {
    min-height: 56vh;
    object-fit: cover;
    object-position: 50% 52%;
  }
}

@media (hover: none) {
  .switch-row:hover .row-default {
    opacity: 1;
  }

  .switch-row:hover .row-active {
    opacity: 0;
  }

  .switch-row.is-selected .row-default {
    opacity: 0;
  }

  .switch-row.is-selected .row-active {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}


/* ---------- NEW BIO CONTENT / EDITORIAL TREATMENT ---------- */

.bio {
  width: min(660px, calc(100% - 44px));
  margin: clamp(7vh, 95px, 12vh) auto clamp(14vh, 170px, 19vh);
}

.bio h1 {
  margin: 0 0 clamp(48px, 6vw, 72px);
  max-width: 620px;
  font-family: var(--serif);
  font-size: clamp(2.55rem, 4.1vw, 4.7rem);
  font-weight: 700;
  font-style: italic;
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.bio p {
  margin: 0 0 1.32em;
  font-family: var(--serif);
  font-weight: 600;
  font-style: normal;
  font-size: clamp(1.06rem, 1.24vw, 1.28rem);
  line-height: 1.48;
  letter-spacing: -0.012em;
}

.bio .pull-quote {
  width: 100%;
  margin: clamp(34px, 4.5vw, 54px) 0 clamp(56px, 7vw, 86px);
  font-family: var(--serif);
  font-size: clamp(2rem, 3.15vw, 3.4rem);
  font-weight: 700;
  font-style: italic;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

@media (max-width: 760px) {
  .bio {
    width: calc(100% - 38px);
    margin-top: 8vh;
    margin-bottom: 14vh;
  }

  .bio h1 {
    margin-bottom: 42px;
    font-size: clamp(2.65rem, 12vw, 4rem);
    line-height: 0.91;
  }

  .bio p {
    font-size: 1.04rem;
    line-height: 1.47;
  }

  .bio .pull-quote {
    width: 100%;
    margin: 30px 0 54px;
    font-size: clamp(2rem, 9.5vw, 2.85rem);
    line-height: 0.98;
  }
}


/* ONLY CHANGE: centre close X directly underneath FLOW4FORCES */
.modal-close {
  position: static !important;
  display: block;
  margin: 30px auto 0 !important;
  transform: none !important;
}
