/* Magyar Formatervezési Díj — a 2022/2023-as katalógus rendszere weben.
   Az akcentszín évenként változik (--accent), ahogy a katalógusokban: 2022 kék, 2023 magenta.
   Betű: Montserrat (OFL), beágyazva — a katalógus BrownAward betűje helyett (Richárd döntése, 2026-11-03).
   Latin + közép-európai részhalmaz, WOFF2 (_tools: fontTools.subset). */

@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 300; font-display: swap; src: local("Montserrat Light"), url("fonts/montserrat-light.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: local("Montserrat"), local("Montserrat Regular"), url("fonts/montserrat-regular.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: local("Montserrat Medium"), url("fonts/montserrat-medium.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: local("Montserrat Bold"), url("fonts/montserrat-bold.woff2") format("woff2"); }

:root {
  --ink: #1c242f;          /* katalógus: sötét felület */
  --accent: #1c5aa8;       /* katalógus 2022: kék — az évoldalak felülírják; formák, sávok */
  --accent-ink: #1c5aa8;   /* ugyanez szövegre fehér háttéren: a build sötétíti 4,5:1 kontrasztig */
  --paper: #ffffff;
  --mist: #f5f5f6;
  --text: #111418;
  --muted: #5d6470;
  --line: #d9dce1;
  --on-ink: #ffffff;
  --on-ink-muted: #a9b0bb;
  --font: "Montserrat", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --bar: 52px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 400 15px/1.55 var(--font); letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── fejléc: a katalógus futófejének mintájára ─────────────────────────── */
.bar {
  position: sticky; top: 0; z-index: 20; height: var(--bar);
  display: flex; align-items: center; gap: 28px; padding: 0 var(--gutter);
  background: var(--ink); color: var(--on-ink); font-size: 13px;
}
.bar .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; white-space: nowrap; }
.bar .brand svg { width: 14px; height: 26px; color: var(--on-ink); }
.bar .sep { width: 1px; height: 22px; background: rgba(255,255,255,.35); }
.bar nav { display: flex; gap: 24px; margin-left: auto; }
.bar nav a { text-decoration: none; color: var(--on-ink-muted); transition: color .15s; }
.bar nav a:hover, .bar nav a[aria-current="page"] { color: var(--on-ink); }
.bar nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); padding-bottom: 3px; }
.bar .lang { color: var(--on-ink); text-decoration: none; border: 1px solid rgba(255,255,255,.35); padding: 3px 9px; font-size: 12px; }
.bar .menu { display: none; margin-left: auto; background: none; border: 0; color: var(--on-ink); font: inherit; cursor: pointer; padding: 8px 0; }
@media (max-width: 920px) {
  .bar .menu { display: block; }
  .bar nav { display: none; position: absolute; top: var(--bar); left: 0; right: 0; flex-direction: column; gap: 0; background: var(--ink); padding: 8px var(--gutter) 20px; }
  .bar nav.open { display: flex; }
  .bar nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .bar .brand .long { display: none; }
}

/* ── címlap: a borító geometrikus M-F-D formái ─────────────────────────── */
.cover { background: var(--ink); color: var(--on-ink); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: min(calc(100vh - var(--bar)), 820px); }
.cover .shapes { color: var(--accent); align-self: stretch; display: flex; align-items: center; justify-content: center; padding: var(--gutter); }
.cover .shapes svg { width: 100%; max-width: 640px; height: auto; }
.cover .txt { display: flex; flex-direction: column; justify-content: space-between; padding: calc(var(--gutter) * 1.5) var(--gutter); }
.cover .mark svg { width: 46px; height: 84px; color: var(--on-ink); }
.cover h1 { font-weight: 400; font-size: clamp(30px, 4.2vw, 58px); line-height: 1.08; margin: 0 0 6px; letter-spacing: -.005em; }
.cover h1 .other { display: block; color: var(--on-ink-muted); }
.cover .dash { display: inline-block; width: 22px; height: 1px; background: currentColor; vertical-align: middle; margin-right: 8px; }
.cover p.lead { max-width: 34em; color: var(--on-ink-muted); font-size: 16px; }
.cover .stats { display: flex; gap: 40px; margin-top: 28px; }
.cover .stats b { display: block; font-size: 34px; font-weight: 400; color: var(--on-ink); }
.cover .stats span { font-size: 12px; color: var(--on-ink-muted); }
@media (max-width: 820px) { .cover { grid-template-columns: 1fr; } .cover .shapes { order: 2; } }

