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

:root {
  --black: #0d0d0d;
  --ink: #2a2a2a;
  --white: #fafafa;
  --paper: #ffffff;
  --ground: #ebebe8;
  --gray: #c8c8c8;
  --line: #dcdcd8;
  --mid: #7a7a7a;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--white);
  color: var(--black);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Header ── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 40px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.brand {
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  justify-content: flex-end;
}

.nav a {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav a:hover { color: var(--black); }
.nav a[aria-current="page"] { color: var(--black); border-bottom-color: var(--black); }

main { flex: 1; }

/* ── Page intro ── */
.page-head {
  max-width: 1120px;
  margin: 0 auto;
  padding: 72px 40px 40px;
}

.page-head h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.page-head .lede {
  margin-top: 16px;
  max-width: 560px;
  color: #4a4a4a;
  font-size: 1rem;
}

.eyebrow {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 18px;
}

.rule { width: 48px; height: 1px; background: var(--black); }

/* ── Home ── */
.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 96px 40px 72px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  align-items: center;
}

.portrait {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1.5px solid var(--black);
  padding: 6px;
}

.portrait img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(100%);
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.hero .tagline {
  margin-top: 14px;
  font-size: 0.74rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--mid);
}

.hero .intro {
  margin-top: 32px;
  max-width: 560px;
  font-size: 1.05rem;
  color: var(--ink);
}

.doors {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px 96px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.door {
  padding: 40px 32px 40px 0;
  border-right: 1px solid var(--line);
  transition: background 0.2s;
}

.door + .door { padding-left: 32px; }
.door:last-child { border-right: 0; }

.door .eyebrow { margin-bottom: 10px; }

.door h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.2;
}

.door p { margin-top: 12px; color: #4a4a4a; font-size: 0.95rem; }

.door .more {
  display: inline-block;
  margin-top: 20px;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--black);
  padding-bottom: 3px;
}

/* ── Art grid ── */
.art-grid {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px 96px;
  columns: 3;
  column-gap: 28px;
}

.art-item {
  break-inside: avoid;
  margin-bottom: 28px;
  display: block;
  cursor: zoom-in;
}

.art-frame {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 28px;
  transition: border-color 0.2s;
}

.art-frame.dark { background: #111; border-color: #111; }
.art-frame.tight { padding: 0; }
.art-item:hover .art-frame { border-color: var(--black); }

.art-cap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--mid);
}

.art-cap b { font-weight: 400; color: var(--black); }

.art-item.placeholder { cursor: default; }
.art-item.placeholder .art-frame {
  border: 1px dashed var(--gray);
  background: transparent;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.art-item.placeholder .art-frame span {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray);
}
.art-item.placeholder:hover .art-frame { border-color: var(--gray); }

/* ── Lightbox ── */
.lb {
  position: fixed;
  inset: 0;
  background: rgba(250, 250, 250, 0.96);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 56px 72px;
}
.lb.open { display: flex; }
.lb img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,0.12); }
.lb img.dark { background: #111; }
.lb figcaption {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--mid);
}
.lb figcaption b { font-weight: 400; color: var(--black); margin-right: 10px; }
.lb button {
  position: absolute;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--black);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 2rem;
  line-height: 1;
  padding: 16px;
  opacity: 0.6;
}
.lb button:hover { opacity: 1; }
.lb .close { top: 16px; right: 20px; }
.lb .prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb .next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ── Writing list ── */
.works {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px 96px;
  list-style: none;
  border-top: 1px solid var(--line);
}

.work {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.work .meta {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
  line-height: 1.9;
}

.work h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.3;
}

.work h2 a { border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.work h2 a:hover { border-bottom-color: var(--black); }

.work p { margin-top: 8px; color: #4a4a4a; font-size: 0.95rem; }

.work .pages {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mid);
  white-space: nowrap;
}

/* ── Document reader ── */
.reader-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.reader-bar .title {
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.3;
  min-width: 0;
}

.reader-bar .sub {
  display: block;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mid);
  margin-top: 2px;
}

.reader-bar .actions { display: flex; gap: 12px; flex-shrink: 0; }

.btn {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 10px 18px;
  border: 1px solid var(--black);
  color: var(--black);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn:hover { background: var(--black); color: var(--white); }
.btn.ghost { border-color: var(--gray); color: var(--mid); }
.btn.ghost:hover { background: transparent; color: var(--black); border-color: var(--black); }

.sheets {
  background: var(--ground);
  padding: 48px 24px 72px;
}

.sheet {
  width: min(100%, 850px);
  margin: 0 auto 28px;
  background: var(--paper);
  box-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 10px 30px rgba(0,0,0,0.08);
}

.sheet img { width: 100%; height: auto; }

.sheet-num {
  width: min(100%, 850px);
  margin: -16px auto 28px;
  text-align: right;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--mid);
}

/* ── Prose pages (About, Contact) ── */
.prose {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px 96px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
}

.prose .side { position: sticky; top: 32px; align-self: start; }
.prose .side img { width: 220px; height: 220px; border-radius: 50%; object-fit: cover; filter: grayscale(100%); border: 1.5px solid var(--black); padding: 6px; }

.prose .body { max-width: 640px; }
.prose .body p { margin-bottom: 22px; font-size: 1.05rem; color: var(--ink); }
.prose .body p:first-child { font-family: var(--serif); font-size: 1.45rem; line-height: 1.5; color: var(--black); }

.facts {
  margin-top: 40px;
  border-top: 1px solid var(--line);
}
.facts div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.facts dt { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mid); padding-top: 4px; }
.facts dd { color: var(--ink); }

.contact-line {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.4;
  margin: 8px 0 32px;
}
.contact-line a { border-bottom: 1px solid var(--black); }

/* ── Footer ── */
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 24px 40px;
  border-top: 1px solid var(--line);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .art-grid { columns: 2; }
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 64px; }
  .doors { grid-template-columns: 1fr; }
  .door, .door + .door { padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .door:last-child { border-bottom: 0; }
  .work { grid-template-columns: 1fr; gap: 8px; }
  .prose { grid-template-columns: 1fr; gap: 36px; }
  .prose .side { position: static; }
}

@media (max-width: 600px) {
  .site-header, .page-head, .art-grid, .works, .reader-bar, .prose, .site-footer { padding-left: 20px; padding-right: 20px; }
  .site-header { flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 20px; padding-bottom: 18px; }
  .nav { justify-content: flex-start; gap: 6px 18px; }
  .art-grid { columns: 1; }
  .reader-bar { flex-direction: column; align-items: flex-start; gap: 12px; position: static; }
  .sheets { padding: 24px 12px 48px; }
  .lb { padding: 56px 16px; }
  .facts div { grid-template-columns: 1fr; gap: 4px; }
  .page-head { padding-top: 48px; }
}
