@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600&family=Space+Grotesk:wght@400;500&display=swap");

:root {
  --page: #101921;
  --header: #141a3d;
  --cream: #fcf9e2;
  --cream-soft: rgba(252, 249, 226, 0.9);
  --gold: #c8c17a;
  --line: rgba(252, 249, 226, 0.62);
  --dark-pill: #101921;
  --blue-pill: #304c68;
  --site-width: 1220px;
  --content-width: 946px;
  --motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 78px;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--cream);
  font-family: "Space Grotesk", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  appearance: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 67px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px 0 40px;
  background: var(--header);
  border-bottom: 1px solid var(--line);
  animation: header-in 520ms var(--motion-ease) both;
}

.brand-link {
  color: var(--cream);
  font-size: 16px;
  text-decoration: none;
}

.pill-button {
  min-width: 107px;
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: var(--dark-pill);
  color: var(--cream-soft);
  font: inherit;
  letter-spacing: 0;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.pill-button:hover {
  background: #172431;
}

.pill-button:active {
  transform: translateY(1px);
}

.page-shade {
  position: fixed;
  inset: 0;
  z-index: 25;
  background: rgba(0, 0, 0, 0.58);
}

.site-menu {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 30;
  width: min(52vw, 670px);
  min-width: 540px;
  padding: 21px 44px 48px;
  background: var(--page);
  color: var(--cream);
  transform: translateX(100%);
  transition: transform 260ms ease;
}

.site-menu.open {
  transform: translateX(0);
}

.menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
}

.menu-head p {
  margin: 0;
}

.close-menu {
  background: var(--blue-pill);
}

.close-menu:hover {
  background: #3a5878;
}

.site-menu nav {
  margin-top: 109px;
}

.site-menu a {
  display: block;
  padding: 11px 0 13px;
  border-bottom: 1px solid rgba(252, 249, 226, 0.36);
  color: var(--cream);
  font-size: 37px;
  line-height: 1.22;
  text-decoration: none;
}

.site-menu a:hover {
  color: var(--gold);
}

main {
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 0 10px;
}

.narrow {
  width: min(var(--content-width), calc(100vw - 48px));
  margin: 0 auto;
}

.section-rule {
  border-bottom: 1px solid var(--line);
}

.hero {
  padding: 54px 0 10px;
}

h1,
.display-title {
  margin: 0;
  color: var(--gold);
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: 0;
}

h1 {
  font-size: 72px;
  line-height: 0.96;
  animation: title-in 780ms 90ms var(--motion-ease) both;
}

.hero p {
  margin: 8px 0 0;
  color: var(--cream);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 25px;
  letter-spacing: 0;
  line-height: 1.4;
  animation: fade-rise 700ms 220ms var(--motion-ease) both;
}

.about {
  padding: 55px 0 9px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 562px) 273px;
  align-items: start;
  justify-content: space-between;
  gap: 50px;
}

.about-copy h2 {
  margin: 0 0 2px;
  color: var(--gold);
  font-family: Helvetica, Arial, sans-serif;
  font-size: 36px;
  font-weight: 400;
  line-height: 1.25;
}

.about-copy h2:not(:first-child) {
  margin-top: 58px;
}

.about-copy p {
  max-width: 570px;
  margin: 0 0 26px;
  color: var(--cream);
  font-size: 17px;
  line-height: 1.48;
}

.profile-photo {
  width: 273px;
  height: 410px;
  object-fit: cover;
  object-position: center;
}

.gallery-section {
  padding: 70px 0 57px;
}

.display-title {
  font-size: 72px;
  line-height: 0.96;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 10px;
  margin-top: 68px;
}

.photo-card {
  display: block;
  min-height: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
  overflow: hidden;
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(0.96);
  transition: filter 180ms ease, transform 420ms var(--motion-ease);
}

.photo-card:hover img {
  filter: saturate(1) contrast(1.04);
  transform: scale(1.018);
}

.photo-card.large-left {
  grid-column: span 8;
  aspect-ratio: 1.35;
}

.photo-card.tall-right {
  grid-column: span 4;
  aspect-ratio: 0.66;
}

.photo-card.half {
  grid-column: span 6;
  aspect-ratio: 1.5;
}

.photo-card.one-third {
  grid-column: span 4;
  aspect-ratio: 0.72;
}

.photo-card.two-thirds {
  grid-column: span 8;
  aspect-ratio: 1.45;
}

.photo-card.quarter {
  grid-column: span 3;
  aspect-ratio: 0.7;
}

.photo-card.panorama {
  grid-column: span 12;
  aspect-ratio: 1.83;
}

.photo-card.slim {
  grid-column: span 6;
  aspect-ratio: 2.55;
}

.photo-card[hidden] {
  display: none;
}

