:root {
  --paper: #f6f1e9;
  --paper-deep: #e9dfd2;
  --ink: #171615;
  --muted: #686056;
  --charcoal: #232220;
  --olive: #65705d;
  --teal: #315d63;
  --brick: #a44d38;
  --amber: #c49a55;
  --line: rgba(23, 22, 21, 0.16);
  --shadow: 0 22px 70px rgba(31, 28, 24, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  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;
  text-decoration: none;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 52px);
  color: #fffaf1;
  background: linear-gradient(to bottom, rgba(18, 17, 16, 0.74), rgba(18, 17, 16, 0));
}

.brand {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 250, 241, 0.68);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  letter-spacing: 0;
}

nav {
  display: flex;
  gap: clamp(14px, 3vw, 34px);
  font-size: 14px;
  color: rgba(255, 250, 241, 0.9);
}

nav a {
  border-bottom: 1px solid transparent;
}

nav a:hover {
  border-color: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--charcoal);
}

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

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(18, 17, 16, 0.52) 0%, rgba(18, 17, 16, 0.24) 42%, rgba(18, 17, 16, 0.04) 100%),
    linear-gradient(0deg, rgba(18, 17, 16, 0.42) 0%, rgba(18, 17, 16, 0) 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(780px, calc(100% - 36px));
  margin: 0 0 clamp(42px, 8vw, 88px) clamp(18px, 8vw, 112px);
  color: #fffaf1;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--brick);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--amber);
}

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

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(58px, 12vw, 138px);
  line-height: 0.88;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 5vw, 72px);
  line-height: 1;
}

h3 {
  margin-bottom: 10px;
  font-size: 28px;
  line-height: 1.08;
}

.intro {
  max-width: 650px;
  margin-bottom: 30px;
  color: rgba(255, 250, 241, 0.88);
  font-size: clamp(19px, 2vw, 25px);
}

.hero-actions,
.section-heading,
.contact,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.hero-actions {
  justify-content: flex-start;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 750;
}

.button.primary {
  color: var(--ink);
  background: #fffaf1;
  border-color: #fffaf1;
}

.button.secondary {
  color: #fffaf1;
}

.button.dark {
  color: #fffaf1;
  background: var(--teal);
  border-color: var(--teal);
}

.button.secondary-dark {
  background: transparent;
  border-color: rgba(255, 250, 241, 0.45);
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(66px, 9vw, 118px) 0;
}

.intro-band {
  border-bottom: 1px solid var(--line);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 1fr);
  gap: clamp(28px, 7vw, 90px);
  align-items: start;
}

.intro-grid p,
.archive-layout p {
  max-width: 680px;
  color: var(--muted);
  font-size: 19px;
}

.profile-photo {
  width: min(100%, 340px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.section-heading {
  margin-bottom: 30px;
  align-items: end;
}

.text-link {
  color: var(--teal);
  font-weight: 750;
  border-bottom: 1px solid currentColor;
}

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

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

.work-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--charcoal);
  box-shadow: var(--shadow);
}

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

.work-card a,
.work-card img {
  width: 100%;
  height: 100%;
}

.work-card img {
  object-fit: cover;
  transition: transform 500ms ease;
}

.work-card:hover img {
  transform: scale(1.018);
}

.work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(10, 10, 9, 0.16), rgba(10, 10, 9, 0) 48%);
}

.card-copy {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px;
  color: #fffaf1;
}

.card-copy h3 {
  color: rgba(255, 250, 241, 0.9);
  font-size: 24px;
  font-weight: 400;
}

.card-copy span,
.essay-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-copy p {
  max-width: 440px;
  margin-bottom: 0;
  color: rgba(255, 250, 241, 0.82);
}

.archive-band {
  background: var(--charcoal);
  color: #fffaf1;
}

.archive-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(280px, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.archive-layout p {
  color: rgba(255, 250, 241, 0.76);
}

.archive-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.archive-layout img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

.essay-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.essay-card {
  min-width: 0;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.essay-card img {
  width: 100%;
  height: 320px;
  margin-bottom: 18px;
  object-fit: contain;
  object-position: center;
  background: #efe8dc;
  border-radius: 8px;
}

.essay-card h3 {
  font-size: 27px;
}

.essay-card p {
  color: var(--muted);
}

.contact {
  align-items: start;
  border-top: 1px solid var(--line);
}

.contact h2 {
  max-width: 760px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: clamp(26px, 3vw, 42px);
}

.contact-copy p:not(.eyebrow) {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 16px;
}

.contact-copy a {
  color: var(--teal);
  font-size: 16px;
  font-weight: 700;
  border-bottom: 1px solid currentColor;
}

footer {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 42px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

footer p {
  margin: 0;
}

footer a {
  color: var(--teal);
  font-weight: 750;
}

@media (max-width: 860px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
  }

  nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 260px;
  }

  .hero {
    min-height: 760px;
  }

  .hero-content {
    width: calc(100% - 36px);
    margin-left: 18px;
  }

  .hero-actions,
  .section-heading,
  .contact,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .intro-grid,
  .archive-layout,
  .work-grid,
  .essay-grid {
    grid-template-columns: 1fr;
  }

  .work-card {
    min-height: 440px;
  }

  .work-card:first-child {
    grid-column: auto;
  }
}

@media (max-width: 540px) {
  .site-header {
    padding: 14px 18px;
  }

  nav {
    gap: 10px 16px;
    font-size: 13px;
  }

  h1 {
    font-size: 58px;
  }

  .hero {
    min-height: 690px;
  }

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

  .hero-actions {
    width: 100%;
  }

  .card-copy {
    padding: 22px;
  }
}