/* ── szakaszok ──────────────────────────────────────────────────────────── */
.wrap { padding: 0 var(--gutter); max-width: 1440px; margin: 0 auto; }
section.blk { padding: clamp(48px, 7vw, 96px) 0; position: relative; }
.kicker { font-size: 12px; color: var(--accent-ink); margin: 0 0 14px; }
.kicker .pipe { color: var(--muted); padding: 0 6px; }
h2.h { font-weight: 400; font-size: clamp(26px, 3vw, 40px); line-height: 1.12; margin: 0 0 28px; }
.side { position: absolute; top: clamp(48px, 7vw, 96px); right: calc(var(--gutter) * -0.6); writing-mode: vertical-rl; font-size: 11px; color: var(--accent-ink); white-space: nowrap; }
@media (max-width: 1500px) { .side { display: none; } }
.prose { max-width: 40em; font-size: 16px; }
.prose p { margin: 0 0 1em; }
.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 56px; }
@media (max-width: 760px) { .cols2 { grid-template-columns: 1fr; } }

/* elválasztó oldal: sötét mező + akcentforma, mint a kategórianyitók */
.divider { background: var(--ink); color: var(--on-ink); position: relative; overflow: hidden; min-height: 300px; display: flex; align-items: flex-end; }
.divider .wrap { width: 100%; padding-top: 72px; padding-bottom: 56px; position: relative; z-index: 1; }
.divider h1 { font-weight: 400; font-size: clamp(30px, 4vw, 54px); line-height: 1.08; margin: 0; }
.divider h1 .other { display: block; color: var(--on-ink-muted); }
.divider .shape { position: absolute; background: var(--accent); }
.divider.s1 .shape { right: 0; bottom: 0; width: 34%; height: 46%; }
.divider.s2 .shape { right: 12%; top: 0; width: 22%; height: 100%; }
.divider.s3 .shape { right: 0; top: 0; width: 46%; height: 100%; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.divider.s4 .shape { right: 0; bottom: 0; width: 46%; height: 62%; clip-path: polygon(0 0, 40% 0, 40% 45%, 100% 45%, 100% 100%, 0 100%); }
.divider.s5 .shape { right: 8%; bottom: 0; width: 30%; aspect-ratio: 1; border-radius: 50% 50% 0 0 / 50% 50% 0 0; height: auto; }

/* ── alkotás-csempe: négyzetes kép + sötét névcímke (tartalomjegyzék-lap) ── */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px 20px; }
.tile { text-decoration: none; display: block; }
.tile .lbl { font-size: 11.5px; color: var(--muted); margin: 0 0 8px; min-height: 2.6em; line-height: 1.3; }
.tile .img { position: relative; aspect-ratio: 1; background: var(--mist); overflow: hidden; }
.tile .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.tile:hover .img img { transform: scale(1.035); }
.tile .name { position: absolute; left: 0; bottom: 0; max-width: 92%; background: var(--ink); color: var(--on-ink); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 8px 10px; line-height: 1.25; }
.tile .noimg { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--accent); }
.tile .noimg svg { width: 22%; height: auto; opacity: .35; }
.tile .who { font-size: 12.5px; margin-top: 8px; color: var(--text); }

/* ── adatbázis: szűrők ─────────────────────────────────────────────────── */
.filters { display: grid; grid-template-columns: 2fr repeat(3, minmax(0, 1fr)) auto; gap: 12px; align-items: end; margin-bottom: 28px; }
.filters label { display: block; font-size: 11.5px; color: var(--accent-ink); margin-bottom: 6px; }
.filters input, .filters select { width: 100%; font: inherit; font-size: 14px; padding: 10px 12px; border: 1px solid var(--line); background: var(--paper); color: var(--text); border-radius: 0; }
.filters input:focus, .filters select:focus { border-color: var(--accent); outline: none; }
.filters button { font: inherit; font-size: 13px; padding: 10px 14px; border: 1px solid var(--ink); background: var(--paper); cursor: pointer; }
.filters button:hover { background: var(--ink); color: var(--on-ink); }
@media (max-width: 900px) { .filters { grid-template-columns: 1fr 1fr; } .filters .q { grid-column: 1 / -1; } }
.count { font-size: 13px; color: var(--muted); margin: 0 0 18px; }
.count b { color: var(--text); font-weight: 400; }
.empty { padding: 48px 0; color: var(--muted); }
.yearhead { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 14px; border-top: 1px solid var(--ink); padding-top: 12px; margin-top: 8px; }
.yearhead b { font-size: 28px; font-weight: 400; }
.yearhead span { font-size: 12px; color: var(--muted); }

