:root {
  color-scheme: dark;
  --paper: #171717;
  --ink: #f5f5f3;
  --secondary: #c0c0bd;
  --rule: #444443;
  --inset: clamp(26px, 6.35vw, 150px);
  font-family: "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
  scroll-behavior: smooth;
}
:root[data-theme="light"] {
  color-scheme: light;
  --paper: #f6f6f3;
  --ink: #191919;
  --secondary: #535352;
  --rule: #cacac6;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: inherit; }
button, summary { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: absolute; left: 1rem; top: -9rem; z-index: 10; padding: .7rem 1rem; background: white; color: black; }
.skip:focus { top: 1rem; }
.mast {
  position: absolute; inset: 0 0 auto; z-index: 3; display: flex; align-items: center;
  height: clamp(68px, 5.25vw, 94px); padding-inline: var(--inset); gap: clamp(22px, 5.4vw, 105px);
  color: #fafafa;
}
.brand { margin-right: auto; font-size: clamp(1.75rem, 2.8vw, 3.1rem); line-height: 1; letter-spacing: -.04em; font-weight: 500; white-space: nowrap; }
.mast a, .meet, .contact-link { text-decoration: none; }
.main-nav { display: flex; align-items: center; gap: clamp(24px, 3.8vw, 76px); }
.main-nav a { font-size: clamp(1rem, 1.35vw, 1.35rem); font-weight: 600; }
.main-nav a:hover, .menu-panel a:hover, footer a:hover { text-decoration: underline; text-underline-offset: .27em; }
.site-menu { position: relative; }
.site-menu summary { list-style: none; display: grid; align-content: center; justify-items: end; gap: 6px; width: 44px; height: 44px; }
.site-menu summary::-webkit-details-marker { display: none; }
.site-menu summary span { display: block; width: 32px; height: 2px; background: currentColor; }
.site-menu[open] summary span:first-child { transform: translateY(8px) rotate(45deg); }
.site-menu[open] summary span:nth-child(2) { opacity: 0; }
.site-menu[open] summary span:last-child { transform: translateY(-8px) rotate(-45deg); }
.menu-panel { position: absolute; right: 0; top: calc(100% + .6rem); display: grid; min-width: 215px; background: #1b1b1b; padding: .7rem 1.3rem; border: 1px solid #555; box-shadow: 0 12px 40px #0006; }
.menu-panel a, .theme-control { padding: .75rem 0; color: #fafafa; text-align: left; }
.theme-control { border: 0; border-top: 1px solid #666; background: transparent; }
.cover { position: relative; isolation: isolate; overflow: hidden; min-height: 42.4vw; background: #111; color: #fafafa; }
.cover::before {
  content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 61% 100% at 76% -32%, transparent 86%, #74747430 92%, #b8b8b860 95%, #50505035 98%, transparent 104%),
    radial-gradient(ellipse 55% 77% at 76% 121%, transparent 83%, #5555 92%, #83838355 95%, #37373740 101%, transparent 108%),
    radial-gradient(ellipse at 62% 59%, #373737 0%, #1b1b1b 38%, #101010 73%);
  mask-image: linear-gradient(to right, transparent 19%, black 55%);
}
.portrait { position: absolute; z-index: -1; width: 58%; aspect-ratio: 858/574; top: 4vw; right: 0; overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, #000 25%), linear-gradient(to bottom, transparent, #000 5%, #000 83%, transparent 100%);
  mask-composite: intersect;
}
.portrait img { position: absolute; width: 175.76%; height: auto; max-width: none; right: 0; top: -11.15%; }
.intro { position: relative; padding: clamp(108px, 8.8vw, 190px) 0 clamp(28px, 3vw, 75px) var(--inset); width: 50%; }
.overline, .label { margin: 0; font-size: clamp(.875rem, 1.17vw, 1.18rem); font-weight: 600; letter-spacing: .23em; text-transform: uppercase; }
.overline::after, .label::after { content: ""; display: block; width: 2.4rem; height: 2px; margin-top: .85rem; background: currentColor; }
.intro h1 { margin: clamp(19px, 2vw, 40px) 0 clamp(18px, 1.65vw, 35px); font-weight: 400; font-size: clamp(3.45rem, 5.45vw, 7.4rem); line-height: 1.03; letter-spacing: -.032em; }
.intro h1 span { display: block; }
.lead { max-width: 26.2rem; width: 29vw; margin: 0; font-size: clamp(1.04rem, 1.5vw, 1.55rem); line-height: 1.31; letter-spacing: -.018em; }
.meet { margin-top: clamp(19px, 1.8vw, 38px); display: inline-flex; align-items: center; justify-content: center; gap: 2.1rem; min-height: 52px; padding: .75rem 2rem; border: 1.5px solid #f5f5f5; border-radius: 100px; color: white; font-size: clamp(1rem, 1.25vw, 1.26rem); font-weight: 600; }
.meet:hover, .meet:focus-visible { color: #131313; background: #fafafa; }
.meet svg { width: 24px; height: 24px; stroke-width: 1.4; }
.themes { list-style: none; margin: 0; padding: .3vw var(--inset) 2.3vw; display: grid; grid-template-columns: repeat(4,1fr); color: #f7f7f7; background: linear-gradient(#111 5%,#1c1c1c 80%,#242424); }
.themes li { position: relative; text-align: center; padding: 0 .7rem; }
.themes li + li::before { content: ""; position: absolute; top: 12%; bottom: 11%; left: 0; width: 1px; background: #929292; }
.themes svg { width: clamp(38px,3.2vw,58px); height: clamp(38px,3.2vw,58px); stroke-width: 2; }
.themes h2 { margin: .4rem 0 .22rem; font-size: clamp(1.3rem,1.8vw,2rem); font-weight: 600; letter-spacing: -.04em; }
.themes p { margin: 0; font-size: clamp(1rem,1.18vw,1.36rem); }
.vista { isolation: isolate; position: relative; min-height: clamp(215px,17.3vw,360px); display: flex; align-items: flex-end; justify-content: space-between; padding: 2.8vw var(--inset); background: #161616; color: #fff; }
.vista::before { content: ""; position: absolute; z-index: -1; inset: 0; background: url("assets/osebni-prostor.png") 65% bottom / 192% 410% no-repeat; mask-image: linear-gradient(to bottom, transparent, #000 20%, #000); }
.vista::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg,#242424 0%,transparent 21%),linear-gradient(0deg,#1010109c,transparent 80%); }
blockquote { margin: 0; font-size: clamp(1.3rem,1.85vw,2.1rem); font-style: italic; line-height: 1.2; letter-spacing: -.025em; }
blockquote span { display: block; height: .52em; font: 700 2.6em/.72 Georgia,serif; margin-left: -.04em; }
blockquote::after { content: ""; display: block; width: 2.4rem; height: 2px; margin-top: .75em; background: currentColor; }
.share { color: white; background: #111; border: 1px solid #737373; border-radius: 50%; width: clamp(52px,4.8vw,84px); aspect-ratio: 1; display: grid; place-items: center; }
.share:hover { background: #333; }
.share svg { width: 42%; height: 42%; stroke-width: 1.8; }
.share-status { position: absolute; margin: 0; bottom: 1em; right: var(--inset); font-size: .875rem; background: #171717; color: white; }
.chapter { padding: clamp(64px,6.5vw,140px) var(--inset); background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--rule); }
.section-grid { max-width: 1530px; margin: 0 auto; display: grid; grid-template-columns: minmax(140px,1fr) minmax(0,3fr); gap: 4vw; align-items: start; }
.label { font-size: .9rem; margin-top: .6em; }
.label::after { width: 1.8rem; height: 1px; }
.section-body { max-width: 43rem; }
.section-body h3 { margin: 0; font-size: clamp(2.35rem,4.45vw,5rem); font-weight: 450; letter-spacing: -.055em; line-height: 1.07; }
.section-body p { margin: 1.3rem 0 0; font-size: clamp(1.08rem,1.4vw,1.35rem); line-height: 1.57; color: var(--secondary); }
.projects { background: #eeeeeb; color: #1a1a1a; border-color: #c8c8c5; }
.project-feature { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(26px,3.5vw,70px); align-items: center; }
.project-feature figure { margin: 0; }
.project-feature img { width: 100%; height: auto; display: block; border: 1px solid #888; }
figcaption { font-size: .875rem; margin-top: .65rem; color: #535352; }
.project-copy h3 { font-size: clamp(2rem,3vw,3.6rem); }
.project-copy p { color: #484848; }
.profile-links { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.profile-links a { border-bottom: 1px solid var(--rule); display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 1.35rem 0; text-decoration: none; }
.profile-links strong { font-size: clamp(1.6rem,2.4vw,2.8rem); font-weight: 500; letter-spacing: -.045em; }
.profile-links span { color: var(--secondary); }
.profile-links a:hover strong { text-decoration: underline; text-underline-offset: .16em; text-decoration-thickness: 1px; }
.contact-link { display: inline-block; margin-top: 1.5rem; border-bottom: 1px solid; padding: .35rem 0; font-weight: 600; }
footer { display: flex; justify-content: space-between; gap: 1rem; padding: 2rem var(--inset); color: var(--secondary); font-size: .92rem; }
footer a { text-decoration: none; }
@media(min-width: 1900px) {
  .intro { padding-block: 10vw 4vw; }
  .lead { max-width: 32rem; }
}
@media(max-width: 900px) {
  .main-nav { gap: 1.3rem; }
  .mast { gap: 1.7rem; }
  .intro { padding-bottom: 2rem; }
  .lead { width: auto; max-width: 21rem; }
  .portrait { width: 61%; top: 12%; }
  .themes { padding-block: 1.3rem 1.6rem; }
  .project-feature { grid-template-columns: 1fr; }
  .project-feature figure { max-width: 30rem; }
}
@media(max-width: 680px) {
  :root { --inset: clamp(20px,6vw,38px); }
  .mast { height: 64px; }
  .main-nav { display: none; }
  .brand { font-size: 1.8rem; }
  .site-menu summary span { width: 27px; }
  .cover { padding-top: 61px; }
  .cover::before { display: none; }
  .portrait { position: relative; width: 100%; aspect-ratio: 858/530; top: auto; mask-image: linear-gradient(to bottom, transparent,black 7%,black 73%,transparent 100%); }
  .portrait img { top: -11%; }
  .intro { width: 100%; padding: 0 var(--inset) 2.1rem; margin-top: -1.1rem; }
  .overline { font-size: .875rem; }
  .overline::after { width: 1.7rem; height: 1px; margin-top: .65rem; }
  .intro h1 { font-size: clamp(3.05rem,12.5vw,4.7rem); margin: 1rem 0; }
  .lead { max-width: 29rem; font-size: 1.08rem; line-height: 1.4; }
  .meet { min-height: 45px; padding: .5rem 1.45rem; margin-top: 1.15rem; }
  .themes { grid-template-columns: 1fr 1fr; row-gap: 1.5rem; padding: .75rem var(--inset) 1.8rem; }
  .themes li:nth-child(3)::before { display: none; }
  .themes h2 { font-size: 1.35rem; }
  .themes p { font-size: 1rem; line-height: 1.35; }
  .vista { min-height: 206px; padding: 1.75rem var(--inset); }
  .vista::before { background-size: 215% 410%; background-position: 63% bottom; }
  .section-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .chapter { padding-block: 3.6rem; }
  .label { margin: 0; }
  .section-body p { margin-top: .95rem; }
  .profile-links a { flex-wrap: wrap; align-items: center; }
  .project-feature { gap: 1.25rem; }
  .share-status { bottom: .25rem; }
}
@media(prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } }
