:root {
  --bg: #f3f2ef;
  --paper: #ffffff;
  --ink: #111111;
  --ink-soft: #383838;
  --muted: #72706a;
  --line: #d9d7d0;
  --accent: #d71920;
  --dark: #111315;
  --dark-soft: #1b1d1f;
  --radius: 8px;
  --max: 1180px;
  --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;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

.photography-page-body {
  background: #ffffff;
  --archive-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", serif;
  --archive-sans: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  --archive-mono: "SFMono-Regular", "SF Mono", "Roboto Mono", "IBM Plex Mono", Menlo, Consolas, monospace;
  --film-ink: #191919;
  --film-paper: #fffdf8;
  --film-highlight: #8fcbd3;
  --film-cyan: #087f8c;
  --film-green: #35654d;
  --film-rule: rgba(25, 25, 25, 0.42);
}

.photography-page-body .site-header {
  font-family: var(--archive-sans);
  border-bottom: 1px solid var(--film-ink);
  background: rgba(255, 253, 248, 0.94);
}

.photography-page-body .brand {
  font-family: var(--archive-serif);
  color: var(--film-ink);
  font-style: italic;
}

.photography-page-body .desktop-nav {
  gap: 8px;
  color: var(--film-ink);
  font-family: var(--archive-mono);
  font-size: 11px;
  text-transform: uppercase;
}

.photography-page-body .desktop-nav a {
  padding: 5px 8px 4px;
}

.photography-page-body .desktop-nav a:hover,
.photography-page-body .desktop-nav a[aria-current="page"] {
  background: var(--film-highlight);
  color: var(--film-ink);
}

.publish-button {
  min-height: 34px;
  margin-left: 18px;
  padding: 0 13px;
  border: 1px solid rgba(17, 17, 17, 0.45);
  border-radius: 2px;
  background: var(--film-highlight, rgba(255, 255, 255, 0.54));
  color: var(--ink);
  font-family: var(--archive-sans);
  font-size: 12px;
  cursor: pointer;
}

.publish-button:hover,
.publish-button:focus-visible {
  background: var(--film-cyan, var(--ink));
  color: var(--film-paper, var(--paper));
}

.publish-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.public-photography-page .site-header {
  justify-content: space-between;
}

.public-photography-page .public-page-label {
  color: var(--muted);
  font-family: var(--archive-sans);
  font-size: 13px;
}

.public-photography-page .work-card:hover img,
.public-photography-page .work-card:focus-within img {
  filter: none;
  opacity: 1;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  padding: 0 34px;
  border-bottom: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.brand {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--ink-soft);
  font-size: 13px;
}

.desktop-nav a,
.mobile-nav a,
.contact-links a {
  text-underline-offset: 7px;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.contact-links a:hover {
  color: var(--accent);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-button span:not(.sr-only) {
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.mobile-nav {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(360px, 0.93fr) minmax(520px, 1.7fr);
  height: min(860px, calc(100vh - 66px));
  min-height: 700px;
  background: var(--dark);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 620px;
  padding: 64px 52px 38px;
  color: var(--paper);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.03), transparent 38%),
    var(--dark);
}

.hero-copy h1 {
  max-width: 620px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(54px, 6vw, 92px);
  font-weight: 400;
  line-height: 0.98;
}

.hero-copy h1 span {
  display: block;
}

.hero-copy > p {
  max-width: 420px;
  margin: 28px 0 24px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
  line-height: 1.7;
}

.text-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: max-content;
  gap: 12px;
  font-weight: 600;
}

.text-link::after {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--accent);
  transform: translateY(1px);
}

.hero-project {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 22px;
  max-width: 430px;
  margin-top: 48px;
  align-items: end;
}

.hero-project h2,
.feature-list h3,
.latest-list h3 {
  margin: 0;
}

