/* Laboratorij za razvojnopsihološke študije, razvojnapsihologija.si
   One stylesheet for every page. Breakpoints: 1279px (team in two columns),
   1000px (narrow computer), 860px (opening in one column), 760px (phone),
   349px (smallest phones). */

/* ---------- Typeface: Quicksand, served with the site ---------- */
@font-face {
  font-family: Quicksand;
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/quicksand-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Quicksand;
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/quicksand-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Colours and sizes ---------- */
:root {
  --paper: #FFFFFF;
  --page: #F0FBFF;
  --mist: #EEF9FC;
  --sky: #B9EFFF;
  --lemon: #FFE85A;
  --ink: #1C302A;
  --ink-2: #46594F;
  --forest: #2F5F52;
  --pen: #2C5A55;
  --sage: #6CA08E;
  --on-dark-line: #CFE6DC;
  --radius: 32px;
  --header: 78px;
}
@media (max-width: 760px) {
  :root { --radius: 24px; --header: 72px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-anchor: none; scroll-padding-top: calc(var(--header) - 2px); }
body {
  margin: 0;
  padding-top: var(--header);
  overflow-x: clip;
  background: var(--page);
  color: var(--ink);
  font-family: Quicksand, sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.65;
  hyphens: manual;
  -webkit-hyphens: manual;
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--forest); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 56px; }
.h2 { font-size: clamp(30px, 3vw, 44px); line-height: 1.12; }
.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 8px 14px; background: var(--lemon); color: var(--ink); font-weight: 600; }
.skip:focus { top: 12px; }
@media (max-width: 760px) {
  body { font-size: 17px; }
  .wrap { padding: 0 20px; }
  .h2 { font-size: 30px; text-align: center; }
}

/* ---------- Header: the joint FF and lab logo, the menu ---------- */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 30; background: var(--page); transition: box-shadow .2s ease; }
.header.is-moved { box-shadow: 0 1px 0 rgba(44, 90, 85, .18); }
.header-in { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; padding-top: 14px; padding-bottom: 14px; }
.header .logo { display: block; width: auto; height: 50px; }
.nav { display: flex; gap: 4px; font-weight: 600; }
.nav a { padding: 6px 14px; border-radius: 999px; color: var(--ink); text-decoration: none; }
.nav a:hover { background: var(--paper); }
.nav .nav-lang { position: relative; margin-left: 18px; }
.nav .nav-lang::before { content: ""; position: absolute; left: -11px; top: 50%; width: 1.5px; height: 20px; margin-top: -10px; background: var(--pen); opacity: .35; }
.menu-button { display: none; flex: none; place-items: center; width: 48px; height: 48px; margin-right: -8px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer; }
.menu-button:hover { background: var(--paper); }
.menu-button svg { width: 28px; height: 28px; overflow: visible; }
.menu-button path { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; transform-origin: 14px 14px; transition: transform .25s ease, opacity .2s ease; }
.menu-button[aria-expanded="true"] .l1 { transform: translateY(6px) rotate(45deg); }
.menu-button[aria-expanded="true"] .l2 { opacity: 0; }
.menu-button[aria-expanded="true"] .l3 { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 760px) {
  .header-in { flex-wrap: nowrap; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
  .header-in > a:first-child { flex: 1 1 auto; min-width: 0; }
  .header .logo { max-width: 100%; height: 42px; }
  .menu-button { display: grid; }
  .nav { display: none; position: absolute; z-index: 30; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; margin: 0; padding: 8px 20px 20px; background: var(--page); border-bottom: 1.5px solid var(--pen); font-size: 19px; }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; border-radius: 0; border-top: 1px solid rgba(44, 90, 85, .18); }
  .nav a:first-child { border-top: 0; }
  .nav .nav-lang { margin-left: 0; }
  .nav .nav-lang::before { display: none; }
}

/* ---------- Layers: every part after the opening is a layer whose top
   edge is a wide arc ---------- */
.layer { position: relative; z-index: 1; background: var(--c); }
.layer--white { --c: var(--paper); }
.layer--page { --c: var(--page); }
.layer--forest { --c: var(--forest); }
.layer-arc { position: absolute; left: 0; bottom: calc(100% - 1px); display: block; width: 100%; height: 48px; overflow: visible; fill: var(--c); }
@media (max-width: 760px) {
  .layer-arc { height: 24px; }
}

/* ---------- A photograph with pen drawings: a drawn frame round it (a
   drawn circle when it is round) and a lemon stroke under a corner ---------- */
