:root {
  --paper: #fbfbf4;
  --ink: #151515;
  --soft-ink: #696964;
  --line: #dcdcd2;
  --accent: #cf5a3f;
  --green: #75836f;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.site-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 30px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand img { display: block; width: 190px; height: auto; }
nav { display: flex; gap: 30px; font-size: 13px; }
nav a { position: relative; }
nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 1px; background: currentColor; transition: right .25s ease; }
nav a:hover::after { right: 0; }

main { overflow: hidden; }
.hero {
  max-width: var(--max);
  min-height: 72vh;
  margin: 0 auto;
  padding: 90px 34px 70px;
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  align-items: center;
  gap: 40px;
}
.eyebrow { letter-spacing: .16em; font-size: 11px; font-weight: 600; margin: 0 0 28px; }
.hero h1, .studio-copy h1 {
  font-family: "Libre Caslon Display", Georgia, serif;
  font-size: clamp(54px, 7.5vw, 106px);
  line-height: .94;
  font-weight: 400;
  margin: 0;
  letter-spacing: -.035em;
}
.hero h1 em { font-weight: 400; color: var(--soft-ink); }
.intro { max-width: 470px; font-size: 17px; line-height: 1.65; color: var(--soft-ink); margin: 34px 0 26px; }
.text-link { display: inline-flex; gap: 12px; border-bottom: 1px solid var(--ink); padding-bottom: 4px; font-size: 14px; }
.hero-mark { position: relative; height: 360px; display: grid; place-items: center; }
.hero-footprint { width: min(100%, 280px); height: auto; transform: rotate(8deg); filter: saturate(1.02); }
.scribble { position: absolute; bottom: 30px; right: 15px; font-family: cursive; font-size: 34px; transform: rotate(-9deg); color: var(--green); }

