/* yety.studio — one stylesheet, no external fonts, no cookies */
:root {
  --bg: #ffffff;
  --fg: #111111;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --tag-off: #c4c4c4;
  --foot-gap: clamp(48px, 7vw, 96px); /* same space above the footer on every page */
  --header-bg: rgba(255, 255, 255, 0.8); /* white, 20% transparent */
  --gap: 6px;
  --pad: clamp(16px, 3vw, 32px);
  --font: "Helvetica Neue", Helvetica, "Nimbus Sans", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--hh, 140px); scrollbar-gutter: stable; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 16px/1.45 var(--font); letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  /* footer always at the bottom of the window, even on short pages */
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
}
main { flex: 1 0 auto; padding-bottom: var(--foot-gap); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; background: var(--fg); color: var(--bg); padding: 8px 12px; z-index: 100; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }

/* header */
.site-header {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px 80px; flex-wrap: wrap;
  padding: calc(var(--pad) + 4px) var(--pad) calc(var(--pad) + 8px);
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--header-bg);
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 21; background: var(--header-bg); }
.wordmark { font-weight: 700; font-size: clamp(19px, 2vw, 22px); letter-spacing: -0.02em; text-transform: uppercase; }
.nav { display: flex; gap: clamp(16px, 2.2vw, 28px); text-transform: uppercase; font-size: 30px; font-weight: 700; letter-spacing: -0.01em; }
.nav a { color: var(--fg); transition: color .15s ease; }
.nav a:hover, .nav a.is-active { color: var(--tag-off); }
.arrow { font-size: .8em; margin-left: 2px; }

