/* Site styles. Decided with Dániel (2026-11-30):
   - Barely-grey white and light grey dominate; the artworks bring the colour.
   - The four accent colours are used ONLY to convey information
     (status, current page/slide, keyboard focus). Pink very sparingly.
   - System font stays.
   Content is still placeholder (wireframe stage). */
:root {
  --bg: #fafafa;       /* barely-not-white neutral grey (Dániel, 2026-12-03) */
  --ink: #1f1f1f;
  --muted: #595959;
  --line: #b5b5b5;
  --fill: #f0f0f0;
  --fill-strong: #dddddd;
  /* Accent colours: information only, never decoration */
  --orange: #ff6600;   /* safety orange: available, "you are here" */
  --mustard: #e1ad01;  /* work in progress */
  --gray: #808080;     /* mid grey: reserved / sold */
  --pink: #ff1493;     /* sparingly: keyboard focus, link hover, the dot after the P in the name */
  --focus: var(--pink);
  --radius: 4px;
  --wrap: 72rem;
  --gutter: max(16px, 4vw);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: inherit; }
a:not(.btn):not(.skip-link):hover { color: var(--pink); }
h1, h2, h3 { line-height: 1.2; text-wrap: balance; margin: 0 0 0.6em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); }
h2 { font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: 2.5rem; }
.section-tight { padding-block: 1.5rem; }
.narrow { max-width: 44rem; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--bg); padding: 0.5rem 1rem; z-index: 10; }
.skip-link:focus { left: 0; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.header-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; padding-block: 0.9rem; }
.brand-block { margin-right: auto; }
.brand { font-weight: 700; font-size: 1.15rem; text-decoration: none; }
.name-dot { color: var(--pink); }
.brand-tagline { margin: 0; font-size: 0.8rem; color: var(--muted); line-height: 1.3; }
.menu-toggle { display: none; }
.site-menu { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; flex-wrap: wrap; }
.nav-list a { text-decoration: none; padding-block: 0.25rem; }
.nav-list a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; text-underline-offset: 0.35em; font-weight: 600; }
.header-tools { display: flex; align-items: center; gap: 1rem; }
.lang-switch { margin: 0; display: flex; gap: 0.4rem; color: var(--muted); }
.lang-switch a, .lang-current { padding: 0.25rem 0.2rem; }
.lang-current { font-weight: 700; color: var(--ink); }
.ig-link { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; margin: -11px; color: var(--ink); }
.ig-link svg { display: block; }
@media (max-width: 47.99rem) {
  .js .menu-toggle { display: inline-block; font: inherit; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.4rem 0.9rem; min-height: 44px; }
  .js .site-menu { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 1rem; padding-block: 0.5rem 1rem; }
  .js .site-menu.is-open { display: flex; }
  .site-menu { flex-basis: 100%; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a { display: block; padding-block: 0.7rem; border-bottom: 1px solid var(--fill-strong); }
  .header-tools { justify-content: space-between; }
}

/* Placeholders */
.ph-block { border: 2px dashed var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; background: var(--fill); max-width: 65ch; }
.ph-block p { margin: 0.4rem 0 0; color: var(--muted); }
.ph-tag { display: inline-block; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid var(--line); padding: 0.1rem 0.4rem; background: var(--bg); color: var(--muted); }
.ph-inline { border-bottom: 2px dashed var(--line); color: var(--muted); }
.note { font-size: 0.85rem; color: var(--muted); }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0.6rem 1.4rem; background: var(--ink); color: var(--bg); text-decoration: none; border-radius: var(--radius); font-weight: 600; }
.btn-secondary { background: var(--bg); color: var(--ink); border: 1px solid var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.text-link { text-underline-offset: 0.2em; }
.btn-icon { width: 44px; height: 44px; border: 1px solid var(--ink); background: var(--bg); border-radius: 50%; font-size: 1.1rem; cursor: pointer; }
.btn-icon:disabled { opacity: 0.35; cursor: default; }

/* Status badges: colour carries the status, the word repeats it.
   Text stays dark on every fill for contrast. */
.badge { display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.15rem 0.55rem; border-radius: 999px; border: 2px solid transparent; color: var(--ink); }
.badge-available { background: var(--orange); }
.badge-wip { background: var(--mustard); }
.badge-reserved { background: var(--bg); border-color: var(--gray); }
.badge-sold { background: var(--fill-strong); color: var(--muted); }

/* Long titles without spaces (e.g. words_joined_by_underscores) must wrap, not widen the layout */
h1, h2, h3 { overflow-wrap: anywhere; }

/* Hero carousel */
.hero { padding-block: 1.5rem 0.5rem; }
.carousel-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none; border: 1px solid var(--line); border-radius: var(--radius); }
.carousel-track::-webkit-scrollbar { display: none; }
@media (prefers-reduced-motion: reduce) { .carousel-track { scroll-behavior: auto; } }
.slide { position: relative; min-width: 0; flex: 0 0 100%; scroll-snap-align: start; display: grid; gap: 0.75rem; padding: 0.75rem; }
.slide-media { display: flex; align-items: center; justify-content: center; height: clamp(260px, 60vh, 600px); background: var(--fill); overflow: hidden; }
.slide-media img { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
.slide-caption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1rem; }
.slide-title { margin: 0; font-size: 1.2rem; overflow-wrap: anywhere; }
.carousel-controls { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; padding-top: 0.75rem; }
.carousel-dots { list-style: none; display: flex; gap: 0.25rem; margin: 0; padding: 0; }
.dot { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
.dot::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; border: 1px solid var(--ink); }
.dot[aria-current="true"]::after { background: var(--orange); border-color: var(--orange); }
.carousel-status { margin: 0 0 0 auto; font-size: 0.85rem; color: var(--muted); }

