:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #151515;
  --secondary: #50504f;
  --rule: #dededb;
  --soft: #f7f7f5;
  --landscape: .21;
  --gutter: clamp(20px, 4vw, 48px);
  --content: 64rem;
  font-family: "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
  scroll-behavior: smooth;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #141414;
  --ink: #f5f5f3;
  --secondary: #c3c3c0;
  --rule: #373737;
  --soft: #1c1c1b;
  --landscape: .62;
}
* { 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 var(--ink); outline-offset: 3px; }
.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: var(--paper); color: var(--ink); }
.skip:focus { top: 1rem; }

.mast, .cover-inner, .themes, .vista, .chapter, footer {
  width: min(calc(100% - var(--gutter) - var(--gutter)), var(--content));
  margin-inline: auto;
}
.mast {
  position: relative; z-index: 3; display: flex; align-items: center; gap: 1.6rem;
  min-height: 67px; border-bottom: 1px solid var(--rule);
}
.brand { margin-right: auto; white-space: nowrap; font-size: 1.4rem; line-height: 1.1; font-weight: 600; letter-spacing: -.045em; }
.mast a, .meet, .contact-link { text-decoration: none; }
.main-nav { display: flex; align-items: center; gap: 1.55rem; }
.main-nav a { font-size: .9375rem; font-weight: 550; }
.main-nav a:hover, .menu-panel a:hover, footer a:hover { text-decoration: underline; text-underline-offset: .27em; }
.theme-picker { display: inline-flex; flex: none; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--rule); border-radius: 100px; }
.theme-picker button { width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 0; background: transparent; color: var(--secondary); border-radius: 50%; }
.theme-picker button:hover { background: var(--soft); color: var(--ink); }
.theme-picker button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.theme-picker svg { width: 16px; height: 16px; stroke-width: 1.6; }
.site-menu { display: none; position: relative; }
.site-menu summary { list-style: none; display: grid; align-content: center; justify-items: center; gap: 4px; width: 38px; height: 40px; }
.site-menu summary::-webkit-details-marker { display: none; }
.site-menu summary span { display: block; width: 20px; height: 1.5px; background: currentColor; }
.site-menu[open] summary span:first-child { transform: translateY(5.5px) rotate(45deg); }
.site-menu[open] summary span:nth-child(2) { opacity: 0; }
.site-menu[open] summary span:last-child { transform: translateY(-5.5px) rotate(-45deg); }
.menu-panel { position: absolute; right: 0; top: calc(100% + .4rem); display: grid; min-width: 155px; background: var(--paper); padding: .4rem 1rem; border: 1px solid var(--rule); box-shadow: 0 8px 25px #0002; }
.menu-panel a { padding: .6rem 0; }

.cover-inner {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.88fr);
  grid-template-areas: "title portrait" "copy portrait"; align-content: center;
  gap: .9rem clamp(28px,6vw,92px); padding-block: clamp(30px,3.6vw,54px);
}
.intro-title { grid-area: title; align-self: end; }
.intro-copy { grid-area: copy; align-self: start; }
.overline, .label { margin: 0; font-size: .875rem; font-weight: 550; letter-spacing: .16em; text-transform: uppercase; }
.overline { display: flex; align-items: center; gap: .7rem; }
.overline::before { content: ""; width: 1.65rem; height: 1px; background: currentColor; }
h1 { margin: .75rem 0 0; font-weight: 450; font-size: clamp(2.6rem,4.5vw,3.45rem); line-height: 1.015; letter-spacing: -.05em; }
h1 span { display: block; }
.lead { margin: 0; max-width: 25.8rem; font-size: 1.0625rem; line-height: 1.5; color: var(--secondary); }
.meet { display: inline-flex; align-items: center; gap: 1rem; min-height: 42px; padding: .45rem 1.15rem; margin-top: 1.05rem; border: 1px solid var(--ink); border-radius: 100px; font-size: 1rem; font-weight: 550; }
.meet:hover, .meet:focus-visible { background: var(--ink); color: var(--paper); }
.meet svg { width: 17px; height: 17px; stroke-width: 1.45; }
.portrait {
  grid-area: portrait; position: relative; isolation: isolate; overflow: hidden; align-self: center; justify-self: end;
  width: min(100%, 21.5rem); aspect-ratio: 1.27; background: #232323;
}
.portrait img { position: absolute; width: auto; max-width: none; height: 184%; top: -11.9%; left: 50%; transform: translateX(-69%); }
:root[data-theme="dark"] .portrait {
  mask-image: linear-gradient(to right,transparent,#000 12%,#000 92%,transparent), linear-gradient(to bottom,transparent,#000 6%,#000 87%,transparent);
  mask-composite: intersect;
}

.themes { list-style: none; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin-block: 0; padding: 1.4rem 0 1.6rem; border-top: 1px solid var(--rule); }
.themes li { padding: 0 clamp(12px,2vw,28px); border-inline-start: 1px solid var(--rule); }
.themes li:first-child { padding-left: 0; border: 0; }
.themes svg { display: block; width: 29px; height: 29px; stroke-width: 1.9; }
.themes h2 { margin: .5rem 0 .16rem; font-size: 1.12rem; font-weight: 600; letter-spacing: -.025em; }
.themes p { margin: 0; max-width: 23ch; color: var(--secondary); font-size: 1rem; line-height: 1.4; }
.vista {
  position: relative; isolation: isolate; display: flex; align-items: center; justify-content: space-between;
  min-height: 132px; padding: 1.35rem clamp(18px,3vw,38px); background: var(--soft); overflow: hidden;
}
.vista::before { content: ""; position: absolute; z-index: -1; inset: 0; opacity: var(--landscape); background: url("assets/osebni-prostor.png") 65% bottom / 192% 410% no-repeat; mask-image: linear-gradient(to right,transparent 8%,#000 76%); }
blockquote { margin: 0; font-size: clamp(1.05rem,1.55vw,1.4rem); line-height: 1.25; font-style: italic; letter-spacing: -.02em; }
blockquote span { display: block; height: .53em; font: 700 2em/.7 Georgia,serif; }
.share { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--paper); color: var(--ink); border: 1px solid var(--rule); }
.share:hover { color: var(--paper); background: var(--ink); }
.share svg { width: 17px; height: 17px; stroke-width: 1.65; }
.share-status { position: absolute; margin: 0; bottom: .45em; right: 1rem; font-size: .875rem; background: var(--paper); color: var(--ink); }

.chapter { padding-block: clamp(36px,4vw,57px); border-bottom: 1px solid var(--rule); }
.section-grid { display: grid; grid-template-columns: minmax(125px,1fr) minmax(0,3.8fr); gap: clamp(24px,4vw,65px); }
.label { margin-top: .4em; }
.label::after { content: ""; display: block; width: 1.5rem; height: 1px; margin-top: .55rem; background: currentColor; }
.section-body { max-width: 39rem; }
.section-body h3 { margin: 0; font-size: clamp(1.85rem,2.8vw,2.45rem); font-weight: 500; letter-spacing: -.045em; line-height: 1.13; }
.section-body p { margin: .8rem 0 0; font-size: 1.0625rem; line-height: 1.53; color: var(--secondary); }
.project-feature { display: grid; grid-template-columns: minmax(0,.83fr) minmax(0,1.17fr); gap: clamp(20px,3vw,38px); align-items: center; }
.project-feature figure { margin: 0; }
.project-feature img { display: block; width: 100%; height: auto; }
figcaption { margin-top: .4rem; font-size: .875rem; color: var(--secondary); }
.project-copy h3 { font-size: clamp(1.6rem,2.25vw,2rem); }
.profile-links { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.profile-links a { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.profile-links strong { font-size: 1.35rem; font-weight: 500; letter-spacing: -.03em; }
.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: 1rem; padding: .35rem 0; border-bottom: 1px solid; font-weight: 550; }
footer { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.3rem; font-size: .875rem; color: var(--secondary); }
footer a { text-decoration: none; }

@media(max-width: 730px) {
  .mast { gap: .45rem; min-height: 60px; }
  .brand { font-size: 1.25rem; }
  .site-menu { display: block; }
  .main-nav { display: none; }
  .theme-picker button { width: 30px; height: 30px; }
  .cover-inner { column-gap: 1.4rem; }
  .themes { grid-template-columns: repeat(2,minmax(0,1fr)); row-gap: 1.3rem; }
  .themes li:nth-child(odd) { padding-left: 0; border: 0; }
  .project-feature { grid-template-columns: 1fr; gap: 1rem; }
  .project-feature figure { max-width: 18rem; }
}
@media(max-width: 560px) {
  .cover-inner { grid-template-columns: minmax(0,1fr) minmax(74px,29%); grid-template-areas: "title portrait" "copy copy"; align-items: center; gap: 1rem .6rem; padding-block: 1.6rem; }
  h1 { font-size: clamp(1.85rem,8.2vw,2.85rem); margin-top: .55rem; }
  .portrait { width: 100%; aspect-ratio: .86; }
  .intro-title { align-self: center; }
  .overline { font-size: .82rem; letter-spacing: .12em; gap: .4rem; }
  .overline::before { width: 1rem; }
  .lead, .section-body p { font-size: 1rem; }
  .meet { margin-top: .85rem; }
  .themes { padding-block: 1rem 1.25rem; }
  .themes svg { width: 25px; height: 25px; }
  .themes h2 { margin-top: .35rem; }
  .vista { min-height: 110px; }
  .section-grid { grid-template-columns: 1fr; gap: 1rem; }
  .label { margin: 0; }
  .chapter { padding-block: 2rem; }
  .profile-links a { flex-wrap: wrap; }
}
@media(prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } }
