/* barauskas.media, shared core. Owned by the lead: page builders do not edit this file.
   Brand in one breath: he shoots seven kinds of occasion, a visitor comes for one. Each occasion owns a muted field colour and the
   page takes it. One typeface, Archivo: expanded and heavy only for occasion words and one title per page, plain for everything else.
   The script wordmark is the only flourish. The red record dot from his own mark means "now showing". */

@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; 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; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* neutrals. The site is light, like his present one: --ink is the paper a page is made of, --fog is what is written on it.
     (The names come from the first, dark version; the dark set still lives below for whatever stands on a photograph.) */
  --ink: oklch(98% 0.003 230);
  --ink-2: oklch(95.5% 0.005 230);
  --fog: oklch(24% 0.012 245);
  --fog-2: oklch(43% 0.014 240);
  --dim: oklch(24% 0.012 245 / 0.3);
  --mute: oklch(24% 0.012 245 / 0.56);
  --line: oklch(24% 0.012 245 / 0.16);
  --veil: oklch(98% 0.003 230 / 0.92);
  --shade: oklch(12% 0.012 245 / 0.62);
  --shade-0: oklch(12% 0.012 245 / 0);
  /* the record dot */
  --rec: oklch(60% 0.2 27);
  --rec-deep: oklch(50% 0.19 27);
  --rec-ink: oklch(98% 0.01 27);
  --rgb-a: oklch(62% 0.2 27 / 0.9);
  --rgb-b: oklch(78% 0.12 210 / 0.9);
  /* review stars */
  --gold: oklch(74% 0.14 82);
  /* one pale field per occasion */
  --f-vestuves: oklch(93.5% 0.024 160);
  --f-krikstynos: oklch(93.5% 0.022 25);
  --f-renginiai: oklch(93% 0.024 295);
  --f-portretai: oklch(93.5% 0.009 60);
  --f-auto: oklch(93% 0.02 252);
  --f-dronas: oklch(93% 0.024 215);
  --f-nt: oklch(93.5% 0.02 105);
  --field: var(--ink);
  /* type */
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --t-xs: 0.875rem;
  --t-sm: 0.9375rem;
  --t-md: 1.0625rem;
  --t-lg: clamp(1.1875rem, 1.5vw, 1.4375rem);
  --t-xl: clamp(1.5rem, 2.6vw, 2.5rem);
  --t-2xl: clamp(2rem, 4.4vw, 4.25rem);
  /* space */
  --gut: clamp(1.25rem, 4vw, 3.5rem);
  --wrap: 92rem;
  --top-h: 5rem;
  --sec: clamp(5rem, 11vw, 10rem);
  --dock-h: 0rem;
  /* motion: one hand. Entrances ease out hard, moves between states ease in and out. */
  --out: cubic-bezier(0.16, 1, 0.3, 1);
  --inout: cubic-bezier(0.65, 0, 0.35, 1);
  --d-fast: 0.2s;
  --d-mid: 0.45s;
  --d-slow: 0.9s;
  /* layers */
  --z-top: 30; --z-cur: 70; --z-curtain: 80; --z-intro: 90;
}
body[data-occ="vestuves"] { --field: var(--f-vestuves); }
body[data-occ="krikstynos"] { --field: var(--f-krikstynos); }
body[data-occ="renginiai"] { --field: var(--f-renginiai); }
body[data-occ="portretai"] { --field: var(--f-portretai); }
body[data-occ="auto"] { --field: var(--f-auto); }
body[data-occ="dronas"] { --field: var(--f-dronas); }
body[data-occ="nt"] { --field: var(--f-nt); }
/* Whatever stands on a photograph keeps the dark set: white words, deep veils. Put class="dk" on such a block.
   The header takes it too while a full-width photograph runs under it. */
