:root {
  --bg: #ffffff;
  --fg: #1a1a1a;
  --fg-muted: #6b6b6b;
  --rule: rgba(0, 0, 0, 0.08);
  --max: 1600px;
  --gutter: clamp(1.5rem, 4vw, 3.5rem);
  --font: "Kite One", "Iowan Old Style", Georgia, serif;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

a:hover {
  opacity: 0.6;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem var(--gutter);
  background: var(--bg);
}

.brand {
  font-family: var(--font);
  font-style: italic;
  font-size: 1.6rem;
  text-transform: uppercase;
}

.brand:hover {
  opacity: 1;
}

.info-link {
  font-family: var(--font);
  font-style: italic;
  font-size: 1.6rem;
  text-transform: uppercase;
}

/* ---------- Gallery ---------- */

.gallery {
  padding: 3rem var(--gutter) 6rem;
  max-width: var(--max);
  margin: 0 auto;
}

.grid {
  display: grid;
  gap: clamp(3rem, 6vw, 5rem) clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1280px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  margin: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  animation: card-in 0.9s ease forwards;
}

.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.25s; }
.card:nth-child(3) { animation-delay: 0.45s; }
.card:nth-child(4) { animation-delay: 0.65s; }
.card:nth-child(5) { animation-delay: 0.85s; }
.card:nth-child(6) { animation-delay: 1.05s; }
.card:nth-child(7) { animation-delay: 1.25s; }
.card:nth-child(8) { animation-delay: 1.45s; }
.card:nth-child(9) { animation-delay: 1.65s; }

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .card {
    opacity: 1;
    animation: none;
    transform: none;
  }
}

.card-img {
  appearance: none;
  background: #f3f1ee;
  border: 0;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
}

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

.card-img:focus-visible {
  outline: 1px solid var(--fg);
  outline-offset: 4px;
}

figcaption {
  padding: 1rem 0.1rem 0;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--fg);
}

/* ---------- About / Contact ---------- */

.about,
.contact {
  padding: 4rem var(--gutter);
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}

.about h1,
.about h2 {
  margin: 0 0 1.6rem;
  font-weight: 400;
  font-style: italic;
  font-size: 1rem;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.about--page {
  padding-top: 6rem;
  padding-bottom: 8rem;
}

.about .lede {
  font-size: 1.4rem;
  color: var(--fg);
  margin-bottom: 2rem;
  font-style: italic;
}

/* ---------- About page (portrait + text) ---------- */

.about-page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem var(--gutter) 8rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 760px) {
  .about-page {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(3rem, 6vw, 6rem);
    padding-top: 6rem;
  }
}

.about-portrait {
  margin: 0;
}

.about-portrait img {
  width: 100%;
  height: auto;
  display: block;
}

.about-text {
  font-style: italic;
  color: var(--fg-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 32rem;
}

.about-text .lede {
  font-size: 1.15rem;
  color: var(--fg);
  margin: 0 0 1.4rem;
}

.about-text p {
  margin: 0;
}

.about-text p + p {
  margin-top: 1.2rem;
}

.about p,
.contact p {
  margin: 0;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

.about p + p {
  margin-top: 1.2rem;
}

.about-contact {
  margin-top: 2.4rem !important;
}

.about-contact a {
  color: var(--fg);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.97);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 100;
}

.lightbox.open {
  display: flex;
  animation: fade 0.25s ease;
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.lightbox figure {
  margin: 0;
  max-width: 92vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.lightbox img {
  max-width: 92vw;
  max-height: 82vh;
  width: auto;
  height: auto;
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.35);
}

.lightbox figcaption {
  font-style: italic;
  color: var(--fg-muted);
  text-align: center;
  font-size: 1rem;
}

.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1.25rem;
  background: transparent;
  border: 0;
  color: var(--fg);
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.6rem;
}

.lightbox-close:focus-visible {
  outline: 1px solid var(--fg);
  outline-offset: 2px;
}