.photo { position: relative; margin: 0; }
.photo-pic { position: relative; z-index: 1; overflow: hidden; aspect-ratio: var(--ar, 4 / 5); border-radius: 22px; background: var(--mist); }
.photo-pic img { width: 100%; height: 100%; object-fit: cover; }
.photo--round .photo-pic { aspect-ratio: 1; border-radius: 50%; }
.photo-frame { position: absolute; z-index: 2; top: -13px; right: -15px; bottom: -11px; left: -12px; pointer-events: none; transition: opacity .7s ease .2s; }
.photo-frame svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; }
.photo--round .photo-frame { top: -9%; right: -12%; bottom: -7%; left: -10%; }
.js .photo-frame { opacity: 0; }
.js .photo.is-seen .photo-frame { opacity: 1; }
.photo-hl { position: absolute; z-index: 0; width: 64%; height: 52px; background: url(../drawings/highlight.svg) center / 100% 100% no-repeat; }
.photo-hl--bl { left: -30px; bottom: -22px; transform: rotate(-3deg); }
.photo-hl--tr { right: -30px; top: -20px; transform: rotate(2deg); }
/* Photographs are not dragged, selected or saved from a menu; this stops the
   casual copy only */
.photo img, .member-photo img { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; pointer-events: none; }
@media (max-width: 760px) {
  .photo-pic { border-radius: 16px; }
  .photo-frame { top: -9px; right: -10px; bottom: -8px; left: -8px; }
  .photo-hl { height: 36px; }
  .photo-hl--bl { left: -14px; bottom: -14px; }
  .photo-hl--tr { right: -14px; top: -12px; }
}

/* ---------- Opening: the question on the left, three photographs with
   growth rings on the right ---------- */
.opening { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: center; padding-top: 40px; padding-bottom: 136px; }
.opening-text { position: relative; z-index: 2; }
.opening-lab { margin-bottom: 20px; font-size: 19px; line-height: 1.45; font-weight: 600; color: var(--forest); }
.opening h1 { font-size: clamp(36px, 5vw, 66px); line-height: 1.07; }
.opening-sub { max-width: 24em; margin-top: 24px; font-size: clamp(19px, 1.8vw, 24px); line-height: 1.42; color: var(--ink-2); }
.opening-photos { position: relative; aspect-ratio: 10 / 9; }
.opening-photos .photo { position: absolute; z-index: 2; }
.opening-photos .photo-pic { aspect-ratio: var(--ar); }
.opening-photos .photo-1 { left: 0; top: 4%; width: 42%; --ar: 4 / 5; }
.opening-photos .photo-2 { left: 52%; top: 0; width: 32%; }
.opening-photos .photo-3 { left: 45%; top: 64%; width: 48%; --ar: 3 / 2; }
.opening-photos .photo-2 .photo-pic { aspect-ratio: 1; }
/* Growth rings, drawn by hand round a lemon pith (site.js draws them) */
.rings { position: absolute; z-index: 0; overflow: visible; pointer-events: none; }
.rings path { fill: none; stroke: var(--pen); stroke-width: 1.3; stroke-linecap: round; opacity: .2; vector-effect: non-scaling-stroke; }
.rings .pith { fill: var(--lemon); }
@media (max-width: 860px) {
  .opening { grid-template-columns: 1fr; gap: 36px; padding-top: 24px; }
  .opening-photos { width: 100%; max-width: 520px; justify-self: center; }
}
@media (max-width: 760px) {
  .opening { min-height: calc(100svh - var(--header)); align-content: center; justify-items: center; gap: 28px; padding-top: 16px; padding-bottom: 56px; text-align: center; }
  .opening-lab { margin-bottom: 14px; font-size: 16.5px; }
  .opening-sub { margin-left: auto; margin-right: auto; }
  .opening-photos { width: calc(100% - 24px); }
  .rings path { stroke-width: 1.1; }
}

/* ---------- O laboratoriju: five parts behind a menu of names, each with
   a drawn arc under it that grows longer down the list, as rings do ---------- */
.about { padding-top: 112px; padding-bottom: 208px; }
.about > .h2 { margin-bottom: 56px; }
.part { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 240px); gap: 48px; align-items: start; }
.part h3 { margin-bottom: 18px; font-size: clamp(28px, 2.6vw, 38px); line-height: 1.14; }
.part p { max-width: 54ch; font-size: clamp(18px, 1.4vw, 20px); }
.part .photo { margin: 6px 14px 0 0; }
.part .photo-pic { aspect-ratio: 4 / 5; }
.part .mail-address { margin-top: 22px; font-size: clamp(19px, 1.7vw, 23px); }

