:root {
  --bg: #f0d8c2;
  --ink: #ffffff;
  --serif: "adobe-caslon-pro", "Adobe Caslon Pro", "Adobe 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;
}

/* HOME */

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

.home-shell {
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 560px;
  overflow: hidden;
}

.hero-title {
  position: absolute;
  top: 3.2vh;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  width: max-content;
  max-width: 98vw;
  white-space: nowrap;
  display: flex;
  align-items: baseline;
  gap: 0.035em;
  font-size: clamp(4rem, 10.1vw, 12rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-weight: 700;
  font-style: italic;
}

.hero-and {
  font-size: 0.57em;
  letter-spacing: -0.035em;
  margin-inline: 0.02em 0.05em;
}

.brand-links {
  position: absolute;
  top: 70.3%;
  left: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  text-align: center;
  padding: 0 7.2vw;
}

.brand-link {
  justify-self: center;
  font-size: clamp(0.8rem, 1.38vw, 1.7rem);
  line-height: 1;
  letter-spacing: -0.035em;
  transition: opacity 180ms ease, transform 220ms ease;
}

.brand-link:hover,
.brand-link:focus-visible {
  opacity: 0.66;
  transform: translateY(-2px);
}

.instagram-trigger {
  position: absolute;
  left: 50%;
  bottom: 4.35vh;
  transform: translateX(-50%);
  width: 33px;
  height: 33px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  opacity: 0.96;
  transition: opacity 180ms ease, transform 220ms ease;
}

.instagram-trigger:hover,
.instagram-trigger:focus-visible {
  opacity: 0.65;
  transform: translateX(-50%) translateY(-2px);
}

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

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

/* INSTAGRAM MODAL */

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 280ms ease, visibility 280ms ease;
}

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

.modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(240, 216, 194, 0.88);
  backdrop-filter: blur(5px);
  cursor: default;
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(620px, calc(100vw - 40px));
  padding: 60px 55px 55px;
  text-align: center;
}

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

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

.instagram-links a {
  width: fit-content;
  margin: 0 auto;
  font-size: clamp(1.8rem, 4vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  transition: opacity 180ms ease, transform 220ms ease;
}

.instagram-links a:hover,
.instagram-links a:focus-visible {
  opacity: 0.62;
  transform: translateX(4px);
}

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

/* ABOUT */

.about-page {
  min-height: 100dvh;
  overflow-x: hidden;
}

.about-header {
  width: 100%;
  padding: 28px 34px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.home-wordmark {
  display: flex;
  align-items: baseline;
  gap: 0.06em;
  font-size: clamp(1.5rem, 2.7vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.wordmark-and {
  font-size: 0.6em;
}

.back-link {
  font-size: clamp(0.72rem, 0.95vw, 1rem);
  letter-spacing: 0.02em;
}

.about-layout {
  min-height: calc(100dvh - 90px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  gap: clamp(35px, 6vw, 110px);
  align-items: start;
  padding: 22px 5.6vw 7vw;
}

.about-photo-wrap {
  margin: 0;
  position: sticky;
  top: 112px;
}

.about-photo {
  display: block;
  width: 100%;
  max-height: calc(100dvh - 145px);
  object-fit: cover;
  object-position: 50% 53%;
}

.bio {
  max-width: 700px;
  padding: 0 0 5vw;
}

.bio h1 {
  margin: 0 0 34px;
  font-size: clamp(2.1rem, 4vw, 5.2rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.bio p {
  margin: 0 0 1.2em;
  font-size: clamp(1.03rem, 1.32vw, 1.42rem);
  line-height: 1.34;
  letter-spacing: -0.012em;
}

/* RESPONSIVE */

@media (max-width: 800px) {
  .home-shell {
    min-height: 620px;
  }

  .hero-title {
    top: 4.5vh;
    font-size: clamp(3rem, 12.8vw, 6rem);
    letter-spacing: -0.05em;
  }

  .brand-links {
    top: 55%;
    grid-template-columns: 1fr;
    gap: 7vh;
    padding: 0 20px;
  }

  .brand-link {
    font-size: clamp(1rem, 4.6vw, 1.45rem);
  }

  .instagram-trigger {
    width: 30px;
    height: 30px;
    bottom: 4.8vh;
  }

  .modal-card {
    padding-inline: 20px;
  }

  .instagram-links {
    gap: 28px;
  }

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

  .about-header {
    padding: 20px 20px 10px;
  }

  .about-layout {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 18px 20px 60px;
  }

  .about-photo-wrap {
    position: static;
  }

  .about-photo {
    width: 100%;
    max-height: none;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: 51% 55%;
  }

  .bio {
    max-width: none;
    padding-bottom: 0;
  }

  .bio h1 {
    margin-bottom: 26px;
    font-size: clamp(2.35rem, 11vw, 4rem);
  }

  .bio p {
    font-size: 1.02rem;
    line-height: 1.42;
  }
}

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