:root {
  --paper: #f3ede4;
  --paper-dense: #e8ded0;
  --ink: #141210;
  --ink-soft: #302a26;
  --muted: #6e665f;
  --line: rgba(20, 18, 16, 0.14);
  --line-strong: rgba(20, 18, 16, 0.24);
  --white: #fbf7f2;
  --accent: #5a3333;
  --shadow: 0 24px 60px rgba(14, 11, 9, 0.08);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  background:
    linear-gradient(90deg, transparent 3.75rem, rgba(20, 18, 16, 0.04) 3.75rem, rgba(20, 18, 16, 0.04) 3.82rem, transparent 3.82rem),
    linear-gradient(180deg, #f7f2eb 0%, var(--paper) 34%, #f6f1ea 100%);
}

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

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

p,
h1,
h2,
h3,
figure,
blockquote {
  margin: 0;
}

.skip-link {
  position: absolute;
  top: -3rem;
  left: 1rem;
  z-index: 100;
  padding: 0.7rem 0.9rem;
  background: var(--ink);
  color: var(--white);
}

.skip-link:focus {
  top: 1rem;
}

.site-header,
.site-footer {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding-left: clamp(1rem, 3vw, 2.5rem);
  padding-right: clamp(1rem, 3vw, 2.5rem);
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  padding-top: 1.35rem;
  color: var(--white);
}

.brand {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  letter-spacing: 0.02em;
}

.site-nav,
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
}

.site-nav a,
.footer-nav a {
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.footer-nav a:hover,
.footer-nav a:focus-visible {
  border-color: currentColor;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: clip;
  color: var(--white);
  background: #111;
}

.hero-image,
.hero-shadow {
  position: absolute;
  inset: 0;
}

.hero-image {
  background: url("../img/hero-background.jpg") center 36% / cover no-repeat;
  filter: grayscale(100%) contrast(1.05);
  transform: scale(1.03);
}

.hero-shadow {
  background:
    linear-gradient(180deg, rgba(10, 9, 8, 0.28) 0%, rgba(10, 9, 8, 0.55) 38%, rgba(10, 9, 8, 0.84) 100%),
    linear-gradient(90deg, rgba(10, 9, 8, 0.8) 0%, rgba(10, 9, 8, 0.2) 44%, rgba(10, 9, 8, 0.55) 100%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  padding: 7.5rem clamp(1rem, 3vw, 2.5rem) 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 30rem) 12rem;
  gap: 2rem;
  align-items: end;
}

.hero-title-block {
  align-self: center;
  padding-top: 3rem;
}

.hero-kicker,
.marginalia-label,
.plate-index,
.ledger-date,
.author-note-copy > span,
.contact-sheet-inner > span,
.gallery-heading span,
.prologue-rail span:first-child,
.ledger-stamp span {
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero-kicker {
  margin-bottom: 1rem;
  color: rgba(251, 247, 242, 0.72);
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 0.92;
}

h1 {
  font-size: clamp(4rem, 12vw, 10rem);
}

h1 span {
  display: block;
}

.hero-text-block {
  align-self: end;
  max-width: 30rem;
  padding-bottom: 2.5rem;
}

.hero-lead {
  font-size: clamp(1.04rem, 1.55vw, 1.25rem);
  color: rgba(251, 247, 242, 0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.7rem;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 3.2rem;
  padding: 0 1.35rem;
  border: 1px solid transparent;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

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

.button-light {
  background: var(--white);
  color: var(--ink);
}

.button-light:hover,
.button-light:focus-visible {
  background: #efe6da;
}

.button-ghost {
  color: var(--white);
  border-color: rgba(251, 247, 242, 0.36);
  background: rgba(251, 247, 242, 0.05);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  background: rgba(251, 247, 242, 0.12);
}

.button-dark {
  color: var(--white);
  background: var(--ink);
}

.button-dark:hover,
.button-dark:focus-visible {
  background: #26211e;
}

.hero-marginalia {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  align-self: center;
  justify-self: end;
  padding-left: 1rem;
  border-left: 1px solid rgba(251, 247, 242, 0.22);
  color: rgba(251, 247, 242, 0.72);
}

.marginalia-label {
  display: block;
  margin-bottom: 1rem;
  color: rgba(251, 247, 242, 0.52);
}

.prologue,
.gallery-wall,
.exhibition-ledger,
.author-note,
.contact-sheet {
  position: relative;
  padding: clamp(4.8rem, 8vw, 8rem) clamp(1rem, 3vw, 2.5rem);
}

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

.prologue::before,
.gallery-wall::before,
.exhibition-ledger::before,
.contact-sheet::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--line);
}

.prologue-rail {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 0.7rem;
  color: var(--muted);
}

.prologue-rail span:last-child {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.prologue-top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 24rem);
  gap: 2rem;
  align-items: start;
}

h2 {
  font-size: clamp(2.9rem, 6vw, 5.7rem);
}

.prologue-top p,
.prologue-copy p,
.plate-text,
.ledger-content p,
.author-note-copy p,
.contact-sheet-inner p {
  color: var(--ink-soft);
  font-size: 1rem;
}

.prologue-top strong,
.author-note-copy strong {
  color: var(--ink);
}

.prologue-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 32rem);
  gap: 3rem;
  margin-top: 3rem;
}

