:root {
  --ink: #151515;
  --muted: #66615b;
  --line: #ddd8d0;
  --paper: #fffefb;
  --accent: #b92f2f;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

body {
  margin: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

.site-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 22px clamp(18px, 4vw, 52px);
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(14px);
}

.brand {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}

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

nav a,
.site-footer a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

nav a:hover,
.site-footer a:hover {
  color: var(--accent);
}

main {
  min-height: calc(100vh - 150px);
}

.home-clean {
  align-items: center;
  display: grid;
  gap: clamp(28px, 5vw, 70px);
  grid-template-columns: minmax(360px, 1.25fr) minmax(260px, 0.75fr);
  margin: 0;
  max-width: none;
  min-height: calc(100vh - 142px);
  padding: clamp(22px, 4vw, 52px) clamp(20px, 5vw, 64px);
}

.home-image img {
  margin: 0 auto;
  max-height: 74vh;
  object-fit: contain;
  width: min(100%, 880px);
}

.home-name h1 {
  font-size: clamp(52px, 9vw, 118px);
  font-weight: 500;
  line-height: 0.9;
  margin: 0;
}

.home-name h1 span {
  display: block;
}

.home-name p {
  color: var(--muted);
  font-size: clamp(17px, 2vw, 24px);
  margin: 26px 0 0;
}

h1 {
  font-size: clamp(34px, 5vw, 68px);
  font-weight: 500;
  line-height: 1;
  margin: 0 0 32px;
}

.project-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1600px;
  padding: 1px;
  background: var(--line);
}

.project-card {
  aspect-ratio: 4 / 3;
  background: #eeeae3;
  display: grid;
  overflow: hidden;
  position: relative;
  text-decoration: none;
}

.project-card img {
  height: 100%;
  object-fit: cover;
  width: 100%;
  transition: transform 320ms ease, filter 320ms ease;
}

.project-card span {
  align-self: end;
  background: linear-gradient(to top, rgb(0 0 0 / 0.62), transparent);
  color: white;
  font-size: clamp(16px, 2vw, 28px);
  grid-area: 1 / 1;
  padding: 64px 22px 20px;
  position: relative;
}

.project-card:hover img {
  filter: saturate(1.08);
  transform: scale(1.025);
}

.page {
  margin: 0 auto;
  max-width: var(--max);
  padding: clamp(36px, 7vw, 78px) clamp(18px, 4vw, 52px);
}

.page h1 {
  border-bottom: 1px solid var(--line);
  font-size: clamp(34px, 5vw, 60px);
  margin-bottom: clamp(28px, 5vw, 56px);
  padding-bottom: clamp(18px, 3vw, 32px);
}

.wp-content {
  font-size: clamp(17px, 1.6vw, 20px);
}

.wp-content > * + * {
  margin-top: 1.1rem;
}

.wp-content p,
.wp-content ul,
.wp-content ol {
  max-width: 880px;
}

.wp-content h2,
.wp-content h3 {
  font-weight: 500;
  line-height: 1.1;
  margin-top: 2.5rem;
}

.wp-content h2 {
  font-size: clamp(22px, 3vw, 38px);
}

.wp-content h3 {
  font-size: clamp(19px, 2.4vw, 28px);
}

