/*
Theme Name: Karwacki Glass
Theme URI: https://karwacki.eu/
Author: Oskar Karwacki
Description: Motyw glass soft UI dla karwacki.eu. Strona aplikacji Android oraz czytelne dokumenty prawne.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: karwacki-glass
*/

@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/manrope-400.woff2") format("woff2");
}
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/manrope-500.woff2") format("woff2");
}
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/manrope-600.woff2") format("woff2");
}
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/manrope-700.woff2") format("woff2");
}

:root {
  --ink: #eef3ff;
  --muted: #c5d0e6;
  --faint: #9aabc6;
  --accent: #7eb6ff;
  --accent-strong: #4c8dff;
  --line: rgba(255, 255, 255, 0.16);
  --glass: rgba(16, 24, 48, 0.55);
  --glass-strong: rgba(18, 28, 54, 0.72);
  --shadow: 0 24px 60px rgba(2, 6, 20, 0.35);
  --radius: 28px;
  --wrap: 1120px;
  --header: 76px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Manrope, "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  background: #070c18;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 55% 42% at 8% -5%, rgba(78, 146, 255, 0.38), transparent 62%),
    radial-gradient(ellipse 42% 36% at 96% 8%, rgba(138, 92, 246, 0.28), transparent 64%),
    radial-gradient(ellipse 48% 40% at 78% 100%, rgba(56, 196, 214, 0.16), transparent 60%),
    radial-gradient(ellipse 30% 24% at 20% 90%, rgba(90, 120, 255, 0.12), transparent 70%),
    #070c18;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 78%);
}

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

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -40px;
  background: #fff;
  color: #07101f;
  padding: 8px 12px;
  border-radius: 10px;
  z-index: 100;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: min(var(--wrap), calc(100% - 32px));
  margin-inline: auto;
}

.header-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 10px 16px;
  background: rgba(7, 12, 24, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header {
  width: min(var(--wrap), 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 12px 10px 14px;
  border-radius: 22px;
  background: rgba(12, 20, 40, 0.72);
  border: 1px solid var(--line);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-right: auto;
}
.brand img {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: block;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-radius: 12px;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
}
.nav-toggle .burger,
.nav-toggle .burger::before,
.nav-toggle .burger::after {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  position: relative;
}
.nav-toggle .burger::before,
.nav-toggle .burger::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle .burger::before { top: -6px; }
.nav-toggle .burger::after { top: 6px; }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
  margin-top: 28px;
  padding: 42px 42px 36px;
}

.kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.035em; font-weight: 700; }
h1 { margin: 0 0 16px; font-size: clamp(36px, 5vw, 62px); }
h2 { margin: 0 0 10px; font-size: clamp(28px, 3vw, 40px); }
h3 { margin: 0; font-size: 26px; }

.lead {
  margin: 0;
  max-width: 58ch;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions,
.card-actions,
.doc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.btn-primary {
  color: #07101f;
  background: linear-gradient(180deg, #d7e8ff 0%, #8eb7ff 45%, #6aa2ff 100%);
  box-shadow: 0 10px 28px rgba(90, 150, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.btn-primary:hover { color: #07101f; transform: translateY(-1px); }
.btn-ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
}
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }

.hero-stage {
  position: relative;
  min-height: 320px;
}
.float-card {
  position: absolute;
  width: min(280px, 78%);
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 24px;
}
.float-card strong { display: block; font-size: 16px; letter-spacing: -0.03em; }
.float-card span { display: block; color: var(--faint); font-size: 13px; line-height: 1.4; }
.float-card img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  background: #000;
  flex: none;
}
.float-a { top: 18px; right: 8px; }
.float-b { left: 0; bottom: 18px; }

.glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  background-color: var(--glass);
  border: 1px solid var(--line);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
}

.section { margin-top: 54px; }
.section-head { max-width: 640px; margin-bottom: 22px; }
.section-head p { margin: 0; color: var(--muted); }

.apps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.app-card {
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.app-card .app-logo {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  object-fit: cover;
  background: #05070d;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}
.app-card .app-logo.contain { object-fit: contain; padding: 6px; }
.app-card h3 { margin: 18px 0 8px; }
.app-card p { margin: 0; color: var(--muted); }
.note {
  margin-top: 12px !important;
  color: var(--faint) !important;
  font-size: 14px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding: 0; list-style: none; }
.chips li {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.card-actions { margin-top: auto; padding-top: 22px; }

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.principle {
  border-radius: 24px;
  padding: 22px;
}
.principle h3 { font-size: 18px; margin-bottom: 8px; }
.principle p { margin: 0; color: var(--muted); font-size: 15px; }

.docs {
  border-radius: var(--radius);
  padding: 28px;
}
.doc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 32px;
  margin-top: 8px;
}
.doc-grid h3 { font-size: 16px; margin-bottom: 8px; }
.doc-grid ul { margin: 0; padding-left: 18px; }
.doc-grid a { font-weight: 600; }

.site-footer {
  width: min(var(--wrap), calc(100% - 32px));
  margin: 48px auto 28px;
  padding: 22px 26px;
  border-radius: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--faint);
  font-size: 14px;
}
.site-footer a { color: var(--muted); font-weight: 600; }

.page-main { padding: 28px 0 10px; }
.prose {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 40px 42px;
  border-radius: 32px;
}
.prose .kicker { margin-bottom: 8px; }
.prose h1 { font-size: clamp(32px, 4vw, 46px); margin-bottom: 18px; }
.prose h2 { font-size: 28px; margin: 1.4em 0 0.4em; }
.prose h3 { font-size: 22px; margin: 1.2em 0 0.35em; }
.prose p,
.prose li { color: var(--muted); }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--ink); }
.prose img {
  border-radius: 24px;
  margin: 8px 0 18px;
}
.page-tools { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }

.post-list { width: min(860px, calc(100% - 32px)); margin: 28px auto; display: grid; gap: 14px; }
.post-list article { border-radius: 24px; padding: 22px 24px; }
.post-list h2 { font-size: 24px; margin: 0 0 6px; }
.post-list h2 a { color: inherit; text-decoration: none; }

@media (max-width: 900px) {
  .hero, .apps, .principles, .doc-grid { grid-template-columns: 1fr; }
  .hero { padding: 28px 22px; }
  .hero-stage { min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .float-card { position: static; width: auto; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header-bar { padding-inline: 12px; }
  .site-header { flex-wrap: wrap; border-radius: 20px; }
  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 4px 4px 8px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 12px; }
  .hero-stage { grid-template-columns: 1fr; }
  .prose { padding: 24px 18px 28px; border-radius: 24px; }
  .btn { width: 100%; }
  .hero-actions .btn,
  .card-actions .btn,
  .page-tools .btn { width: auto; flex: 1 1 160px; }
  .site-footer { margin-bottom: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn-primary:hover { transform: none; }
}

@media print {
  body { background: #fff; color: #111; }
  body::before, body::after, .site-header, .site-footer, .page-tools, .skip-link { display: none !important; }
  .prose, .glass {
    background: #fff;
    color: #111;
    box-shadow: none;
    border: 0;
    backdrop-filter: none;
  }
  .prose p, .prose li, .prose h1, .prose h2, .prose h3, a { color: #111; }
}