.prologue-copy {
  max-width: 42rem;
}

.prologue-copy p + p,
.author-note-copy p + p {
  margin-top: 1.15rem;
}

.prologue-image {
  padding: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(232, 222, 208, 0.7));
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}

.prologue-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(100%);
}

.thesis {
  padding: clamp(2.5rem, 4vw, 4rem) clamp(1rem, 3vw, 2.5rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(90, 51, 51, 0.08), transparent 26%, transparent 74%, rgba(90, 51, 51, 0.08));
}

.thesis p {
  max-width: 15ch;
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 6.7rem);
  line-height: 0.94;
}

.gallery-heading,
.ledger-stamp {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2.2rem;
}

.gallery-heading h2,
.ledger-stamp h2,
.author-note-copy h2,
.contact-sheet-inner h2 {
  font-size: clamp(2.7rem, 5vw, 4.8rem);
}

.gallery-track {
  display: grid;
  grid-template-columns: 1.1fr 0.95fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.plate {
  display: grid;
  gap: 1rem;
}

.plate-b {
  margin-top: 6rem;
}

.plate-c {
  margin-top: 2.5rem;
}

.plate-image {
  overflow: hidden;
  background: #ddd5ca;
  box-shadow: var(--shadow);
}

.plate-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: transform 0.5s ease;
}

.plate:hover .plate-image img,
.plate:focus-within .plate-image img {
  transform: scale(1.03);
}

.plate-a .plate-image {
  aspect-ratio: 4 / 5.2;
}

.plate-b .plate-image {
  aspect-ratio: 4 / 4.5;
}

.plate-c .plate-image {
  aspect-ratio: 4 / 5.6;
}

.plate-caption {
  padding-right: 1rem;
}

h3 {
  font-size: clamp(1.9rem, 2.7vw, 3rem);
}

.plate-meta {
  margin: 0.8rem 0 0.95rem;
  color: var(--muted);
  font-size: 0.86rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.exhibition-ledger {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr);
  gap: 2rem;
}

.ledger-stamp {
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 0;
}

.ledger-list {
  border-left: 1px solid var(--line);
  padding-left: 2rem;
}

.ledger-entry {
  display: grid;
  grid-template-columns: minmax(12rem, 14rem) minmax(0, 1fr);
  gap: 2rem;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--line);
}

.ledger-entry:first-child {
  border-top: 0;
}

.ledger-place p {
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 0.95;
}

.ledger-place span {
  display: block;
  margin-top: 0.5rem;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ledger-content h3 {
  margin-bottom: 0.65rem;
}

.ledger-date {
  display: block;
  margin-bottom: 0.9rem;
  color: var(--muted);
}

.author-note {
  display: grid;
  grid-template-columns: minmax(18rem, 34rem) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
  background:
    linear-gradient(180deg, transparent 0%, rgba(232, 222, 208, 0.34) 100%);
}

.author-note-image {
  padding: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(232, 222, 208, 0.72));
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}

.author-note-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(100%);
}

.author-note-copy > span,
.contact-sheet-inner > span {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--accent);
}

.contact-sheet-inner {
  max-width: 54rem;
}

.contact-sheet-inner p {
  max-width: 42rem;
  margin: 1.2rem 0 2rem;
}

.site-footer {
  padding-top: 1.25rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 1100px) {
  .hero-grid,
  .prologue,
  .prologue-top,
  .prologue-columns,
  .gallery-track,
  .exhibition-ledger,
  .ledger-entry,
  .author-note {
    grid-template-columns: 1fr;
  }

  .hero-marginalia {
    writing-mode: initial;
    transform: none;
    padding-left: 0;
    padding-top: 1rem;
    border-left: 0;
    border-top: 1px solid rgba(251, 247, 242, 0.22);
  }

  .prologue-rail {
    flex-direction: row;
    align-items: baseline;
  }

  .prologue-rail span:last-child {
    writing-mode: initial;
    transform: none;
  }

  .ledger-list {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 760px) {
  body {
    background: linear-gradient(180deg, #f7f2eb 0%, var(--paper) 34%, #f6f1ea 100%);
  }

  .site-header,
  .site-footer,
  .hero-grid,
  .prologue,
  .gallery-wall,
  .exhibition-ledger,
  .author-note,
  .contact-sheet {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-grid {
    padding-top: 8rem;
  }

  .hero-title-block {
    padding-top: 1rem;
  }

  .hero-actions,
  .site-nav,
  .footer-nav {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .plate-b,
  .plate-c {
    margin-top: 0;
  }

  .thesis p {
    max-width: none;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
