/* cosminfazakas.ro — macheta C2: black, warm white, film red, a clapperboard; Fraunces for titles, Inter for text. Only own files. */

@font-face { font-family: Inter; src: url(fonts/inter-latin.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: Inter; src: url(fonts/inter-latin-ext.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-024F, U+0218-021B; }
@font-face { font-family: Fraunces; src: url(fonts/fraunces-latin.woff2) format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: Fraunces; src: url(fonts/fraunces-latin-ext.woff2) format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0100-024F, U+0218-021B; }

:root {
  --bg: #f7f5f2;
  --alt: #efebe6;
  --card: #fff;
  --text: #2a2a2a;
  --muted: #5e5b57;          /* 6.5:1 on the background */
  --ink: #0b0b0b;
  --red: #c21f27;            /* 5.6:1 on the background, white text on it 6:1 */
  --line: #e1dcd5;
  --line2: #c9c2b8;
  --head: Fraunces, Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.lb-open { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--head); color: var(--ink); line-height: 1.1; margin: 0 0 .45em; font-weight: 600; }
h2 { font-size: clamp(30px, 4vw, 44px); }
p { margin: 0 0 1em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--red); color: #fff; padding: 8px 14px; z-index: 20; }
.skip:focus { left: 8px; }

/* header with the clapperboard stripes under it */
.top { position: sticky; top: 0; z-index: 10; background: rgba(247, 245, 242, .94); backdrop-filter: blur(10px); }
.top::after { content: ""; display: block; height: 10px; background: repeating-linear-gradient(135deg, #0b0b0b 0 18px, #f7f5f2 18px 36px); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.name { font: 700 21px var(--head); color: var(--ink); text-decoration: none; }
nav { display: flex; gap: 22px; align-items: center; font-size: 15px; }
nav a { text-decoration: none; }
nav a.hide:hover { color: var(--red); }
.lang { display: flex; border: 1px solid var(--line2); border-radius: 999px; overflow: hidden; font-size: 13px; font-weight: 700; }
.lang a { padding: 5px 11px; }
.lang a.on { background: var(--red); color: #fff; }

/* buttons */
.btn { display: inline-block; padding: 14px 26px; border-radius: 4px; background: var(--red); color: #fff !important; font-weight: 700; text-decoration: none; }
.btn:hover { background: #a3181f; }
.btn.ghost { background: transparent; color: var(--ink) !important; box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.ghost:hover { box-shadow: inset 0 0 0 2px var(--red); color: var(--red) !important; }
.btn-small { padding: 10px 18px; font-size: 14px; }
.acts { display: flex; flex-wrap: wrap; gap: 10px; }
.acts.center { justify-content: center; }
.kicker { display: inline-block; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--red); font-weight: 700; margin-bottom: 10px; }
.lead { font-size: 19px; max-width: 540px; }

/* hero: black, the slate, the name, the photo */
.hero { background: #000; color: #d9d9d9; padding: 56px 0 0; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; align-items: end; }
.hero .txt { padding-bottom: 70px; }
.hero h1 { color: #fff; font-size: clamp(48px, 6.8vw, 90px); letter-spacing: -.01em; }
.hero h1 small { display: block; font-size: .42em; font-weight: 400; font-style: italic; color: #ddd; margin-top: .25em; letter-spacing: 0; }
.hero .kicker { color: #ff6b70; }
.hero .btn.ghost { color: #fff !important; box-shadow: inset 0 0 0 1.5px #fff; }
.hero .btn.ghost:hover { color: #ff6b70 !important; box-shadow: inset 0 0 0 2px #ff6b70; }
.hero img { max-height: 620px; width: auto; margin: 0 auto; }
.slate { width: min(420px, 100%); margin: 0 0 30px; font: 600 13px Inter, sans-serif; color: #fff; letter-spacing: .06em; }
.slate .bar { height: 34px; background: repeating-linear-gradient(135deg, #fff 0 26px, #000 26px 52px); border: 2px solid #fff; border-bottom: 0; transform: rotate(-6deg); transform-origin: left bottom; margin-bottom: 4px; }
.slate .bd { border: 2px solid #fff; display: grid; grid-template-columns: 1fr 1fr 1fr; }
.slate .bd span { padding: 8px 10px; border-right: 1px solid #fff; }
.slate .bd span:last-child { border-right: 0; }
.slate .bd b { display: block; font: 600 20px var(--head); letter-spacing: 0; }
.slate .bd .wide { grid-column: span 3; border-right: 0; border-bottom: 1px solid #fff; }

/* sections */
.block { padding: 90px 0; }
.alt { background: var(--alt); }
.imdb { display: inline-block; background: #f5c518; color: #000 !important; font: 900 13px Inter, sans-serif; padding: 3px 8px; border-radius: 4px; text-decoration: none; margin-left: 6px; vertical-align: 1px; }
.roles { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 18px; }
.roles li { display: grid; grid-template-columns: 110px 1fr; gap: 24px; padding: 24px; background: var(--card); border-radius: 4px; border: 1px solid var(--line); border-left: 5px solid var(--red); }
.roles .y { font: 700 34px var(--head); color: var(--red); }
.roles h3 { font-size: 24px; margin: 2px 0 4px; }
.roles .t { margin: 0; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.roles .r { margin: 0 0 8px; font-weight: 600; color: var(--red); }
.roles p { margin: 0; }
.roles .watch { margin-top: 12px; }
.roles .watch a { display: inline-block; font-weight: 700; text-decoration: none; padding: 8px 14px; border-radius: 4px; background: #0b0b0b; color: #fff; }
.roles .watch a:hover { background: var(--red); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.two img { border-radius: 4px; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* the gallery on a strip of film */
.strip { background: #0b0b0b; padding: 26px 0; margin-top: 30px; position: relative; }
.strip::before, .strip::after { content: ""; position: absolute; left: 0; right: 0; height: 12px; background: repeating-linear-gradient(90deg, transparent 0 10px, var(--bg) 10px 22px, transparent 22px 34px); }
.strip::before { top: 6px; }
.strip::after { bottom: 6px; }
.gal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 0 14px; }
.gal figure { margin: 0; }
.gal a { display: block; overflow: hidden; }
.gal img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .4s; }
.gal a:hover img { transform: scale(1.04); }
.gal figcaption { font-size: 13px; color: #bbb; margin-top: 6px; }
.new { margin-top: 22px; padding: 18px 22px; border: 1.5px dashed var(--line2); border-radius: 4px; color: var(--muted); }

.contact { text-align: center; }
.contact p { max-width: 600px; margin: 0 auto 22px; }
.mail { font: 700 clamp(22px, 3vw, 34px) var(--head); color: var(--ink); text-decoration: none; display: inline-block; margin-bottom: 24px; word-break: break-word; }
.mail:hover { color: var(--red); }

.prose h1 { font-size: clamp(36px, 5vw, 52px); }
.prose h2 { font-size: 26px; margin-top: 1.5em; }
.prose ul { padding-left: 20px; }

.foot { padding: 28px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.foot-in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.foot a:hover { color: var(--red); }

/* the gallery's big view (made by galerie.js) */
.lb { position: fixed; inset: 0; z-index: 50; background: rgba(5, 5, 5, .96); display: flex; align-items: center; justify-content: center; }
.lb[hidden] { display: none; }
.lb img { max-width: 92vw; max-height: 86vh; object-fit: contain; }
.lb button { position: absolute; background: none; border: 0; color: #fff; font-size: 46px; cursor: pointer; padding: 10px 18px; line-height: 1; }
.lb button[hidden] { display: none; }
.lb-x { top: 10px; right: 14px; }
.lb-pv { left: 8px; }
.lb-nx { right: 8px; }
.lb-ct { position: absolute; bottom: 12px; margin: 0; color: #bbb; font-size: 14px; letter-spacing: .1em; }

@media (max-width: 860px) {
  nav a.hide { display: none; }
  .hero-in, .two { grid-template-columns: 1fr; }
  .hero .txt { padding-bottom: 10px; }
  .hero img { max-height: 440px; }
  .gal { grid-template-columns: repeat(2, 1fr); }
  .roles li { grid-template-columns: 1fr; gap: 6px; }
  .block { padding: 60px 0; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .name { font-size: 18px; }
  nav { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gal img { transition: none; }
}
