/* ---------- base ---------- */
:root {
  --bg: #f6f4ef;
  --fg: #1a1a1a;
  --muted: #6b6b6b;
  --rule: #d8d4c8;
  --max: 1100px;
  --serif: "Times New Roman", ui-serif, Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 1.5rem;
  border-bottom: 1px solid var(--rule);
}

section:last-of-type { border-bottom: none; }

/* presentation-feel: each visual "page" fills the viewport with content centered */
.cover,
.bio-page,
.work,
.contact {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* artworks / websites wrappers become transparent — their child .work elements are the pages */
.artworks,
.websites {
  max-width: none;
  padding: 0;
  border-bottom: none;
}
.work {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  border-bottom: 1px solid var(--rule);
}
.work:last-child { border-bottom: none; }

/* bio section becomes a transparent container, its .bio-page children are the pages */
.bio {
  max-width: none;
  padding: 0;
  border-bottom: none;
}
.bio-page {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.bio-page:not(:last-child) {
  border-bottom: 1px solid var(--rule);
}

h1, h2, h3 { font-weight: 400; letter-spacing: -0.005em; }

h2 {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3rem;
}

h3 {
  font-size: 1.15rem;
  font-style: italic;
  margin-bottom: 0.4rem;
}

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.dim { color: var(--muted); font-style: normal; font-size: 0.95rem; }

/* ---------- cover ---------- */
.cover {
  padding: 10rem 1.5rem 8rem;
  text-align: center;
  border-bottom: 1px solid var(--rule);
}
.cover .name {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-style: italic;
  margin-bottom: 0.8rem;
}
.cover .tagline {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg);
  margin-bottom: 1.5rem;
}
.cover .cover-meta {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- bio ---------- */
.bio-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 4rem;
}
.portrait img {
  width: 100%;
  filter: saturate(0.95);
}
.bio-text p { font-size: 1.02rem; }

.statement {
  max-width: 92ch;
  margin: 0 auto;
}
.statement p { text-indent: 1.5em; }
.statement p:first-child { text-indent: 0; }

.bio h3 {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-style: normal;
  color: var(--muted);
  margin: 3rem 0 1.5rem;
}

/* ---------- artworks ---------- */
.work {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: center;
  align-content: center;
}
.work:last-child { margin-bottom: 0; }

.work figure { margin: 0; display: flex; justify-content: center; align-items: center; }
.work figure img {
  width: auto;
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  background: transparent;
}

.caption h3 {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 0.35rem;
}
.caption .category {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg);
  margin: 0 0 0.6rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule);
  display: inline-block;
  padding-right: 1.5rem;
}
.caption .meta {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.9rem;
}
.caption p { max-width: 60ch; }
.caption--top { margin-bottom: 1.5rem; }

.grid {
  display: grid;
  gap: 0.75rem;
}
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid figure img { width: 100%; max-height: none; }

/* cuck:Commercial series — 2x2 image grid on the left, caption on right */
.work--series {
  grid-template-columns: 1.6fr 1fr;
  align-items: center;
}
.work--series .grid {
  grid-column: 1;
  grid-row: 1;
}
.work--series .grid figure img {
  max-height: 35vh;
  width: 100%;
  object-fit: contain;
}
.work--series .caption--top {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
}

/* compact works — image constrained so the whole entry fits on one page */
.work--compact figure img {
  max-height: 55vh;
}

/* triple-product page: intro at top, 3 product cards across — Dating App Matrix */
.work--triple {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.triple-intro {
  text-align: center;
  max-width: 68ch;
  margin: 0 auto;
}
.triple-intro .category {
  display: inline-block;
  border-bottom: 1px solid var(--rule);
  padding: 0 1rem 0.5rem;
  margin: 0 0 1rem;
}
.triple-intro p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--fg);
}
.triple-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
.product figure {
  margin: 0 0 0.75rem;
  display: flex;
  justify-content: center;
}
.product figure img {
  width: 100%;
  max-height: 38vh;
  object-fit: contain;
}
.product h4 {
  font-size: 1rem;
  font-style: italic;
  font-weight: 400;
  margin: 0 0 0.25rem;
}
.product p {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

/* websites / publications page — 3 link cards in a row, intro at top */
.work--web {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.web-intro {
  text-align: center;
}
.web-intro .category {
  display: inline-block;
  border-bottom: 1px solid var(--rule);
  padding: 0 1rem 0.5rem;
  margin: 0;
}
.web-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
.web-card {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: opacity 0.2s;
}
.web-card:hover { opacity: 0.65; }
.web-thumb-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}
.web-thumb-pair .web-thumb {
  margin-bottom: 0;
}
.web-thumb {
  aspect-ratio: 4 / 3;
  background: #ece8dd;
  border: 1px solid var(--rule);
  margin-bottom: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0;
  text-align: center;
  overflow: hidden;
}
.web-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.web-thumb .thumb-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.web-thumb .thumb-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--fg);
}
.web-card h4 {
  font-size: 1rem;
  font-style: italic;
  font-weight: 400;
  margin: 0 0 0.3rem;
}
.web-card .web-url {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 0;
  word-break: break-all;
}

