/* Direction B: "The frame and the picture" — neutral frame, each project brings its colour. */
@font-face {
  font-family: "Catamaran";
  src: url("fonts/Catamaran-Variable.ttf") format("truetype");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --bg: #fbfaf7;
  --bg-2: #f1efe9;
  --ink: #16171a;
  --ink-2: #55575e;
  --line: #dcd9d0;
  --link: #16171a;
  --plate: #ffffff;
  --neutral-hero: #23252b;      /* fallback "colour" for projects without one */
  --item-red: #f90c10;           /* sampled from the I.T.E.M. logo */
  --item-mint: #6dfaa6;          /* the logo's green */
  --focus: #d70a0e;
  --shadow: 0 18px 40px -12px rgba(0,0,0,.45), 0 4px 10px rgba(0,0,0,.2);
  --font: "Catamaran", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 16px;
  --wrap: 76rem;
  --pad: max(var(--gutter), calc((100% - var(--wrap)) / 2));
  color-scheme: light dark;
}
@media (min-width: 40rem) { :root { --gutter: 32px; } }
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121316;
    --bg-2: #1c1d22;
    --ink: #f2f0ea;
    --ink-2: #a9abb3;
    --line: #34363d;
    --link: #f2f0ea;
    --plate: #ffffff;
    --neutral-hero: #2c2f37;
    --focus: var(--item-mint);
    --shadow: 0 18px 40px -12px rgba(0,0,0,.8), 0 4px 10px rgba(0,0,0,.5);
  }
}

/* text colour that is legible on an arbitrary project colour (oklab lightness switch) */
@supports (color: oklch(from red l c h)) {
  .project-card, .project-page, .index-preview { --on: oklch(from var(--c) clamp(0.15, (0.6 - l) * 1000, 0.98) 0 0); }
}

*, *::before, *::after { 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: 1.0625rem; line-height: 1.6; font-weight: 400;
  overflow-wrap: break-word; min-width: 0;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .16em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--item-mint); color: #111; }
h1, h2, h3 { line-height: 1.08; margin: 0; font-weight: 800; letter-spacing: -.02em; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: 8px; z-index: 100; transform: translateY(-200%); background: var(--ink); color: var(--bg); padding: 8px 14px; font-weight: 700; border-radius: 4px; }
.skip-link:focus { transform: none; }

/* ---------- Header ---------- */
.site-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 24px; padding: 14px var(--pad); background: var(--bg);
}
.site-header__brand { display: block; line-height: 0; flex: none; }
.site-header__logo { width: 112px; height: auto; }
@media (min-width: 40rem) { .site-header__logo { width: 136px; } }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 4px; }
.site-nav__list { display: flex; flex-wrap: wrap; gap: 0 4px; list-style: none; margin: 0; padding: 0; }
.site-nav__link, .site-nav__lang {
  display: inline-block; padding: 8px 10px; font-weight: 700; font-size: .95rem; text-decoration: none; color: var(--ink);
  border-bottom: 3px solid transparent; line-height: 1.2;
}
.site-nav__link:hover { border-bottom-color: var(--item-mint); }
.site-nav__link[aria-current="page"] { border-bottom-color: var(--item-red); }
.site-nav__lang { color: var(--ink-2); border: 1.5px solid var(--line); border-radius: 999px; padding: 4px 12px; margin-left: 6px; font-size: .85rem; letter-spacing: .06em; }
.site-nav__lang:hover { border-color: var(--item-mint); background: color-mix(in srgb, var(--item-mint) 25%, transparent); color: var(--ink); }
@media (max-width: 30rem) {
  .site-header { align-items: flex-start; }
  .site-nav { width: 100%; }
  .site-nav__link { padding: 6px 8px 6px 0; margin-right: 6px; font-size: .9rem; }
  .site-nav__lang { margin-left: auto; }
  .site-nav__list { flex: 1 1 auto; }
}

