/* ============ 4dev.pl — dark technical ============ */

:root {
  color-scheme: dark;
  --bg: #0d1117;
  --bg-raised: #161b22;
  --border: #21262d;
  --text: #c9d1d9;
  --text-dim: #8b949e;
  --text-faint: #6e7681;
  --accent: #4ade80;
  --accent-dim: #2ea25f;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px -1px;
}

/* subtelna winieta gasząca siatkę na środku */
.scanline {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 60% at 50% 20%, transparent 0%, rgba(13, 17, 23, 0.88) 75%);
  z-index: 0;
}

.site-header, main, .site-footer { position: relative; z-index: 1; }

/* ============ header ============ */

.site-header {
  max-width: 780px;
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.prompt {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--text-dim);
}
.prompt b { color: var(--accent); font-weight: 600; }

.status {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-faint);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.35; } }

/* ============ layout ============ */

main {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

section { margin-top: 96px; }

/* ============ hero ============ */

.hero { margin-top: 72px; }

.kicker {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 24px;
}

h1 {
  font-size: clamp(40px, 7vw, 64px);
  line-height: 1.08;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: #f0f6fc;
}
h1 .accent { color: var(--accent); }

.lead {
  margin-top: 28px;
  font-size: 20px;
  line-height: 1.65;
  color: var(--text-dim);
  max-width: 60ch;
}
.lead em { color: var(--text); font-style: italic; }

.hero-terminal {
  margin-top: 40px;
  font-family: var(--mono);
  font-size: 15px;
  color: var(--text-dim);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 18px;
  min-height: 50px;
}
.term-prompt { color: var(--accent); }
.cursor {
  display: inline-block;
  width: 8px;
  height: 17px;
  background: var(--accent);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ============ sekcje ============ */

h2 {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  color: #f0f6fc;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.sec-no {
  color: var(--accent);
  margin-right: 12px;
}
.sec-no::after {
  content: " /";
  color: var(--text-faint);
}

section > p { margin-bottom: 16px; max-width: 66ch; }
section > p:last-child { margin-bottom: 0; }

/* ============ karty doświadczenia ============ */

.grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-2px);
}

.card-tag {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
}

.card h3 {
  margin-top: 10px;
  font-size: 17px;
  font-weight: 650;
  color: #f0f6fc;
  line-height: 1.35;
}

.card p {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-dim);
}

/* ============ lista tematów ============ */

.topics {
  margin-top: 24px;
  list-style: none;
}
.topics li {
  padding: 12px 0 12px 30px;
  border-bottom: 1px dashed var(--border);
  position: relative;
  color: var(--text);
}
.topics li:last-child { border-bottom: none; }
.topics li::before {
  content: ">";
  font-family: var(--mono);
  color: var(--accent);
  position: absolute;
  left: 6px;
}
.topics em { color: #f0f6fc; }

/* ============ blok TODO ============ */

.todo {
  margin-top: 24px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 18px 22px;
  overflow-x: auto;
}
.todo code {
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-dim);
  white-space: pre;
}

/* ============ footer ============ */

.site-footer {
  max-width: 780px;
  margin: 0 auto;
  padding: 32px 24px 48px;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-faint);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.sep { color: var(--border); }

/* ============ mobile ============ */

@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid { grid-template-columns: 1fr; }
  section { margin-top: 72px; }
  .hero { margin-top: 48px; }
  .lead { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .dot, .cursor { animation: none; }
  .card, .card:hover { transition: none; transform: none; }
  html { scroll-behavior: auto; }
}