.acc-h { margin: 0; font-size: inherit; }
.acc-h button { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; width: 100%; padding: 6px 0 8px; font: inherit; font-size: 18px; font-weight: 600; line-height: 1.25; text-align: left; color: var(--ink); background: none; border: 0; cursor: pointer; }
.acc-h svg { display: block; overflow: visible; transform: scaleY(.5); transform-origin: 0 0; }
.acc-h path { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.acc-h .arc-line { stroke: var(--pen); stroke-width: 1.8; opacity: .55; transition: opacity .2s ease; }
.acc-h .arc-mark { stroke: var(--lemon); stroke-width: 10; opacity: 0; transition: opacity .25s ease; }
.acc-h button:hover .arc-line { opacity: 1; }
.acc-h [aria-expanded="true"] .arc-line { opacity: 1; stroke-width: 2.4; }
.acc-h [aria-expanded="true"] .arc-mark { opacity: 1; }

/* Without scripts every part is simply there, one under the other */
.no-js .acc-h { display: none; }
.no-js .acc-b + .acc-h + .acc-b { margin-top: 64px; }

/* On a computer: the names in the first column, the open part in the
   second, as tall as the menu, its content in the middle */
.js .acc { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); grid-template-rows: repeat(5, auto); column-gap: 56px; align-items: start; }
.js .acc-h { grid-column: 1; }
.js .acc-b { grid-column: 2; align-self: stretch; display: flex; align-items: center; visibility: hidden; }
@media (min-width: 761px) {
  .js .acc-h:nth-of-type(1) { grid-row: 1; }
  .js .acc-h:nth-of-type(2) { grid-row: 2; }
  .js .acc-h:nth-of-type(3) { grid-row: 3; }
  .js .acc-h:nth-of-type(4) { grid-row: 4; }
  .js .acc-h:nth-of-type(5) { grid-row: 5; }
  .js .acc-b { grid-row: 1 / 6; }
}
.js .acc-b > .part { width: 100%; }
.js .acc-b.is-open { visibility: visible; animation: show .35s ease both; }
@keyframes show { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 1000px) {
  .part { grid-template-columns: 1fr; gap: 28px; }
  .part .photo { max-width: 300px; }
  .js .acc { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); column-gap: 36px; }
}
/* On a phone: each part opens in place, under its name; the photograph wide */
@media (max-width: 760px) {
  .about { padding-top: 64px; padding-bottom: 64px; }
  .about > .h2 { margin-bottom: 36px; }
  .part { text-align: center; }
  .part > div { text-align: center; }
  .part p { margin-left: auto; margin-right: auto; }
  .js .part h3 { display: none; }
  .part .photo { max-width: none; margin: 0 10px 14px 8px; }
  .part .photo-pic { aspect-ratio: 3 / 2; }
  .part .photo-pic img[data-phone-pos] { object-position: var(--phone-pos) !important; }
  .acc-h button { align-items: center; text-align: center; }
  .js .acc { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .js .acc-h, .js .acc-b { grid-column: 1; }
  .js .acc-b { display: block; height: 0; overflow: hidden; }
  .js .acc-b.is-open { height: auto; overflow: visible; }
  .js .acc-b > .part { padding: 10px 0 30px; }
}

/* ---------- Ekipa ---------- */
.team { padding-top: 112px; padding-bottom: 216px; }
.team > .h2 { margin-bottom: 40px; }
.team-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 24px; }
.member { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; align-items: center; }
.member-photo { position: relative; width: 84px; aspect-ratio: 1; }
.member-photo .face { position: absolute; left: 11%; top: 11%; width: 78%; height: 78%; border-radius: 50%; object-fit: cover; }
.member-photo .person { position: absolute; left: 13%; top: 11%; width: 76%; }
.member-photo .ring { position: absolute; inset: 0; width: 100%; }
.member-name { margin: 0; font-size: 16.5px; line-height: 22.5px; }
.member-rank, .member-inst { font-size: 13.5px; line-height: 1.5; }
.member-rank { color: var(--ink-2); }
.member-inst span { display: block; }
.member-inst a { display: inline-block; font-weight: 600; }
@media (min-width: 1001px) {
  html[lang="sl"] .member-inst span:not(.vh) { white-space: nowrap; }
}
@media (max-width: 1279px) {
  .team-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .team { padding-top: 64px; padding-bottom: 124px; }
  .team-list { row-gap: 36px; }
  .member { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 10px; align-items: start; text-align: center; }
  .member-photo { width: 96px; }
  .member-name { font-size: 15.5px; line-height: 21.75px; }
}
@media (max-width: 349px) {
  .team-list { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Icons, drawn in the pen line of the drawings ---------- */
.icon { flex: none; width: 34px; height: 34px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- An address: the address itself, under it „Pošlji
   e-sporočilo“ and „Kopiraj naslov“ ---------- */
.mail { position: relative; display: inline-flex; flex-direction: column; align-items: flex-start; gap: 6px; max-width: 100%; }
.mail-address { display: inline-flex; align-items: center; gap: 10px; min-width: 0; font-weight: 600; overflow-wrap: normal; word-break: normal; }
.mail-actions { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-left: -10px; }
.mail-action { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px 0 8px; font: inherit; font-size: 15.5px; font-weight: 600; line-height: 1; color: inherit; text-decoration: none; background: none; border: 0; border-radius: 999px; cursor: pointer; }
.mail-action .icon { width: 26px; height: 26px; }
.mail-action:hover { background: rgba(185, 239, 255, .55); }
.mail-action.is-done, .mail-action.is-done:hover { background: none; cursor: default; }
@media (max-width: 760px) {
  .mail { align-items: center; }
  .mail-actions { margin-left: 0; justify-content: center; }
}

/* ---------- Kontakt and the footer: the last layer, dark green ---------- */
.contact { position: relative; padding-top: 104px; padding-bottom: 36px; color: var(--paper); }
.contact > :not(.rings) { position: relative; z-index: 1; }
.contact a { color: var(--paper); }
.contact :focus-visible { outline-color: var(--lemon); }
.contact .h2 { min-width: 0; max-width: 100%; white-space: nowrap; }
.contacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 56px; max-width: 860px; margin-top: 36px; }
.contact-role { font-size: clamp(22px, 2vw, 28px); line-height: 1.2; color: var(--lemon); }
.contact-name { margin-top: 6px; font-size: 18.5px; font-weight: 600; }
.contact .mail { margin-top: 10px; }
.contact .mail-address { font-size: clamp(18px, 1.7vw, 22px); }
.contact .mail-action:hover { background: rgba(255, 255, 255, .14); }
.contact .mail-action.is-done, .contact .mail-action.is-done:hover { background: none; }
.contact .rings path { stroke: var(--on-dark-line); stroke-width: 1.5; opacity: .3; }
.contact .rings .pith { fill: var(--lemon); opacity: .9; }

.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 48px; margin-top: 72px; padding-top: 24px; border-top: 1.5px solid rgba(255, 255, 255, .25); font-size: 15px; color: rgba(255, 255, 255, .85); }
.footer-brand { display: flex; align-items: center; gap: 20px; min-width: 0; }
.footer-brand img { flex: none; width: auto; height: 52px; }
.footer-brand p { font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .85); }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.footer-nav a { display: inline-block; padding: 10px 0; font-size: 15px; color: var(--paper); }
@media (max-width: 1000px) {
  .contacts { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 760px) {
  .contact { padding-top: 64px; padding-bottom: 32px; }
  .contact .mail-address { font-size: 17.5px; }
  .contacts { text-align: center; }
  .contact .rings { display: none; }
  .footer-row { flex-direction: column; align-items: center; gap: 20px; margin-top: 48px; text-align: center; }
  .footer-brand { flex-direction: column; align-items: center; gap: 14px; }
  .footer-brand img { height: 64px; }
  .footer-brand p span { display: block; }
  .footer-nav { width: 100%; }
  .footer-nav ul { flex: 1; flex-direction: column; gap: 0; }
  .footer-nav a { display: block; padding: 12px 0; text-align: center; }
}

/* ---------- The legal pages: the title on the page colour, then the text
   on a white layer in one reading column; the footer as the last layer ---------- */
.doc-col { max-width: 720px; margin: 0 auto; }
.doc-head { padding-top: 48px; padding-bottom: 96px; }
.doc-head .crumb { margin-bottom: 18px; font-size: 16px; }
.doc-head h1 { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.1; }
.doc { padding-top: 56px; padding-bottom: 136px; }
.doc > :first-child { margin-top: 0; }
.doc h2 { margin-top: 44px; font-size: clamp(23px, 2.2vw, 28px); line-height: 1.2; }
.doc p, .doc li { margin-top: 14px; font-size: 18px; line-height: 1.65; }
.doc ul { margin-top: 6px; padding-left: 1.2em; list-style: disc; }
.doc li { margin-top: 10px; }
.doc .note { margin-top: 0; margin-bottom: 28px; font-size: 16px; color: var(--ink-2); }
.footer-only { padding-top: 176px; padding-bottom: 40px; color: var(--paper); }
.footer-only .footer-row { margin-top: 0; padding-top: 0; border-top: 0; }
.footer-only a { color: var(--paper); }
.footer-only :focus-visible { outline-color: var(--lemon); }
@media (max-width: 760px) {
  .doc-head { padding-top: 28px; padding-bottom: 64px; }
  .doc { padding-top: 36px; padding-bottom: 96px; }
  .doc p, .doc li { font-size: 17px; }
  .footer-only { padding-top: 112px; }
}

/* ---------- Motion: switching language crosses over in 150ms; nothing
   moves for people who ask for less motion ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .15s; animation-timing-function: ease-out; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
