/* ============================================================
   KVASARO — świece sojowe z charakterem
   Skin: „laboratorium” — papier, mono, kondensowane kapitaliki
   Type: Oswald (display) · IBM Plex Mono (body)
   ============================================================ */

:root {
  --paper: #f6f5f0;
  --panel: #edece5;
  --tile: #ffffff;
  --ink: #1d1d1b;
  --gray: #6d6c66;
  --hairline: #d9d7cc;
  --maxw: 1280px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: 14px;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--gray); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- typography ---------- */

h1, h2, h3,
.disp {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--ink);
}

.lead { color: var(--gray); }

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 14px;
}

/* ---------- announcement bar ---------- */

.bar {
  background: #55544f;
  color: #f2f1ea;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 9px 16px;
}

/* ---------- header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
}

.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.logo {
  text-decoration: none;
  display: inline-block;
  line-height: 1;
}

.logo .logo-word {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-weight: 700;
  font-size: 27px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.logo .logo-tm { font-size: 11px; vertical-align: super; font-weight: 400; }

.logo .logo-sub {
  display: block;
  margin-top: 3px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
}

.nav { display: flex; gap: 30px; }

.nav a {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--gray); }
.nav a[aria-current="page"] { border-bottom-color: var(--ink); }

.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 14px;
  cursor: pointer;
}

/* ---------- hero (index) ---------- */

.hero { position: relative; }

.hero-photo { position: relative; overflow: hidden; }

.hero-photo img {
  width: 100%;
  height: min(78vh, 720px);
  object-fit: cover;
  object-position: center 60%;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 19, 16, 0.55), rgba(20, 19, 16, 0) 55%);
}

.hero-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 40px;
  z-index: 2;
  color: #fff;
}

.hero-copy h1 {
  color: #fff;
  font-size: clamp(30px, 4.6vw, 54px);
  letter-spacing: 0.03em;
  max-width: 18ch;
}

.hero-copy p {
  margin-top: 12px;
  max-width: 52ch;
  color: #eceae2;
  font-size: 13px;
}

.hero-links { margin-top: 18px; display: flex; gap: 28px; flex-wrap: wrap; }

