:root {
  --bg: #e7e1d6;
  --ink: #1c1915;
  --quiet: #3f3b36;
  --faint: #8a847a;
  --night: #141210;
  --paper: #f3efe8;
  --serif: "Instrument Serif", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "Instrument Sans", "Avenir Next", "Segoe UI", sans-serif;
  --pad: clamp(1.1rem, 3vw, 1.75rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  font-weight: 400;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

body.is-viewing { overflow: hidden; }

::selection {
  background: #d8c4a0;
  color: var(--ink);
}

a { color: inherit; }

img { max-width: 100%; }

:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 4px;
}

.skip {
  position: absolute;
  left: var(--pad);
  top: 0;
  transform: translateY(-120%);
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.8rem;
  z-index: 5;
}

.skip:focus { transform: none; }

.nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
  padding: 1.25rem var(--pad) 0.4rem;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  line-height: 1;
}

.wordmark span { color: var(--faint); }

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.7rem 1.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-links a {
  text-decoration: none;
  padding-bottom: 0.15rem;
}

.nav-links a[aria-current="page"] {
  border-bottom: 1px solid var(--ink);
}

.home {
  padding: 4vh var(--pad) 5rem;
}

.home-top,
.home-foot,
.hero,
.page-head,
.gallery,
.about-wrap,
.contact-wrap,
.site-foot {
  width: min(1440px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.home-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.1rem;
}

.home h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(5.2rem, 16vw, 11rem);
  line-height: 0.78;
  letter-spacing: -0.045em;
}

.city,
.home-foot,
.page-head p,
.work-num,
.viewer-foot,
.viewer-close,
.sign,
.site-foot {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.city {
  margin: 0 0 0.85rem;
  color: var(--quiet);
}

.hero {
  display: flex;
  justify-content: center;
}

.hero img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100svh - 13rem);
  display: block;
  background: #ddd6cb;
}

.home-foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.85rem;
}

.home-foot a { text-underline-offset: 0.25em; }

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 2.2rem 0 2rem;
}

.page-head h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.2rem, 7vw, 5.4rem);
  letter-spacing: -0.035em;
  line-height: 0.9;
}

.page-head p {
  margin: 0;
  color: var(--quiet);
}

.page {
  padding: 0 var(--pad) 4rem;
}

.solo,
.pair {
  width: min(1280px, 100%);
  margin: 0 auto 4.5rem;
}

.solo-quiet { width: min(560px, 78%); }

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem 1.6rem;
  align-items: start;
}

.work {
  display: block;
  text-decoration: none;
  color: inherit;
}

.work img {
  width: 100%;
  height: auto;
  display: block;
  background: #ddd6cb;
  transition: opacity 0.4s ease;
}

.work:hover img,
.work:focus-visible img { opacity: 0.88; }

.work-num {
  display: block;
  margin-top: 0.45rem;
  color: var(--quiet);
}

.about-wrap {
  display: grid;
  grid-template-columns: minmax(220px, 0.78fr) minmax(280px, 1fr);
  gap: clamp(2rem, 6vw, 6.5rem);
  align-items: start;
  padding-bottom: 2rem;
}

.about-wrap img {
  width: 100%;
  height: auto;
  display: block;
  background: #ddd6cb;
}

.bio p {
  margin: 0 0 1em;
  max-width: 18em;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.2vw, 1.95rem);
  line-height: 1.32;
  letter-spacing: -0.015em;
}

.sign {
  margin: 2.4rem 0 0;
  color: var(--quiet);
}

.sign strong {
  display: block;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.site-foot {
  padding: 0 0 2rem;
  color: var(--quiet);
}

.contact-wrap {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(280px, 1fr);
  gap: clamp(2.2rem, 6vw, 6rem);
  align-items: start;
  padding-bottom: 2rem;
}

.contact-lead {
  margin: 0 0 0.8rem;
  max-width: 12em;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.4vw, 2.15rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.contact-mail {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
  letter-spacing: -0.03em;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  overflow-wrap: anywhere;
}

.contact-place {
  margin: 2.2rem 0 0;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0 0 1.35rem;
}

.field span {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--quiet);
}

.field input,
.field textarea {
  width: 100%;
  margin: 0;
  padding: 0.4rem 0;
  font: inherit;
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.35;
  color: inherit;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(28, 25, 21, 0.3);
  border-radius: 0;
}

.field textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.send {
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  border: 0;
  padding: 0.9rem 1.35rem;
  cursor: pointer;
}

.send:hover { background: #000; }

.form-note {
  margin: 1rem 0 0;
  max-width: 34em;
  color: var(--quiet);
}

.form-note[hidden] { display: none; }

.viewer[hidden] { display: none; }

.viewer {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: var(--night);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  padding: 0.85rem 1.15rem 1.15rem;
}

.viewer-top,
.viewer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex: none;
  position: relative;
  z-index: 1;
  background: var(--night);
}

.viewer-top { min-height: 2.4rem; }

.viewer-kicker {
  margin: 0;
  color: #b9b2a6;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.viewer-close,
.viewer-foot button {
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.6rem 0.2rem;
}

.viewer-stage {
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 0.4rem 0 0.6rem;
}

.viewer-stage img {
  max-width: min(1180px, 100%);
  max-height: calc(100svh - 7.4rem);
  width: auto;
  height: auto;
  object-fit: contain;
}

.viewer-foot { color: #d9d3c8; }

@media (max-width: 760px) {
  .pair { grid-template-columns: 1fr; gap: 3rem; }
  .solo-quiet { width: min(560px, 100%); }
  .about-wrap,
  .contact-wrap { grid-template-columns: 1fr; }
  .about-wrap img { max-width: 420px; }
  .home h1 { letter-spacing: -0.04em; }
  .nav-links { letter-spacing: 0.12em; gap: 0.55rem 0.95rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .work img { transition: none; }
}

@view-transition { navigation: auto; }
