/* ============================================================
   StudioMoreFolio — Dark Hub
   ============================================================ */

:root {
  /* Base */
  --bg:          #121214;
  --bg-elevated: #1A1A1E;
  --surface:     #232328;
  --border:      #2E2E34;
  --text:        #EDEAE4;
  --text-muted:  #9B9892;
  --accent:      #C8322B;
  --accent-hover:#E04138;

  /* Imprint tags */
  --life-daily:  #C9A24B;
  --luka-poe:    #8B5CF6;
  --dead-yet:    #C8322B;
  --yamara:      #2E6F5E;
  --visual-arch: #4A7FD4;
  --visual-cal:  #B0A99F;

  /* Type */
  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body:    'Manrope', sans-serif;

  /* Layout */
  --radius: 12px;
  --section-pad: clamp(64px, 10vw, 120px);
  --container: 1140px;
}

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

/* atrybut hidden musi zawsze wygrywać z display z klas */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ===== Spectrum divider — sygnatura marki ===== */
.spectrum {
  display: flex;
  height: 3px;
  width: min(520px, 70%);
  margin: 0 auto;
  border-radius: 2px;
  overflow: hidden;
}
.spectrum span { flex: 1; }
.s-life  { background: var(--life-daily); }
.s-luka  { background: var(--luka-poe); }
.s-dead  { background: var(--dead-yet); }
.s-yam   { background: var(--yamara); }
.s-varch { background: var(--visual-arch); }
.s-vcal  { background: var(--visual-cal); }

/* ===== Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 18, 20, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  padding-block: var(--section-pad);
  background:
    radial-gradient(ellipse 60% 50% at 80% 10%, rgba(200, 50, 43, 0.10), transparent),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(139, 92, 246, 0.07), transparent);
}
.hero-inner { max-width: 780px; }
.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: normal;
  color: var(--text-muted);
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 36px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--text-muted); }
.btn-small { padding: 9px 18px; font-size: 0.85rem; }

/* ===== Sections ===== */
.section { padding-block: var(--section-pad); }
.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}
.section-sub {
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 44px;
}
.center { text-align: center; margin-top: 44px; }

/* ===== Imprint grid ===== */
.imprint-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.imprint-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--tag);
  border-radius: var(--radius);
  padding: 26px 24px;
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.imprint-card:hover {
  transform: translateY(-3px);
  border-color: var(--tag);
  box-shadow: 0 8px 32px -12px color-mix(in srgb, var(--tag) 45%, transparent);
}
.imprint-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.imprint-card p {
  color: var(--text-muted);
  font-size: 0.93rem;
  margin-bottom: 16px;
}
.imprint-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tag);
}

/* Flagowiec — Life Daily Style zajmuje 2 kolumny na szerszych ekranach */
.imprint-card.flagship {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--tag) 12%, var(--surface)), var(--surface));
}
.imprint-card .flagship-note {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tag);
  margin-bottom: 10px;
  opacity: 0.9;
}
@media (min-width: 720px) {
  .imprint-card.flagship { grid-column: span 2; }
}

/* Yamara — subtelny link zewnętrzny */
.imprint-external {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--tag);
}

/* ===== Cover grid ===== */
.cover-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 24px;
}
.cover-card h3 {
  font-size: 0.98rem;
  font-weight: 600;
  margin-top: 12px;
  line-height: 1.35;
}
.cover-imprint {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--tag);
  margin-top: 4px;
}
.cover-ph, .cover-card img {
  aspect-ratio: 2 / 3;
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
  object-fit: cover;
  display: block;
}
.cover-ph {
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--tag) 22%, var(--surface)), var(--bg-elevated));
  display: flex;
  align-items: flex-end;
  padding: 14px;
}
.cover-ph span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.25;
  color: var(--text);
  opacity: 0.85;
}
.cover-card { transition: transform 0.2s; }
.cover-card:hover { transform: translateY(-4px); }

/* ===== About strip ===== */
.about-strip { background: var(--bg-elevated); }
.about-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-inner p { color: var(--text-muted); margin-bottom: 28px; }
.link-accent { color: var(--accent); font-weight: 600; }
.about-stats {
  display: grid;
  gap: 22px;
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.stat span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===== Newsletter ===== */
.newsletter-inner { max-width: 560px; text-align: center; margin-inline: auto; }
.newsletter .section-sub { margin-inline: auto; margin-bottom: 30px; }
.nl-form {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.nl-form input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 13px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.nl-form input[type="email"]::placeholder { color: var(--text-muted); }
.nl-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  text-align: left;
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
}
.nl-consent input { margin-top: 3px; accent-color: var(--accent); }
.nl-consent a { color: var(--text); }
.nl-thanks { margin-top: 18px; color: var(--life-daily); font-weight: 600; }
.nl-error { margin-top: 18px; color: var(--accent-hover); font-size: 0.88rem; }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  padding-top: 0;
}
.site-footer .spectrum { width: 100%; max-width: none; border-radius: 0; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
  padding-block: 44px 24px;
}
.footer-brand .nav-logo { font-size: 1.15rem; }
.footer-tag { color: var(--text-muted); font-size: 0.85rem; margin-top: 4px; }
.footer-social {
  display: flex;
  gap: 22px;
  list-style: none;
}
.footer-social a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.footer-social a:hover { color: var(--text); }
.footer-contact { display: flex; align-items: center; gap: 12px; }
.copy-confirm { color: var(--life-daily); font-size: 0.85rem; font-weight: 600; }
.footer-legal {
  padding-block: 18px 28px;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.footer-legal a { color: var(--text-muted); }

/* ===== Cookie banner ===== */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: min(560px, calc(100% - 32px));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  gap: 18px;
  align-items: center;
  box-shadow: 0 12px 40px -8px rgba(0, 0, 0, 0.6);
}
.cookie-banner p { font-size: 0.85rem; color: var(--text-muted); flex: 1; }
.cookie-banner a { color: var(--text); }

/* ===== Responsive ===== */
@media (max-width: 820px) {
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-stats { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 680px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    display: block;
    padding: 14px clamp(20px, 4vw, 40px);
    font-size: 1.05rem;
  }
  .nl-form { flex-direction: column; }
  .cookie-banner { flex-direction: column; align-items: stretch; text-align: center; }
}

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