.hero-project h2 {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.hero-project p {
  margin: 12px 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.hero-project a {
  color: var(--paper);
  font-size: 14px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.86fr 0.72fr;
  grid-template-rows: 1fr 0.98fr;
  min-height: 620px;
}

.photo-tile,
.project-image,
.feature-image {
  background-color: #2d2d2b;
  background-position: center;
  background-size: cover;
}

.photo-tile {
  min-height: 280px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.tile-large {
  grid-row: 1 / 3;
  background-image:
    linear-gradient(to top, rgba(17, 17, 17, 0.2), transparent 45%),
    url("./assets/photo-city.png");
}

.tile-tunnel {
  background-image:
    linear-gradient(to right, rgba(17, 17, 17, 0.35), transparent),
    url("./assets/photo-tunnel.png");
}

.tile-street {
  grid-row: 1 / 3;
  background-image:
    linear-gradient(to top, rgba(17, 17, 17, 0.2), transparent 40%),
    url("./assets/photo-street.png");
}

.tile-train {
  background-image:
    linear-gradient(to top, rgba(17, 17, 17, 0.36), transparent 48%),
    url("./assets/photo-window.png");
}

.project-image-small {
  min-height: 132px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.12)),
    url("./assets/photo-bw.png");
  filter: grayscale(1);
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 84px 28px;
}

.gallery-section {
  max-width: 1420px;
  margin: 0 auto;
  padding: 46px 18px 78px;
  background: var(--bg);
}

.gallery-intro {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  max-width: var(--max);
  margin: 0 auto 22px;
  padding: 0 10px;
}

.gallery-intro h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 400;
  line-height: 1.05;
}

.gallery-intro p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

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

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 5;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: var(--dark-soft);
}

.gallery-item-tall {
  aspect-ratio: 4 / 6;
}

.gallery-item-wide {
  aspect-ratio: 16 / 10;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 500ms ease, filter 500ms ease;
}

.gallery-item figcaption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 200ms ease, transform 200ms ease;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.38), transparent 48%);
  opacity: 0;
  transition: opacity 200ms ease;
}

.gallery-item:hover img {
  transform: scale(1.025);
  filter: saturate(0.92) contrast(1.04);
}

.gallery-item:hover figcaption,
.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item figcaption {
  z-index: 1;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 42px;
  margin-bottom: 34px;
}

.section-heading h2,
.contact-section h2 {
  position: relative;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.08;
}

.section-heading h2::after,
.contact-section h2::after {
  content: "";
  display: block;
  width: 46px;
  height: 2px;
  margin-top: 14px;
  background: var(--accent);
}

.section-heading p {
  max-width: 450px;
  margin: 0;
  color: var(--muted);
}

.start-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.route-card {
  min-height: 190px;
  padding: 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.48);
  transition: background 180ms ease, color 180ms ease;
}

.route-card span {
  display: block;
  margin-bottom: 42px;
  color: var(--muted);
  font-size: 13px;
}

.route-card strong {
  display: block;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 400;
  line-height: 1.28;
}

.route-card:hover {
  background: var(--ink);
  color: var(--paper);
}

.route-card:hover span {
  color: rgba(255, 255, 255, 0.64);
}

.featured-section {
  padding-top: 54px;
}

.photography-section {
  border-top: 1px solid var(--line);
}

.photo-archive {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.photo-entry {
  display: grid;
  grid-template-rows: minmax(260px, 1fr) auto;
  min-height: 520px;
  background: var(--bg);
}

.photo-entry img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  display: block;
  object-fit: cover;
}

.photo-entry div {
  padding: 24px;
}

.photo-entry h3 {
  margin: 10px 0 12px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.12;
}

.photo-entry p:not(.meta) {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 36px;
  align-items: stretch;
}

.feature-main {
  display: grid;
  grid-template-columns: minmax(320px, 1.1fr) minmax(260px, 0.9fr);
  min-height: 430px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.feature-image {
  min-height: 360px;
  background-image:
    linear-gradient(to top, rgba(17, 17, 17, 0.18), transparent 50%),
    url("./assets/photo-feature.png");
  filter: grayscale(0.9);
}

.feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 38px;
}

