/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #111;
  background: #F7F7F5;
  -webkit-font-smoothing: antialiased;
}
a { color: #111; text-decoration: none; }
a:hover { color: #555; }
img { display: block; max-width: 100%; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.muted { color: #5C5C5A; }
.label {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- Header ---------- */
.site-header {
  display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: space-between; align-items: center;
  padding-top: 28px; padding-bottom: 28px;
}
.brand { font-size: 15px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.site-nav { display: flex; gap: 32px; font-size: 14px; }
.site-nav a { padding: 12px 0; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }

/* ---------- Photo frames (grey shows until a photo is added) ---------- */
.frame {
  position: relative;
  overflow: hidden;
  background: #C9CCC6;
}
.frame img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.frame .hint {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(0,0,0,0.55);
}
.frame.dark .hint { color: rgba(255,255,255,0.75); }

/* ---------- Hero ---------- */
.hero .frame { height: min(640px, 70vh); min-height: 320px; }
.hero p { margin: 12px 0 0; font-size: 13px; }

/* ---------- Intro ---------- */
.intro {
  display: flex; flex-wrap: wrap; gap: 32px;
  justify-content: space-between; align-items: flex-end;
  padding-top: 120px; padding-bottom: 72px;
}
.intro h1 {
  margin: 0; max-width: 720px;
  font-size: clamp(30px, 4vw, 44px); line-height: 1.15;
  font-weight: 500; letter-spacing: -0.02em;
}
.intro p { margin: 0; max-width: 340px; font-size: 15px; line-height: 1.6; }

/* ---------- Section heads ---------- */
.section { padding-bottom: 120px; }
.section-head {
  display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: space-between; align-items: center;
  border-top: 1px solid #DADAD6; padding-top: 24px; margin-bottom: 40px;
}

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button {
  min-height: 44px; padding: 0 18px;
  border-radius: 999px; border: 1px solid #111;
  background: transparent; color: #111;
  font: inherit; font-size: 13px; cursor: pointer;
}
.filters button[aria-pressed="true"] { background: #111; color: #fff; }
.filters button:focus-visible, a:focus-visible { outline: 2px solid #111; outline-offset: 3px; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 48px 24px;
  align-items: start;
}
.gallery figure { margin: 0; }
.gallery figure[hidden] { display: none; }
.r-45 { aspect-ratio: 4 / 5; }
.r-32 { aspect-ratio: 3 / 2; }
.r-11 { aspect-ratio: 1 / 1; }
.r-43 { aspect-ratio: 4 / 3; }
.gallery figcaption {
  margin-top: 12px; display: flex; justify-content: space-between; gap: 12px; font-size: 13px;
}

/* ---------- Series ---------- */
.series { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 32px; }
.series a { display: flex; flex-direction: column; gap: 16px; }
.series .title { font-size: 18px; font-weight: 500; }
.series .meta { font-size: 14px; margin-top: 6px; }

/* ---------- About ---------- */
.about {
  display: flex; flex-wrap: wrap; gap: 80px; align-items: flex-start;
  padding-top: 80px; padding-bottom: 140px;
}
.about .portrait { flex: 1 1 360px; max-width: 480px; aspect-ratio: 4 / 5; background: #B9BDB8; }
.about .text { flex: 999 1 480px; min-width: 0; max-width: 620px; display: flex; flex-direction: column; gap: 56px; }
.about h1 { margin: 0 0 24px; font-size: clamp(32px, 4vw, 44px); line-height: 1.15; font-weight: 500; letter-spacing: -0.02em; }
.about .lead { margin: 0 0 24px; font-size: 19px; line-height: 1.6; }
.about .body { margin: 0; font-size: 16px; line-height: 1.7; color: #4A4A48; }
.lists { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 40px; border-top: 1px solid #DADAD6; padding-top: 32px; }
.lists ul { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.5; }
.contact { border-top: 1px solid #DADAD6; padding-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  min-height: 44px; padding: 0 24px; display: inline-flex; align-items: center;
  border: 1px solid #111; border-radius: 999px; font-size: 14px;
}
.btn.solid { background: #111; color: #fff; }
.btn.solid:hover { background: #333; color: #fff; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid #DADAD6; }
.site-footer .wrap {
  display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between;
  padding-top: 40px; padding-bottom: 40px; font-size: 14px;
}
.site-footer .links { display: flex; flex-wrap: wrap; gap: 28px; }

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .hero .frame { height: auto; min-height: 0; aspect-ratio: 4 / 3; }
  .intro { padding-top: 72px; padding-bottom: 48px; }
  .about { gap: 48px; padding-top: 40px; }
  .site-nav { gap: 24px; }
}

/* Extra photo shapes */
.r-34 { aspect-ratio: 3 / 4; }
.r-23 { aspect-ratio: 2 / 3; }
.r-54 { aspect-ratio: 5 / 4; }
.hero .frame img { object-position: center 40%; }
.places { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.5; }
