/* Ewa Job — editorial, ciepły, profesjonalny. Kolory w jednym miejscu. */
:root {
  --paper: #fbf7f2;
  --cream: #f4ece2;
  --blush: #efdccd;
  --sage: #e3e8df;
  --ink: #1f2a24;
  --ink-soft: #4f5a53;
  --muted: #7d857f;
  --clay: #b5643f;
  --clay-dark: #8e4a2b;
  --line: rgba(31, 42, 36, 0.12);
  --shadow: 0 30px 60px -30px rgba(31, 42, 36, 0.35);
  --radius: 22px;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--blush); }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 760px) { .wrap { padding: 0 2rem; } }

/* --- typografia --- */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; margin: 0; }
.display {
  font-size: clamp(2.6rem, 1.6rem + 4.5vw, 5.2rem);
  line-height: 1.02;
  font-variation-settings: 'opsz' 144;
}
.h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); line-height: 1.08; }
.h2 em, .display em, .lead em { font-style: italic; color: var(--clay); }
h3 { font-size: 1.5rem; line-height: 1.2; }
.kicker, .eyebrow {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--clay); margin: 0 0 1rem;
}
.eyebrow { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.45rem 0.95rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.6); color: var(--ink-soft); letter-spacing: 0.08em; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--clay); box-shadow: 0 0 0 4px rgba(181,100,63,.18); }
.lead { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); color: var(--ink-soft); max-width: 34ch; margin: 1.5rem 0 0; }

/* --- przyciski --- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.95rem 1.6rem; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-weight: 500; font-size: 0.98rem; text-decoration: none;
  border: 1px solid var(--ink);
  transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--clay); border-color: var(--clay); box-shadow: 0 14px 30px -12px rgba(181,100,63,.6); }
.btn span { transition: transform .25s ease; }
.btn:hover span { transform: translateX(4px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); box-shadow: none; }
.btn-small { padding: 0.6rem 1.15rem; font-size: 0.88rem; }
.btn-light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-light:hover { background: var(--blush); border-color: var(--blush); color: var(--ink); }
.btn-outline-light { background: transparent; color: var(--paper); border-color: rgba(251,247,242,.35); }
.btn-outline-light:hover { background: rgba(251,247,242,.1); border-color: var(--paper); box-shadow: none; }
.link-arrow { display: inline-flex; gap: .5rem; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--clay); padding-bottom: 2px; color: var(--clay-dark); }

/* --- nagłówek --- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 242, 0.78);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.topbar.scrolled { border-bottom-color: var(--line); background: rgba(251, 247, 242, 0.92); }
.bar { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 1rem; padding: 0.85rem 1.25rem; }
@media (min-width: 760px) { .bar { padding: 1rem 2rem; } }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; margin-right: auto; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: var(--paper);
  font-family: var(--serif); font-style: italic; font-size: 1.05rem;
}
.brand-text { font-family: var(--serif); font-size: 1.3rem; line-height: 1; display: flex; flex-direction: column; gap: 0.25rem; }
.brand-text small { font-family: var(--sans); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.menu { display: none; gap: 0.15rem; }
.menu a {
  position: relative; padding: 0.5rem 0.9rem; text-decoration: none;
  font-size: 0.93rem; color: var(--ink-soft); border-radius: 999px; transition: color .2s, background .2s;
}
.menu a:hover { color: var(--ink); background: var(--cream); }
.menu a.active { color: var(--ink); }
.menu a.active::after { content: ''; position: absolute; left: 50%; bottom: 2px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--clay); }
.nav-cta { display: none; }
.toggle { display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; padding: 0; }
.toggle span { display: block; width: 18px; height: 1.5px; background: var(--ink); margin: 0 auto; transition: transform .3s ease; }
.toggle.open span:first-child { transform: translateY(3.75px) rotate(45deg); }
.toggle.open span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.menu-mobile { display: none; flex-direction: column; padding: 0.5rem 1.25rem 1.25rem; }
.menu-mobile.open { display: flex; }
.menu-mobile a { padding: 0.9rem 0; font-family: var(--serif); font-size: 1.5rem; text-decoration: none; border-top: 1px solid var(--line); }
@media (min-width: 900px) {
  .menu { display: flex; }
  .nav-cta { display: inline-flex; margin-left: 0.5rem; }
  .toggle, .menu-mobile, .menu-mobile.open { display: none; }
}

/* --- hero --- */
.hero { position: relative; padding: 2.5rem 0 4rem; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle at center, rgba(239,220,205,.9), rgba(239,220,205,0) 65%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; gap: 3rem; align-items: center; }
@media (min-width: 960px) { .hero { padding: 4.5rem 0 6rem; } .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 4rem; } }
.hero .display { margin-top: 1.4rem; max-width: 13ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.2rem; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 3rem 0 0; padding-top: 1.75rem; border-top: 1px solid var(--line); max-width: 520px; }
.hero-stats dt { font-family: var(--serif); font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); line-height: 1; color: var(--ink); }
.hero-stats dd { margin: 0.45rem 0 0; font-size: 0.82rem; color: var(--muted); line-height: 1.35; }

