/* Sinziana Velicescu. Shares type and spacing with studiovelicescu.com. */

:root {
  --ink: #000;
  --muted: #555;
  --faint: #f2f2f2;
  --bg: #fff;
  --gutter: 48px;
  --gap: 24px;
  --header: 96px;
  --font: 'Hanken Grotesk', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, p, dl, dd, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { padding-left: var(--gutter); padding-right: var(--gutter); }
.small { font-size: 13px; letter-spacing: 0.04em; }
.muted { color: var(--muted); }
.lede { font-size: 28px; line-height: 1.3; font-weight: 300; letter-spacing: -0.01em; text-wrap: balance; }

/* Header */
.site-header { height: var(--header); display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter); }
.logo { font-size: 14px; font-weight: 300; letter-spacing: 0.2em; }
.nav { display: flex; gap: 40px; font-size: 13px; letter-spacing: 0.04em; }
.nav a { padding: 12px 0; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

/* Work index */
.covers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 72px 48px; padding-top: 24px; }
.cover { display: flex; flex-direction: column; gap: 14px; }
.cover:hover { text-decoration: none; }
.cover-img { aspect-ratio: 1 / 1; display: flex; align-items: flex-end; justify-content: flex-start; }
.cover-img img { width: 100%; height: 100%; object-fit: contain; object-position: left bottom; transition: opacity .25s; }
.cover:hover img { opacity: .85; }
.cover-title { font-size: 13px; letter-spacing: 0.04em; }
.cover:hover .cover-title { text-decoration: underline; text-underline-offset: 4px; }

/* Series */
.series-head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  align-items: start; padding-top: 72px; padding-bottom: 120px;
}
.series-title { grid-column: 1 / span 5; font-size: 28px; line-height: 1.2; font-weight: 300; letter-spacing: -0.01em; }
.statement { grid-column: 7 / span 6; display: flex; flex-direction: column; gap: 14px; max-width: 60ch; }
.notes { display: grid; grid-template-columns: 100px 1fr; row-gap: 6px; margin-top: 16px; font-size: 13px; }
.notes dt { color: var(--muted); }
.notes a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

.plates { display: flex; flex-direction: column; align-items: center; gap: 160px; padding: 0 var(--gutter); }
.plates img {
  width: auto; height: auto;
  max-width: min(100%, 1400px);
  max-height: calc(100svh - 160px);
}

.next {
  display: flex; justify-content: space-between; align-items: end; gap: 24px;
  margin-top: 160px; padding-top: 48px; padding-bottom: 0;
}
.next > a:first-child { font-size: 13px; letter-spacing: 0.04em; }
.next .to { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; font-size: 22px; font-weight: 300; }
.next .to .small { font-size: 13px; font-weight: 400; }

/* About */
.about {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 72px;
  padding-top: 72px;
}
.about .portrait { grid-column: 1 / span 4; }
.about .intro { grid-column: 6 / span 7; display: flex; flex-direction: column; gap: 16px; font-size: 16px; max-width: 62ch; }
.about .intro .lede { margin-bottom: 16px; }
.about .intro a, .about .col a, .film a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.about .col { grid-column: span 4; font-size: 14px; }
.about h2, .film h2 { font-size: 13px; font-weight: 400; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 16px; }
.about .col li { padding: 4px 0; }
.about .contact { display: grid; grid-template-columns: 90px 1fr; row-gap: 6px; font-size: 14px; margin-top: 16px; }
.about .contact dt { color: var(--muted); }
a.ext::after { content: " \2197"; display: inline-block; margin-left: 2px; }

/* Film */
.film { padding-top: 72px; max-width: 900px; }
.film .lede { margin-bottom: 56px; max-width: 30ch; }
.credits { border-bottom: 1px solid var(--ink); }
.credits li { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr) minmax(0, 1fr); gap: var(--gap); padding: 14px 0; border-top: 1px solid var(--ink); font-size: 14px; }
.credits .role, .credits .type { color: var(--muted); font-size: 13px; letter-spacing: 0.02em; }