.work-section { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px max(34px, calc((100vw - var(--max)) / 2 + 34px)) 100px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 42px; font-size: 12px; text-transform: lowercase; }
.section-heading p { margin: 0; }
.muted { color: var(--soft-ink); }
.gallery { columns: 3 280px; column-gap: 18px; }
.art-card { break-inside: avoid; margin: 0 0 18px; cursor: zoom-in; opacity: 0; transform: translateY(12px); animation: reveal .5s ease forwards; }
.art-card:nth-child(3n+2) { animation-delay: .07s; }
.art-card:nth-child(3n+3) { animation-delay: .14s; }
@keyframes reveal { to { opacity: 1; transform: none; } }
.art-card img { display: block; width: 100%; height: auto; background: #eee; transition: filter .25s ease, transform .35s ease; }
.art-card:hover img { filter: saturate(.93); transform: scale(.995); }
.art-meta { display: flex; justify-content: space-between; gap: 20px; padding: 9px 2px 4px; font-size: 11px; color: var(--soft-ink); }
.art-meta strong { font-weight: 500; color: var(--ink); }
.empty-state { text-align: center; padding: 100px 20px; color: var(--soft-ink); }
.empty-state p { font-family: "Libre Caslon Display", serif; font-size: 40px; color: var(--ink); margin: 0 0 8px; }

.about-section { max-width: var(--max); margin: 0 auto; padding: 120px 34px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; align-items: start; }
.about-title { position: relative; font-family: "Libre Caslon Display", Georgia, serif; font-size: 76px; line-height: 1; }
.big-amp { display: block; font-size: 170px; line-height: .8; color: #8b8b84; margin-left: 60px; }
.about-copy { max-width: 610px; padding-top: 15px; }
.about-copy p { font-family: "Libre Caslon Display", Georgia, serif; font-size: clamp(26px, 3vw, 42px); line-height: 1.24; margin: 0 0 25px; }
.about-copy p + p { font-family: "DM Sans", sans-serif; font-size: 15px; line-height: 1.75; max-width: 430px; color: var(--soft-ink); }
.about-copy .text-link { margin-top: 14px; }

footer { max-width: var(--max); margin: 0 auto; border-top: 1px solid var(--line); padding: 36px 34px 44px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 30px; font-size: 11px; color: var(--soft-ink); }
footer img { width: 130px; }

.lightbox { width: 100vw; max-width: none; height: 100vh; max-height: none; border: 0; margin: 0; padding: 0; background: rgba(18,18,16,.96); color: white; }
.lightbox::backdrop { background: rgba(18,18,16,.6); }
.lightbox-inner { min-height: 100%; display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 52px 28px 28px; }
.lightbox img { max-width: min(88vw, 1100px); max-height: 76vh; object-fit: contain; box-shadow: 0 16px 80px rgba(0,0,0,.25); }
.lightbox-caption { width: min(88vw, 1100px); display: flex; justify-content: space-between; gap: 30px; align-items: baseline; padding-top: 18px; }
.lightbox-caption h2 { font-family: "Libre Caslon Display", serif; font-size: 26px; font-weight: 400; margin: 0; }
.lightbox-caption p { margin: 0; color: #b8b8b2; font-size: 12px; }
.close-lightbox { position: fixed; top: 18px; right: 25px; border: 0; background: transparent; color: white; font-size: 34px; cursor: pointer; z-index: 3; }

.studio { min-height: 100vh; background: #f2f0e7; }
.studio-shell { max-width: 980px; margin: 0 auto; padding: 0 28px 90px; }
.studio-topbar { display: flex; justify-content: space-between; align-items: center; padding: 28px 0; border-bottom: 1px solid #d1cec3; font-size: 12px; }
.studio-logo img { width: 150px; mix-blend-mode: multiply; }
.studio-copy { padding: 70px 0 42px; }
.studio-copy h1 { font-size: clamp(52px, 8vw, 92px); }
.studio-copy > p:last-child { color: var(--soft-ink); max-width: 500px; line-height: 1.65; }
.upload-card { background: var(--paper); border: 1px solid #d7d4ca; padding: 20px; }
.dropzone { min-height: 360px; border: 1px dashed #aaa89e; display: grid; place-items: center; text-align: center; position: relative; overflow: hidden; cursor: pointer; background: #f8f7ef; }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone img { width: 100%; height: 100%; max-height: 520px; object-fit: contain; position: absolute; inset: 0; background: #efeee7; }
#drop-copy { display: flex; flex-direction: column; gap: 6px; align-items: center; color: var(--soft-ink); pointer-events: none; }
#drop-copy strong { color: var(--ink); font-weight: 500; }
#drop-copy small { font-size: 11px; }
.drop-plus { font-family: serif; font-size: 48px; font-weight: 300; line-height: 1; color: var(--accent); margin-bottom: 8px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.upload-card > label, .form-grid label { display: flex; flex-direction: column; gap: 7px; font-size: 11px; color: var(--soft-ink); }
.upload-card input[type="text"], .upload-card input[type="password"] { width: 100%; border: 0; border-bottom: 1px solid #c9c6bc; background: transparent; padding: 11px 2px 9px; color: var(--ink); outline: none; }
.upload-card input:focus { border-color: var(--ink); }
.upload-card > label { margin-top: 16px; }
.form-actions { display: flex; align-items: center; gap: 18px; margin-top: 26px; }
.form-actions button { border: 0; background: var(--ink); color: var(--paper); padding: 13px 19px; cursor: pointer; }
.form-actions button:disabled { opacity: .5; cursor: wait; }
#upload-status { margin: 0; font-size: 12px; color: var(--soft-ink); }
.manage-heading { display: flex; justify-content: space-between; align-items: center; padding: 54px 0 18px; }
.manage-heading h2 { font-family: "Libre Caslon Display", serif; font-weight: 400; font-size: 34px; margin: 0; }
.plain-button { border: 0; background: none; text-decoration: underline; cursor: pointer; font-size: 12px; }
.studio-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.studio-item { background: var(--paper); border: 1px solid #d7d4ca; padding: 10px; }
.studio-item img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.studio-item-info { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 2px 2px; }
.studio-item-info span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.delete-button { border: 0; background: none; color: #a34331; font-size: 11px; cursor: pointer; padding: 3px; }

@media (max-width: 760px) {
  .site-header { padding: 22px 20px; }
  .brand img { width: 150px; }
  nav { gap: 16px; }
  nav a:nth-child(2) { display: none; }
  .hero { min-height: 620px; grid-template-columns: 1fr; padding: 70px 20px 50px; }
  .hero-mark { display: none; }
  .hero h1 { font-size: clamp(52px, 16vw, 80px); }
  .work-section { padding: 22px 20px 72px; }
  .gallery { columns: 2 150px; column-gap: 10px; }
  .art-card { margin-bottom: 12px; }
  .art-meta { display: block; }
  .art-meta span { display: block; margin-top: 2px; }
  .about-section { padding: 80px 20px; grid-template-columns: 1fr; gap: 30px; }
  .about-title { font-size: 54px; }
  .big-amp { display: inline; font-size: 60px; margin-left: 7px; }
  footer { margin: 0 20px; padding: 28px 0; grid-template-columns: 1fr auto; }
  footer p:nth-child(2) { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .studio-gallery { grid-template-columns: 1fr 1fr; }
  .dropzone { min-height: 280px; }
}