.dk, body.is-clear .top, .lb, .intro {
  --ink: oklch(17% 0.012 245);
  --ink-2: oklch(21% 0.014 245);
  --fog: oklch(94.5% 0.006 240);
  --fog-2: oklch(80% 0.012 240);
  --dim: oklch(94.5% 0.006 240 / 0.3);
  --mute: oklch(94.5% 0.006 240 / 0.52);
  --line: oklch(94.5% 0.006 240 / 0.2);
  --veil: oklch(17% 0.012 245 / 0.9);
  --f-vestuves: oklch(29% 0.04 160);
  --f-krikstynos: oklch(32% 0.042 25);
  --f-renginiai: oklch(27% 0.05 295);
  --f-portretai: oklch(25% 0.008 60);
  --f-auto: oklch(29% 0.04 252);
  --f-dronas: oklch(30% 0.045 215);
  --f-nt: oklch(32% 0.028 105);
  --field: var(--ink);
  color: var(--fog);
}
body[data-occ="vestuves"] .dk { --field: var(--f-vestuves); }
body[data-occ="krikstynos"] .dk { --field: var(--f-krikstynos); }
body[data-occ="renginiai"] .dk { --field: var(--f-renginiai); }
body[data-occ="portretai"] .dk { --field: var(--f-portretai); }
body[data-occ="auto"] .dk { --field: var(--f-auto); }
body[data-occ="dronas"] .dk { --field: var(--f-dronas); }
body[data-occ="nt"] .dk { --field: var(--f-nt); }
/* use on any element to give it an occasion's field colour: style="--field: var(--f-vestuves)" or data-field="vestuves" */
[data-field="vestuves"] { --field: var(--f-vestuves); }
[data-field="krikstynos"] { --field: var(--f-krikstynos); }
[data-field="renginiai"] { --field: var(--f-renginiai); }
[data-field="portretai"] { --field: var(--f-portretai); }
[data-field="auto"] { --field: var(--f-auto); }
[data-field="dronas"] { --field: var(--f-dronas); }
[data-field="nt"] { --field: var(--f-nt); }
[data-field="ink"] { --field: var(--ink); }

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; overflow-x: clip; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; background: var(--ink); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
body { min-height: 100svh; background: var(--field); color: var(--fog); font: 400 var(--t-md)/1.55 var(--font); font-stretch: 100%; transition: background-color 0.7s var(--out); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--fog); color: var(--ink); }
html { scrollbar-color: var(--dim) transparent; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--fog); outline-offset: 3px; }
#app { outline: none; min-height: calc(100svh - var(--top-h)); }
.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }

/* type roles (BRIEF section 2). Use these, define no others. */
.t-title { font-weight: 600; font-stretch: 100%; font-size: var(--t-2xl); line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
.t-quote { font-weight: 350; font-stretch: 100%; font-size: var(--t-xl); line-height: 1.25; letter-spacing: -0.008em; text-wrap: pretty; }
.t-row { font-weight: 520; font-size: var(--t-lg); line-height: 1.25; }
.t-label { font-weight: 500; font-size: var(--t-xs); font-stretch: 108%; color: var(--fog-2); line-height: 1.4; }
.g12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1.5rem; }
@media (max-width: 52rem) { .g12 { column-gap: 0.75rem; } }
/* type helpers */
.x { font-weight: 760; font-stretch: 125%; text-transform: uppercase; letter-spacing: -0.015em; line-height: 0.95; overflow-wrap: break-word; min-width: 0; }
.h { font-weight: 560; font-size: var(--t-xl); line-height: 1.12; letter-spacing: -0.012em; text-wrap: balance; }
.lede { font-weight: 480; font-size: var(--t-lg); line-height: 1.38; text-wrap: pretty; }
.sub { color: var(--fog-2); }
.small { font-size: 0.875rem; }
.note { font-size: var(--t-xs); color: var(--fog-2); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--gut); top: -4rem; z-index: 100; background: var(--fog); color: var(--ink); padding: 0.75rem 1rem; }
.skip:focus-visible { top: 0.75rem; }
/* a quotation: real Lithuanian marks are in the text; the opening mark hangs in the margin */
.q { text-indent: 0; }

/* SplitText line masks need room for Ė Š Ž Ų and descenders */
.ln-mask, .line-mask { padding-block: 0.18em; margin-block: -0.18em; }

/* photographs: .ph holds a blurred placeholder until the image has loaded */
.ph { position: relative; display: block; overflow: hidden; background: var(--line) var(--lq, none) center / cover no-repeat; }
.ph img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.5s var(--out); }
.ph img.is-in { opacity: 1; }
/* a caption that sits INSIDE a photo's corner (never put text under a photo) */
.ph__cap { position: absolute; left: 0; bottom: 0; z-index: 2; padding: 0.5rem 0.75rem; font-size: var(--t-xs); font-weight: 500; background: var(--veil); }

/* actions */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 3.25rem; padding: 0 1.5rem; border: 1px solid var(--fog); border-radius: 2px; background: var(--fog); color: var(--ink); font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; transition: background-color var(--d-fast) var(--out), border-color var(--d-fast) var(--out), color var(--d-fast) var(--out), transform 0.15s var(--out); }
.btn:hover { background: transparent; color: var(--fog); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn--line { background: transparent; color: var(--fog); border-color: var(--line); }
.btn--line:hover { background: var(--fog); border-color: var(--fog); color: var(--ink); }
.btn--sm { min-height: 2.75rem; padding: 0 1.125rem; font-size: 0.9375rem; }
.link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.3em; text-decoration-color: var(--line); transition: text-decoration-color var(--d-fast) var(--out); }
.link:hover { text-decoration-color: var(--fog); }
.back { display: inline-flex; align-items: center; gap: 0.5rem; font-size: var(--t-sm); font-weight: 500; text-decoration: none; min-height: 2.75rem; color: var(--fog-2); transition: color var(--d-fast) var(--out); }
.back:hover { color: var(--fog); }
.back svg { width: 1rem; height: 1rem; }
.rec { display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--rec); }