.hero-visual { position: relative; max-width: 440px; margin: 0 auto; width: 100%; }
.arch {
  position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px var(--radius) var(--radius);
  overflow: hidden; background: linear-gradient(160deg, var(--blush), var(--sage));
  box-shadow: var(--shadow);
}
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transform: scale(1.02); transition: transform 1.2s ease; }
.hero-visual:hover .arch img { transform: scale(1.06); }
.badge {
  position: absolute; background: #fff; border-radius: 16px; padding: 0.8rem 1rem;
  font-size: 0.82rem; line-height: 1.35; color: var(--ink-soft); box-shadow: 0 18px 40px -18px rgba(31,42,36,.35);
  max-width: 190px; animation: float 6s ease-in-out infinite;
}
.badge strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.15rem; color: var(--ink); }
.badge-a { left: -1rem; bottom: 18%; }
.badge-b { right: -0.75rem; top: 12%; animation-delay: -3s; }
.stars { display: block; color: var(--clay); letter-spacing: 2px; font-size: 0.8rem; margin-bottom: 0.15rem; }
.squiggle { position: absolute; right: -10px; bottom: -28px; width: 150px; color: var(--clay); opacity: .7; }
@media (max-width: 520px) { .badge-a { left: 0.5rem; } .badge-b { right: 0.5rem; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* --- ticker --- */
.ticker { background: var(--ink); color: var(--paper); overflow: hidden; padding: 1.1rem 0; }
.ticker-track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker-track span { font-family: var(--serif); font-style: italic; font-size: 1.15rem; padding: 0 2rem; white-space: nowrap; position: relative; }
.ticker-track span::after { content: '\2726'; position: absolute; right: -0.45rem; font-style: normal; font-size: 0.75rem; top: 50%; transform: translateY(-50%); color: var(--clay); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* --- sekcje --- */
.section { padding: 5rem 0; }
.section-tight { padding: 3.5rem 0 5rem; }
.section-tint { background: var(--cream); }
@media (min-width: 960px) { .section { padding: 7.5rem 0; } }
.section-head { max-width: 720px; margin-bottom: 3rem; }

.cards { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.feature {
  position: relative; padding: 2rem 1.75rem 2.25rem; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.feature .icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--blush); color: var(--clay-dark); margin-bottom: 1.5rem; }
.feature:nth-child(2) .icon { background: var(--sage); color: var(--ink); }
.feature:nth-child(3) .icon { background: var(--cream); }
.feature .icon svg { width: 26px; height: 26px; }
.feature h3 { margin-bottom: 0.65rem; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

.about-grid { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .about-grid { grid-template-columns: 0.8fr 1.2fr; gap: 5rem; align-items: start; } .about-side { position: sticky; top: 7rem; } }
.pull { margin: 0 0 1.75rem; font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem); line-height: 1.25; color: var(--ink); }

/* --- treść z Markdown --- */
.prose { max-width: 68ch; color: var(--ink-soft); }
.prose-center { margin: 0 auto; }
.prose > :first-child { margin-top: 0; }
.prose h1 { font-size: clamp(2rem, 1.5rem + 1.5vw, 2.8rem); color: var(--ink); margin: 0 0 1.25rem; }
.home-prose > h1:first-child { display: none; }
.prose h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); color: var(--ink); margin: 3rem 0 1rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.prose h3 { color: var(--ink); margin: 2rem 0 0.75rem; }
.prose p { margin: 0 0 1.2rem; }
.home-prose > p:first-of-type, .prose-center > p:first-child { font-size: 1.2rem; color: var(--ink); line-height: 1.55; }
.prose ul { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: 0.6rem; }
.prose ul li { position: relative; padding: 0.85rem 1rem 0.85rem 2.75rem; background: rgba(255,255,255,.7); border: 1px solid var(--line); border-radius: 14px; }
.prose ul li::before { content: ''; position: absolute; left: 1.05rem; top: 1.35rem; width: 10px; height: 10px; border-radius: 50%; background: var(--clay); box-shadow: 0 0 0 4px rgba(181,100,63,.15); }
.prose ol { padding-left: 1.3rem; margin: 0 0 1.4rem; }
.prose a { color: var(--clay-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose blockquote { margin: 2rem 0; padding: 0.5rem 0 0.5rem 1.5rem; border-left: 3px solid var(--clay); font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--ink); }
.prose img { width: 100%; height: auto; border-radius: var(--radius); margin: 2rem 0; }

/* --- kroki --- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; counter-reset: s; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.steps li { padding-top: 1.75rem; border-top: 1px solid var(--ink); }
.steps .num { display: block; font-family: var(--serif); font-style: italic; font-size: 3.2rem; line-height: 1; color: var(--clay); margin-bottom: 1rem; }
.steps h3 { margin-bottom: 0.5rem; }
.steps p { margin: 0; color: var(--ink-soft); }

/* --- CTA --- */
.cta-band { background: var(--ink); color: var(--paper); padding: 5.5rem 0; position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; width: 520px; height: 520px; right: -160px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(181,100,63,.45), rgba(181,100,63,0) 70%); }
.cta-inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.cta-band .h2 { max-width: 18ch; }
.cta-band .h2 em { color: #e7a07e; }
.cta-band p { color: rgba(251,247,242,.7); margin: 1rem 0 0; }
.cta-band .hero-actions { justify-content: center; }
.cta-compact { padding: 4.5rem 0; }

/* --- podstrony --- */
.page-hero { padding: 4rem 0 3rem; background: linear-gradient(180deg, var(--cream), var(--paper)); border-bottom: 1px solid var(--line); text-align: center; }
.page-hero .display { font-size: clamp(2.6rem, 1.8rem + 3.5vw, 4.4rem); }
@media (min-width: 960px) { .page-hero { padding: 6rem 0 4rem; } }

/* --- stopka --- */
.footer { background: var(--paper); border-top: 1px solid var(--line); padding: 3.5rem 0 1.5rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1fr auto; align-items: start; } }
.brand-footer { margin: 0; }
.footer-note { color: var(--muted); margin: 1rem 0 0; font-size: 0.95rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.footer-nav a { text-decoration: none; color: var(--ink-soft); }
.footer-nav a:hover { color: var(--clay); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); }

/* --- blog: lista --- */
.blog-wrap { padding: 0 0 6rem; }
.filter { display: inline-flex; gap: 0.75rem; align-items: center; margin: 1.25rem 0 0; padding: 0.45rem 0.6rem 0.45rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: 0.9rem; }
.filter .clear { color: var(--clay-dark); text-decoration: none; font-weight: 500; }
.status { text-align: center; color: var(--muted); font-family: var(--serif); font-style: italic; font-size: 1.4rem; padding: 4rem 0; }
.grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-top: 3.5rem; }
@media (min-width: 680px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.post-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.post-card .thumb { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: linear-gradient(150deg, var(--blush), var(--sage)); margin-bottom: 1.25rem; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.post-card:hover .thumb img { transform: scale(1.05); }
.post-card .cats { margin: 0 0 0.5rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--clay); }
.post-card h2 { font-size: 1.55rem; line-height: 1.2; transition: color .2s; }
.post-card:hover h2 { color: var(--clay-dark); }
.post-card .excerpt { margin: 0.65rem 0 0; color: var(--ink-soft); font-size: 0.97rem; }
.post-card .date { margin: 0.9rem 0 0; font-size: 0.82rem; color: var(--muted); }

/* --- blog: wpis --- */
.post-head { text-align: center; padding: 3.5rem 0 2.5rem; }
.post-head .display { font-size: clamp(2.3rem, 1.6rem + 3vw, 4rem); max-width: 20ch; margin: 0 auto; }
.post-head .back { margin: 0 0 1.75rem; }
.post-head .back a { text-decoration: none; color: var(--muted); font-size: 0.9rem; }
.post-head .back a:hover { color: var(--clay); }
.post-head .cats { display: flex; justify-content: center; gap: 0.5rem; flex-wrap: wrap; margin: 0 0 1.25rem; }
.post-head .cats a { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--clay); text-decoration: none; padding: 0.35rem 0.8rem; border: 1px solid rgba(181,100,63,.3); border-radius: 999px; }
.post-head .date { margin: 1.25rem 0 0; color: var(--muted); font-size: 0.9rem; }
.post-hero { max-width: 1080px; margin: 0 auto 3.5rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.post-hero img { width: 100%; height: auto; }
.post-body { padding-bottom: 5rem; }
.tags { display: flex; gap: 0.5rem; flex-wrap: wrap; max-width: 68ch; margin: 3rem auto 0; padding-top: 2rem; border-top: 1px solid var(--line); }
.tag { background: var(--cream); border-radius: 999px; padding: 0.4rem 0.9rem; font-size: 0.85rem; color: var(--ink-soft); text-decoration: none; transition: background .2s; }
.tag:hover { background: var(--blush); }

/* --- animacje wejścia (tylko gdy JS działa) --- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .ticker-track, .badge { animation: none; }
  html { scroll-behavior: auto; }
}
