:root {
  --paper: #fbfbf8;
  --paper-strong: #ffffff;
  --ink: #151411;
  --muted: #706d66;
  --line: #dfddd5;
  --accent: #e5231c;
  --green: #2d5a4a;
  --blue: #235b8c;
  --shadow: 8px 8px 0 rgba(21, 20, 17, 0.12);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

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

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 10;
  transform: translateY(-140%);
  background: var(--ink);
  color: var(--paper-strong);
  padding: 8px 12px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 72px;
  padding: 16px clamp(18px, 4vw, 44px);
  border-bottom: 1px solid rgba(21, 20, 17, 0.1);
  background: rgba(251, 251, 248, 0.93);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 19px;
  font-weight: 650;
  white-space: nowrap;
}

.brand-mark {
  width: 13px;
  height: 13px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 4px 0 0 var(--green), 8px 0 0 var(--blue);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(10px, 2vw, 24px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  position: relative;
  flex: 0 0 auto;
  text-decoration: none;
}

.site-nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 2px;
  content: "";
  background: transparent;
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.site-nav a[aria-current="page"]::after {
  background: var(--accent);
}

.app {
  min-height: calc(100vh - 132px);
  outline: none;
}

.home {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(26px, 5vw, 58px) 0 64px;
}

.home-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 420px);
  gap: clamp(22px, 6vw, 84px);
  align-items: end;
  margin-bottom: clamp(22px, 4vw, 42px);
}

.kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.home-heading h1,
.category-heading h1 {
  max-width: 800px;
  margin-bottom: 0;
  font-size: 86px;
  font-weight: 700;
  line-height: 0.95;
}

.home-heading p,
.category-heading p,
.bio-text p {
  color: var(--muted);
  font-size: 18px;
}

.contact-page {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) 0 78px;
}

.contact-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 420px);
  gap: clamp(22px, 6vw, 84px);
  align-items: end;
  margin-bottom: clamp(28px, 5vw, 56px);
}

.contact-heading h1 {
  max-width: 820px;
  margin-bottom: 0;
  font-size: 72px;
  font-weight: 700;
  line-height: 0.98;
}

.contact-heading p {
  color: var(--muted);
  font-size: 18px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1fr);
  gap: clamp(22px, 6vw, 80px);
  align-items: start;
  padding-top: clamp(26px, 5vw, 52px);
  border-top: 1px solid var(--line);
}

.contact-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  box-shadow: var(--shadow);
}

.contact-email {
  display: inline-block;
  color: var(--ink);
  font-size: 22px;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-decoration-color: rgba(21, 20, 17, 0.28);
  text-underline-offset: 5px;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.4;
}

.contact-form input {
  min-height: 46px;
  padding: 10px 12px;
}

.contact-form textarea {
  min-height: 180px;
  padding: 12px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--ink);
  outline: 3px solid rgba(229, 35, 28, 0.16);
}

.contact-submit {
  justify-self: start;
  min-width: 112px;
  min-height: 44px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper-strong);
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
}

.contact-submit:hover,
.contact-submit:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 34px);
}

.category-tile {
  position: relative;
  min-height: clamp(260px, 36vw, 420px);
  overflow: hidden;
  border: 1px solid rgba(21, 20, 17, 0.12);
  border-radius: 8px;
  background: #e8e8e0;
  color: var(--paper-strong);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.category-tile img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition:
    transform 360ms ease,
    filter 360ms ease;
}

.category-tile::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.68)),
    linear-gradient(90deg, rgba(21, 20, 17, 0.38), transparent 58%);
}

.category-tile:hover img,
.category-tile:focus-visible img {
  transform: scale(1.035);
  filter: saturate(1.08);
}

.tile-copy {
  position: absolute;
  left: clamp(18px, 3vw, 32px);
  right: clamp(18px, 3vw, 32px);
  bottom: clamp(18px, 3vw, 30px);
  z-index: 1;
}

.tile-copy h2 {
  margin-bottom: 6px;
  font-size: 38px;
  line-height: 1;
}

.tile-copy p {
  max-width: 480px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 15px;
}

.bio-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(22px, 6vw, 80px);
  margin-top: clamp(48px, 8vw, 92px);
  padding-top: clamp(28px, 6vw, 58px);
  border-top: 1px solid var(--line);
}

.bio-section h2 {
  margin-bottom: 10px;
  font-size: 44px;
  line-height: 1.04;
}

