:root {
  color-scheme: light;
  --ink: #0f0f0f;
  --muted: #5b5b5b;
  --paper: #f7f5f1;
  --line: #e1ddd6;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Work Sans", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.side-panel {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 110px;
  background: #e9e3db;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.02)),
    repeating-linear-gradient(135deg, #e1d8cf 0 12px, #efe7de 12px 24px);
}

.side-panel.left {
  left: 0;
  border-right: 1px solid var(--line);
  border-left: none;
}

.side-panel.right {
  right: 0;
  border-left: 1px solid var(--line);
  border-right: none;
}

h1,
h2,
h3 {
  font-family: "EB Garamond", serif;
  font-weight: 500;
}

h1 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 400;
}

h2 {
  font-size: 1.7rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 400;
}

h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

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

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

.container {
  width: min(980px, 92%);
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(247, 245, 241, 0.3);
  backdrop-filter: none;
  position: relative;
  z-index: 5;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
}

.brand {
  font-family: "EB Garamond", serif;
  font-size: 2.1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 1.2rem;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-item {
  position: relative;
  padding-bottom: 0.8rem;
  display: inline-flex;
  align-items: center;
}

.nav-button {
  font: inherit;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
}

.dropdown {
  position: absolute;
  top: calc(100% - 0.4rem);
  margin-top: 0;
  left: 0;
  min-width: 140px;
  display: grid;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  background: var(--paper);
  opacity: 0;
  visibility: hidden;
  transform: translateY(2px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 10;
  pointer-events: none;
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-item.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown a.active {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.page {
  padding: 3.5rem 0 4.5rem;
  flex: 1;
}

.intro {
  margin-bottom: 2.5rem;
}

.intro-text {
  font-size: 1.05rem;
}

.section {
  padding-bottom: 4rem;
}

.year-block {
  margin-bottom: 2.8rem;
}

.work-stack {
  display: grid;
  gap: 2.7rem;
}

.row {
  display: grid;
  gap: 1.2rem;
}

.row-single {
  grid-template-columns: 1fr;
  justify-items: center;
}

.row-double {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-items: center;
  align-items: center;
}

.row-triple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-items: center;
  align-items: center;
}

.row-quad {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-items: center;
  align-items: center;
}

.simple-item {
  display: grid;
  gap: 0.5rem;
  width: 100%;
  max-width: 460px;
  text-align: center;
}

.row-double .simple-item {
  max-width: 380px;
}

.simple-item.full {
  max-width: 760px;
}

.work-image {
  width: 100%;
  height: auto;
  display: block;
  border: none;
  background: transparent;
}

.simple-item.full .work-image {
  max-height: 85vh;
  object-fit: contain;
}

.row-double .work-image,
.row-triple .work-image,
.row-quad .work-image {
  object-fit: contain;
  background: transparent;
  object-position: center bottom;
}

.row-double .work-image {
  max-height: 500px;
}

.row-triple .work-image {
  max-height: 260px;
}

.row-quad .work-image {
  max-height: 220px;
}

.work-meta {
  display: grid;
  gap: 0.15rem;
  margin-top: 0.2rem;
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  font-size: 0.92rem;
  line-height: 1.35;
}

.work-link {
  display: inline-block;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 20;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: min(90vw, 1200px);
  max-height: 90vh;
  width: auto;
  height: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: #fff;
  padding: 0.4rem 0.6rem;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.work-title {
  font-size: 0.95rem;
  color: #1f1f1f;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  font-style: italic;
}

.work-medium,
.work-size {
  font-size: 0.9rem;
  color: #7a7a7a;
  font-weight: 400;
  font-style: normal;
}

.placeholder {
  height: 220px;
  background: #e9e3db;
  border: 1px solid var(--line);
}

.placeholder.size-sm {
  height: 220px;
}

.placeholder.size-md {
  height: 300px;
}

.placeholder.size-lg {
  height: 380px;
}

.placeholder.size-xl {
  height: 460px;
}


.about-block,
.contact-block {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  align-items: start;
}

.about-image,
.contact-image {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  background: #eee6dc;
}

.contact-image-wrap {
  display: flex;
  justify-content: center;
  margin-top: 0;
  align-self: start;
}

.contact-image {
  max-width: 360px;
}

.contact-instagram {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--ink);
  margin: 0.4rem 0 0.8rem;
}

.contact-instagram-icon {
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contact-instagram-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 30;
}

.form-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.form-modal-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.6rem 2rem;
  text-align: center;
  max-width: 320px;
}

.about-text {
  max-width: 720px;
  text-align: justify;
}

.about-image.inline {
  float: left;
  width: min(240px, 40%);
  margin: 0 1.2rem 0.8rem 0;
}

.about-text::after {
  content: "";
  display: block;
  clear: both;
}

.contact-card {
  border: 1px solid var(--line);
  padding: 1.4rem;
}

.contact-details {
  display: grid;
  gap: 0.8rem;
  align-content: start;
}

.contact-note {
  margin: 0;
}

.contact-links {
  display: grid;
  gap: 0.6rem;
}

.contact-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.2rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-cta-static {
  justify-content: space-between;
  gap: 0.6rem;
  text-transform: none;
  letter-spacing: 0.02em;
  background: transparent;
  color: var(--ink);
}

.contact-cta-link {
  justify-content: flex-start;
  gap: 0.6rem;
}

.copy-button {
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
}

.contact-cta.ghost {
  background: transparent;
  color: var(--ink);
}

label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--muted);
}

input,
textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  font-family: inherit;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.button {
  margin-top: 0.5rem;
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
}

.icon-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.contact-email {
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 0.6rem;
}

.site-footer {
  padding: 2rem 0;
}

.footer-inner {
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .nav {
    flex-wrap: wrap;
  }

  .dropdown {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    transform: translateY(2px);
    border: 1px solid var(--line);
    padding: 0.8rem 1rem;
    background: var(--paper);
  }

.row-double {
    grid-template-columns: 1fr;
  }

  .row-triple,
  .row-quad {
    grid-template-columns: 1fr;
  }

  .side-panel {
    display: none;
  }
}

@media (max-width: 1024px) {
  .row-double .work-image {
    height: 380px;
  }

  .row-triple .work-image {
    height: 240px;
  }

  .row-quad .work-image {
    height: 200px;
  }

  .side-panel {
    display: none;
  }
}
.page,
.section,
.site-footer {
  position: relative;
  z-index: 1;
}