.notfound { padding-top: 120px; display: flex; flex-direction: column; gap: 16px; }

/* Footer */
.site-footer {
  display: flex; flex-wrap: wrap; gap: 12px 40px; align-items: baseline;
  margin: 160px var(--gutter) 0; padding: 32px 0 48px; border-top: 1px solid var(--ink);
  font-size: 13px; letter-spacing: 0.04em;
}
.site-footer .signup { margin-left: auto; display: flex; gap: 16px; align-items: baseline; }
.signup input[type=email] { font: inherit; letter-spacing: inherit; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--muted); border-radius: 0; padding: 4px 0; width: 220px; }
.signup input[type=email]:focus { outline: none; border-bottom-color: var(--ink); }
.signup input::placeholder { color: var(--muted); }
.signup button { font: inherit; letter-spacing: inherit; color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* Tablet */
@media (max-width: 1024px) {
  :root { --gutter: 32px; }
  .covers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 32px; }
  .series-title, .statement { grid-column: 1 / -1; }
  .statement { margin-top: 24px; }
  .plates { gap: 112px; }
  .about .portrait { grid-column: 1 / span 5; }
  .about .intro { grid-column: 7 / -1; }
  .about .col { grid-column: span 6; }
}

/* Phone */
@media (max-width: 680px) {
  :root { --gutter: 16px; --gap: 12px; --header: 64px; }
  .logo { font-size: 13px; letter-spacing: 0.16em; }
  .nav { gap: 24px; }
  .covers { gap: 40px 16px; padding-top: 8px; }
  .cover { gap: 10px; }
  .cover-title { font-size: 12px; }
  .series-head { padding-top: 40px; padding-bottom: 64px; }
  .series-title { font-size: 24px; }
  .plates { gap: 56px; }
  .plates img { width: 100%; max-height: none; }
  .next { flex-direction: column; align-items: flex-start; margin-top: 96px; }
  .next .to { align-items: flex-start; text-align: left; }
  .about { padding-top: 40px; row-gap: 48px; }
  .about .portrait { grid-column: 1 / -1; width: 60%; }
  .about .intro, .about .col { grid-column: 1 / -1; }
  .lede { font-size: 22px; }
  .film { padding-top: 40px; }
  .credits li { grid-template-columns: 1fr; gap: 2px; }
  .site-footer { margin-top: 96px; font-size: 12px; gap: 6px 20px; }
  .site-footer .muted { margin-left: 0; width: 100%; }
  .site-footer .signup { margin-left: 0; width: 100%; }
  .signup input[type=email] { flex: 1; width: auto; }
}

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

/* Exhibitions and publications */
.gallery { display: flex; flex-direction: column; gap: 120px; padding-top: 40px; }
.g-group { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 24px; }
.g-head { grid-column: 1 / span 3; display: flex; flex-direction: column; gap: 6px; font-size: 13px; letter-spacing: 0.02em; }
.g-title { font-size: 15px; font-weight: 400; letter-spacing: 0; }
.g-grid { grid-column: 4 / -1; columns: 2; column-gap: var(--gap); }
.g-group:not(:has(.g-head)) .g-grid { grid-column: 4 / -1; }
.g-grid figure { break-inside: avoid; margin-bottom: var(--gap); }
.g-grid img { width: 100%; height: auto; }

@media (max-width: 1024px) {
  .g-head, .g-grid, .g-group:not(:has(.g-head)) .g-grid { grid-column: 1 / -1; }
  .gallery { gap: 88px; }
}
@media (max-width: 680px) {
  .site-header { height: auto; flex-direction: column; align-items: flex-start; gap: 4px; padding-top: 20px; padding-bottom: 12px; }
  .nav { gap: 20px; font-size: 12px; }
  .g-grid { columns: 1; }
  .gallery { gap: 64px; padding-top: 16px; }
}