/* Commonwealth subsection — compact text-only cards */
.web-subsection {
  margin-top: 1rem;
}
.web-subsection .subhead {
  text-align: center;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.25rem;
}
.web-grid--compact {
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}
.web-card--compact {
  border: 1px solid var(--rule);
  padding: 0.85rem;
  background: transparent;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.web-card--compact .web-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  color: var(--fg);
  display: block;
  margin-top: 0.15rem;
}
.web-card--compact .web-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.web-card--compact .web-body {
  flex: 1;
  min-width: 0;
}
.web-card--compact h4 {
  font-size: 0.9rem;
  margin: 0 0 0.3rem;
}
.web-card--compact .web-summary {
  font-family: var(--serif);
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--fg);
  margin: 0 0 0.4rem;
}
.web-card--compact .web-url {
  font-size: 0.65rem;
  margin: 0;
}

/* paired works — two images stacked in the left column, caption on the right */
.work--pair {
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
}
.pair-images {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  align-items: center;
}
.pair-images figure {
  margin: 0;
  display: flex;
  justify-content: center;
}
.pair-images figure img {
  width: 100%;
  max-height: 38vh;
  object-fit: contain;
}
.work--pair .caption {
  grid-column: 2;
  grid-row: 1;
}

/* ---------- contact / footer ---------- */
.contact { text-align: left; }
.colophon {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .bio-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .cover { padding: 6rem 1.5rem 4rem; }
  section { padding: 4rem 1.5rem; }
}

/* ---------- print / PDF ---------- */
/* Landscape US Letter: 11in × 8.5in, usable ~9.8in × 7.3in with 0.6in margins */
@page {
  size: Letter landscape;
  margin: 0.5in 0.6in 0.6in 0.6in;
}