.wp-block-columns {
  align-items: start;
  display: grid;
  gap: clamp(20px, 4vw, 48px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.wp-block-gallery,
.wp-block-group .wp-block-gallery {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  margin: 28px 0;
}

.wp-block-gallery figure,
.wp-block-image {
  margin: 0;
}

.wp-content figure img,
.wp-content > img {
  border: 1px solid rgb(0 0 0 / 0.06);
  width: 100%;
}

.wp-content figcaption {
  color: var(--muted);
  font-size: 13px;
  margin-top: 7px;
}

.aligncenter {
  margin-left: auto;
  margin-right: auto;
}

.has-text-align-center {
  text-align: center;
}

.has-text-align-right {
  text-align: right;
}

.site-footer {
  border-top: 1px solid var(--line);
  display: flex;
  gap: 18px;
  justify-content: flex-end;
  padding: 24px clamp(18px, 4vw, 52px) 34px;
}

.page-about {
  max-width: 1320px;
}

.page-about .wp-block-columns {
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
}

.page-about .wp-block-column:empty {
  display: none;
}

.page-about .wp-content p {
  max-width: 980px;
}

.page-publication .wp-content > .wp-block-group {
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}

.page-publication .wp-content > .wp-block-group p {
  margin: 0 0 7px;
}

.page-publication .wp-content > .wp-block-group p:first-child {
  font-size: 18px;
  line-height: 1.35;
  max-width: 960px;
}

.page-publication .wp-content > .wp-block-group + .wp-block-group {
  margin-top: 6px;
}

.artwork-page {
  margin: 0 auto;
  max-width: 1400px;
  padding: clamp(36px, 7vw, 78px) clamp(18px, 4vw, 52px);
}

.artwork-page h1 {
  border-bottom: 1px solid var(--line);
  font-size: clamp(34px, 5vw, 60px);
  padding-bottom: 24px;
}

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

.art-card {
  display: grid;
  gap: 10px;
  text-decoration: none;
}

.art-thumb {
  aspect-ratio: 3 / 4;
  background: #eee;
  display: block;
  overflow: hidden;
}

.art-thumb img {
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
  width: 100%;
}

.art-card.is-poster .art-thumb {
  background: #f3f1eb;
}

.art-card.is-poster .art-thumb img {
  object-fit: contain;
}

.art-card.is-text-cover .art-thumb {
  align-items: center;
  background: #171717;
  color: #f7f4ea;
  display: flex;
  justify-content: center;
}

.text-cover {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 600;
  line-height: 0.95;
  text-align: center;
}

.art-card:hover img {
  transform: scale(1.025);
}

.art-title {
  font-size: 17px;
  line-height: 1.25;
}

.art-year {
  color: var(--muted);
  font-size: 14px;
}

.page-experiences {
  max-width: 1180px;
}

.page-experiences .wp-block-columns {
  border-top: 1px solid var(--line);
  gap: 24px;
  grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1fr);
  padding: 28px 0;
}

.page-experiences .wp-block-columns:first-child {
  border-top: 0;
}

.page-experiences .wp-block-columns > .wp-block-column:first-child h2 {
  color: var(--ink);
  font-size: clamp(20px, 2.4vw, 30px);
  margin: 0;
}

.page-experiences .wp-block-group {
  margin-top: 0;
}

.page-experiences .wp-block-column:last-child > .wp-block-group {
  border-bottom: 1px solid rgb(0 0 0 / 0.08);
  display: grid;
  gap: 8px 20px;
  grid-template-columns: minmax(112px, 150px) minmax(0, 1fr);
  padding: 0 0 20px;
  margin-bottom: 20px;
}

.page-experiences .wp-block-column:last-child > .wp-block-group > p:first-child {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.page-experiences .wp-block-column:last-child > .wp-block-group > .wp-block-group {
  margin: 0;
}

.page-experiences h2.has-small-font-size,
.page-experiences .wp-block-column:last-child h2 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 4px;
}

.page-experiences .wp-block-column:last-child p {
  margin: 0;
  max-width: 820px;
}

.page-experiences .has-text-align-center,
.page-experiences .has-text-align-left {
  text-align: left;
}

.page-dreamscaping .video-embed,
.page-dreamscapes .video-embed {
  max-width: 520px;
}

.page-dreamscaping .video-fallback,
.page-dreamscapes .video-fallback {
  max-width: 520px;
}

.page-future-tense .video-embed {
  margin-left: auto;
  margin-right: auto;
  max-width: 760px;
}

.page-future-tense .video-fallback {
  margin-left: auto;
  margin-right: auto;
  max-width: 760px;
  text-align: center;
}

.page-nonhumotion .video-embed {
  margin-left: auto;
  margin-right: auto;
}

.page-nonhumotion .video-fallback {
  margin-left: auto;
  margin-right: auto;
  max-width: 900px;
  text-align: center;
}

.media-link {
  background: #f3f1eb;
  border: 1px solid var(--line);
  padding: 14px 16px;
}

.video-embed {
  aspect-ratio: 16 / 9;
  background: #111;
  margin: 18px 0;
  max-width: 900px;
  overflow: hidden;
}

.video-container {
  background: #111;
  height: 0;
  margin: 18px 0;
  max-width: 100%;
  overflow: hidden;
  padding-bottom: 56.25%;
  position: relative;
}

.video-embed iframe {
  border: 0;
  height: 100%;
  width: 100%;
}

.video-container iframe {
  border: 0;
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

.video-fallback {
  font-size: 14px;
  margin: 8px 0 22px;
}

.video-fallback a {
  color: var(--muted);
}

.project-photo-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 24px 0;
  max-width: 1100px;
}

.project-photo-grid.is-large {
  grid-template-columns: 1fr;
  max-width: 1180px;
}

.page-time-enough .project-photo-grid.is-large {
  max-width: none;
  width: 100%;
}

.page-time-enough .project-photo-grid.is-large img {
  height: auto;
  object-fit: contain;
}

.project-photo-grid figure {
  margin: 0;
}

.project-photo-grid img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  .home-clean {
    grid-template-columns: 1fr;
    min-height: auto;
  }

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

  .project-grid {
    grid-template-columns: 1fr;
  }

  .page-experiences .wp-block-columns,
  .page-experiences .wp-block-column:last-child > .wp-block-group {
    grid-template-columns: 1fr;
  }

  .page-about .wp-block-columns {
    grid-template-columns: 1fr !important;
  }

  .page-about .wp-block-column {
    grid-column: 1;
  }

  .project-photo-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    justify-content: flex-start;
  }
}
