:root {
  --ink: #101615;
  --muted: #5d6864;
  --paper: #f7f3eb;
  --paper-2: #ebe5d8;
  --moss: #213d34;
  --fern: #5f7f4f;
  --water: #426f8c;
  --clay: #b7663b;
  --gold: #c9a24b;
  --line: rgba(16, 22, 21, 0.14);
  --shadow: 0 26px 80px rgba(16, 22, 21, 0.18);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-decoration-color: rgba(183, 102, 59, 0.45);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

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

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(247, 243, 235, 0.82);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  left: 0;
  min-height: 72px;
  padding: 0 4.5vw;
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  border-radius: 50%;
  height: 42px;
  object-fit: cover;
  width: 42px;
}

.brand small {
  color: var(--muted);
  display: block;
  font-size: 0.72rem;
  font-weight: 650;
}

.nav {
  display: flex;
  gap: 0.3rem;
}

.nav a {
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
  padding: 0.55rem 0.75rem;
  text-decoration: none;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  min-height: calc(100vh - 72px);
}

.hero-copy {
  align-content: center;
  display: grid;
  padding: 5rem 4.5vw;
}

.kicker {
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  margin: 0 0 1rem;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 5.2rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 0.95;
  margin: 0;
}

.hero h1 span {
  color: var(--clay);
  display: block;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.7rem;
  font-weight: 850;
  margin-top: 0.65rem;
}

.lede {
  color: var(--muted);
  font-size: 1.25rem;
  margin: 1.45rem 0 1.8rem;
  max-width: 42rem;
}

.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  font-weight: 850;
  min-height: 3rem;
  padding: 0.65rem 1.05rem;
  text-decoration: none;
}

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

.button:hover {
  border-color: var(--clay);
}

.hero-media {
  min-height: 620px;
  overflow: hidden;
  position: relative;
}

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

.hero-media::after {
  background:
    linear-gradient(180deg, rgba(16, 22, 21, 0.04), rgba(16, 22, 21, 0.44)),
    repeating-linear-gradient(125deg, rgba(247, 243, 235, 0.18) 0 1px, transparent 1px 18px);
  content: "";
  inset: 0;
  position: absolute;
}

.hero-caption {
  bottom: 1.25rem;
  color: white;
  font-size: 0.82rem;
  font-weight: 750;
  left: 1.25rem;
  position: absolute;
  z-index: 1;
}

.section,
.page-hero,
.article,
.gallery-page {
  margin: 0 auto;
  max-width: 1180px;
  padding: 5rem 4.5vw;
}

.section-header {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 0.7fr) minmax(260px, 0.3fr);
  margin-bottom: 2rem;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0;
}

h3 {
  font-size: 1.1rem;
  letter-spacing: 0;
  margin: 0;
}

.muted {
  color: var(--muted);
}

.research-grid,
.project-grid,
.writing-grid,
.contact-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel,
.project-card,
.writing-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.28);
  padding: 1.2rem;
}

.project-card,
.writing-card,
.contact-card {
  color: var(--ink);
  display: block;
  min-height: 100%;
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.project-card:hover,
.writing-card:hover,
.contact-card:hover {
  border-color: rgba(183, 102, 59, 0.55);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.project-card img {
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  margin: -0.35rem -0.35rem 1rem;
  object-fit: cover;
  width: calc(100% + 0.7rem);
}

.meta,
.date {
  color: var(--clay);
  display: block;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  margin-bottom: 0.55rem;
  text-transform: uppercase;
}

.feature-band {
  background: var(--moss);
  color: var(--paper);
}

.feature-band .section {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 0.85fr) minmax(300px, 1.15fr);
}

.feature-band .muted {
  color: rgba(247, 243, 235, 0.72);
}

.photo-mosaic {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(6, 1fr);
}

.photo-mosaic img {
  aspect-ratio: 1;
  border-radius: 8px;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.photo-mosaic img:nth-child(1),
.photo-mosaic img:nth-child(4) {
  grid-column: span 3;
  grid-row: span 2;
}

.photo-mosaic img:nth-child(2),
.photo-mosaic img:nth-child(3),
.photo-mosaic img:nth-child(5),
.photo-mosaic img:nth-child(6) {
  grid-column: span 3;
}

.page-hero {
  border-bottom: 1px solid var(--line);
}

.page-hero p {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 46rem;
}

.archive-list {
  display: grid;
  gap: 0.75rem;
}

.archive-item {
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 1rem;
  grid-template-columns: 8rem minmax(0, 1fr);
  padding: 0.9rem 0;
  text-decoration: none;
}

.archive-item strong {
  font-size: 1.02rem;
}

.article {
  max-width: 850px;
}

.article-body {
  font-size: 1.02rem;
}

.article-body h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.2rem;
  font-weight: 500;
  line-height: 1.05;
}

.article-body h2 {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.55rem;
  font-weight: 850;
  margin-top: 2.4rem;
}

.article-body pre {
  background: #17201d;
  border-radius: 8px;
  color: #eef4ef;
  overflow-x: auto;
  padding: 1rem;
}

.article-body img {
  border-radius: 8px;
  margin: 1rem 0;
}

.gallery-grid {
  columns: 3 260px;
  column-gap: 0.9rem;
}

.gallery-grid img {
  border-radius: 8px;
  margin: 0 0 0.9rem;
  break-inside: avoid;
  width: 100%;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  padding: 2rem 4.5vw;
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 0.9rem;
    padding-top: 0.9rem;
    position: static;
  }

  .nav {
    flex-wrap: wrap;
  }

  .hero,
  .section-header,
  .feature-band .section {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 3.3rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  .hero-media {
    min-height: 420px;
    order: -1;
  }

  .research-grid,
  .project-grid,
  .writing-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .archive-item {
    grid-template-columns: 1fr;
  }
}
