:root {
  --bg: #121c17;
  --bg-raise: #1a2a22;
  --ink: #e3d4ac;
  --mute: #e3d4ac;
  --accent: #8f3a36;
  --accent-soft: #e3d4ac;

  --serif: "Cormorant Garamond", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;

  --pad: clamp(20px, 5vw, 72px);
  --measure: 38rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
}

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

a {
  color: var(--accent-soft);
  text-underline-offset: 0.18em;
}

a:hover { color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 18px var(--pad);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-mark {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
}

.site-header nav {
  display: flex;
  gap: 22px;
}

.site-header nav a {
  color: var(--mute);
  text-decoration: none;
  font-size: 0.92rem;
}

.site-header nav a:hover { color: var(--ink); }

/* Hero */

.hero {
  padding: clamp(48px, 10vh, 120px) var(--pad) 32px;
  max-width: 52rem;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.lede {
  margin: 0 0 28px;
  color: var(--mute);
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.05rem;
  border-radius: 2px;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.btn-solid {
  background: var(--accent);
  color: #e3d4ac;
  outline: 2px solid var(--ink); 
  outline-offset: 2px;
}

.btn-solid:hover { filter: brightness(1.25); color: #e3d4ac; }

.btn-ghost {
  border: 2px solid var(--line);
  color: var(--ink);
  outline: 2px solid var(--ink); 
  outline-offset: 2px;
}

.btn-ghost:hover {
  border-color: var(--accent-soft);
  color: var(--ink);
}

/* Social */

.social {
  padding: 8px var(--pad) 40px;
}

.icon-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.icon-list a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--mute);
}

.icon-list a:hover { color: var(--accent); }

.icon-list svg,
.icon-list img {
  width: 22px;
  height: 22px;
}

.icon-list img {
  filter: grayscale(1) brightness(1.4);
  opacity: 0.75;
}

.icon-list a:hover img {
  filter: none;
  opacity: 1;
}

/* Featured */

.featured {
  padding: 8px var(--pad) 72px;
}

.featured-card {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  padding: 28px;
  background: #592424;
  border: 1px solid #5a3a40;
}

.featured-cover {
  display: block;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.featured-copy h2 {
  margin: 8px 0 8px;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 500;
  line-height: 1.15;
}

.meta {
  margin: 0 0 14px;
  color: var(--mute);
  font-size: 0.88rem;
}

.featured-copy p { margin: 0 0 16px; color: var(--mute); }
.featured-copy .hero-actions { margin-top: 8px; }

/* Works */

.works,
.gallery-section,
.about {
  padding: 0 var(--pad) 80px;
}

.section-head {
  max-width: var(--measure);
  margin-bottom: 28px;
}

.section-head h2,
.about h2 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
}

.section-head p,
.about p {
  margin: 0;
  color: var(--mute);
}

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

.work {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.work h3,
.work p {
  align-self: stretch;
}

.work-cover {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 14px;
  padding: 4px;
  background: var(--bg-raise);
  border: 1px solid var(--line);
}

.work-cover img {
  display: block;
  width: 240px;
  max-width: 100%;
  height: auto;
}

.work h3 {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
}

.work p { margin: 0 0 10px; color: var(--mute); }

/* Gallery — fixed columns, not masonry. Smaller than an art-site grid. */

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

.piece {
  display: block;
  background: var(--bg-raise);
  cursor: zoom-in;
  overflow: hidden;
  position: relative;
  z-index: 1;
  transform: scale(1);
  transition: transform 0.25s ease;
}

.piece:hover {
  transform: scale(1.08);
  z-index: 2;
}

.piece img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.piece:hover img { opacity: 0.82; }

.about { max-width: calc(var(--measure) + var(--pad) * 2); }

/* Footer */

.site-footer {
  padding: 28px var(--pad) 48px;
  border-top: 1px solid var(--line);
  color: var(--mute);
  font-size: 0.85rem;
}

.site-footer p { margin: 0; }

/* Lightbox */

#lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  max-height: 100vh;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(8, 7, 6, 0.45);
  color: var(--ink);
}

#lightbox[open] {
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  align-items: center;
}

#lightbox::backdrop { background: rgba(8, 7, 6, 0.45); }

#lightbox figure {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 100vh;
  margin: 0;
  padding: 24px 0;
  min-width: 0;
}

#lb-image {
  max-width: 100%;
  max-height: calc(100vh - 96px);
  object-fit: contain;
}

#lb-caption {
  color: var(--mute);
  font-size: 0.875rem;
}

.lb-btn {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 16px;
}

.lb-btn:hover { color: var(--accent); }

.lb-prev { grid-column: 1; grid-row: 1; }
.lb-next { grid-column: 3; grid-row: 1; }

.lb-close {
  position: absolute;
  top: 8px;
  right: 8px;
}

@media (max-width: 800px) {
  .featured-card { grid-template-columns: 1fr; }
  .featured-cover { max-width: 240px; }
  .work-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .site-header { flex-direction: column; gap: 8px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  #lightbox[open] { grid-template-columns: 40px 1fr 40px; }
  .lb-btn { padding: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .piece img { transition: none; }
}