/* category filter (left side of the header) */
.site-header { align-items: flex-start; flex-wrap: nowrap; }
.filters { display: flex; flex-wrap: wrap; gap: 6px 18px; min-width: 0; flex: 1 1 auto; font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .01em; line-height: 1.5; }
.filters a { color: var(--fg); white-space: nowrap; transition: color .15s ease; }
.filters a:hover { color: var(--tag-off); }
.filters a.is-active { color: var(--tag-off); }
.filters sup { font-size: 10px; font-weight: 700; margin-left: 2px; vertical-align: 5px; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.nav { flex: none; line-height: 1; margin-top: -4px; }
@media (max-width: 759px) {
  .site-header { flex-direction: column; gap: 22px; }
  .nav { order: -1; }
  .filters { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; width: 100%; padding-bottom: 6px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
}

/* grid (masonry; site.js balances columns, CSS columns is the no-JS fallback) */
.grid { padding: 0 var(--pad); columns: 3; column-gap: var(--gap); }
.grid.is-masonry { columns: auto; display: flex; gap: var(--gap); align-items: flex-start; }
.grid .col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--gap); }
.tile[hidden] { display: none; }
.tile { position: relative; display: block; break-inside: avoid; margin-bottom: var(--gap); }
.grid.is-masonry .tile { margin-bottom: 0; }
.tile-img { width: 100%; height: auto; aspect-ratio: var(--ar); object-fit: cover; background: #f3f3f3; transition: opacity .3s ease; }
/* hover: the cover fades towards white; click: it fades to white, then the project opens */
@media (hover: hover) {
  .tile:hover .tile-img, .tile:focus-visible .tile-img { opacity: .15; }
}
.tile.is-opening .tile-img { opacity: 0; transition-duration: .25s; }
.overlay:focus { outline: none; }
@media (max-width: 999px) { .grid { columns: 2; } }
@media (max-width: 559px) { .grid { columns: 1; } }

/* info */
.info { padding: 0 var(--pad); }
.info-bio { font-size: clamp(20px, 2.3vw, 30px); line-height: 1.25; letter-spacing: -0.015em; }
.info-bio > p { margin: 0 0 .8em; }
.info-section { margin-top: clamp(40px, 5vw, 72px); font-size: 15px; line-height: 1.45; letter-spacing: 0; }
.info-section h2 { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .01em; margin: 0 0 16px; }
.info-entries { columns: 3 280px; column-gap: var(--pad); }
.info-entries p { margin: 0 0 1.2em; break-inside: avoid; }
.info-entries p.line { margin: 0; }
.info { overflow-wrap: anywhere; }
/* project and info text: justified, last line (and lines before a line break) aligned left */
.info p, .project-text p, .project-text li { text-align: justify; text-align-last: left; hyphens: manual; }
.info-cols p + p { margin-top: .8em; }
/* Selected clients, Exhibitions, Contact: stacked, full width */
.info-cols { display: flex; flex-direction: column; gap: clamp(32px, 4vw, 48px); margin-top: clamp(40px, 6vw, 80px); font-size: 15px; }
.info-cols h2 { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .01em; margin: 0 0 16px; }
.info-cols h2:not(:first-child) { margin-top: 28px; }
.info-cols p, .info-cols ul { margin: 0; }
.info-cols ul { list-style: none; padding: 0; }
.project-text a { border-bottom: 1px solid var(--line); }
.project-text a:hover { border-bottom-color: currentColor; }
/* links in Info and in the footer: uppercase, solid black, grey on hover / click (like the tags) */
.info a, .footer-links a { color: var(--fg); text-transform: uppercase; text-decoration: none; transition: color .15s ease; }
.info a:hover, .info a:active, .footer-links a:hover, .footer-links a:active { color: var(--tag-off); }

/* footer */
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding: 24px var(--pad) 32px; font-size: 15px; color: var(--muted); align-items: baseline; margin: 0 var(--pad); padding-left: 0; padding-right: 0; }
.copyright { font-style: italic; font-weight: 700; font-size: 15px; color: var(--fg); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* project (page + overlay) */
.project { padding: 0; }
/* title + description: full width, start where the grid starts, scroll away with the images */
.project-head { padding: 0 var(--pad) 18px; }
.project-head h1 { font-size: clamp(22px, 2.6vw, 32px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin: 0; text-wrap: balance; }
.ph-row { margin-bottom: 10px; }
.project-head .year { color: var(--tag-off); }
.project-text em.credit { font-style: italic; }
.project-text { font-size: 15px; line-height: 1.45; }
.project-text p { margin: 0 0 .35em; }
.project-text p:last-child { margin-bottom: 0; }
/* bullet lists read as one line: a · b · c */
.project-text ul { list-style: none; padding: 0; margin: 0 0 .35em; }
.project-text li { display: inline; }
.project-text li + li::before { content: " · "; }
.project-images { padding: 0 var(--pad); margin-top: 8px; columns: 3; column-gap: var(--gap); }
.project-images .pimg { break-inside: avoid; margin-bottom: var(--gap); }
.project-images.is-masonry { columns: auto; display: flex; gap: var(--gap); align-items: flex-start; }
.project-images.is-masonry .pimg { margin-bottom: 0; }
.project-images .pcol { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--gap); }
.pimg { margin: 0; background: #f3f3f3; }
.pimg img { width: 100%; height: auto; display: block; }
/* overlay: same sticky footer inside the project view */
.overlay-body { min-height: 100%; display: flex; flex-direction: column; }
.overlay-body .project { flex: 1 0 auto; padding-bottom: var(--foot-gap); }

/* overlay: opens under the home header, which stays exactly as it is (tags, WORK, INFO, transparency) */
.overlay { position: fixed; inset: 0; background: var(--bg); z-index: 50; overflow-y: auto; overscroll-behavior: contain; padding-top: var(--hh0, 130px); }
.overlay[hidden] { display: none; }
body.ov-open .site-header { z-index: 60; }
/* sticky offsets inside the overlay are measured from below its top padding */
.ph-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 32px; }
body.ov-open { overflow: hidden; }


/* text pages */
.text-page { padding: 0 var(--pad); font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.text-page h1 { font-size: clamp(22px, 2.6vw, 32px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 24px; }
.text-page h2 { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .01em; margin: clamp(32px, 4vw, 48px) 0 16px; }
.text-page p, .text-page li { text-align: justify; text-align-last: left; hyphens: manual; margin: 0 0 .9em; }
.text-page a { color: var(--fg); text-decoration: none; transition: color .15s ease; }
.text-page a:hover, .text-page a:active { color: var(--tag-off); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