.g-head a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* CV */
.cv { padding-top: 72px; max-width: 980px; display: flex; flex-direction: column; gap: 64px; }
.cv h2 { font-size: 13px; font-weight: 400; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 16px; }
.cv li { display: grid; grid-template-columns: 64px 1fr; gap: var(--gap); padding: 5px 0; font-size: 14px; }
.cv .yr { color: var(--muted); font-variant-numeric: tabular-nums; }
.cv ul.press { columns: 3; column-gap: var(--gap); }
.cv ul.press li { display: block; break-inside: avoid; }
@media (max-width: 680px) { .cv { padding-top: 40px; gap: 48px; } .cv li { grid-template-columns: 44px 1fr; } .cv ul.press { columns: 2; } }

/* Gallery reads left to right, row by row */
.g-grid { columns: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.g-grid figure { margin-bottom: 0; }
@media (max-width: 680px) { .g-grid { grid-template-columns: 1fr; } }

/* Film grid */
.film { max-width: none; }
.film-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px var(--gap); }
.film-item { display: flex; flex-direction: column; gap: 12px; }
.film-play, .film-frame { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; background: #000; cursor: pointer; }
.film-play img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.film-play:hover img { opacity: .85; }
.film-btn { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: rgba(255,255,255,.9); }
.film-btn::after { content: ""; position: absolute; left: 22px; top: 18px; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent #000; }
.film-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.film-item figcaption { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.film-title { font-size: 15px; }
.film-notes { margin-top: 6px; color: var(--muted); }
@media (max-width: 680px) { .film-grid { grid-template-columns: 1fr; gap: 40px; } }

.film-link { margin-top: 6px; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; align-self: flex-start; }

/* Film player overlay */
.film-modal { position: fixed; inset: 0; z-index: 60; background: #000; display: flex; align-items: center; justify-content: center; padding: 64px var(--gutter); }
.film-modal[hidden] { display: none; }
.film-modal-frame { position: relative; width: min(100%, calc((100svh - 128px) * 16 / 9)); aspect-ratio: 16 / 9; }
.film-modal-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.film-close { position: absolute; top: 16px; right: var(--gutter); background: none; border: 0; color: #fff; font: inherit; font-size: 13px; letter-spacing: 0.04em; padding: 12px 0; cursor: pointer; }
.film-close::after { content: " \00d7"; font-size: 18px; vertical-align: -1px; }
.film-close:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Gallery rows: images in a row share one height */
.g-rows { grid-column: 4 / -1; display: flex; flex-direction: column; gap: var(--gap); }
.g-row { display: flex; gap: var(--gap); align-items: flex-start; }
.g-row figure { min-width: 0; margin: 0; }
.g-row img { width: 100%; height: auto; display: block; }
@media (max-width: 1024px) { .g-rows { grid-column: 1 / -1; } }
@media (max-width: 680px) {
  .g-row { flex-direction: column; }
  .g-row figure, .g-solo figure { flex: none !important; width: 100% !important; }
}

/* Links page (link in bio) */
.links-page .nav, .links-page .site-footer .signup { display: none; }
.links { max-width: 560px; padding-top: 40px; display: flex; flex-direction: column; gap: 40px; }
.links-head { display: flex; flex-direction: column; gap: 14px; }
.links-head img { width: 100%; height: auto; display: block; }
.links-head p { margin: 0; color: var(--muted); font-size: 14px; letter-spacing: 0.02em; }
.link-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.link-list li { border-bottom: 1px solid var(--ink); }
.link-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0; text-decoration: none; }
.lk-t { font-size: 16px; letter-spacing: 0.02em; }
.lk-d { font-size: 13px; color: var(--muted); text-align: right; }
.link-list a:hover .lk-t { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.link-list .feature .lk-t { font-weight: 500; }
.links-news h2 { font-size: 13px; font-weight: 400; letter-spacing: 0.04em; color: var(--muted); margin: 0 0 6px; text-transform: uppercase; }
.links-news p { margin: 0 0 16px; font-size: 14px; }
.links .signup { display: flex; gap: 16px; align-items: baseline; }
.links .signup input[type=email] { flex: 1; width: auto; }