/* Cards */
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1rem; }
.card-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr)); gap: 1.75rem 1.25rem; }
@media (min-width: 48rem) { .card-grid { grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); } }
/* Every card image sits in a fixed 4:5 frame. The image is positioned absolutely,
   so its own pixel size or shape can never stretch the frame or the grid column. */
.card { display: grid; gap: 0.4rem; align-content: start; min-width: 0; }
.card-link { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.5rem; text-decoration: none; }
.card-media { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--fill); overflow: hidden; }
.card-media img { position: absolute; inset: 0.5rem; width: calc(100% - 1rem); height: calc(100% - 1rem); max-width: none; object-fit: contain; }
.card-title { font-weight: 600; overflow-wrap: anywhere; }
.card-link:hover .card-title { text-decoration: underline; }
.card-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--muted); }

/* Works filter */
.filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.chip { font: inherit; min-height: 44px; padding: 0.4rem 1rem; border-radius: 999px; border: 1px solid var(--ink); background: var(--bg); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.filter-count { font-size: 0.85rem; color: var(--muted); margin: 0.75rem 0 1.25rem; }

/* Work page */
.breadcrumb { margin-bottom: 1.25rem; }
.work-layout { display: grid; gap: 2rem; }
@media (min-width: 56rem) { .work-layout { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; } .work-info { position: sticky; top: 5rem; } }
.gallery-stage { height: clamp(300px, 70vh, 680px); background: var(--fill); display: flex; align-items: center; justify-content: center; padding: 0.75rem; overflow: hidden; }
.gallery-stage img { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
.thumbs { list-style: none; margin: 0.75rem 0 0; padding: 0; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.thumb { width: 72px; height: 72px; padding: 4px; border: 1px solid var(--line); background: var(--fill); cursor: pointer; }
.thumb[aria-current="true"] { border: 2px solid var(--orange); }
.thumb img { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
.video-slot { margin-top: 1.25rem; aspect-ratio: 16 / 9; max-width: 100%; border: 2px dashed var(--line); background: var(--fill); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; text-align: center; padding: 1rem; color: var(--muted); }
.video-slot p { margin: 0; }
.work-videos { margin-top: 1.25rem; display: grid; gap: 0.75rem; }
.work-videos-multi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.work-video { display: block; width: 100%; background: var(--fill); }
.work-videos-multi .work-video { aspect-ratio: 9 / 16; object-fit: contain; background: #111; }
.work-text, .page-text { max-width: 65ch; }
.work-text p, .page-text p { margin: 0 0 1rem; }
.facts { margin: 1.25rem 0 1.5rem; display: grid; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding-block: 0.55rem; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.h-small { font-size: 1rem; }

/* Commissions */
.steps { list-style: none; counter-reset: step; margin: 0 0 0.75rem; padding: 0; display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.steps li { counter-increment: step; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; display: grid; gap: 0.3rem; align-content: start; }
.steps li::before { content: counter(step); font-weight: 700; font-size: 1.4rem; }
.step-name { font-weight: 600; }
.step-text { color: var(--muted); font-size: 0.95rem; }
/* Last step (Handover / Átadás): safety orange with white text (Dániel, 2026-12-03) */
.steps li:last-child { background: var(--orange); border-color: var(--orange); color: #fff; }
.steps li:last-child .step-text { color: #fff; }
.works-intro { font-weight: 700; }
.footer-tagline { margin: 0.1rem 0 0; font-size: 0.85rem; color: var(--muted); }
.paths { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.path { border: 1px solid var(--ink); border-radius: var(--radius); padding: 1.25rem; }
.path img { margin-top: 0.5rem; width: 100%; aspect-ratio: 3 / 2; object-fit: contain; background: var(--fill); }
.prices { list-style: none; margin: 0; padding: 0; max-width: 32rem; border-top: 1px solid var(--line); }
.prices li { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.6rem; border-bottom: 1px solid var(--line); }

.ars-text { max-width: 60ch; font-size: 1.1rem; }
.ars-text p:last-child { margin-bottom: 0; }
/* Ars poetica photo: secondary to the text; on desktop as tall as the text block */
.ars.has-portrait { display: grid; gap: 1.5rem; }
.ars-portrait { margin: 0; background: var(--fill); aspect-ratio: 4 / 3; overflow: hidden; }
.ars-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
@media (min-width: 48rem) {
  .ars.has-portrait { grid-template-columns: minmax(0, 60ch) minmax(14rem, 24rem); gap: 3rem; align-items: stretch; justify-content: start; }
  .ars-portrait { aspect-ratio: auto; position: relative; min-height: 14rem; }
  .ars-portrait img { position: absolute; inset: 0; }
}

/* About */
.about-photo { margin-bottom: 1.5rem; }
/* Any aspect ratio, never cropped: a landscape photo fills the column width,
   a tall portrait is capped by screen height so it doesn't push the text away. */
.about-signature { margin-top: 1.5rem; }
.about-signature img { width: 14rem; max-width: 60%; height: auto; }
.about-photo img { width: auto; height: auto; max-width: 100%; max-height: 80vh; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 2rem; background: var(--fill); }
.footer-grid { display: grid; gap: 1rem; padding-block: 2rem; }
.footer-name { font-weight: 700; margin: 0; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; }
.footer-links small { font-size: 0.75rem; }
.footer-links .footer-ig { color: var(--orange); }
.footer-links .footer-ig:hover { color: var(--pink); }
.footer-copy { margin: 0; font-size: 0.85rem; color: var(--muted); }

/* FAQ */
.faq-list { margin-top: 1.5rem; border-top: 1px solid var(--line); }
.faq-item { padding-block: 1.5rem; border-bottom: 1px solid var(--line); }
.faq-q { font-size: 1.15rem; margin-bottom: 0.5rem; }
.faq-a { max-width: 65ch; color: var(--ink); }
.faq-a p { margin: 0 0 0.75rem; }
.faq-a p:last-child { margin-bottom: 0; }
.legal-intro { max-width: 65ch; margin-top: 1rem; }
.legal-body ul { padding-left: 1.25rem; margin: 0 0 0.75rem; }
.legal-body li { margin-bottom: 0.4rem; }
.legal-body a, .legal-intro a { overflow-wrap: anywhere; }
/* [[...]] in CMS text: still to be filled in by Dániel */
mark.todo { background: #fff0e5; color: var(--ink); border-bottom: 2px solid var(--orange); padding: 0 0.2em; }