@media print {
  body {
    background: #fff;
    color: #111;
    font-size: 11pt;
    line-height: 1.5;
  }

  /* every section starts a new page; strip default screen padding */
  section {
    padding: 0;
    margin: 0;
    max-width: none;
    border: none;
    page-break-before: always;
    break-before: page;
  }
  section:first-of-type { page-break-before: auto; }

  /* reset screen presentation-page rules in print */
  .cover, .bio-page, .work, .contact {
    min-height: 0;
    padding: 0;
    margin: 0;
    max-width: none;
    border: none;
  }
  /* override higher-specificity screen border rules */
  .bio-page:not(:last-child),
  .work:not(:last-child),
  section:not(:last-of-type) {
    border-bottom: none;
  }

  /* COVER — vertically centered on landscape page */
  .cover {
    min-height: 7.2in;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .cover .name { font-size: 3.2rem; margin-bottom: 0.4rem; }

  /* BIO — first .bio-page = portrait + intro; second .bio-page = artist statement */
  .bio-page {
    page-break-before: always;
    break-before: page;
    page-break-inside: avoid;
    break-inside: avoid;
    display: block;
  }
  .bio-page:first-of-type { page-break-before: auto; }

  .bio-page > h2 { margin-bottom: 0.3in; }
  .bio-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 0.5in;
    align-items: center;
    margin: 0;
  }
  .portrait img { max-height: 5.5in; width: auto; margin: 0; }
  .bio-text p { font-size: 11pt; }

  /* Artist Statement page — heading + 2-column body sized to fill landscape page */
  .bio-page h3 {
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-style: normal;
    text-align: center;
    color: var(--muted);
    margin: 0 0 0.4in;
  }
  .statement {
    columns: 2;
    column-gap: 0.5in;
    column-fill: balance;
    max-width: none;
    font-size: 11.5pt;
    line-height: 1.6;
    orphans: 3;
    widows: 3;
  }
  .statement p { margin-bottom: 0.7em; text-indent: 1.2em; }
  .statement p:first-child { text-indent: 0; }

  /* ARTWORKS — no extra page for the wrapping section; each .work is one page */
  .artworks { page-break-before: auto; }
  .artworks > h2 { display: none; }

  .work {
    page-break-before: always;
    break-before: page;
    page-break-inside: avoid;
    break-inside: avoid;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 0.5in;
    align-items: center;
    align-content: center;
    margin: 0;
    min-height: 7.2in;
  }
  .work:first-of-type { page-break-before: auto; }

  .work figure { margin: 0; display: flex; justify-content: center; align-items: center; }
  .work figure img {
    max-height: 6.9in;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    background: transparent;
  }

  .caption h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
  .caption .meta { font-size: 0.65rem; margin-bottom: 0.5rem; }
  .caption p { font-size: 10.5pt; line-height: 1.5; }

  /* cuck:Commercial series — 2x2 grid on left, caption right */
  .work--series { grid-template-columns: 1.6fr 1fr; align-items: center; align-content: center; }
  .work--series .grid {
    grid-column: 1;
    grid-row: 1;
    gap: 0.15in;
  }
  .work--series .grid figure { display: block; }
  .work--series .grid figure img {
    max-height: 3.3in;
    width: 100%;
    object-fit: contain;
  }
  .work--series .caption--top {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
  }

  /* compact work override (Kotel close-up) */
  .work--compact figure img { max-height: 6in; }

  /* websites / publications layout in print */
  .work--web {
    display: flex;
    flex-direction: column;
    gap: 0.3in;
    justify-content: center;
    min-height: 7.2in;
  }
  .web-grid--featured {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.25in;
  }
  .web-thumb { aspect-ratio: 4 / 3; max-height: 2.6in; }
  .web-thumb .thumb-title { font-size: 1.1rem; }
  .web-card h4 { font-size: 11pt; margin: 0 0 0.1rem; }
  .web-card .web-url { font-size: 8.5pt; }

  .web-thumb-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.06in;
    margin-bottom: 0.1in;
  }
  .web-thumb-pair .web-thumb { margin-bottom: 0; max-height: 1.6in; }

  .web-subsection .subhead { font-size: 8pt; margin: 0 0 0.18in; }
  .web-grid--compact {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.12in;
  }
  .web-card--compact {
    padding: 0.1in 0.12in;
    border: 1px solid #d8d4c8;
    display: flex;
    gap: 0.1in;
    align-items: flex-start;
  }
  .web-card--compact .web-icon { width: 18px; height: 18px; flex-shrink: 0; }
  .web-card--compact h4 { font-size: 9.5pt; margin: 0 0 0.05in; }
  .web-card--compact .web-summary { font-size: 8pt; line-height: 1.35; margin: 0 0 0.06in; }
  .web-card--compact .web-url { font-size: 7pt; margin: 0; }

  /* triple-product layout in print */
  .work--triple {
    display: flex;
    flex-direction: column;
    gap: 0.35in;
    align-items: stretch;
    justify-content: center;
    min-height: 7.2in;
  }
  .triple-intro {
    max-width: 5.8in;
    margin: 0 auto;
    text-align: center;
  }
  .triple-intro p { font-size: 11pt; line-height: 1.6; }
  .triple-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.35in;
  }
  .product figure img { max-height: 4.5in; width: 100%; object-fit: contain; }
  .product h4 { font-size: 11pt; font-style: italic; margin: 0 0 0.1rem; }
  .product p { font-size: 10pt; color: #6b6b6b; margin: 0; }

  /* paired work: two images stacked on the left, caption right */
  .work--pair { grid-template-columns: 1.4fr 1fr; align-content: center; }
  .work--pair .pair-images {
    grid-column: 1;
    grid-row: 1;
    gap: 0.15in;
  }
  .work--pair .pair-images figure img {
    max-height: 3.3in;
    width: 100%;
    object-fit: contain;
  }
  .work--pair .caption {
    grid-column: 2;
    grid-row: 1;
  }

  /* CONTACT */
  .contact {
    min-height: 7.2in;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  .colophon { padding: 0; margin: 0.3in 0 0; text-align: center; max-width: none; }

  h2, h3 { page-break-after: avoid; break-after: avoid; }
  figure { page-break-inside: avoid; break-inside: avoid; }
}