.site-main { display: block; min-width: 0; }

/* ---------- Section titles ---------- */
.section-title { font-size: .9rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-2); margin: 0 0 20px; display: flex; align-items: baseline; gap: 10px; }
.section-title::before { content: ""; flex: none; align-self: center; width: 18px; height: 4px; background: var(--item-mint); }
.section-title a { color: inherit; text-decoration: none; }
.section-title a:hover { text-decoration: underline; }

/* ---------- Home ---------- */
.home-intro { padding: clamp(40px, 8vw, 104px) var(--pad) clamp(32px, 5vw, 64px); }
.home-intro__title { font-size: clamp(1.15rem, 2.4vw, 1.4rem); font-weight: 700; letter-spacing: 0; color: var(--ink-2); margin-bottom: 20px; }
.home-intro__tagline { font-size: clamp(2.2rem, 7.5vw, 5.4rem); font-weight: 900; line-height: 1; letter-spacing: -.035em; margin: 0 0 28px; max-width: 16ch; text-wrap: balance; }
.home-intro__tagline::after { content: ""; display: inline-block; width: .16em; height: .16em; background: var(--item-red); margin-left: .08em; }
.home-intro__text { max-width: 42rem; font-size: 1.2rem; color: var(--ink-2); margin: 0; }

.current-projects { padding: 0 var(--pad) clamp(40px, 6vw, 80px); }
.current-projects__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }

.project-card {
  --c: var(--project-color, var(--neutral-hero));
  background: var(--c); color: var(--on, #fff); border-radius: 6px; overflow: hidden; min-width: 0;
}
@supports not (color: oklch(from red l c h)) {
  .project-card { --c: color-mix(in srgb, var(--project-color, #23252b) 55%, #000); color: #fff; }
}
.project-card__link { display: grid; gap: 8px; padding: clamp(20px, 3vw, 36px); color: inherit; text-decoration: none; height: 100%; align-content: start; }
.project-card__link:hover .project-card__title { text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .12em; }
.project-card__link:focus-visible { outline-color: var(--on, #fff); outline-offset: -6px; }
.project-card__media { display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.project-card--logo .project-card__media { background: #fff; border-radius: 4px; padding: 20px; min-height: 9rem; }
.project-card--logo .project-logo { max-height: 7rem; width: auto; max-width: 100%; margin: 0 auto; }
.project-card--cover .project-cover { max-height: 16rem; width: auto; box-shadow: var(--shadow); }
.project-card--typo .typo-cover { --cover-color: #fff; width: 100%; max-width: 12rem; }
.project-card__kicker { margin: 0; display: flex; gap: 10px; font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; opacity: .9; }
.project-card__title { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 900; line-height: 1; }
.project-card__summary { margin: 4px 0 0; font-size: 1rem; line-height: 1.5; max-width: 34rem; }

/* Project index */
.project-index { padding: 0 var(--pad) clamp(40px, 6vw, 80px); }
.project-index__list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); counter-reset: none; }
.project-row { --c: var(--project-color, var(--neutral-hero));  /* project brand colour; never the I.T.E.M. palette */ border-bottom: 1px solid var(--line); position: relative; }
.project-row__link {
  display: grid; grid-template-columns: 2.2rem 1fr auto; gap: 2px 14px; align-items: baseline; padding: 18px 0 18px 14px;
  color: var(--ink); text-decoration: none; position: relative;
}
.project-row__link::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 5px; background: var(--c); border-radius: 2px; }
.project-row__num { grid-column: 1; grid-row: 1; font-size: .85rem; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; padding-left: 4px; }
.project-row__title { grid-column: 2; grid-row: 1; font-size: clamp(1.35rem, 3.6vw, 2.1rem); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.project-row__years { grid-column: 3; grid-row: 1; font-weight: 700; font-size: .9rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.project-row__type { grid-column: 2 / -1; grid-row: 2; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); }
.project-row__summary { grid-column: 2 / -1; grid-row: 3; color: var(--ink-2); font-size: .98rem; line-height: 1.5; max-width: 46rem; margin-top: 4px; }
.project-row__link:hover .project-row__title { text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .12em; text-decoration-color: var(--c); }
.project-row__preview { display: none !important; }
@media (min-width: 60rem) {
  .project-row__link { grid-template-columns: 2.6rem minmax(0, 1.1fr) 11rem 6.5rem minmax(0, 1.4fr); align-items: baseline; padding: 20px 0 20px 16px; }
  .project-row__num, .project-row__title, .project-row__type, .project-row__years, .project-row__summary { grid-row: 1; margin: 0; }
  .project-row__num { grid-column: 1; } .project-row__title { grid-column: 2; }
  .project-row__type { grid-column: 3; } .project-row__years { grid-column: 4; }
  .project-row__summary { grid-column: 5; font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}
@media (hover: hover) and (pointer: fine) {
  .project-row__link { transition: padding-left .2s ease, background-color .2s ease; }
  .project-row:hover .project-row__link { background: color-mix(in srgb, var(--c) 10%, transparent); }
}

/* hover preview (assets/preview.js) */
.index-preview {
  --c: var(--project-color, var(--neutral-hero));
  position: fixed; left: 0; top: 0; z-index: 50; width: 15rem; padding: 14px; pointer-events: none;
  background: var(--c); color: var(--on, #fff); border-radius: 6px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transition: opacity .15s ease;
}
.index-preview.is-visible { opacity: 1; visibility: visible; }
.index-preview img { width: 100%; max-height: 16rem; object-fit: contain; background: #fff; padding: 12px; border-radius: 3px; }
.index-preview .typo-cover { --cover-color: #fff; max-width: none; width: 100%; color: #111; }
.index-preview .typo-cover__title { color: #111; }
@media (prefers-reduced-motion: reduce) { .index-preview { transition: none; } }
@supports not (color: oklch(from red l c h)) { .index-preview { --c: color-mix(in srgb, var(--project-color, #23252b) 55%, #000); color: #fff; } }

/* Book shelf */
.book-strip { padding: 0 0 clamp(40px, 6vw, 80px); background: var(--bg-2); padding-top: clamp(32px, 5vw, 56px); }
.book-strip .section-title { padding: 0 var(--pad); }
.book-strip__list {
  list-style: none; margin: 0; padding: 8px var(--pad) 28px; display: flex; gap: 20px; align-items: flex-end;
  overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--pad); overscroll-behavior-x: contain;
  border-bottom: 6px solid var(--item-mint);
}
.book-strip__item { flex: none; scroll-snap-align: start; }
.book-strip__item a { display: block; }
.book-strip__cover { height: clamp(11rem, 30vw, 17rem); width: auto; max-width: none; box-shadow: 0 10px 24px -8px rgba(0,0,0,.5); transition: transform .2s ease; }
.book-strip__item a:hover .book-strip__cover { transform: translateY(-6px); }
@media (prefers-reduced-motion: reduce) { .book-strip__cover { transition: none; } }
.book-strip__more { padding: 20px var(--pad) 0; margin: 0; font-weight: 700; }

/* ---------- Project page ---------- */
.project-page { --c: var(--project-color, var(--neutral-hero)); }
@supports not (color: oklch(from red l c h)) {
  .project-page { --c: color-mix(in srgb, var(--project-color, #23252b) 55%, #000); --on: #fff; }
}
.project-hero {
  background: var(--c); color: var(--on, #fff);
  display: grid; gap: 32px; align-items: center;
  padding: clamp(32px, 6vw, 88px) var(--pad);
}
@media (min-width: 52rem) { .project-hero { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; } }
.project-hero__kicker { margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-weight: 800; font-size: .9rem; text-transform: uppercase; letter-spacing: .12em; }
.project-hero__years::before { content: ""; display: inline-block; width: 1.6em; height: 2px; background: currentColor; vertical-align: middle; margin-right: 14px; opacity: .7; }
.project-hero__title { font-size: clamp(2.6rem, 10vw, 7.5rem); font-weight: 900; line-height: .92; letter-spacing: -.04em; margin: 0 0 24px; overflow-wrap: anywhere; hyphens: auto; text-wrap: balance; }
.project-hero__summary { font-size: clamp(1.1rem, 2vw, 1.5rem); line-height: 1.4; font-weight: 500; max-width: 38rem; margin: 0; }
.project-hero__media { min-width: 0; display: flex; justify-content: center; }
@media (min-width: 52rem) { .project-hero__media { justify-content: flex-end; } }
.project-hero__frame { max-width: 100%; }
.project-hero__frame--logo { background: #fff; padding: clamp(20px, 4vw, 44px); border-radius: 6px; box-shadow: var(--shadow); width: min(100%, 26rem); }
.project-hero__frame--logo img { max-height: 16rem; width: auto; margin: 0 auto; }
.project-hero__frame--cover img { max-height: 30rem; width: auto; box-shadow: var(--shadow); }
/* No image: the title already carries the hero, so skip the stand-in cover. */
.project-hero:has(.project-hero__frame--typo) { grid-template-columns: minmax(0, 1fr); }
.project-hero:has(.project-hero__frame--typo) .project-hero__media { display: none; }
.project-hero:has(.project-hero__frame--typo) .project-hero__summary { max-width: 48rem; }
.project-hero :focus-visible { outline-color: var(--on, #fff); }

.project-layout { display: grid; gap: 40px; padding: clamp(32px, 5vw, 72px) var(--pad); align-items: start; }
@media (min-width: 52rem) { .project-layout { grid-template-columns: 17rem minmax(0, 1fr); gap: 64px; } .project-facts { position: sticky; top: 24px; } }
@media (min-width: 52rem) { .project-layout { grid-template-columns: 17rem minmax(0, 40rem); } }

.project-facts { border-top: 6px solid var(--c); padding-top: 8px; min-width: 0; }
@media (max-width: 51.99rem) { .project-facts { order: 2; } }  /* phones: text first, facts after */
.facts { margin: 0; }
.facts__item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-2); margin-bottom: 2px; }
.facts dd { margin: 0; font-size: 1rem; line-height: 1.45; font-weight: 500; }
.facts__list { list-style: none; margin: 0; padding: 0; }
.facts__list li + li { margin-top: 4px; }
.facts a { overflow-wrap: anywhere; }
@media (max-width: 51.99rem) {
  .facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); column-gap: 24px; }
}

.project-body { min-width: 0; }
.role-note { font-weight: 700; padding: 10px 14px; border-left: 4px solid var(--c); background: var(--bg-2); margin: 0 0 24px; }
.fallback-notice { display: inline-block; font-size: .85rem; color: var(--ink-2); background: var(--bg-2); border: 1px dashed var(--line); padding: 4px 10px; border-radius: 4px; margin: 0 0 20px; }

.prose { font-size: 1.125rem; line-height: 1.7; max-width: 40rem; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol, .prose blockquote { margin: 0 0 1.1em; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 1.8em 0 .5em; }
.prose h3 { font-size: 1.25rem; margin: 1.6em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .3em; }
.prose blockquote { border-left: 4px solid var(--c, var(--ink)); padding: 2px 0 2px 1.1em; font-size: 1.2em; font-weight: 500; }
.prose a { text-decoration-color: var(--c, var(--item-mint)); text-decoration-thickness: .14em; }
.prose a:hover, .book__shop a:hover, .book-strip__more a:hover { background: color-mix(in srgb, var(--item-mint) 40%, transparent); text-decoration-color: currentColor; }
.prose strong { font-weight: 800; }

.gallery { margin-top: 40px; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); }
.gallery img { width: 100%; }

/* ---------- Books ---------- */
.books { padding: clamp(32px, 5vw, 72px) var(--pad); background: var(--bg-2); scroll-margin-top: 0; }
.books .section-title { font-size: clamp(1.8rem, 5vw, 3rem); text-transform: none; letter-spacing: -.03em; color: var(--ink); font-weight: 900; margin-bottom: 12px; }
.books__count { font-size: .9rem; font-weight: 800; color: var(--bg); background: var(--c, var(--ink)); color: var(--on, #fff); padding: 2px 10px; border-radius: 999px; letter-spacing: 0; }
.books__note { color: var(--ink-2); max-width: 42rem; margin: 0 0 32px; }
.books__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
@media (min-width: 40rem) { .books__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; } }
@media (min-width: 64rem) { .books__list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.book { min-width: 0; scroll-margin-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.book:target .book__title { background: color-mix(in srgb, var(--item-mint) 45%, transparent); }
.book__media { display: flex; align-items: flex-end; justify-content: center; aspect-ratio: 2 / 3; }
.book__cover { max-height: 100%; width: auto; max-width: 100%; box-shadow: 0 14px 28px -10px rgba(0,0,0,.55); }
.book__media .typo-cover { width: 100%; max-width: none; box-shadow: 0 14px 28px -10px rgba(0,0,0,.55); }
/* books without a cover image take the series colour (Kijárat blue) */
.book__title { font-size: 1.15rem; font-weight: 800; line-height: 1.15; }
.book__subtitle { margin: -8px 0 0; font-size: .92rem; color: var(--ink-2); line-height: 1.4; }
.book__gloss { margin: -8px 0 0; font-size: .85rem; font-style: italic; color: var(--ink-2); }
.book__meta { margin: 0; font-size: .85rem; }
.book__meta div { display: flex; gap: 8px; padding: 3px 0; border-top: 1px solid var(--line); }
.book__meta dt { flex: none; width: 5.2rem; font-weight: 800; color: var(--ink-2); }
.book__meta dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.book__shop { margin: 0; font-size: .9rem; font-weight: 700; }

/* ---------- Typographic cover ---------- */
.typo-cover {
  --tc: var(--cover-color, var(--project-color, var(--neutral-hero)));
  aspect-ratio: 2 / 3; width: 100%; max-width: 16rem; display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(12px, 8%, 20px); background: var(--tc);
  color: oklch(from var(--tc) clamp(0.15, (0.6 - l) * 1000, 0.98) 0 0);
  container-type: inline-size; overflow: hidden; position: relative;
}
@supports not (color: oklch(from red l c h)) { .typo-cover { color: #fff; --tc: color-mix(in srgb, var(--cover-color, var(--project-color, #23252b)) 55%, #000); } }
.typo-cover::before { content: ""; position: absolute; right: 0; top: 0; width: 22%; aspect-ratio: 1; border-left: 3px solid currentColor; border-bottom: 3px solid currentColor; opacity: .0; }
.typo-cover__title { font-weight: 900; font-size: clamp(1.1rem, 13cqi, 2.4rem); line-height: .95; letter-spacing: -.03em; overflow-wrap: anywhere; hyphens: auto; text-transform: none; }
.typo-cover__meta { font-weight: 800; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; border-top: 2px solid currentColor; padding-top: 8px; }
.typo-cover--book .typo-cover__title { font-size: clamp(1rem, 11cqi, 1.6rem); }

/* ---------- Funding ---------- */
.funding { padding: clamp(32px, 5vw, 64px) var(--pad); border-top: 1px solid var(--line); }
.funder { display: grid; gap: 16px; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); align-items: center; padding: 20px 0; }
.funder + .funder { border-top: 1px solid var(--line); }
@media (max-width: 40rem) { .funder { grid-template-columns: 1fr; } }
.funder__link, .funder > .funder__logo, .funder > picture { display: block; background: #fff; padding: 14px 18px; border-radius: 4px; width: fit-content; max-width: 100%; }
.funder__logo { max-height: 4.5rem; width: auto; max-width: 100%; }
.funder__statement { margin: 0; font-size: .92rem; color: var(--ink-2); max-width: 44rem; line-height: 1.55; }
.funder__ref { margin: 4px 0 0; font-size: .85rem; color: var(--ink-2); font-weight: 700; }
/* picture swaps to a white logo in dark mode: keep the plate dark then */
@media (prefers-color-scheme: dark) {
  .funder--visegrad .funder__link { background: #1a1b1f; box-shadow: inset 0 0 0 1px var(--line); }
}

/* ---------- Pager ---------- */
.project-pager { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.project-pager a { display: flex; flex-direction: column; gap: 4px; padding: 28px var(--pad); color: var(--ink); text-decoration: none; min-width: 0; }
.project-pager a:hover { background: var(--bg-2); }
.project-pager__next { text-align: right; align-items: flex-end; grid-column: 2; border-left: 1px solid var(--line); }
.project-pager__prev { grid-column: 1; }
.project-pager__label { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-2); }
.project-pager__title { font-size: clamp(1.05rem, 3vw, 1.6rem); font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; }

/* ---------- Text pages ---------- */
.page-header { padding: clamp(40px, 8vw, 96px) var(--pad) 8px; }
.page-header__title { font-size: clamp(2.4rem, 8vw, 5.5rem); font-weight: 900; line-height: .95; letter-spacing: -.04em; }
.page-header__title::after { content: ""; display: inline-block; width: .14em; height: .14em; background: var(--item-red); margin-left: .06em; }
.page-body { padding: clamp(24px, 4vw, 48px) var(--pad) clamp(40px, 6vw, 80px); }
.page-body > * { max-width: 40rem; }
.page-body .section-title { margin-top: 48px; }
.page-rolunk .prose h2, .page-kapcsolat .prose h2 { font-size: 1.6rem; }
.contact { margin: 0 0 8px; }
.contact__item { padding: 16px 0; border-top: 1px solid var(--line); }
.contact dt, .legal dt { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-2); }
.contact dd { margin: 2px 0 0; font-size: 1.3rem; font-weight: 700; overflow-wrap: anywhere; }
.legal { margin: 0; }
.legal > div { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.legal dt { flex: 0 0 11rem; padding-top: .25em; }
.legal dd { margin: 0; font-weight: 600; }
.board { list-style: none; padding: 0; margin: 0; }
.board li { padding: 10px 0; border-top: 1px solid var(--line); font-weight: 700; font-size: 1.1rem; }

/* 404 */
.notfound-page .site-main { padding: 64px var(--pad); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink); color: var(--bg); padding: 40px var(--pad) 32px; margin-top: 0;
  display: grid; gap: 24px 48px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); font-size: .95rem; position: relative;
}
.site-footer::before { content: ""; position: absolute; left: var(--pad); top: 0; width: 56px; height: 6px; background: var(--item-red); box-shadow: 64px 0 0 var(--item-mint); }
.site-footer a { color: inherit; }
.site-footer :focus-visible { outline-color: var(--item-mint); }
.site-footer p { margin: 0 0 4px; }
.site-footer__name { font-weight: 800; font-size: 1.1rem; }
.site-footer__legal { margin: 0; }
.site-footer__legal div { display: flex; gap: 10px; flex-wrap: wrap; }
.site-footer__legal dt { font-weight: 700; opacity: .7; }
.site-footer__legal dd { margin: 0; }
.site-footer__copy { grid-column: 1 / -1; opacity: .7; font-size: .85rem; border-top: 1px solid color-mix(in srgb, var(--bg) 25%, transparent); padding-top: 16px; margin-top: 8px; }
@media (prefers-color-scheme: dark) { .site-footer { background: #000; color: #f2f0ea; } }

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