/*
Theme Name: Bety
Description: Jednostránkové portfolio Bety Bryndové (brynda.eu). CZ/EN přes Polylang.
Version: 1.0.0
Requires PHP: 8.0
Text Domain: bety
*/
:root {
	--paper: #f3efe8; --ink: #1c1a17; --dark: #0d0b09; --panel: #16130f; --frame: #e6e0d6;
	--terra: #b5543c; --ochre: #d9b08c; --g1: #6b645a; --g2: #8a8278; --g3: #a39a8d; --g4: #cfc6b9; --giant: #1f1b17;
	--serif: 'Bodoni Moda', Georgia, serif; --sans: 'Familjen Grotesk', system-ui, sans-serif;
	--pad: clamp(20px, 4vw, 48px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--terra); }
img { display: block; }
button { font: inherit; }
.bb-wrap { max-width: 1440px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.bb-label { margin: 0; font-size: 13px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--ochre); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--ochre); outline-offset: 3px; }

/* Zrnitost papíru */
.bb-grain { position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: .14; mix-blend-mode: multiply;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* Vlastní kurzor (jen myš) */
.bb-cursor { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
	background: var(--paper); mix-blend-mode: difference; display: flex; align-items: center; justify-content: center;
	font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); opacity: 0;
	transition: width .25s ease, height .25s ease, margin .25s ease, opacity .2s; }
.bb-cursor.is-big { width: 84px; height: 84px; margin: -42px 0 0 -42px; }
@media (pointer: fine) { body.has-cursor, body.has-cursor * { cursor: none !important; } }

/* Hlavička */
.bb-header { position: absolute; top: 0; left: 0; right: 0; z-index: 20; color: var(--paper); }
.bb-header__in { padding-top: 22px; padding-bottom: 22px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.bb-mono { font-family: var(--serif); font-style: italic; font-size: 22px; }
.bb-nav { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 12px clamp(16px, 3vw, 36px);
	font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.bb-nav a:hover { color: var(--ochre); }
.bb-langs { display: flex; gap: 2px; padding-left: clamp(12px, 2vw, 24px); border-left: 1px solid rgba(243,239,232,.3); }
.bb-langs a { padding: 4px 7px; font-size: 12px; font-weight: 600; letter-spacing: .12em; color: rgba(243,239,232,.75); border-bottom: 1px solid transparent; }
.bb-langs a[aria-current] { color: var(--ochre); border-bottom-color: var(--ochre); }

/* Hero – světlo svíčky */
.bb-hero { position: relative; height: min(100vh, 960px); min-height: 600px; overflow: hidden; background: var(--dark); color: var(--paper);
	--x: 62%; --y: 42%; --r: 240px; }
.bb-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bb-hero__img--dim { filter: brightness(.18) saturate(.6); }
.bb-hero__img--lit { -webkit-mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 0%, rgba(0,0,0,.55) 45%, transparent 100%);
	mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 0%, rgba(0,0,0,.55) 45%, transparent 100%); }
.bb-hero__shade { position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(180deg, rgba(13,11,9,.55) 0%, transparent 30%, transparent 55%, rgba(13,11,9,.85) 100%); }
.bb-hero__content { position: relative; height: 100%; padding-bottom: clamp(28px, 5vw, 56px); display: flex; flex-direction: column; justify-content: flex-end; gap: 28px; pointer-events: none; }
.bb-hero__content a { pointer-events: auto; }
.bb-hero h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-variation-settings: 'opsz' 96; font-size: clamp(72px, 13vw, 220px); line-height: .86; letter-spacing: -.035em; }
.bb-hero h1 em { font-weight: 500; }
.bb-hero__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 40px; }
.bb-hero__intro { margin: 0; max-width: 40ch; font-size: 17px; line-height: 1.55; color: var(--g4); text-wrap: pretty; }
.bb-hero__onview { margin: 0; font-size: 13px; color: var(--g3); text-align: right; }
.bb-hero__onview em { font-family: var(--serif); font-size: 17px; color: var(--paper); }

/* Díla */
.bb-work { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 6vw, 80px); scroll-margin-top: 20px; }
.bb-work__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; margin-bottom: 40px; }
.bb-work h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-variation-settings: 'opsz' 96; font-size: clamp(56px, 7vw, 104px); line-height: .95; letter-spacing: -.03em; white-space: nowrap; }
.bb-work h2 sup { font-family: var(--sans); font-size: 15px; font-weight: 500; letter-spacing: 0; vertical-align: top; margin-left: 6px; color: var(--terra); }
.bb-filters { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0; padding: 0; list-style: none; }
.bb-filter { padding: 6px 0; background: none; border: 0; border-bottom: 1px solid transparent; font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--g1); cursor: pointer; }
.bb-filter:hover { color: var(--ink); }
.bb-filter[aria-pressed="true"] { color: var(--terra); border-bottom-color: var(--terra); }
.bb-grid { columns: 4 275px; column-gap: 32px; }
.bb-card { margin: 0 0 32px; break-inside: avoid; display: flex; flex-direction: column; gap: 12px; }
.bb-card[hidden] { display: none; }
.bb-card__link { display: block; background: var(--frame); overflow: hidden; cursor: zoom-in; }
.bb-card__link img { width: 100%; height: auto; transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .7s; }
.bb-card__link:hover img, .bb-card__link:focus-visible img { transform: scale(1.04); filter: contrast(1.08); }
.bb-card figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 1px solid rgba(28,26,23,.15); padding-top: 10px; }
.bb-card__title { font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.2; }
.bb-card__year { font-size: 12px; letter-spacing: .08em; color: var(--g1); white-space: nowrap; }