.feature-copy h3 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 400;
  line-height: 1.05;
}

.meta,
.latest-list time {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.feature-copy p:not(.meta),
.feature-list p:not(.meta),
.latest-list p,
.contact-section p {
  color: var(--ink-soft);
}

.feature-list {
  display: grid;
  gap: 18px;
}

.feature-list article {
  padding: 30px;
  border-top: 1px solid var(--line);
  background: transparent;
}

.feature-list h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.15;
}

.latest-section {
  border-top: 1px solid var(--line);
}

.latest-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.latest-list article {
  min-height: 230px;
  padding: 28px;
  background: var(--bg);
}

.latest-list h3 {
  margin-top: 42px;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 400;
  line-height: 1.15;
}

.contact-section {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  max-width: none;
  padding: 86px max(28px, calc((100vw - var(--max)) / 2));
  background:
    linear-gradient(to right, rgba(17, 17, 17, 0.74), rgba(17, 17, 17, 0.1)),
    url("./assets/photo-contact.png");
  background-position: center;
  background-size: cover;
  color: var(--paper);
}

.contact-section p {
  color: rgba(255, 255, 255, 0.74);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.contact-links a {
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 42px;
  color: var(--muted);
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

.archive-page {
  position: relative;
  isolation: isolate;
  max-width: 1440px;
  margin: 0 auto;
  overflow-x: hidden;
}

.photography-page-body {
  background: #6b584d url("./assets/photography-sunset-background.png") center / cover fixed no-repeat;
}

.archive-page::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: rgba(255, 253, 248, 0.1);
}

.archive-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 48px;
  padding: 88px 34px 48px;
  border-bottom: 1px solid var(--film-ink);
  background: rgba(255, 253, 248, 0.86);
}

.archive-hero > * {
  min-width: 0;
}

.archive-hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: var(--archive-serif);
  color: var(--film-ink);
  font-size: clamp(68px, 10vw, 142px);
  font-weight: 400;
  font-style: italic;
  line-height: 0.9;
}

.archive-hero p {
  max-width: 620px;
  margin: 28px 0 0;
  color: var(--film-ink);
  font-family: var(--archive-sans);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.archive-stats {
  align-self: end;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 0;
}

.archive-stats div {
  min-height: 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--film-rule);
}

