*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --page-bg: #ffffff;
  --page-surface: #f8f6f2;
  --text: #313d41;
  --text-soft: rgba(49, 61, 65, 0.74);
  --text-faint: rgba(49, 61, 65, 0.48);
  --border: rgba(49, 61, 65, 0.14);
  --shadow: 0 6px 18px rgba(22, 27, 29, 0.08);
  --header-height: 54px;
  --gutter: clamp(16px, 3vw, 44px);
  --content-width: min(1354px, calc(100vw - (var(--gutter) * 2)));
  --copy-width: 48rem;
  --hero-height: min(calc(100vh - var(--header-height) - 28px), 820px);
  --font-serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(49, 61, 65, 0.08);
  box-shadow: 0 1px 10px rgba(49, 61, 65, 0.05);
  backdrop-filter: blur(10px);
}

.site-header__inner {
  width: var(--content-width);
  min-height: var(--header-height);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 1.35rem;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  font-size: clamp(1.2rem, 1.4vw, 1.45rem);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.8rem, 1.4vw, 1.45rem);
}

.site-nav a,
.site-action,
.mobile-panel a {
  position: relative;
  font-size: clamp(1.08rem, 1.45vw, 1.325rem);
  line-height: 1.25;
  padding: 0.15rem 0;
  text-decoration: none;
  color: var(--text-soft);
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-action:hover,
.mobile-panel a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.25rem;
  height: 1px;
  background: currentColor;
}

.site-action {
  justify-self: end;
}

.site-menu-toggle {
  display: none;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.site-menu-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  margin: 5px 0;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.site-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-panel {
  display: none;
  width: var(--content-width);
  margin: 0 auto;
  padding: 0 0 1rem;
}

.mobile-panel.is-open {
  display: grid;
  gap: 0.75rem;
}

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

.page-shell--hero {
  width: min(1354px, calc(100vw - 20px));
}

.hero-panel {
  position: relative;
  margin-top: 10px;
}

.hero-panel img {
  height: var(--hero-height);
  object-fit: cover;
  object-position: center 42%;
  box-shadow: var(--shadow);
}

.hero-panel__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: min(20vh, 200px) 2rem 2rem;
}

.hero-panel__overlay h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.3rem, 5.2vw, 4.5rem);
  font-weight: 300;
  line-height: 1.18;
  text-align: center;
  text-shadow: 0 2px 14px rgba(10, 12, 13, 0.2);
}

.editorial-layout {
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  gap: clamp(2.5rem, 4.4vw, 5rem);
  align-items: start;
  padding-top: clamp(4rem, 7vw, 6rem);
}

.editorial-layout--directory {
  grid-template-columns: 1fr;
}

.editorial-aside {
  display: flex;
  justify-content: center;
}

.editorial-aside img {
  width: min(100%, 360px);
  max-width: 360px;
  height: auto;
  object-fit: contain;
  box-shadow: var(--shadow);
}

.editorial-copy {
  max-width: 850px;
}

.editorial-copy p,
.work-card figcaption,
.list-columns li,
.directory-stack p,
.directory-stack a {
  font-size: clamp(1rem, 1.33vw, 1.36rem);
  line-height: 1.64;
}

.editorial-copy p {
  margin: 0 0 1rem;
}

.editorial-note,
.eyebrow {
  font-size: 0.9rem;
  color: var(--text-faint);
}

.editorial-note {
  margin-top: 2rem;
}

.works-page {
  padding-top: 2rem;
}

.works-section {
  margin-bottom: 3.5rem;
}

.works-section:last-child {
  margin-bottom: 0;
}

.works-section__header {
  max-width: 52rem;
  margin-bottom: 1.8rem;
}

.works-section__title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.55rem, 2vw, 2.15rem);
  font-weight: 300;
  line-height: 1.2;
}

.works-section__meta {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-soft);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.15rem 1.35rem;
}

.works-grid--mini {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.work-card {
  margin: 0;
}

.work-card img {
  width: 100%;
  height: auto;
  box-shadow: var(--shadow);
  cursor: zoom-in;
}

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

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

.work-card figcaption {
  margin-top: 0.55rem;
  color: var(--text-soft);
  font-size: 0.892rem;
  line-height: 1.6;
  max-width: 33rem;
}

.work-card figcaption strong {
  color: var(--text);
  font-weight: 400;
}

.directory-stack {
  max-width: 1080px;
  margin: 0 auto;
  padding-top: clamp(3rem, 5vw, 5rem);
  text-align: center;
}

.directory-stack h1 {
  margin: 0 0 2.5rem;
  font-size: clamp(2.2rem, 5.4vw, 4.5rem);
  font-weight: 300;
  line-height: 1.2;
}

.directory-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 4rem);
  margin-top: 2rem;
  text-align: left;
}

.directory-block h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 2.6vw, 2.45rem);
  font-weight: 300;
}

.list-columns {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list-columns li {
  margin-bottom: 1rem;
}

.list-columns li:last-child {
  margin-bottom: 0;
}

.directory-links {
  display: grid;
  gap: 2.7rem;
  margin-top: 3rem;
}

.directory-links h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.5rem, 2.6vw, 2.35rem);
  font-weight: 300;
}

.directory-links a {
  color: var(--text-soft);
  text-underline-offset: 0.22em;
}

.directory-links a:hover {
  color: var(--text);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(15, 19, 20, 0.9);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  width: auto;
  max-width: min(90vw, 1200px);
  max-height: 88vh;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.lightbox-close::before,
.lightbox-close::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 8px;
  width: 22px;
  height: 1px;
  background: rgba(255, 255, 255, 0.88);
}

.lightbox-close::before {
  transform: rotate(45deg);
}

.lightbox-close::after {
  transform: rotate(-45deg);
}

@media (max-width: 1024px) {
  .works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (max-width: 860px) {
  .site-header__inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .site-nav,
  .site-action {
    display: none;
  }

  .site-menu-toggle {
    display: inline-block;
  }

  .editorial-layout,
  .directory-columns {
    grid-template-columns: 1fr;
  }

  .editorial-aside img {
    max-width: 320px;
  }

  .work-card--wide,
  .work-card--tall {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding-bottom: 4rem;
  }

  .page-shell--hero {
    width: calc(100vw - 12px);
  }

  .hero-panel img {
    height: min(78vh, 760px);
  }

  .works-grid {
    grid-template-columns: 1fr;
  }

  .works-grid--mini {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .directory-stack {
    text-align: left;
  }

  .directory-stack h1,
  .directory-links h2,
  .directory-block h2 {
    text-align: left;
  }
}