/* Tmavý pás */
.bb-dark { background: var(--dark); color: var(--paper); }
.bb-dark a:hover { color: var(--ochre); }
.bb-cols { padding-top: clamp(56px, 8vw, 112px); padding-bottom: clamp(56px, 8vw, 112px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(40px, 5vw, 72px); }
.bb-col { display: flex; flex-direction: column; gap: 20px; scroll-margin-top: 40px; }
.bb-about__lead { margin: 0; font-family: var(--serif); font-size: 30px; line-height: 1.2; text-wrap: pretty; }
.bb-about__sub { margin: 0; font-size: 15px; line-height: 1.6; color: var(--g3); }
.bb-recog { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.bb-recog li { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid rgba(243,239,232,.15); }
.bb-recog li:last-child { border-bottom: 1px solid rgba(243,239,232,.15); }
.bb-recog__year { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--ochre); }
.bb-recog__text { font-size: 15px; line-height: 1.5; }
.bb-recog__text strong { font-weight: 600; }
.bb-form { display: flex; flex-direction: column; gap: 12px; }
.bb-form input, .bb-form textarea { padding: 14px 0; background: transparent; border: 0; border-bottom: 1px solid rgba(243,239,232,.3); border-radius: 0;
	color: var(--paper); font: inherit; font-size: 15px; outline: none; }
.bb-form textarea { resize: vertical; }
.bb-form input:focus, .bb-form textarea:focus { border-bottom-color: var(--ochre); }
.bb-form ::placeholder { color: var(--g2); opacity: 1; }
.bb-form .bb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.bb-btn { margin-top: 12px; align-self: flex-start; padding: 14px 24px; background: var(--paper); color: var(--dark); border: 0; border-radius: 999px;
	font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: background .2s; }
.bb-btn:hover { background: var(--ochre); }
.bb-btn[disabled] { opacity: .6; cursor: wait; }
.bb-form__error { margin: 0; font-size: 14px; color: #e59a83; }
.bb-thanks { margin: 0; font-family: var(--serif); font-style: italic; font-size: 28px; line-height: 1.25; }
.bb-giant { overflow: hidden; }
.bb-giant p { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 400; font-variation-settings: 'opsz' 96; font-size: clamp(80px, 19vw, 300px);
	line-height: .8; letter-spacing: -.04em; color: var(--giant); white-space: nowrap; transform: translateY(12%); user-select: none; }
.bb-foot { padding-top: 20px; padding-bottom: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--g2);
	border-top: 1px solid rgba(243,239,232,.12); position: relative; }
.bb-foot a { color: var(--g4); }

/* Lightbox */
.bb-lb { position: fixed; inset: 0; z-index: 50; background: rgba(13,11,9,.97); color: var(--paper); display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,360px); }
.bb-lb[hidden] { display: none; }
.bb-lb__stage { display: flex; align-items: center; justify-content: center; padding: clamp(16px, 4vw, 48px); min-height: 0; }
.bb-lb__stage img { max-width: 100%; max-height: calc(100vh - 96px); object-fit: contain; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.bb-lb__panel { background: var(--panel); padding: 32px; display: flex; flex-direction: column; gap: 24px; overflow: auto; }
.bb-lb__top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--g2); }
.bb-lb__close { background: none; border: 0; color: var(--paper); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; padding: 8px 0; }
.bb-lb h3, .bb-single h1 { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 40px; line-height: 1.05; }
.bb-lb__note { margin: 0; font-size: 15px; line-height: 1.6; color: var(--g3); text-wrap: pretty; }
.bb-meta { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; font-size: 14px; }
.bb-meta dt { color: var(--g2); }
.bb-meta dd { margin: 0; }
.bb-lb__nav { margin-top: auto; display: flex; gap: 8px; }
.bb-pill { flex: 1; padding: 14px; border-radius: 999px; font-size: 14px; cursor: pointer; text-align: center; }
.bb-pill--ghost { background: transparent; border: 1px solid rgba(243,239,232,.25); color: var(--paper); }
.bb-pill--solid { background: var(--paper); border: 0; color: var(--dark); font-weight: 600; }
.bb-pill--solid:hover { color: var(--dark); background: var(--ochre); }
body.lb-open { overflow: hidden; }
@media (max-width: 760px) {
	.bb-lb { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; overflow: auto; }
	.bb-lb__stage img { max-height: 62vh; }
	.bb-lb__panel { padding: 24px var(--pad); gap: 18px; }
	.bb-lb h3 { font-size: 32px; }
}

/* Podstránky (detail díla, stránka) */
.bb-sub { background: var(--dark); color: var(--paper); min-height: 100vh; padding-top: 88px; }
.bb-single { display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,360px); min-height: calc(100vh - 88px); }
.bb-single .bb-lb__stage img { max-height: calc(100vh - 160px); }
@media (max-width: 760px) { .bb-single { grid-template-columns: 1fr; } }
.bb-page { padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(56px, 8vw, 112px); max-width: 760px; }
.bb-page h1 { margin: 0 0 32px; font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 6vw, 80px); line-height: 1; letter-spacing: -.03em; }
.bb-page__body { font-size: 17px; line-height: 1.65; color: var(--g4); }
.bb-page__body a { color: var(--ochre); text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.bb-card__link img { transition: none; }
	.bb-card__link:hover img, .bb-card__link:focus-visible img { transform: none; }
}
