* {
  box-sizing: border-box;
}

:root {
  --page-pad: clamp(18px, 2.4vw, 38px);
  --menu-width: clamp(150px, 15vw, 230px);
  --border: rgba(0, 0, 0, 0.18);
  --muted: rgba(0, 0, 0, 0.55);
  --font-size: 14px;
}

html {
  background: #fff;
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
  font-size: var(--font-size);
}

body {
  margin: 0;
  min-height: 100vh;
}

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

a:hover,
a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.site-header {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--menu-width);
  padding: var(--page-pad);
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 34px;
  background: #fff;
  border-right: 1px solid var(--border);
}

.site-name {
  font-weight: 600;
}

.site-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  line-height: 1.35;
}

.site-nav .active {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.home-grid {
  margin-left: var(--menu-width);
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr 0.78fr;
}

.home-column {
  min-width: 0;
  padding: var(--page-pad);
  border-right: 1px solid var(--border);
}

.home-column:last-child {
  border-right: 0;
}

.section-heading-row {
  min-height: 45px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 30px;
}

.section-heading-row h1,
.archive-title h1,
.bio-main h1 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.section-heading-row > a {
  color: var(--muted);
  white-space: nowrap;
}

.daily-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 7vh, 90px);
}

.daily-card {
  margin: 0;
}

.daily-card img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: contain;
  object-position: left top;
}

.home-images .daily-card img {
  max-height: calc(100vh - 130px);
  object-position: center top;
}

figcaption,
.item-meta {
  margin-top: 9px;
  line-height: 1.35;
  color: var(--muted);
}

.writing-list {
  display: flex;
  flex-direction: column;
}

.writing-item {
  padding: 0 0 22px;
  margin: 0 0 22px;
  border-bottom: 1px solid var(--border);
}

.writing-item:last-child {
  border-bottom: 0;
}

.writing-item a {
  display: block;
}

.writing-title {
  margin: 0 0 8px;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.35;
}

.writing-excerpt {
  margin: 0;
  line-height: 1.48;
  color: var(--muted);
  white-space: pre-line;
}

.archive-main,
.bio-main {
  margin-left: var(--menu-width);
  padding: var(--page-pad);
}

.archive-title {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: baseline;
  margin-bottom: 34px;
}

.archive-title p {
  margin: 0;
  color: var(--muted);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(35px, 6vw, 95px) clamp(20px, 3vw, 48px);
  align-items: start;
}

.archive-item {
  margin: 0;
  min-width: 0;
}

.archive-item button {
  display: block;
  border: 0;
  padding: 0;
  width: 100%;
  background: transparent;
  cursor: zoom-in;
  text-align: left;
}

.archive-item img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 72vh;
  object-fit: contain;
  object-position: left bottom;
}

.bio-main {
  max-width: 900px;
}

.bio-copy {
  margin-top: clamp(45px, 10vh, 120px);
  max-width: 620px;
  font-size: clamp(18px, 2.2vw, 30px);
  line-height: 1.3;
}

.bio-copy code {
  font-family: inherit;
  font-size: inherit;
}

.lightbox {
  border: 0;
  padding: 0;
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  background: rgba(255, 255, 255, 0.98);
  color: #111;
}

.lightbox::backdrop {
  background: rgba(255, 255, 255, 0.98);
}

.lightbox[open] {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 70px;
  align-items: center;
}