/* ── alkotás-lap: a katalógus kiállított-mű oldalának rendje ─────────────── */
.work { padding: clamp(32px, 5vw, 64px) 0 clamp(48px, 7vw, 96px); }
.work .crumbs { font-size: 12px; color: var(--muted); margin-bottom: 24px; }
.work .crumbs a { color: var(--accent-ink); text-decoration: none; }
.gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.gallery figure { margin: 0; background: var(--mist); }
.gallery figure:first-child { grid-row: span 2; }
.gallery figure img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gallery .more { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
.gallery .more figure { aspect-ratio: 1; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr; } .gallery figure:first-child { grid-row: auto; } }
.work h1 { color: var(--accent-ink); font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin: 40px 0 4px; line-height: 1.15; }
.work .sub { font-size: 15px; margin: 0 0 6px; }
.work .meta { font-size: 13px; color: var(--muted); margin: 0 0 32px; }
.credits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 32px; margin: 0 0 40px; font-size: 14px; }
@media (max-width: 900px) { .credits { grid-template-columns: 1fr 1fr; } }
.credits dt { color: var(--accent-ink); font-size: 12.5px; margin-bottom: 4px; }
.credits dt .pipe { color: var(--accent-ink); padding: 0 5px; }
.credits dd { margin: 0; }
.credits dd a { text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.credits dd a:hover { color: var(--accent-ink); }
.texts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 56px; font-size: 15px; }
.texts h3 { font-size: 12.5px; font-weight: 400; color: var(--accent-ink); margin: 0 0 10px; }
.texts p { margin: 0 0 .9em; }
@media (max-width: 760px) { .texts { grid-template-columns: 1fr; } }
.pager { display: flex; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 48px; padding-top: 16px; font-size: 13px; }
.pager a { text-decoration: none; color: var(--accent-ink); }

/* ── idővonal ──────────────────────────────────────────────────────────── */
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.timeline li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.timeline .y { font-size: 26px; line-height: 1; color: var(--accent-ink); }
.timeline p { margin: 0; max-width: 46em; }
@media (max-width: 600px) { .timeline li { grid-template-columns: 1fr; gap: 6px; } }

/* ── kategóriák, katalógusok ───────────────────────────────────────────── */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.cat { padding: 28px 28px 32px 0; border-bottom: 1px solid var(--line); }
.cat h3 { font-weight: 400; font-size: 21px; margin: 0 0 4px; }
.cat .en { color: var(--muted); font-size: 13px; margin: 0 0 14px; }
.cat p { margin: 0 0 14px; }
.cat a { font-size: 13px; color: var(--accent-ink); text-decoration: none; }
.crit { columns: 2; column-gap: 56px; padding-left: 1.1em; }
.crit li { margin-bottom: 8px; break-inside: avoid; }
.crit li::marker { content: "—  "; color: var(--accent); }
@media (max-width: 700px) { .crit { columns: 1; } }

.cats-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 32px 20px; }
.book { text-decoration: none; display: block; }
.book .cv { aspect-ratio: 1; background: var(--ink); position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 14px; color: var(--on-ink); }
.book .cv img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.book .cv .yy { position: relative; font-size: 34px; line-height: 1; }
.book .cv .tt { position: relative; font-size: 11px; color: var(--on-ink-muted); }
.book .cv .band { position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: var(--c, var(--accent)); }
/* digitális archív kötet (1980–2002): az első csempe — sötét mező, átlós háromszög az év színében —
   és a 2003-as katalógusborító szalagívei halkan (Richárd iránya, 2026-11-03) */
.book .cv.digital .arch { position: absolute; inset: 0; width: 100%; height: 100%; }
.book .cv.digital .tt { position: absolute; left: 14px; bottom: 27%; max-width: 52%; color: #fff; font-size: 10px; line-height: 1.3; }
.book .info { font-size: 12.5px; margin-top: 8px; color: var(--muted); }
.book .info b { color: var(--text); font-weight: 400; }
.book:hover .cv { outline: 2px solid var(--c, var(--accent)); outline-offset: 3px; }
.digital-note { background: var(--mist); padding: 28px 32px; margin: 8px 0 40px; border-left: 3px solid var(--accent); }
.digital-note p { margin: 0 0 .7em; max-width: 52em; }

/* ── lábléc ────────────────────────────────────────────────────────────── */
footer.foot { background: var(--ink); color: var(--on-ink-muted); font-size: 12.5px; }
footer.foot .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding-top: 28px; padding-bottom: 28px; }
footer.foot a { color: var(--on-ink); text-decoration: none; }
footer.foot .pw { display: flex; align-items: center; gap: 10px; justify-content: center; }
footer.foot .pw img { width: 132px; height: auto; opacity: .95; }  /* Richárd, 2026-11-05: nagyobb i8-logó */
footer.foot .r { text-align: right; }
@media (max-width: 760px) { footer.foot .wrap { grid-template-columns: 1fr; text-align: left; } footer.foot .pw { justify-content: flex-start; } footer.foot .r { text-align: left; } }

