:root {
  --background: #f5f2f0;
  --ink: #181412;
  --muted: rgba(24, 20, 18, 0.56);
  --page-edge: clamp(18px, 3.2vw, 48px);
  --header-height: 118px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background);
  color: var(--ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 14px;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--background);
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  min-height: var(--header-height);
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 28px var(--page-edge) 18px;
  background: linear-gradient(
    180deg,
    rgba(245, 242, 240, 0.96) 0%,
    rgba(245, 242, 240, 0.78) 72%,
    rgba(245, 242, 240, 0) 100%
  );
}

.site-title,
.site-nav {
  font-size: 1.64rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
}

.site-title {
  color: var(--muted);
  white-space: nowrap;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px clamp(32px, 4.4vw, 72px);
  color: var(--muted);
  text-align: right;
  text-transform: uppercase;
}

.site-nav a {
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.site-header--nav-only {
  justify-content: flex-end;
  background: none;
  pointer-events: none;
}

.site-header--nav-only .site-nav {
  pointer-events: auto;
}

.home-gallery {
  min-height: 100vh;
  overflow-x: auto;
  overflow-y: hidden;
  padding: calc(var(--header-height) + 72px) 0 52px;
  scrollbar-width: thin;
}

.artwork-track {
  display: flex;
  width: max-content;
  min-width: 100vw;
  align-items: center;
  gap: clamp(18px, 3vw, 56px);
  padding: 0 var(--page-edge);
}

.artwork-frame {
  flex: 0 0 auto;
  margin: 0;
  background: rgba(24, 20, 18, 0.06);
}

.artwork-frame img {
  width: auto;
  height: min(62vh, 680px);
  object-fit: contain;
}

.blank-page {
  min-height: 100vh;
  padding-top: var(--header-height);
}

.contact-page {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + 36px) var(--page-edge) 72px;
  text-align: center;
}

.contact-portrait {
  width: min(42vw, 390px);
  margin: 0 0 34px;
  background: rgba(24, 20, 18, 0.08);
}

.contact-portrait img {
  height: auto;
  filter: grayscale(1);
}

.contact-copy {
  max-width: 46ch;
  color: rgba(24, 20, 18, 0.72);
  font-size: clamp(0.96rem, 1vw, 1.04rem);
  line-height: 1.48;
}

.contact-copy p {
  margin: 0;
}

.contact-copy p + p {
  margin-top: 18px;
}

.contact-copy a {
  color: var(--ink);
}

.about-page {
  --about-portrait-width: clamp(230px, 31vw, 380px);
  --about-spacer-width: clamp(34px, 5vw, 88px);
  --about-copy-width: calc(var(--about-portrait-width) + var(--about-spacer-width));
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: calc(var(--header-height) + 108px) var(--page-edge) 88px 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    #eff0e8;
  background-size: 3px 3px, 4px 4px, auto;
}

.about-background {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 50vw;
  height: 100%;
  filter: grayscale(1);
  object-fit: cover;
  object-position: 43% 50%;
  transform: scale(1.13);
  transform-origin: right center;
}

.about-panel {
  position: relative;
  z-index: 1;
  display: grid;
  width: calc(
    var(--about-copy-width) + var(--about-portrait-width) + var(--about-spacer-width)
  );
  min-height: clamp(330px, 44vw, 500px);
  margin-left: calc(50vw - var(--about-copy-width));
  grid-template-columns:
    var(--about-copy-width)
    var(--about-portrait-width)
    var(--about-spacer-width);
  background: rgba(247, 247, 240, 0.95);
  box-shadow: 0 9px 22px rgba(24, 20, 18, 0.14);
}

.about-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(44px, 6.2vw, 86px) clamp(34px, 4.2vw, 56px);
}

.about-kicker,
.about-copy h1,
.about-copy p {
  max-width: 34ch;
  margin: 0;
  font-weight: 400;
  letter-spacing: 0;
}

.about-kicker {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.86rem;
  font-style: italic;
}

.about-copy h1 {
  margin-bottom: 18px;
  font-size: clamp(1.35rem, 1.9vw, 1.86rem);
  line-height: 1.16;
}

.about-copy p {
  color: rgba(24, 20, 18, 0.72);
  font-size: clamp(0.9rem, 1vw, 1.02rem);
  line-height: 1.38;
}

.about-copy p + p {
  margin-top: 11px;
}

.about-portrait {
  min-height: 100%;
  margin: 0;
  background: rgba(24, 20, 18, 0.08);
}

.about-portrait img {
  filter: grayscale(1);
  object-position: 52% 50%;
}

@media (max-width: 720px) {
  :root {
    --header-height: 150px;
  }

  .site-header {
    min-height: var(--header-height);
    align-items: flex-start;
    gap: 18px;
    padding-top: 22px;
  }

  .site-title,
  .site-nav {
    font-size: 1.56rem;
  }

  .site-nav {
    max-width: 48vw;
    gap: 8px 24px;
  }

  .home-gallery {
    overflow-x: hidden;
    overflow-y: visible;
    padding: calc(var(--header-height) + 52px) var(--page-edge) 42px;
  }

  .artwork-track {
    display: grid;
    width: 100%;
    min-width: 0;
    gap: 22px;
    padding: 0;
  }

  .artwork-frame {
    width: 100%;
  }

  .artwork-frame img {
    width: 100%;
    height: auto;
  }

  .site-header--nav-only {
    min-height: var(--header-height);
  }

  .site-header--nav-only .site-nav {
    max-width: none;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
  }

  .contact-page {
    min-height: 100svh;
    justify-content: flex-start;
    padding-top: calc(var(--header-height) + 26px);
  }

  .contact-portrait {
    width: min(100%, 340px);
    margin-bottom: 28px;
  }

  .about-page {
    min-height: 100svh;
    overflow: visible;
    padding: calc(var(--header-height) + 24px) var(--page-edge) 42px;
  }

  .about-background {
    display: none;
  }

  .about-panel {
    width: 100%;
    min-height: 0;
    margin: 0;
    grid-template-columns: 1fr;
  }

  .about-copy {
    min-height: 260px;
    padding: 42px clamp(30px, 10vw, 54px);
  }

  .about-copy h1 {
    font-size: 1.5rem;
  }

  .about-copy p {
    max-width: 34ch;
    font-size: 0.96rem;
  }

  .about-portrait {
    height: clamp(310px, 92vw, 520px);
  }
}
