/* Gabriela Kanik — wizytówka. Paleta i krój za benchmarkiem (artentiidesigns.com). */

@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(/assets/fonts/ebgaramond-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(/assets/fonts/ebgaramond-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; }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400 600; font-display: swap;
  src: url(/assets/fonts/ebgaramond-italic-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400 600; font-display: swap;
  src: url(/assets/fonts/ebgaramond-italic-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; }

:root {
  --paper: #FFFDF9;
  --linen: #EFEAE0;
  --sage: #C3C1B0;
  --stone: #6E6D68;
  --ink: #2A1A14;
  --serif: "EB Garamond", "Garamond", "Baskerville", "Times New Roman", serif;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --measure: 34rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.1875rem;          /* 19px — Garamond ma mały oczek, na telefonie potrzebuje więcej */
  line-height: 1.62;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-weight: 400; margin: 0; text-wrap: balance; }
p, li, blockquote { text-wrap: pretty; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .5rem 1rem; z-index: 99; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- elementy wspólne ---------- */
.kicker {
  font-style: italic;
  color: var(--stone);
  font-size: 1.05rem;
  letter-spacing: .01em;
  margin: 0 0 .9rem;
}
.section-title {
  font-size: clamp(2.05rem, 7.4vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -.012em;
  margin-bottom: 1.6rem;
}
.prose { max-width: var(--measure); }
.prose strong { font-weight: 500; font-style: italic; }
.lead { font-size: 1.25rem; line-height: 1.55; max-width: 30rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem;
  padding: .7rem 1.9rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 1.15rem;
  letter-spacing: .02em;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

/* ---------- nagłówek ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: .55rem var(--gutter);
  padding-top: max(.55rem, env(safe-area-inset-top));
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.top__logo img { width: 7.6rem; }
.top__link { font-style: italic; font-size: 1.1rem; text-decoration: none; padding: .5rem 0 .5rem 1rem; }
.top__link:hover { text-decoration: underline; }

/* ---------- hero ---------- */
.hero { display: flex; flex-direction: column-reverse; }
.hero__photo { margin: 0 var(--gutter); }
.hero__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; animation: develop 1.6s ease-out both; }
.hero__text { padding: 2.2rem var(--gutter) 0; }
.hero__title {
  font-size: clamp(2.7rem, 11.5vw, 5.2rem);
  line-height: 1;
  letter-spacing: -.02em;
  margin-bottom: 1.4rem;
}
.hero .btn { margin-top: .6rem; width: 100%; }
.promises {
  list-style: none; padding: 0; margin: 1.6rem 0 0;
  display: flex; flex-wrap: wrap; gap: .2rem 1.1rem;
  font-style: italic; color: var(--stone); font-size: 1.05rem;
}
.promises li { display: flex; align-items: center; gap: .55rem; }
.promises li::before { content: ""; width: .32rem; height: .32rem; border-radius: 50%; background: var(--sage); }

@keyframes develop { from { opacity: 0; filter: sepia(.4) brightness(1.08); } to { opacity: 1; filter: none; } }

/* ---------- znacie to? ---------- */
.known { padding: 5.5rem var(--gutter) 2rem; }
.known__title { font-size: clamp(2.05rem, 7.4vw, 3.4rem); line-height: 1.06; margin-bottom: 2.2rem; }
.quotes { list-style: none; padding: 0; margin: 0 0 3rem; }
.quotes li {
  font-style: italic;
  font-size: clamp(1.6rem, 6.6vw, 2.5rem);
  line-height: 1.18;
  max-width: 17em;
  padding: 1.1rem 0;
  border-top: 1px solid var(--sage);
}
.quotes li:last-child { border-bottom: 1px solid var(--sage); }
.quotes li:nth-child(even) { margin-left: auto; text-align: right; }

/* ---------- stare, dobre czasy ---------- */
.turn { background: var(--linen); padding-bottom: 3.5rem; margin-top: 2rem; }
.turn__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 35%; }
.turn__text { padding: 2.6rem var(--gutter) 0; }
.turn__intro { font-style: italic; color: var(--stone); font-size: 1.2rem; margin-bottom: .4rem; }
.turn__big {
  font-size: clamp(2.5rem, 10.5vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  margin-bottom: 2rem;
  max-width: 11em;
}

/* ---------- oferta ---------- */
.offer { padding: 5.5rem var(--gutter) 3rem; }
.offer__list { display: grid; gap: 3.6rem; }
.session__photo img { width: 100%; }
.session__text { padding-top: 1.2rem; max-width: var(--measure); }
.session h3 { font-size: clamp(1.6rem, 5.8vw, 2.1rem); line-height: 1.12; margin-bottom: .7rem; }
.offer__more {
  margin: 3.6rem 0 0; padding-top: 1.4rem; border-top: 1px solid var(--sage);
  font-style: italic; font-size: 1.2rem; max-width: var(--measure);
}

/* ---------- styl pracy ---------- */
.style { padding: 3.5rem 0 4rem; }
.style__head, .style__prose { padding: 0 var(--gutter); }
.strip {
  list-style: none; margin: 0 0 2.6rem; padding: 0 var(--gutter);
  display: flex; gap: .75rem; align-items: flex-end;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: var(--gutter);
  scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
.strip li { flex: 0 0 62vw; scroll-snap-align: start; }
.strip li:nth-child(even) { flex-basis: 52vw; }
.strip img { width: 100%; }

/* ---------- o mnie ---------- */
.about { background: var(--ink); color: var(--paper); padding: 5.5rem var(--gutter); }
.about .kicker { color: var(--sage); }
.about__hello { font-size: 1.3rem; line-height: 1.5; }
.pull {
  margin: 2.4rem 0;
  font-style: italic;
  font-size: clamp(1.85rem, 7.4vw, 3rem);
  line-height: 1.12;
  max-width: 15em;
  padding-left: 1.1rem;
  border-left: 1px solid var(--sage);
}

.about__photo { position: relative; margin: 0 0 4.5rem; }
.about__photo > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about__city { position: absolute; left: -.4rem; bottom: -3rem; width: 34%; margin: 0; background: var(--paper); padding: .4rem .4rem .1rem; transform: rotate(-3deg); box-shadow: 0 8px 22px rgba(0, 0, 0, .35); }
.about__city img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.about__city figcaption { font-style: italic; color: var(--ink); font-size: .95rem; text-align: center; padding: .2rem 0 .3rem; }

/* ---------- opinie ---------- */
.voices { padding: 5rem var(--gutter) 5.5rem; border-top: 1px solid var(--sage); max-width: 1280px; margin: 0 auto; }
.voices__list { display: grid; gap: 3.2rem; }
.voice { margin: 0; max-width: var(--measure); }
.voice blockquote { margin: 0; font-size: 1.22rem; line-height: 1.55; }
.voice blockquote { border-left: 1px solid var(--sage); padding-left: 1.1rem; }
.voice figcaption { display: flex; align-items: center; gap: .8rem; font-style: italic; color: var(--stone); font-size: 1.1rem; }
.voice figcaption::before { content: ""; width: 1.6rem; height: 1px; background: var(--stone); }
.voice figcaption img { width: 2.6rem; height: 2.6rem; border-radius: 50%; object-fit: cover; object-position: 50% 25%; order: -1; }
.voice figcaption:has(img)::before { display: none; }

/* ---------- kadry ---------- */
.frames { padding: 5.5rem var(--gutter) 4rem; }
.frames__head { margin-bottom: 2.4rem; }
.gallery { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: .6rem; }
.gallery li { break-inside: avoid; margin-bottom: .6rem; }
.gallery button { display: block; width: 100%; padding: 0; border: 0; background: var(--linen); cursor: zoom-in; }
.frames__after { margin-top: 3rem; }

/* ---------- kontakt ---------- */
.contact { background: var(--linen); }
.contact__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 12%; }
.contact__text { padding: 3rem var(--gutter) 4.5rem; }
.contact__actions { display: grid; gap: .7rem; margin: 2rem 0 1.6rem; max-width: 24rem; }
.contact__details { font-style: italic; color: var(--stone); line-height: 1.9; }

/* ---------- stopka ---------- */
.foot { text-align: center; padding: 3.5rem var(--gutter) 7rem; color: var(--stone); font-size: 1rem; }
.foot img { width: 9rem; margin: 0 auto 1.2rem; opacity: .85; }
.foot p { margin: 0 0 .3rem; }
.foot__small { font-size: .9rem; }

/* ---------- przycisk na telefonie ---------- */
.dock {
  position: fixed; z-index: 30;
  left: 50%; bottom: max(1rem, env(safe-area-inset-bottom));
  transform: translate(-50%, 160%);
  padding: .8rem 2.2rem;
  border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-size: 1.15rem; letter-spacing: .02em; text-decoration: none;
  box-shadow: 0 6px 24px rgba(42, 26, 20, .25);
  transition: transform .35s ease;
}
.dock.is-visible { transform: translate(-50%, 0); }

/* ---------- lightbox ---------- */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(20, 13, 10, .96);
}
.lightbox::backdrop { background: rgba(20, 13, 10, .96); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 100%; max-height: 100dvh; object-fit: contain; }
.lightbox button {
  position: absolute; border: 0; background: none; color: var(--paper);
  font-family: var(--serif); font-size: 2.6rem; line-height: 1; padding: .6rem 1rem; cursor: pointer;
}
.lightbox__close { top: max(.4rem, env(safe-area-inset-top)); right: .4rem; }
.lightbox__prev { left: .2rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: .2rem; top: 50%; transform: translateY(-50%); }

/* ---------- tablet ---------- */
@media (min-width: 640px) {
  .hero .btn { width: auto; }
  .gallery { columns: 3; }
  .offer__list { grid-template-columns: 1fr 1fr; gap: 4rem 2.5rem; }
  .strip li, .strip li:nth-child(even) { flex-basis: 34vw; }
  .contact__actions { grid-template-columns: 1fr; }
}

/* ---------- desktop ---------- */
@media (min-width: 960px) {
  body { font-size: 1.25rem; }
  .top__logo img { width: 9rem; }

  .hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 5vw; max-width: 1280px; margin: 0 auto; padding: 1.5rem var(--gutter) 4rem; }
  .hero__text { padding: 0; }
  .hero__photo { margin: 0; }
  .hero__photo img { aspect-ratio: 4 / 5; max-height: calc(100svh - 8rem); width: auto; margin-left: auto; }

  .known { display: grid; grid-template-columns: 1fr 1fr; gap: 0 6vw; padding: 9rem var(--gutter) 5rem; max-width: 1280px; margin: 0 auto; }
  .known__title { grid-column: 1 / -1; }
  .quotes { margin: 0; }
  .known .prose { align-self: end; }

  .turn { display: grid; grid-template-columns: 45% 1fr; align-items: center; padding-bottom: 0; }
  .turn__photo img { aspect-ratio: auto; height: 100%; min-height: 80svh; }
  .turn__text { padding: 4rem 6vw; }

  .offer { padding: 9rem var(--gutter) 5rem; max-width: 1280px; margin: 0 auto; }
  .offer__list .session:nth-child(even) { margin-top: 7rem; }

  .style { padding: 6rem 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 6vw; max-width: 1280px; margin: 0 auto; }
  .style__head { grid-column: 1; }
  .style__prose { grid-column: 2; grid-row: 1 / span 2; padding-top: 2.6rem; }
  .strip { grid-column: 1 / -1; grid-row: 3; overflow: visible; margin: 3rem 0 0; }
  .strip li, .strip li:nth-child(even) { flex: 1 1 0; }
  .strip li:nth-child(even) { transform: translateY(-2rem); }

  .about { display: grid; grid-template-columns: 1fr 1fr; gap: 0 6vw; padding: 9rem max(var(--gutter), calc((100vw - 1280px) / 2 + var(--gutter))); }
  .about > .kicker, .about > .section-title { grid-column: 1; }
  .about > .prose:first-of-type { grid-column: 1; }
  .about .pull { grid-column: 1; }
  .about__photo { grid-column: 2; grid-row: 1 / span 5; align-self: start; position: sticky; top: 6rem; margin: 0; }
  .about > .prose:last-of-type { grid-column: 1; }

  .frames { padding: 9rem var(--gutter) 6rem; max-width: 1400px; margin: 0 auto; }
  .frames__head { display: grid; grid-template-columns: 1fr 1fr; gap: 0 6vw; margin-bottom: 3.5rem; }
  .frames__head .prose { grid-column: 2; grid-row: 1 / span 2; align-self: end; }
  .gallery { columns: 4; column-gap: 1rem; }
  .gallery li { margin-bottom: 1rem; }
  .frames__after { margin: 4rem auto 0; text-align: center; }

  .voices { padding: 8rem var(--gutter); }
  .voices__list { grid-template-columns: 1.15fr 1fr; gap: 3.5rem 6vw; align-items: start; }
  .voice--long { grid-row: span 2; }
  .voice--long blockquote { font-size: 1.45rem; line-height: 1.5; }

  .contact { display: grid; grid-template-columns: 40% 1fr; align-items: center; }
  .contact__photo img { aspect-ratio: auto; height: 100%; min-height: 85svh; }
  .contact__text { padding: 5rem 7vw; }

  .dock { display: none; }
}

@media (hover: hover) {
  .gallery button img { transition: opacity .25s; }
  .gallery button:hover img { opacity: .88; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