.lightbox figure {
  margin: 0;
  height: 100vh;
  padding: 48px 12px 34px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.lightbox img {
  width: 100%;
  min-height: 0;
  flex: 1;
  object-fit: contain;
}

.lightbox figcaption {
  flex: 0 0 auto;
}

.lightbox button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.lightbox-close {
  position: fixed;
  top: 17px;
  right: 21px;
  z-index: 3;
  font-size: 28px !important;
  line-height: 1;
}

.lightbox-prev,
.lightbox-next {
  height: 100%;
  font-size: 24px !important;
}

.loading,
.error {
  color: var(--muted);
}

.error {
  max-width: 38rem;
  line-height: 1.45;
}

@media (max-width: 900px) {
  :root {
    --menu-width: 100%;
  }

  .site-header {
    position: relative;
    inset: auto;
    width: 100%;
    padding: 18px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    gap: 18px;
  }

  .site-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 18px;
  }

  .home-grid {
    margin-left: 0;
    display: block;
  }

  .home-column {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 24px 18px 60px;
  }

  .archive-main,
  .bio-main {
    margin-left: 0;
    padding: 24px 18px;
  }

  .archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bio-copy {
    font-size: 21px;
  }
}

@media (max-width: 560px) {
  .archive-grid {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .lightbox[open] {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
  }

  .lightbox figure {
    padding-inline: 0;
  }
}


/* Prevent long URLs or unbroken text from escaping the writing column. */
.writing-item,
.writing-item a,
.writing-title,
.writing-excerpt {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.writing-item {
  overflow: hidden;
}


.archive-introduction {
  max-width: 820px;
  margin-bottom: clamp(60px, 10vw, 145px);
}

.archive-introduction h1 {
  margin: 0;
  font-size: clamp(26px, 3.5vw, 52px);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.025em;
}

.archive-medium {
  margin: 16px 0 0;
  color: var(--muted);
  font-style: italic;
}

.archive-description {
  margin-top: clamp(38px, 6vw, 78px);
  max-width: 720px;
  font-size: clamp(17px, 1.65vw, 23px);
  line-height: 1.5;
}

.archive-description p {
  margin: 0 0 1.2em;
}

.archive-instruction {
  margin: 32px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}


/* A very thin white mask hides crop/scan marks along the top edge of Ink images. */
body[data-page="ink"] .archive-item button {
  position: relative;
  overflow: hidden;
}

body[data-page="ink"] .archive-item button::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: #fff;
  pointer-events: none;
}

.film-main {
  margin-left: var(--menu-width);
  padding: var(--page-pad);
}

.film-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 34px;
}

.film-heading h1,
.film-heading p {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.film-heading p {
  color: var(--muted);
  font-weight: 400;
}

.film-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.film-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.film-description {
  max-width: 620px;
  margin: 18px 0 0;
  line-height: 1.45;
  color: var(--muted);
}

@media (max-width: 900px) {
  .film-main {
    margin-left: 0;
    padding: 24px 18px;
  }
}


/* Sculpture / Performance project index */
.projects-index {
  margin-left: var(--menu-width);
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
}

.projects-list,
.projects-preview {
  min-width: 0;
  padding: var(--page-pad);
}

.projects-list {
  border-right: 1px solid var(--border);
}

.projects-list h1 {
  margin: 0 0 clamp(45px, 9vh, 110px);
  font-size: 1rem;
  font-weight: 600;
}

.project-cover {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 12px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  cursor: pointer;
}

.project-cover:last-child {
  border-bottom: 1px solid var(--border);
}

.project-cover strong {
  font-size: clamp(20px, 2.2vw, 34px);
  font-weight: 400;
  line-height: 1.1;
}

.project-cover span,
.project-cover small {
  color: var(--muted);
  font-weight: 400;
}

.project-cover:hover strong,
.project-cover:focus-visible strong {
  font-style: italic;
}

.project-cover.is-placeholder {
  cursor: default;
}

.projects-preview {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.projects-preview img {
  width: 100%;
  min-height: 0;
  flex: 1;
  object-fit: contain;
  object-position: center;
}

.projects-preview p {
  margin: 14px 0 0;
  color: var(--muted);
}

/* Individual sculpture/performance project */
.project-split {
  margin-left: var(--menu-width);
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(290px, 0.72fr);
}

.project-media {
  padding: var(--page-pad);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 7vh, 95px);
}

.project-media img,
.project-media video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 88vh;
  object-fit: contain;
  background: #fff;
}