/* ── képnéző ───────────────────────────────────────────────────────────── */
.lb { position: fixed; inset: 0; z-index: 50; background: rgba(20, 26, 34, .96); display: none; align-items: center; justify-content: center; }
.lb.on { display: flex; }
.lb img { max-width: 92vw; max-height: 86vh; object-fit: contain; }
.lb button { position: absolute; background: none; border: 0; color: #fff; font: inherit; font-size: 15px; cursor: pointer; padding: 16px; }
.lb .x { top: 8px; right: 12px; }
.lb .p { left: 8px; top: 50%; transform: translateY(-50%); font-size: 26px; }
.lb .n { right: 8px; top: 50%; transform: translateY(-50%); font-size: 26px; }
.lb .cap { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: var(--on-ink-muted); font-size: 12px; }

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

/* ── katalógus-nézőlap: a PDF a böngésző nézőjében, nem letöltésként ─────── */
.pdfnez { padding: 20px 0 0; }
.pdffej { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 14px; }
.pdffej .crumbs { width: 100%; margin: 0; font-size: 12px; color: var(--muted); }
.pdffej .crumbs a { color: var(--accent-ink); text-decoration: none; }
.pdffej h1 { font-weight: 400; font-size: 24px; margin: 0; }
.pdffej h1 span { display: block; font-size: 13px; color: var(--muted); }
.pdffej .gomb { margin-left: auto; font-size: 13px; padding: 10px 16px; border: 1px solid var(--ink); text-decoration: none; }
.pdffej .gomb:hover { background: var(--ink); color: var(--on-ink); }
.pdfv { display: block; width: 100%; height: calc(100vh - var(--bar) - 120px); min-height: 520px; border: 0; background: var(--mist); }

/* ── másodlagos szűrősor ────────────────────────────────────────────── */
.filters .more2 { grid-column: 1 / -1; display: grid; grid-template-columns: auto 2fr 2fr auto 1fr; gap: 12px; align-items: end; padding-top: 14px; border-top: 1px solid var(--line); }
.filters .lbl2 { font-size: 11.5px; color: var(--muted); align-self: center; white-space: nowrap; }
.filters .chk { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); margin: 0 0 10px; white-space: nowrap; }
.filters .chk input { width: auto; accent-color: var(--accent); }
.filters .az { justify-self: end; margin: 0 0 10px; text-decoration: none; }
@media (max-width: 900px) { .filters .more2 { grid-template-columns: 1fr 1fr; } .filters .lbl2 { grid-column: 1 / -1; } .filters .az { justify-self: start; } }
.count a.plap { margin-left: 14px; color: var(--accent-ink); text-decoration: none; border-bottom: 1px solid currentColor; }

/* ── alkotók ────────────────────────────────────────────────────────── */
.lede { max-width: 640px; color: var(--muted); margin: 0 0 28px; }
.az-nav { display: flex; flex-wrap: wrap; gap: 4px 2px; margin-bottom: 36px; position: sticky; top: var(--bar); background: var(--paper); padding: 10px 0; z-index: 2; border-bottom: 1px solid var(--line); }
.az-nav a { min-width: 30px; text-align: center; padding: 4px 6px; text-decoration: none; font-size: 14px; }
.az-nav a:hover { background: var(--ink); color: var(--on-ink); }
.az-grp { display: grid; grid-template-columns: 64px 1fr; gap: 0 24px; padding: 18px 0; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--bar) + 60px); }
.az-grp h2 { margin: 0; font-weight: 400; font-size: 34px; line-height: 1; color: var(--accent-ink); }
.az-grp ul { list-style: none; margin: 0; padding: 0; columns: 3 240px; column-gap: 32px; }
.az-grp li { break-inside: avoid; font-size: 14px; padding: 3px 0; }
.az-grp li a { text-decoration: none; }
.az-grp li a:hover { color: var(--accent-ink); }
.az-grp li span { color: var(--muted); font-size: 12px; }
.alkoto h1 { font-weight: 400; font-size: clamp(30px, 4vw, 48px); margin: 8px 0 6px; }
.alkoto .meta { color: var(--muted); margin: 0 0 36px; }
.alkoto .meta a { color: var(--accent-ink); }
.credits dd a.ext { border: 0; color: var(--accent-ink); }
