@import url("assets/fonts/bristol/bristol-font.css");

:root {
  --bg: #ffffff;
  --surface: rgba(245, 245, 245, 0.82);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --text: #111111;
  --muted: #4d4d4d;
  --line: rgba(17, 17, 17, 0.14);
  --accent: #111111;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.08);
  --serif: "Bristol", "Baskerville", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Aptos", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --container: min(1200px, calc(100vw - 2rem));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--sans);
  background: var(--bg);
}

body.lightbox-open {
  overflow: hidden;
}

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

button,
a {
  color: inherit;
}

.page-shell {
  width: var(--container);
  margin: 0 auto;
  padding-bottom: 4rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: max(1rem, calc((100vw - var(--container)) / 2));
  padding-right: max(1rem, calc((100vw - var(--container)) / 2));
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.brand,
.site-nav a,
.text-link,
.contact-links a {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  width: auto;
  height: clamp(3rem, 6vw, 4.2rem);
}

.site-nav {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.site-nav a,
.nav-toggle,
.gallery-card,
.lightbox-close,
.lightbox-nav,
.button {
  transition: transform 180ms ease, opacity 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.site-nav a {
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.text-link:hover,
.text-link:focus-visible,
.contact-links a:hover,
.contact-links a:focus-visible {
  color: var(--text);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  border-radius: 999px;
  padding: 0.8rem 1rem;
  box-shadow: var(--shadow);
}

.section-block,
.category,
.section-intro {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.category {
  background: #ffffff;
}

.section-block,
.category,
.section-intro {
  margin-top: 1.25rem;
}

.eyebrow,
.category-kicker {
  margin: 0 0 0.6rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
}

h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 0.98;
}

h2 {
  font-size: clamp(2rem, 6vw, 4rem);
  max-width: 12ch;
}

h3 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
}

.section-note,
.about-copy p,
.category-intro,
.gallery-meta,
#lightbox-caption {
  color: var(--muted);
  line-height: 1.7;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.button,
.text-link,
.contact-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
}

.button {
  background: var(--text);
  color: #ffffff;
  text-decoration: none;
}

.button:hover,
.button:focus-visible,
.gallery-card:hover,
.gallery-card:focus-visible,
.lightbox-close:hover,
.lightbox-close:focus-visible,
.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  transform: translateY(-2px);
}

.text-link,
.contact-links a,
.lightbox-close,
.lightbox-nav {
  border: 1px solid var(--line);
  background: var(--surface-strong);
}

.section-intro,
.section-block,
.category {
  margin-top: 1.25rem;
}

.section-block {
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
  padding-left: 1.75rem;
  padding-right: 1.75rem;
}

.section-intro {
  display: grid;
  gap: 1rem;
}

.portfolio-grid {
  display: grid;
  gap: 1.25rem;
  padding-top: 1rem;
}

.category-header,
.section-heading {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.category {
  overflow: hidden;
}

.category-toggle {
  width: 100%;
  display: grid;
  gap: 1rem;
  border: 0;
  padding: 1rem;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.category-cover {
  min-width: 0;
  position: relative;
  width: 100%;
  padding-top: 62.5%;
  overflow: hidden;
}

.category-summary {
  min-width: 0;
  display: grid;
  gap: 0.8rem;
  align-content: end;
}

.category-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: transparent;
  aspect-ratio: auto;
  border-radius: 0;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.category-action {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--text);
  white-space: normal;
  text-align: center;
}

.category[data-open="true"] .category-action {
  background: var(--text);
  color: #ffffff;
}

.category-panel {
  padding: 0 1rem 1rem;
}

.gallery-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery-card {
  position: relative;
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
  aspect-ratio: var(--ratio, 4 / 5);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.gallery-meta {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  padding: 0.35rem 0.65rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.about-copy {
  display: grid;
  gap: 1rem;
  max-width: 60rem;
}

.about-layout {
  display: grid;
  gap: 1.5rem;
}

.about-portrait img {
  width: 100%;
  max-width: 18.2rem;
  height: auto;
  object-fit: cover;
  border-radius: 0;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.about-copy ul {
  margin: 0;
  padding-left: 1.5rem;
}

.about-copy li + li {
  margin-top: 0.5rem;
}

.about-copy p,
.contact-links a,
.section-block .eyebrow {
  color: var(--text);
}

.contact-links a {
  width: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.01em;
  text-align: center;
  white-space: nowrap;
}

.contact-links a[href^="tel:"] {
  font-size: 0.92rem;
  letter-spacing: 0;
}

.contact-links {
  margin-top: 1rem;
  justify-content: center;
  align-items: center;
  gap: 1.8rem 5rem;
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.contact-icon {
  display: inline-flex;
  width: 1.05rem;
  height: 1.05rem;
  color: currentColor;
  flex: 0 0 auto;
}

.contact-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.lightbox {
  width: min(100vw - 1rem, 1200px);
  max-width: none;
  max-height: calc(100vh - 1rem);
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(0, 0, 0, 0.94);
  color: #ffffff;
  margin: auto;
}

.lightbox:not([open]) {
  display: none;
}

.lightbox[open],
.lightbox.is-open {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow: auto;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.84);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.lightbox[open] {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

.lightbox-figure {
  margin: 0;
}

.lightbox-figure img {
  max-height: 76vh;
  max-height: 76svh;
  width: auto;
  margin: 0 auto;
  border-radius: 0;
}

.lightbox-close {
  grid-column: 1 / -1;
  justify-self: end;
  position: sticky;
  top: 0;
  z-index: 2;
}

.lightbox-nav,
.lightbox-close {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  min-height: 3rem;
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.lightbox-nav.prev {
  justify-self: start;
}

.lightbox-nav.next {
  justify-self: end;
}

#lightbox-caption {
  margin-top: 1rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.74);
}

@media (min-width: 760px) {
  .section-intro,
  .category-header,
  .section-heading {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }

  .category-toggle {
    grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.75fr);
    align-items: stretch;
  }

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

  .gallery-card:nth-child(5n + 1) {
    grid-column: span 2;
  }

  .gallery-card:nth-child(5n + 1) img {
    aspect-ratio: 16 / 10;
  }

  .about-layout {
    grid-template-columns: minmax(12rem, 15.4rem) minmax(0, 1fr);
    align-items: start;
  }

  .contact-links a {
    flex: 0 0 auto;
  }
}

@media (min-width: 760px) and (max-width: 1280px) {
  .category-toggle {
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.72fr);
  }
}

@media (max-width: 759px) {
  .site-header {
    flex-wrap: wrap;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    border-radius: 1.25rem;
  }

  .site-nav[data-open="true"] {
    display: flex;
  }

  .contact-links {
    justify-content: center;
    width: 100%;
  }

  .contact-links a {
    width: 100%;
  }

  .lightbox[open] {
    grid-template-columns: 1fr;
  }

    .category-cover {
      padding-top: 70%;
    }

    .lightbox-figure img {
      max-height: 62vh;
      max-height: 62svh;
    }

  .lightbox-close {
    justify-self: stretch;
  }

  .lightbox-nav {
    width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