.load-button {
  display: block;
  min-width: 141px;
  min-height: 48px;
  margin: 42px auto 0;
  border: 1px solid var(--cream);
  border-radius: 0;
  background: transparent;
  color: var(--cream-soft);
  font: inherit;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.load-button:hover {
  background: var(--cream);
  color: var(--page);
}

.load-button[hidden] {
  display: none;
}

.site-footer {
  position: relative;
  min-height: 456px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  color: var(--cream);
}

.site-footer > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
}

.footer-copy {
  position: relative;
  z-index: 1;
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 20px 40px 36px;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--cream);
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 600;
  text-decoration: none;
}

.footer-copy p {
  margin: 0 0 14px;
}

.footer-copy a:not(.footer-brand):not(.keep-in-touch) {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.keep-in-touch {
  display: inline-block;
  margin-top: 12px;
  color: var(--cream);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 40px;
  line-height: 1.15;
  text-decoration: none;
}

.keep-in-touch:hover,
.footer-copy a:hover {
  color: var(--gold);
}

.copyright {
  margin-top: 38px;
}

.lightbox {
  width: min(92vw, 1120px);
  max-height: 88vh;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cream);
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.82);
}

.lightbox img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
}

.lightbox-close {
  display: block;
  margin: 0 0 12px auto;
  border: 1px solid var(--cream);
  background: var(--page);
  color: var(--cream);
  padding: 9px 20px;
  font: inherit;
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 720ms var(--motion-ease),
    transform 720ms var(--motion-ease);
  will-change: opacity, transform;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.photo-card.reveal {
  transform: translateY(26px) scale(0.985);
}

.photo-card.reveal.in-view {
  transform: translateY(0) scale(1);
}

@keyframes header-in {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes title-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .site-menu {
    width: min(84vw, 540px);
    min-width: 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .profile-photo {
    width: min(320px, 100%);
    height: auto;
    aspect-ratio: 479 / 719;
  }
}

@media (max-width: 700px) {
  html {
    scroll-padding-top: 82px;
  }

  .site-header {
    height: 70px;
    padding: 0 18px 0 16px;
  }

  .brand-link {
    max-width: 45vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .pill-button {
    min-width: 108px;
    min-height: 42px;
  }

  main {
    padding: 0;
  }

  .narrow {
    width: calc(100% - 48px);
  }

  .hero {
    padding: 49px 0 18px;
  }

  h1,
  .display-title {
    font-size: 58px;
    line-height: 0.94;
  }

  .hero p {
    font-size: 24px;
    line-height: 1.35;
  }

  .about {
    padding: 54px 0 40px;
  }

  .about-grid {
    gap: 36px;
  }

  .about-copy h2 {
    font-size: 34px;
  }

  .about-copy h2:not(:first-child) {
    margin-top: 54px;
  }

  .about-copy p {
    font-size: 16px;
    line-height: 1.54;
    margin-bottom: 28px;
  }

  .profile-photo {
    width: min(320px, 100%);
    margin: 0 auto;
  }

  .gallery-section {
    padding: 58px 0 52px;
  }

  .photo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 42px;
  }

  .photo-card {
    width: 100%;
    margin: 0;
    line-height: 0;
  }

  .photo-card.large-left,
  .photo-card.half,
  .photo-card.two-thirds,
  .photo-card.panorama,
  .photo-card.slim {
    aspect-ratio: 1.32;
  }

  .photo-card.tall-right,
  .photo-card.one-third,
  .photo-card.quarter {
    aspect-ratio: 0.75;
  }

  .site-menu {
    width: 100vw;
    min-height: 100dvh;
    overflow-y: auto;
    padding: 18px 30px max(34px, env(safe-area-inset-bottom));
  }

  .site-menu nav {
    margin-top: 92px;
  }

  .site-menu a {
    font-size: 34px;
  }

  .load-button {
    width: min(180px, 100%);
    min-height: 52px;
    margin-top: 34px;
  }

  .site-footer {
    min-height: 520px;
  }

  .footer-copy {
    padding: 24px 24px 40px;
  }

  .footer-copy a {
    overflow-wrap: anywhere;
  }

  .keep-in-touch {
    font-size: 31px;
  }

  .lightbox {
    width: 100vw;
    height: 100dvh;
    max-height: none;
    padding: 14px;
  }

  .lightbox img {
    max-height: calc(100dvh - 82px);
  }
}

@media (max-width: 360px) {
  .narrow {
    width: calc(100% - 36px);
  }

  h1,
  .display-title {
    font-size: 50px;
  }

  .hero p {
    font-size: 22px;
  }

  .about-copy h2 {
    font-size: 31px;
  }

  .site-menu a {
    font-size: 30px;
  }
}
