/* ===== RESET & VARIABLES ===== */
:root {
  --bg: #0a0a0a;
  --ink: #d4cfc8;
  --muted: #5a5550;
  --accent: #c8b89a;
  --line: rgba(200, 184, 154, 0.15);
  --line-solid: rgba(200, 184, 154, 0.25);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Cormorant Garamond', Georgia, serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== NAV ===== */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.8rem 3rem;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(8px);
  z-index: 100;
}

.nav-brand {
  font-size: 1.3rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-family: 'Inconsolata', monospace;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

/* ===== HERO (index) ===== */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 3rem 4rem;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  animation: rise 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.name {
  font-size: clamp(5rem, 16vw, 9rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 0.9;
  color: var(--ink);
}

.rule {
  width: 100%;
  height: 1px;
  background: var(--line);
  margin: 2.2rem 0 2.6rem;
}

.phrase {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.7;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.link-area {
  margin-top: 3rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn-primary {
  font-family: 'Inconsolata', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  transition: opacity 0.2s;
}

.btn-primary:hover {
  opacity: 0.85;
}

.btn-secondary {
  font-family: 'Inconsolata', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 0.75rem 1.2rem;
  border: 1px solid var(--line);
  transition: color 0.2s, border-color 0.2s;
}

.btn-secondary:hover {
  color: var(--ink);
  border-color: var(--line-solid);
}

/* ===== PAGE (artykuly, artykul) ===== */
.page {
  flex: 1;
  padding: 4rem 3rem;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.page-header {
  margin-bottom: 3.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1;
  margin-bottom: 0.8rem;
}

.page-subtitle {
  font-size: 1rem;
  font-weight: 300;
  font-style: italic;
  color: var(--muted);
}

/* ===== ARTICLE LIST ===== */
.article-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.article-item {
  border-bottom: 1px solid var(--line);
}

.article-link {
  display: grid;
  grid-template-columns: 9rem 1fr auto;
  align-items: baseline;
  gap: 1rem;
  padding: 1.4rem 0;
  text-decoration: none;
  color: var(--ink);
  transition: color 0.2s;
}

.article-link:hover {
  color: var(--accent);
}

.article-date {
  font-family: 'Inconsolata', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  flex-shrink: 0;
}

.article-title {
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.4;
}

.article-arrow {
  font-size: 1rem;
  color: var(--muted);
  transition: transform 0.2s, color 0.2s;
}

.article-link:hover .article-arrow {
  transform: translateX(4px);
  color: var(--accent);
}

.article-empty {
  padding: 3rem 0;
  font-style: italic;
  color: var(--muted);
  font-size: 1rem;
}

/* ===== ARTICLE BODY (artykul) ===== */
.article-meta {
  display: flex;
  gap: 1.5rem;
  align-items: baseline;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.article-meta-date {
  font-family: 'Inconsolata', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.article-body {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 300;
  line-height: 1.85;
  color: var(--ink);
}

.article-body p {
  margin-bottom: 1.6em;
}

.article-body p:last-child {
  margin-bottom: 0;
}

.article-body em {
  font-style: italic;
}

.article-body strong {
  font-weight: 400;
  color: var(--accent);
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inconsolata', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 3rem;
  transition: color 0.2s;
}

.article-back:hover {
  color: var(--ink);
}

/* ===== FOOTER ===== */
.footer {
  padding: 1.5rem 3rem;
  border-top: 1px solid var(--line);
  font-family: 'Inconsolata', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ===== O MNIE ===== */
.o-mnie-body p {
  max-width: 560px;
}

.o-mnie-body p:first-child {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-style: italic;
  color: var(--accent);
  margin-bottom: 2.2em;
}

/* ===== ANIMATIONS ===== */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .nav {
    padding: 1.4rem 1.5rem;
  }

  .hero {
    padding: 4rem 1.5rem 3rem;
  }

  .page {
    padding: 3rem 1.5rem;
  }

  .article-link {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }

  .article-date {
    grid-column: 1 / -1;
    margin-bottom: 0.2rem;
  }

  .footer {
    padding: 1.5rem;
  }
}

/* ===== LANG SWITCH ===== */
.lang-switch {
  font-family: 'Inconsolata', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  background: none;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  margin-left: 0.5rem;
}

.lang-switch:hover {
  color: var(--ink);
  border-color: var(--line-solid);
}
