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

body {
  background-color: #121212;
  color: #e3e3e0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding: 2rem 1.5rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.container {
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

h1, h2, h3 {
  font-weight: 500;
  letter-spacing: -0.02em;
}

a {
  color: #b9b0a6;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
  border-bottom: 1px solid transparent;
  cursor: pointer;
}

a:hover {
  color: #c7bfb4;
  border-bottom-color: #7e8b7a;
}

.site-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.site-title {
  font-size: clamp(2.2rem, 7vw, 3.1rem);
  font-weight: 550;
  color: #f0ede6;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 0.2rem;
}

.site-subtitle {
  font-size: 1.15rem;
  color: #bcb6ac;
  max-width: 600px;
  line-height: 1.5;
  margin-bottom: 1.8rem;
  font-weight: 400;
}

.nav-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid #2c2c2a;
}

.nav-menu > li {
  position: relative;
}

.nav-menu a,
.dropbtn {
  font-size: 1rem;
  font-weight: 450;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  color: #c0b9af;
  border-bottom: none;
  padding-bottom: 0.2rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  line-height: inherit;
  display: flex;
  align-items: center;
  gap: 0.15rem;
  transition: color 0.2s;
}

.nav-menu a:hover,
.dropbtn:hover {
  color: #d9d3c5;
  border-bottom: 1px solid #6f7a69;
}

.nav-menu a.active {
  color: #d9d3c5;
  border-bottom: 1px solid #7e8b7a;
  font-weight: 480;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 1.8rem;
  left: 0;
  background-color: #1e1e1c;
  min-width: 130px;
  border-radius: 6px;
  padding: 0.5rem 0;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.6);
  z-index: 20;
  border: 0.5px solid #353530;
  flex-direction: column;
}

.dropdown-content a {
  color: #c7bfb0;
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
  border-bottom: none;
  display: block;
  white-space: nowrap;
}

.dropdown-content a:hover {
  background-color: #2a2a25;
  color: #e8e2d4;
  border-bottom: none;
}

.dropdown.active .dropdown-content {
  display: flex;
}

.arrow-icon {
  font-size: 0.7rem;
  margin-left: 0.15rem;
  transition: transform 0.2s;
}

.dropdown.active .arrow-icon {
  transform: rotate(180deg);
}

.section-title {
  font-size: 1.5rem;
  font-weight: 480;
  color: #ded9cf;
  margin-bottom: 1.6rem;
  letter-spacing: -0.01em;
  border-left: 3px solid #5f6b56;
  padding-left: 1rem;
}

/* LISTA WPISÓW */
.posts-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.post-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid #242424;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.85rem;
  color: #8b8b80;
  flex-wrap: wrap;
}

.post-category {
  background-color: #1e1e1c;
  padding: 0.15rem 0.7rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 450;
  color: #b8af9d;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  border: 0.5px solid #353530;
}

.post-title {
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.35;
  margin: 0.2rem 0 0.3rem;
}

.post-title a {
  color: #e8e3d9;
  border-bottom: none;
  cursor: pointer;
}

.post-title a:hover {
  color: #f5f1e8;
  border-bottom: 1px solid #5e6b55;
}

.post-excerpt {
  font-size: 1rem;
  color: #b3aea2;
  line-height: 1.6;
  max-width: 95%;
}

.read-more {
  display: inline-block;
  margin-top: 0.3rem;
  font-size: 0.9rem;
  color: #9aa393;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: 0.2s;
  align-self: flex-start;
}

.read-more:hover {
  color: #b8bfad;
  border-bottom-color: #6f7a69;
}

/* PEŁEN WPIS */
.full-post-view {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.full-post-header {
  margin-bottom: 0.3rem;
}

.full-post-title {
  font-size: 1.8rem;
  font-weight: 500;
  color: #e8e3d9;
  line-height: 1.3;
  margin-top: 0.3rem;
}

.full-post-content {
  color: #cbc5b8;
  font-size: 1.05rem;
  line-height: 1.75;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  color: #9aa393;
  cursor: pointer;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid transparent;
  transition: 0.2s;
  align-self: flex-start;
}

.back-button:hover {
  color: #bcc4ab;
  border-bottom-color: #6f7a69;
}

/* O MNIE / O PROJEKCIE */
.about-content {
  color: #cbc5b8;
  font-size: 1.05rem;
  line-height: 1.75;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.notice-block {
  background-color: #1b1b19;
  border-left: 3px solid #4d5643;
  padding: 1.4rem 1.6rem;
  border-radius: 0 8px 8px 0;
  margin: 0.5rem 0 1rem;
  font-style: normal;
  color: #cbc5b8;
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

.notice-block p {
  margin: 0;
}

.notice-block strong {
  font-weight: 550;
  color: #d9d3c5;
}

.site-footer {
  margin-top: 1.2rem;
  padding-top: 2rem;
  border-top: 1px solid #2a2a2a;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  font-size: 0.85rem;
  color: #8a8a80;
  letter-spacing: 0.02em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
}

.footer-links a {
  color: #a6a092;
  border-bottom: 1px solid transparent;
  font-weight: 430;
}

.footer-links a:hover {
  color: #c2baaa;
  border-bottom-color: #5e6b55;
}

.footer-disclaimer {
  color: #6a6a60;
  font-size: 0.8rem;
  line-height: 1.5;
}

.loading-text {
  color: #8a8a80;
  font-style: italic;
}

/* UKRYWANIE ELEMENTÓW */
.hidden {
  display: none !important;
}

@media (max-width: 550px) {
  body {
    padding: 1.5rem 1.2rem;
  }
  .container {
    gap: 2.8rem;
  }
  .nav-menu {
    gap: 1.3rem;
  }
  .post-title {
    font-size: 1.35rem;
  }
  .full-post-title {
    font-size: 1.5rem;
  }
  .notice-block {
    padding: 1.2rem 1.3rem;
  }
}

::selection {
  background-color: #3a4534;
  color: #f2eee3;
}