/* header: hides when scrolling down, returns when scrolling up */
.top { position: sticky; top: 0; z-index: var(--z-top); background: var(--field); transition: background-color 0.7s var(--out), transform 0.45s var(--out); }
.top.is-away { transform: translateY(-101%); }
/* a page that opens on a full-width photograph lets it run under the header until the visitor scrolls */
body.is-clear .top { background: transparent; }
.top__in { height: var(--top-h); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.top__logo { flex-shrink: 0; display: block; }
.top__logo img { height: 2.75rem; width: auto; max-width: none; }
/* the dark wordmark on paper, the light one over a photograph */
.top__logo .logo--light, body.is-clear .top .logo--ink { display: none; }
body.is-clear .top .logo--light { display: block; }
.top__logo:hover img { animation: split 0.28s steps(2, end); }
.top__nav { display: flex; align-items: center; gap: clamp(1.25rem, 2.4vw, 2.25rem); font-size: var(--t-sm); font-weight: 500; }
.top__nav a:not(.btn) { text-decoration: none; padding-block: 0.75rem; background: linear-gradient(currentColor, currentColor) 0 calc(100% - 0.5rem) / 0 1px no-repeat; transition: background-size 0.35s var(--out); }
.top__nav a:not(.btn):hover, .top__nav a[aria-current="page"]:not(.btn) { background-size: 100% 1px; }
@media (max-width: 52rem) { :root { --top-h: 4.25rem; } .top__nav { display: none; } .top__in { justify-content: center; } .top__logo img { height: 2.25rem; } }
@keyframes split { 0% { filter: drop-shadow(-3px 0 var(--rgb-a)) drop-shadow(3px 0 var(--rgb-b)); transform: translateX(1px); } 50% { filter: drop-shadow(2px 0 var(--rgb-a)) drop-shadow(-2px 0 var(--rgb-b)); transform: translateX(-1px); } 100% { filter: none; transform: none; } }
@keyframes rec { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* footer: the one ending of every page. Three columns divided by hairlines: social links, the wordmark with his sentence, phone and mail. */
.foot { background: var(--ink); border-top: 1px solid var(--line); padding-block: clamp(3rem, 6vw, 5rem) 1.25rem; font-size: var(--t-sm); }
.foot__cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; }
.foot__col { display: grid; gap: 1.75rem; padding-block: 0.75rem; }
.foot__col--r { justify-self: end; }
.foot__col a { display: inline-grid; gap: 0.3rem; min-height: 2.75rem; text-decoration: none; }
.foot__k { display: flex; align-items: center; gap: 0.625rem; font-size: var(--t-lg); font-weight: 560; line-height: 1.25; }
.foot__k svg { width: 1.25rem; height: 1.25rem; flex: none; color: var(--fog-2); }
.foot__v { color: var(--fog-2); overflow-wrap: anywhere; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.3em; text-decoration-color: transparent; transition: text-decoration-color var(--d-fast) var(--out), color var(--d-fast) var(--out); }
.foot__col a:hover .foot__v { color: var(--fog); text-decoration-color: currentColor; }
.foot__mid { display: grid; justify-items: center; gap: 1.25rem; padding: 1rem clamp(1.5rem, 4vw, 4rem); margin-inline: clamp(1.5rem, 4vw, 4rem); border-inline: 1px solid var(--line); text-align: center; }
.foot__logo img { display: block; width: auto; height: 3.25rem; }
.foot__mid p { max-width: 30ch; color: var(--fog-2); font-size: var(--t-md); line-height: 1.6; text-wrap: balance; }
.foot__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 1.75rem; margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 0.75rem; border-top: 1px solid var(--line); font-size: var(--t-xs); color: var(--fog-2); }
.foot__row a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 calc(100% - 0.7rem) / 0 1px no-repeat; transition: background-size 0.35s var(--out); }
.foot__row a:hover { background-size: 100% 1px; }
@media (max-width: 52rem) {
  .foot__cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 2.25rem; align-items: start; }
  .foot__mid { grid-column: 1 / -1; grid-row: 1; margin: 0; padding: 0 0 2.25rem; border-inline: 0; border-bottom: 1px solid var(--line); }
  .foot__col--r { justify-self: start; }
  .foot__k { font-size: var(--t-md); }
}

/* phone: a dock at the bottom replaces the header links (thumb reach), no hamburger */
.dock { display: none; }
@media (max-width: 52rem) {
  :root { --dock-h: 3.75rem; }
  .dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-top); display: grid; grid-template-columns: 1fr 1fr 1fr auto; align-items: center; gap: 0.25rem; padding: 0.5rem max(0.5rem, env(safe-area-inset-left)) calc(0.5rem + env(safe-area-inset-bottom)) max(0.5rem, env(safe-area-inset-right)); background: var(--ink); border-top: 1px solid var(--line); font-size: 0.9375rem; font-weight: 550; }
  .dock a { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: 0 0.5rem; text-decoration: none; border-radius: 2px; }
  .dock a[aria-current="page"]:not(.dock__cta) { box-shadow: inset 0 -2px 0 var(--fog); }
  .dock .dock__cta { background: var(--fog); color: var(--ink); padding: 0 0.875rem; font-weight: 620; }
  .dock .dock__cta[aria-current="page"] { background: transparent; color: var(--fog); box-shadow: inset 0 0 0 1px var(--fog); }
  body { padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom)); }
}
/* photo viewer */
.lb { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: var(--ink); color: var(--fog); overflow: hidden; }
.lb::backdrop { background: var(--ink); }
.lb__stage { position: absolute; inset: 3.75rem 0 1.5rem; display: grid; place-items: center; touch-action: pan-y; }
.lb__stage img { max-width: calc(100vw - 2 * var(--gut) - 8.5rem); max-height: calc(100svh - 5.25rem); width: auto; height: auto; object-fit: contain; }
.lb__bar { position: absolute; left: 0; right: 0; top: 0; height: 3.75rem; display: flex; align-items: center; justify-content: space-between; padding-inline: var(--gut); font-size: 0.875rem; }
.lb__nav { position: absolute; top: 50%; z-index: 2; width: 3.25rem; height: 3.25rem; margin-top: -1.625rem; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--veil); cursor: pointer; transition: border-color var(--d-fast) var(--out), transform 0.15s var(--out); }
.lb__nav:hover { border-color: var(--fog); }
.lb__nav:active { transform: scale(0.95); }
.lb__nav svg { width: 1.125rem; height: 1.125rem; }
.lb__nav--prev { left: var(--gut); }
.lb__nav--next { right: var(--gut); }
@media (max-width: 40rem) { .lb__stage { inset: 3.75rem 0 4rem; } .lb__stage img { max-width: 100vw; max-height: calc(100svh - 7.75rem); } .lb__nav { top: auto; bottom: 0.5rem; margin: 0; width: 2.75rem; height: 2.75rem; z-index: 3; } }

/* page change: a curtain in the colour of the place you are going to */
.curtain { position: fixed; inset: 0; z-index: var(--z-curtain); background: var(--ink); transform: translateY(101%); pointer-events: none; will-change: transform; }
/* first visit: the wordmark, then the page */
.intro { position: fixed; inset: 0; z-index: var(--z-intro); display: grid; place-items: center; background: var(--ink); }
.intro img { height: clamp(3.5rem, 9vw, 6rem); width: auto; }
.intro i { position: absolute; left: 50%; top: calc(50% + clamp(3rem, 7vw, 4.5rem)); width: 0.625rem; height: 0.625rem; margin-left: -0.3125rem; border-radius: 50%; background: var(--rec); animation: rec 0.8s ease-in-out infinite; }

/* the record dot as pointer over photographs and films: add data-cur="Žiūrėti" to the element */
.cur { position: fixed; left: 0; top: 0; z-index: var(--z-cur); width: 5.5rem; height: 5.5rem; margin: -2.75rem 0 0 -2.75rem; border-radius: 50%; background: var(--rec-deep); color: var(--rec-ink); display: grid; place-items: center; font-size: 0.8125rem; font-weight: 600; pointer-events: none; visibility: hidden; opacity: 0; will-change: transform; }
@media (hover: none), (pointer: coarse) { .cur { display: none; } }

/* text pages */
.legal { max-width: 44rem; padding-block: clamp(1.5rem, 4vw, 3.5rem) clamp(4rem, 8vw, 7rem); }
.legal h1 { font-size: var(--t-2xl); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; margin-bottom: 1rem; }
.legal h2 { font-size: 1.1875rem; font-weight: 650; margin: 2.25rem 0 0.5rem; }
.legal p, .legal li { color: var(--fog-2); }
.legal ul { list-style: disc; padding-left: 1.25rem; margin-block: 0.5rem; }

@media (prefers-reduced-motion: reduce) {
  body, .top, .btn, .link, .ph img, .back, .top__nav a, .foot a, .foot__v, .foot__row a, .lb__nav { transition: none; }
  .top__logo:hover img, .intro i { animation: none; }
  .curtain { display: none; }
}