.hero-links a { color: #fff; font-size: 13px; }
.hero-links a:hover { color: #d9d6ca; }

/* ---------- sections ---------- */

.section { padding: 72px 0; }
.section-alt { background: var(--panel); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }

.boxed-head {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--hairline);
  padding: 14px 0 12px;
  margin-bottom: 40px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.boxed-head h2 { font-size: clamp(20px, 2.6vw, 28px); }

.boxed-head p { color: var(--gray); font-size: 13px; max-width: 60ch; }

/* manifest columns */

.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.pillar {
  padding: 26px 26px 30px;
  border-right: 1px solid var(--hairline);
}
.pillar:first-child { padding-left: 0; }
.pillar:last-child { border-right: none; }

.pillar h3 { font-size: 16px; margin-bottom: 10px; }
.pillar p { color: var(--gray); font-size: 12.5px; }

/* product cards */

.cards, .grid-collection {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--tile);
  border: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
}

.card img { background: #fff; padding: 18px 18px 0; }

.card-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  border-top: 1px solid var(--hairline);
  margin-top: 18px;
}

.card-body h3 { font-size: 15px; letter-spacing: 0.05em; }

.card-body p { font-size: 12.5px; color: var(--gray); flex: 1; }

.card-specs {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

.more-link { margin-top: 40px; text-align: center; font-size: 13px; }

/* buttons */

.btn {
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 26px;
  border: 1px solid var(--ink);
}

.btn-solid { background: var(--ink); color: #f6f5f0; }
.btn-solid:hover { background: #3a3934; color: #fff; }

.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #f6f5f0; }

/* split */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split img { border: 1px solid var(--hairline); }

.split h2 { font-size: clamp(22px, 3vw, 32px); margin-bottom: 16px; }
.split p { color: var(--gray); margin-bottom: 12px; font-size: 13.5px; }

/* quote band */

.quote-band {
  text-align: center;
  padding: 64px 24px;
  border-top: 1px solid var(--hairline);
}

.quote-band .quote {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(20px, 3vw, 30px);
  display: block;
  max-width: 30ch;
  margin: 0 auto;
}

.quote-band small {
  display: block;
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray);
}

/* page hero (subpages) */

.page-hero { padding: 56px 0 8px; }
.page-hero h1 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 14px; }
.page-hero .lead { max-width: 68ch; font-size: 13.5px; }

/* gift strip */

.gift-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gift-strip figure { border: 1px solid var(--hairline); background: var(--tile); }

.gift-strip img { aspect-ratio: 1 / 1; object-fit: cover; }

.gift-strip figcaption {
  padding: 12px 14px;
  font-size: 12px;
  color: var(--gray);
  border-top: 1px solid var(--hairline);
}

/* steps (o nas) */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.step { padding: 26px 26px 30px; border-right: 1px solid var(--hairline); }
.step:first-child { padding-left: 0; }
.step:last-child { border-right: none; }

.step .step-no {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 12px;
}

.step h3 { font-size: 16px; margin-bottom: 10px; }
.step p { color: var(--gray); font-size: 12.5px; }

/* contact */

.contact-hero { padding: 90px 0 70px; text-align: center; }

.contact-hero h1 { font-size: clamp(30px, 4.6vw, 52px); margin-bottom: 18px; }

.contact-hero .lead { max-width: 58ch; margin: 0 auto 44px; font-size: 13.5px; }

.contact-mail {
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(18px, 3vw, 30px);
  letter-spacing: 0.02em;
}

.contact-meta {
  margin-top: 56px;
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.contact-meta > div {
  padding: 24px 44px;
  border-right: 1px solid var(--hairline);
  text-align: center;
  flex: 1;
}
.contact-meta > div:last-child { border-right: none; }

.contact-meta h3 {
  font-size: 13px;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.contact-meta p { color: var(--gray); font-size: 12.5px; }

/* footer */

.site-foot {
  background: var(--panel);
  border-top: 1px solid var(--hairline);
  padding: 40px 0;
  font-size: 12px;
}

.site-foot .wrap {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.site-foot .logo .logo-word { font-size: 20px; }

.foot-nav { display: flex; gap: 24px; flex-wrap: wrap; }

.foot-nav a {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}
.foot-nav a:hover { text-decoration: underline; }

.foot-copy { color: var(--gray); }

/* motion: skin „laboratorium” jest statyczny */
.reveal { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .cards, .grid-collection, .gift-strip { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .pillar { padding-left: 0; }
  .pillar:nth-child(2n) { border-right: none; }
  .pillar:nth-child(-n+2) { border-bottom: 1px solid var(--hairline); }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: none; border-bottom: 1px solid var(--hairline); padding-left: 0; }
  .step:last-child { border-bottom: none; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.split-rev img { order: -1; }
}

@media (max-width: 640px) {
  .cards, .grid-collection, .gift-strip { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: none; border-bottom: 1px solid var(--hairline); }
  .pillar:last-child { border-bottom: none; }
  .section { padding: 52px 0; }

  .hero-photo img { height: 66vh; }

  .menu-btn { display: block; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--hairline);
    padding: 4px 28px 14px;
  }

  .nav.open { display: flex; }

  .nav a { padding: 13px 0; border-bottom: 1px solid var(--hairline); }
  .nav a:last-child { border-bottom: none; }
  .nav a[aria-current="page"] { border-bottom-color: var(--hairline); }

  .contact-meta { flex-direction: column; }
  .contact-meta > div { border-right: none; border-bottom: 1px solid var(--hairline); }
  .contact-meta > div:last-child { border-bottom: none; }
}
