:root {
  --paper: #f4efe5;
  --paper-deep: #e8dfd0;
  --ink: #1f2420;
  --green: #25362d;
  --coral: #e96858;
  --violet: #8b78a8;
  --yellow: #e4bd4c;
  --line: rgba(31, 36, 32, 0.2);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 18%, rgba(228, 189, 76, 0.12), transparent 22rem),
    var(--paper);
  font-family: var(--sans);
}

body:has(dialog[open]) {
  overflow: hidden;
}

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

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  color: white;
  background: var(--green);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header {
  position: relative;
  z-index: 10;
  width: min(100% - 3rem, 90rem);
  margin: 0 auto;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  gap: 0.65rem;
  align-items: center;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
}

.brand i {
  color: var(--coral);
  font-weight: 400;
}

.brand-mark {
  position: relative;
  width: 1.6rem;
  aspect-ratio: 1;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: repeating-linear-gradient(25deg, transparent 0 3px, currentColor 4px 5px, transparent 6px 8px);
}

.brand-mark::after {
  position: absolute;
  right: -0.8rem;
  bottom: -0.15rem;
  width: 1rem;
  height: 0.5rem;
  border-bottom: 2px solid currentColor;
  border-radius: 50%;
  content: "";
  transform: rotate(12deg);
}

nav {
  display: flex;
  gap: 1.75rem;
}

nav a,
footer > a {
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3rem;
  text-transform: uppercase;
}

nav a:not(:hover) {
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(20rem, 0.85fr) minmax(35rem, 1.15fr);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: center;
  width: min(100% - 3rem, 90rem);
  min-height: calc(100vh - 5rem);
  margin: 0 auto;
  padding: 4rem 0 6rem;
}

.eyebrow {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  margin: 0 0 1.5rem;
  color: var(--coral);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 2.25rem;
  height: 1px;
  background: currentColor;
  content: "";
}

h1,
h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 12ch;
  font-size: clamp(4rem, 7vw, 7.4rem);
  line-height: 0.88;
}

h1 em {
  position: relative;
  color: var(--coral);
  font-weight: 400;
}

h1 em::after {
  position: absolute;
  right: 0;
  bottom: -0.16em;
  width: 92%;
  height: 0.18em;
  border-top: 3px solid var(--coral);
  border-radius: 50%;
  content: "";
  transform: rotate(-2deg);
}

.hero-intro {
  max-width: 34rem;
  margin: 2.2rem 0;
  color: rgba(31, 36, 32, 0.74);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.7;
}

.button {
  display: inline-flex;
  gap: 2rem;
  align-items: center;
  padding: 1rem 1.25rem;
  color: white;
  background: var(--green);
  border: 1px solid var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease;
}

.button:hover {
  color: var(--green);
  background: transparent;
}

.hero-note {
  margin: 1.5rem 0 0;
  color: rgba(31, 36, 32, 0.58);
  font-family: var(--serif);
  font-size: 0.88rem;
  font-style: italic;
}

.hero-collage {
  position: relative;
  min-height: 47rem;
}

.hero-photo {
  position: absolute;
  overflow: hidden;
  margin: 0;
  background: var(--paper-deep);
  box-shadow: 0 1.5rem 4rem rgba(31, 36, 32, 0.14);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo-main {
  inset: 2rem 12% 1rem 6%;
  transform: rotate(-2deg);
}

.hero-photo-top {
  z-index: 2;
  top: 0;
  right: 0;
  width: 31%;
  height: 38%;
  border: 0.55rem solid var(--paper);
  transform: rotate(4deg);
}

.hero-photo-bottom {
  z-index: 2;
  right: 1%;
  bottom: 0;
  width: 35%;
  height: 42%;
  border: 0.55rem solid var(--paper);
  transform: rotate(2deg);
}

.scribble {
  position: absolute;
  z-index: 3;
  right: 31%;
  bottom: 4%;
  padding: 0.35rem 0.8rem;
  color: var(--ink);
  background: var(--yellow);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-style: italic;
  transform: rotate(-8deg);
}

.gallery-section {
  padding: clamp(5rem, 10vw, 9rem) max(1.5rem, calc((100% - 90rem) / 2));
  color: #f8f3e9;
  background: var(--green);
}

.section-heading {
  display: flex;
  gap: 2rem;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.section-heading h2,
.about h2 {
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 0.95;
}

.section-heading > p {
  max-width: 26rem;
  margin: 0 0 0.5rem;
  color: rgba(248, 243, 233, 0.64);
  font-size: 0.9rem;
  line-height: 1.6;
}

.gallery-grid {
  display: grid;
  grid-auto-flow: dense;
  grid-auto-rows: 22rem;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  color: white;
  background: #18241e;
  border: 0;
  cursor: zoom-in;
  font: inherit;
  text-align: left;
}

.gallery-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 55%, rgba(11, 17, 14, 0.84));
  content: "";
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 250ms ease;
}