.bio-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-strong);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.category-page {
  width: min(1440px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px) 0 78px;
}

.category-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 420px);
  gap: clamp(22px, 5vw, 70px);
  align-items: end;
  width: min(var(--max), 100%);
  margin: 0 auto clamp(24px, 4vw, 42px);
}

.category-meta {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: min(var(--max), 100%);
  margin: 0 auto 34px;
}

.subnav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-strong);
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.subnav a[aria-current="page"] {
  border-color: var(--ink);
  color: var(--ink);
}

.masonry {
  column-count: 4;
  column-gap: clamp(22px, 3vw, 42px);
  width: 100%;
}

.work-card {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0 0 clamp(24px, 4vw, 44px);
  break-inside: avoid;
  color: inherit;
  text-decoration: none;
}

.work-card figure {
  margin: 0;
}

.work-card img {
  width: 100%;
  background: #ededeb;
  box-shadow: var(--shadow);
  transition:
    transform 260ms ease,
    box-shadow 260ms ease;
}

.work-card:hover img,
.work-card:focus-visible img {
  transform: translateY(-4px);
  box-shadow: 12px 12px 0 rgba(21, 20, 17, 0.16);
}

.work-card::after {
  position: absolute;
  right: 9px;
  bottom: 9px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--paper-strong);
  border-radius: 50%;
  content: "";
  background: var(--accent);
  box-shadow: 0 0 0 1px rgba(21, 20, 17, 0.12);
}

.work-card figcaption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.empty-state {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 48px 0;
  color: var(--muted);
  font-size: 18px;
}

.work-view {
  min-height: calc(100vh - 132px);
  background: #11100e;
  color: var(--paper-strong);
}

.work-view-inner {
  width: min(1380px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 clamp(42px, 6vw, 72px);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.74);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.viewer {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  gap: clamp(10px, 2vw, 24px);
  align-items: center;
}

.viewer-media {
  display: grid;
  place-items: center;
  min-height: min(70vh, 820px);
}

.viewer-media img {
  width: auto;
  max-width: 100%;
  max-height: min(70vh, 820px);
  object-fit: contain;
  background: #1b1a17;
}

.viewer-button {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: transparent;
  color: var(--paper-strong);
  cursor: pointer;
}

.viewer-button:hover,
.viewer-button:focus-visible {
  border-color: var(--paper-strong);
  background: rgba(255, 255, 255, 0.08);
}

.work-detail {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1fr);
  gap: clamp(20px, 5vw, 64px);
  max-width: 980px;
  margin: clamp(26px, 5vw, 54px) auto 0;
  padding-top: clamp(20px, 4vw, 38px);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.work-detail h1 {
  margin-bottom: 8px;
  font-size: 44px;
  line-height: 1.02;
}

.work-detail p {
  color: rgba(255, 255, 255, 0.72);
}

.work-body {
  white-space: pre-wrap;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 60px;
  padding: 16px clamp(18px, 4vw, 44px);
  border-top: 1px solid rgba(21, 20, 17, 0.1);
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.site-footer a {
  text-decoration-color: rgba(112, 109, 102, 0.45);
  text-underline-offset: 4px;
}

@media (max-width: 1000px) {
  .home-heading,
  .contact-heading,
  .contact-layout,
  .category-heading,
  .bio-section,
  .work-detail {
    grid-template-columns: 1fr;
  }

  .masonry {
    column-count: 3;
  }

  .home-heading h1,
  .contact-heading h1,
  .category-heading h1 {
    font-size: 64px;
  }
}

@media (max-width: 760px) {
  .site-header {
    display: block;
  }

  .brand {
    margin-bottom: 13px;
  }

  .site-nav {
    justify-content: flex-start;
    padding-bottom: 4px;
  }

  .tile-copy h2,
  .contact-heading h1,
  .bio-section h2,
  .work-detail h1 {
    font-size: 32px;
  }

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

  .masonry {
    column-count: 2;
    column-gap: 18px;
  }

  .viewer {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
  }

  .viewer-button {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 520px) {
  .home,
  .category-page,
  .work-view-inner {
    width: min(100% - 24px, var(--max));
  }

  .home-heading h1,
  .category-heading h1 {
    font-size: 40px;
  }

  .masonry {
    column-count: 1;
  }

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

  .viewer-button {
    display: none;
  }

  .viewer-media {
    min-height: auto;
  }
}