.archive-stats dt {
  color: var(--film-ink);
  font-family: var(--archive-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0;
}

.archive-stats dd {
  margin: 18px 0 0;
  color: var(--film-cyan);
  font-family: var(--archive-mono);
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
}

.archive-stats div:nth-child(2) dd {
  color: var(--film-green);
}

.archive-stats div:nth-child(3) dd {
  color: var(--film-ink);
}

.archive-controls {
  position: sticky;
  top: 66px;
  z-index: 12;
  display: grid;
  gap: 0;
  padding: 0 18px;
  background: rgba(255, 253, 248, 0.88);
  border-bottom: 1px solid var(--film-ink);
  backdrop-filter: blur(16px);
  min-width: 0;
}

.archive-controls-secondary {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  min-width: 0;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: flex-start;
  gap: 7px;
  min-height: 58px;
  padding: 11px 0;
  border-top: 1px solid rgba(25, 25, 25, 0.2);
  background: transparent;
  min-width: 0;
  overflow-x: visible;
  scrollbar-width: none;
}

.filter-group::-webkit-scrollbar {
  display: none;
}

.filter-group span {
  flex: 0 0 74px;
  margin-right: 4px;
  color: var(--film-cyan);
  font-family: var(--archive-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.filter-group[data-filter-group="camera"] span,
.filter-group[data-filter-group="month"] span {
  color: var(--film-green);
}

.filter-button {
  flex: 0 0 auto;
  min-height: 31px;
  padding: 0 10px;
  border: 1px solid var(--film-rule);
  border-radius: 2px;
  background: rgba(255, 253, 248, 0.58);
  color: var(--film-ink);
  font-family: var(--archive-mono);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.filter-button:hover,
.filter-button.is-active {
  border-color: var(--film-ink);
  background: var(--film-highlight);
  color: var(--film-ink);
}

.filter-button:hover:not(.is-active) {
  background: var(--film-cyan);
  color: var(--film-paper);
}

.archive-masonry {
  --archive-columns: 3;
  --archive-gap: 12px;
  position: relative;
  padding: 26px 24px 34px;
  background: rgba(255, 253, 248, 0.72);
}

.work-card {
  display: block;
  position: absolute;
  width: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--film-paper);
  border: 1px solid var(--film-rule);
  border-radius: 2px;
}

.work-card[hidden] {
  display: none;
}

.work-card-media {
  position: relative;
  overflow: hidden;
}

.work-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: filter 180ms ease, opacity 180ms ease;
}

.work-card:hover img,
.work-card:focus-within img {
  filter: grayscale(1);
  opacity: 0.42;
}

.work-card-actions {
  position: absolute;
  inset: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  background: rgba(17, 17, 17, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.work-card:hover .work-card-actions,
.work-card:focus-within .work-card-actions {
  opacity: 1;
  pointer-events: auto;
}

.photo-action {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 2px;
  color: var(--paper);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.photo-action-edit {
  background: rgba(93, 93, 93, 0.92);
  border-color: rgba(255, 255, 255, 0.22);
}

.photo-action-delete {
  background: rgba(176, 32, 32, 0.94);
  border-color: rgba(255, 255, 255, 0.22);
}

.photo-action:hover,
.photo-action:focus-visible {
  transform: translateY(-1px);
}

.delete-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(17, 17, 17, 0.42);
}

.delete-dialog {
  width: min(420px, 100%);
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 24px 80px rgba(17, 17, 17, 0.22);
}

.delete-dialog-kicker {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.delete-dialog h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.08;
}

.delete-dialog p {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}

.delete-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.dialog-button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.dialog-button-secondary {
  background: rgba(93, 93, 93, 0.12);
  border-color: var(--line);
  color: var(--ink-soft);
}

.dialog-button-danger {
  background: rgba(176, 32, 32, 0.94);
  color: var(--paper);
}

.work-card-copy {
  padding: 16px 16px 18px;
  font-family: var(--archive-sans);
}

.work-card-copy > .meta {
  margin: 0 0 14px;
  color: var(--film-ink);
  font-family: var(--archive-sans);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
}

.meta-location-needed {
  color: #666666;
}

.location-needed {
  padding: 0;
  border: 0;
  background: transparent;
  padding: 2px 4px;
  background: #eeeeea;
  color: #555555;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.location-dialog {
  width: min(460px, 100%);
}

.location-fields {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.location-fields label {
  display: grid;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 13px;
}

.location-fields input {
  width: 100%;
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid rgba(17, 17, 17, 0.18);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.work-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.work-card dl div {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding-top: 9px;
  border-top: 1px solid rgba(25, 25, 25, 0.2);
}

.work-card dt {
  color: #707070;
  font-family: var(--archive-sans);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
  text-transform: uppercase;
}

.work-card dd {
  margin: 0;
  color: var(--film-ink);
  font-family: var(--archive-sans);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  text-align: right;
  overflow-wrap: anywhere;
}

.archive-empty {
  max-width: var(--max);
  margin: 0 auto 72px;
  padding: 32px;
  border-top: 1px solid var(--film-ink);
  background: rgba(255, 253, 248, 0.88);
  color: var(--film-ink);
  font-family: var(--archive-mono);
}

.photography-page-body .site-footer {
  border-top: 1px solid var(--film-ink);
  background: rgba(255, 253, 248, 0.92);
  color: var(--film-ink);
  font-family: var(--archive-mono);
  font-size: 11px;
}

@media (max-width: 980px) {
  .site-header {
    padding: 0 24px;
  }

  .desktop-nav {
    display: none;
  }

  .publish-button {
    margin-left: auto;
    margin-right: 14px;
  }

  .menu-button {
    display: flex;
  }

  .mobile-nav {
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    z-index: 18;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    padding: 1px;
    background: var(--line);
    transform: translateY(-120%);
    transition: transform 180ms ease;
  }

  .mobile-nav.is-open {
    transform: translateY(0);
  }

  .mobile-nav a {
    padding: 18px 24px;
    background: var(--paper);
  }

  .hero {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }

  .hero-copy {
    min-height: auto;
    padding: 68px 28px 50px;
  }

  .hero-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 320px 240px;
    min-height: 560px;
  }

  .gallery-intro {
    display: block;
  }

  .gallery-intro p {
    margin-top: 16px;
  }

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

  .gallery-item,
  .gallery-item-wide {
    aspect-ratio: 4 / 5;
  }

  .gallery-item-tall {
    aspect-ratio: 4 / 6;
  }

  .tile-large,
  .tile-street {
    grid-row: auto;
  }

  .section-heading,
  .contact-section {
    display: block;
  }

  .section-heading p {
    margin-top: 22px;
  }

  .start-grid,
  .latest-list,
  .photo-archive {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-layout,
  .feature-main {
    grid-template-columns: 1fr;
  }

  .contact-links {
    margin-top: 28px;
  }

  .archive-hero {
    grid-template-columns: 1fr;
    padding: 72px 24px 44px;
  }

  .archive-stats {
    max-width: 620px;
  }

  .archive-controls {
    top: 66px;
  }

  .archive-controls-secondary {
    grid-template-columns: minmax(0, 1fr);
  }

  .archive-masonry {
    --archive-columns: 2;
    padding: 24px;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 64px;
    padding: 0 18px;
  }

  .brand {
    max-width: 230px;
    font-size: 18px;
  }

  .mobile-nav {
    top: 64px;
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: 100%;
    font-size: 40px;
    line-height: 1.06;
  }

  .hero-copy > p {
    max-width: 310px;
    font-size: 16px;
  }

  .hero-copy,
  .hero-project {
    max-width: 100%;
    overflow: hidden;
  }

  .hero-project p {
    max-width: 310px;
  }

  .hero-project {
    grid-template-columns: 1fr;
  }

  .project-image-small {
    max-width: 230px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 240px);
  }

  .gallery-section {
    padding: 38px 12px 58px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 10px;
  }

  .gallery-item,
  .gallery-item-wide,
  .gallery-item-tall {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 4 / 5;
  }

  .gallery-item-wide {
    aspect-ratio: 16 / 10;
  }

  .gallery-item figcaption,
  .gallery-item::after {
    opacity: 1;
  }

  .gallery-item figcaption {
    transform: none;
  }

  .photo-tile {
    min-height: 240px;
    border-left: 0;
  }

  .section {
    padding: 62px 20px;
  }

  .start-grid,
  .latest-list,
  .photo-archive {
    grid-template-columns: 1fr;
  }

  .route-card,
  .latest-list article,
  .photo-entry {
    min-height: 170px;
  }

  .photo-entry {
    grid-template-rows: auto auto;
  }

  .feature-copy,
  .feature-list article {
    padding: 24px;
  }

  .contact-section {
    padding: 64px 20px;
  }

  .site-footer {
    flex-direction: column;
    padding: 24px 20px;
  }

  .archive-hero {
    padding: 56px 20px 34px;
  }

  .archive-hero h1 {
    font-size: 58px;
  }

  .archive-hero p {
    max-width: 330px;
    font-size: 16px;
  }

  .archive-stats {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .archive-stats div {
    min-height: 0;
  }

  .archive-controls {
    position: static;
    overflow: hidden;
  }

  .archive-controls-secondary {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .filter-group {
    padding: 12px 0;
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .filter-group span,
  .filter-button {
    flex: 0 0 auto;
  }

  .filter-group span {
    flex-basis: 100%;
  }

  .archive-masonry {
    --archive-columns: 1;
    padding: 16px 12px 36px;
  }
}