.gallery-card:hover img,
.gallery-card:focus-visible img {
  filter: saturate(1.08);
  transform: scale(1.035);
}

.gallery-card:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.gallery-card span {
  position: absolute;
  z-index: 2;
  right: 1.15rem;
  bottom: 1rem;
  left: 1.15rem;
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.gallery-card b {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
}

.gallery-card small {
  max-width: 11rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  text-align: right;
}

.card-tall {
  grid-row: span 2;
}

.card-wide {
  grid-column: span 2;
}

.about {
  display: grid;
  grid-template-columns: 0.35fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 7rem);
  width: min(100% - 3rem, 90rem);
  margin: 0 auto;
  padding: clamp(6rem, 12vw, 11rem) 0;
}

.about-number {
  color: var(--coral);
  font-family: var(--serif);
  font-size: 1rem;
}

.about-copy .eyebrow {
  margin-bottom: 1rem;
}

.about-text {
  align-self: end;
  max-width: 34rem;
  padding-top: 5rem;
  border-top: 1px solid var(--line);
}

.about-text p {
  margin: 0 0 1.25rem;
  color: rgba(31, 36, 32, 0.74);
  font-size: 1.05rem;
  line-height: 1.75;
}

footer {
  width: min(100% - 3rem, 90rem);
  margin: 0 auto;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
}

footer p {
  color: rgba(31, 36, 32, 0.58);
  font-family: var(--serif);
  font-style: italic;
}

.lightbox {
  width: min(92vw, 68rem);
  max-width: none;
  padding: 0;
  color: white;
  background: transparent;
  border: 0;
  overflow: visible;
}

.lightbox::backdrop {
  background: rgba(13, 20, 16, 0.92);
  backdrop-filter: blur(6px);
}

.lightbox figure {
  margin: 0;
}

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

.lightbox figcaption {
  margin-top: 0.8rem;
  font-family: var(--serif);
  font-size: 1.1rem;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  z-index: 2;
  top: -2.8rem;
  right: 0;
  width: 2.4rem;
  height: 2.4rem;
  color: white;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

@media (max-width: 70rem) {
  .hero {
    grid-template-columns: 0.85fr 1.15fr;
  }

  .hero-collage {
    min-height: 38rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 50rem) {
  .site-header {
    width: min(100% - 2rem, 90rem);
  }

  nav {
    gap: 1rem;
  }

  nav a:last-child {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    width: min(100% - 2rem, 90rem);
    min-height: auto;
    padding-top: 4rem;
  }

  h1 {
    font-size: clamp(3.6rem, 18vw, 6rem);
  }

  .hero-collage {
    min-height: 36rem;
  }

  .section-heading {
    display: block;
  }

  .section-heading > p {
    margin-top: 1rem;
  }

  .gallery-grid {
    grid-auto-rows: 20rem;
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-card small {
    display: none;
  }

  .about {
    grid-template-columns: 3rem 1fr;
    width: min(100% - 2rem, 90rem);
  }

  .about-text {
    grid-column: 2;
    padding-top: 2rem;
  }

  footer {
    width: min(100% - 2rem, 90rem);
  }
}

@media (max-width: 34rem) {
  .brand {
    font-size: 1rem;
  }

  .hero-collage {
    min-height: 28rem;
  }

  .hero-photo-main {
    inset: 1rem 8% 0 0;
  }

  .hero-photo-top {
    width: 38%;
  }

  .hero-photo-bottom {
    width: 42%;
  }

  .gallery-section {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .gallery-grid {
    grid-auto-rows: 17rem;
    gap: 0.75rem;
  }

  .gallery-card span {
    right: 0.75rem;
    bottom: 0.75rem;
    left: 0.75rem;
  }

  .gallery-card b {
    font-size: 1rem;
  }

  .card-wide {
    grid-column: span 2;
  }

  .about {
    display: block;
  }

  .about-number {
    margin-bottom: 2rem;
  }

  .about-text {
    margin-top: 3rem;
  }

  footer p {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
