/* yety.studio — one stylesheet, no external fonts, no cookies */
:root {
  --bg: #ffffff;
  --fg: #111111;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --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; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 16px/1.45 var(--font); letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}
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; flex-wrap: wrap;
  padding: calc(var(--pad) + 4px) var(--pad) calc(var(--pad) + 8px);
}
.wordmark { font-weight: 700; font-size: clamp(19px, 2vw, 22px); letter-spacing: -0.02em; text-transform: uppercase; }
.nav { display: flex; gap: clamp(14px, 2vw, 24px); text-transform: uppercase; font-size: 15px; }
.nav a { padding-bottom: 1px; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a.is-active { border-bottom-color: currentColor; }
.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 16px; min-width: 0; max-width: 980px; font-size: 13px; text-transform: uppercase; letter-spacing: .02em; line-height: 1.6; }
.filters a { color: var(--muted); border-bottom: 1px solid transparent; white-space: nowrap; }
.filters a:hover { color: var(--fg); }
.filters a.is-active { color: var(--fg); border-bottom-color: currentColor; }
.filters sup { font-size: 9px; margin-left: 2px; vertical-align: 5px; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.nav { flex: none; line-height: 1.4; }
@media (max-width: 759px) {
  .site-header { flex-direction: column; gap: 14px; }
  .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; }
}
.meta a { border-bottom: 1px solid var(--line); }
.meta a:hover { color: var(--fg); border-bottom-color: currentColor; }

/* 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 { 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; }
.tile-label {
  position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px);
  background: var(--bg); color: var(--fg); font-size: 13px; line-height: 1.2; padding: 5px 7px;
  opacity: 0; transform: translateY(4px); transition: opacity .2s ease, transform .2s ease; pointer-events: none;
}
@media (hover: hover) {
  .tile:hover .tile-label, .tile:focus-visible .tile-label { opacity: 1; transform: none; }
}
@media (max-width: 999px) { .grid { columns: 2; } }
@media (max-width: 559px) {
  .grid { columns: 1; --gap: 28px; }
  .tile-label { position: static; display: block; opacity: 1; transform: none; padding: 8px 0 0; background: none; font-size: 14px; }
}

/* info */
.info { padding: clamp(64px, 10vw, 140px) var(--pad) clamp(48px, 7vw, 96px); scroll-margin-top: 24px; }
.info-bio { max-width: 30em; font-size: clamp(20px, 2.3vw, 30px); line-height: 1.25; letter-spacing: -0.015em; }
.info-bio p { margin: 0 0 .8em; }
.info-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px var(--pad); margin-top: clamp(40px, 6vw, 80px); font-size: 15px; }
.info-cols h2 { font-size: 13px; font-weight: 400; text-transform: uppercase; letter-spacing: .02em; color: var(--muted); margin: 0 0 10px; }
.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; }
.info a, .text-page a, .project-text a { border-bottom: 1px solid var(--line); }
.info a:hover, .text-page a:hover, .project-text a:hover { border-bottom-color: currentColor; }
@media (max-width: 759px) { .info-cols { grid-template-columns: 1fr; } }

/* footer */
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding: 24px var(--pad) 32px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); margin: 0 var(--pad); padding-left: 0; padding-right: 0; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--fg); }

/* project (page + overlay) */
.project { padding: 0 var(--pad) var(--pad); }
.project-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px; max-width: 1100px; margin: 0 auto; }
.project-head h1 { font-size: clamp(22px, 2.6vw, 32px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
.meta { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .02em; margin: 0; }
.project-text { max-width: 1100px; margin: 14px auto 28px; }
.project-text p { max-width: 38em; margin: 0 0 .6em; }
.project-text ul { padding-left: 1.1em; margin: 0 0 .6em; }
.project-images { display: flex; flex-direction: column; gap: var(--gap); max-width: 1100px; margin: 0 auto; }
.pimg { margin: 0; background: #f3f3f3; }
.pimg img { width: 100%; }
.pager { display: flex; justify-content: space-between; gap: 16px; padding: 32px var(--pad) 48px; max-width: calc(1100px + 2 * var(--pad)); margin: 0 auto; font-size: 15px; }
.pager a:hover { text-decoration: underline; }

/* overlay */
.overlay { position: fixed; inset: 0; background: var(--bg); z-index: 50; overflow-y: auto; overscroll-behavior: contain; }
.overlay[hidden] { display: none; }
.overlay-bar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: flex-end; gap: 4px; padding: 14px var(--pad); background: rgba(255,255,255,.92); backdrop-filter: blur(6px); }
.ov-btn { font: inherit; font-size: 15px; text-transform: uppercase; background: none; border: 0; padding: 6px 10px; cursor: pointer; color: var(--fg); }
.ov-btn:hover { text-decoration: underline; }
.ov-close { margin-left: 12px; }
.overlay .project { padding-top: 8px; }
body.ov-open { overflow: hidden; }

/* text pages */
.text-page { max-width: 42em; padding: 0 var(--pad) 64px; }
.text-page h1 { font-size: clamp(24px, 3vw, 36px); letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 24px; }
.text-page h2 { font-size: 13px; font-weight: 400; text-transform: uppercase; letter-spacing: .02em; color: var(--muted); margin: 40px 0 10px; }
.text-page p, .text-page li { font-size: 15px; }

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