.project-text {
  position: sticky;
  top: 0;
  height: 100vh;
  align-self: start;
  padding: var(--page-pad);
  overflow-y: auto;
}

.project-back {
  display: inline-block;
  margin-bottom: clamp(55px, 12vh, 150px);
  color: var(--muted);
}

.project-text h1 {
  margin: 0;
  font-size: clamp(28px, 3.8vw, 58px);
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.project-meta {
  margin: 15px 0 0;
  color: var(--muted);
}

.project-description {
  margin-top: clamp(40px, 7vh, 90px);
  max-width: 44rem;
  font-size: clamp(16px, 1.45vw, 21px);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .projects-index,
  .project-split {
    margin-left: 0;
    display: block;
  }

  .projects-list {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .projects-preview {
    position: relative;
    height: 70vh;
  }

  .project-media {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .project-text {
    position: relative;
    height: auto;
  }
}


.project-video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.project-video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


.project-credits {
  margin-top: 2.2em;
  padding-top: 1.2em;
  border-top: 1px solid var(--border);
  font-size: 0.9em;
  color: var(--muted);
}

.project-credits p {
  margin: 0.35em 0;
}

.project-credits strong {
  color: #111;
  font-weight: 600;
}


.writing-image-item {
  margin: 0;
  min-width: 0;
}

.writing-image-item a {
  display: block;
}

.writing-image-item img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 150px);
  object-fit: contain;
  object-position: left top;
}

.writing-image-item figcaption {
  margin-top: 9px;
  color: var(--muted);
}


/* Show the complete found-text entry on the homepage, regardless of length. */
.home-writing .writing-item,
.home-writing .writing-item a,
.home-writing .writing-excerpt {
  overflow: visible;
  max-height: none;
}

.home-writing .writing-excerpt {
  white-space: pre-wrap;
}


/* Keep long writing entries readable: do not underline the entire linked block. */
.writing-item > a:hover,
.writing-item > a:focus-visible,
.writing-image-item > a:hover,
.writing-image-item > a:focus-visible {
  text-decoration: none;
}

.writing-item > a:hover .writing-title,
.writing-item > a:focus-visible .writing-title {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}


/* Homepage is a label-free, three-part composition. */
body[data-page="home"] .home-column {
  padding-top: var(--page-pad);
}

body[data-page="home"] .daily-card figcaption,
body[data-page="home"] .writing-image-item figcaption {
  display: none;
}

body[data-page="home"] .daily-card,
body[data-page="home"] .writing-image-item,
body[data-page="home"] .writing-item {
  margin-top: 0;
}


/* Give the two image columns more visual weight on the homepage. */
body[data-page="home"] .home-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.7fr) minmax(0, 1.35fr);
}

body[data-page="home"] .home-drawings,
body[data-page="home"] .home-images {
  padding: clamp(14px, 1.7vw, 26px);
}

body[data-page="home"] .home-drawings .daily-card img,
body[data-page="home"] .home-images .daily-card img {
  width: 100%;
  max-height: calc(100vh - 2 * clamp(14px, 1.7vw, 26px));
  object-fit: contain;
}

body[data-page="home"] .home-drawings .daily-card img {
  object-position: center top;
}

body[data-page="home"] .home-images .daily-card img {
  object-position: center top;
}

@media (max-width: 900px) {
  body[data-page="home"] .home-grid {
    display: block;
  }

  body[data-page="home"] .home-drawings .daily-card img,
  body[data-page="home"] .home-images .daily-card img {
    max-height: none;
  }
}


/* Smaller, more restrained descriptive copy across artwork and project pages. */
.archive-description {
  max-width: 680px;
  font-size: clamp(14px, 1.05vw, 17px);
  line-height: 1.55;
}

.project-description {
  max-width: 42rem;
  font-size: clamp(14px, 1.05vw, 17px);
  line-height: 1.55;
}

.project-credits {
  font-size: clamp(12px, 0.9vw, 14px);
}

.bio-copy {
  font-size: clamp(16px, 1.65vw, 23px);
}
