:root {
  --nav-height: 64px;
}

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

html {
  height: 100%;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  color: #f5f5f5;
  background: linear-gradient(130deg, #243b55, #141e30);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: var(--nav-height);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  padding: max(0.65rem, env(safe-area-inset-top, 0px))
    max(clamp(1rem, 4vw, 1.75rem), env(safe-area-inset-right, 0px))
    0.65rem
    max(clamp(1rem, 4vw, 1.75rem), env(safe-area-inset-left, 0px));
  backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.top-nav__brand {
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: clamp(0.7rem, 1.85vw, 0.95rem);
  letter-spacing: 0.07em;
  line-height: 1.25;
  padding: 0.38rem 0;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.top-nav__brand:hover {
  opacity: 0.88;
}

.top-nav__links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.top-nav__link {
  text-decoration: none;
  color: #fff;
  font-size: clamp(0.78rem, 1.65vw, 0.92rem);
  font-weight: 600;
  padding: 0.42rem 0.82rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.top-nav__link:hover {
  background: rgba(255, 255, 255, 0.2);
}

.top-nav__link.is-active {
  background: rgba(120, 200, 255, 0.22);
  border-color: rgba(120, 200, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(120, 200, 255, 0.15);
  color: #fff;
}

.top-nav__lang {
  display: inline-flex;
  align-items: baseline;
  gap: 0.12rem;
  margin-left: 0.35rem;
  padding-left: 0.65rem;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  font-size: clamp(0.78rem, 1.65vw, 0.92rem);
}

.top-nav__lang-btn {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.55);
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.2s ease;
}

.top-nav__lang-btn:hover {
  color: rgba(255, 255, 255, 0.9);
}

.top-nav__lang-btn.is-current {
  color: #fff;
}

.top-nav__lang-sep {
  color: rgba(255, 255, 255, 0.4);
  user-select: none;
}

.devlog-page {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
  padding: calc(var(--nav-height) + clamp(1.4rem, 4vh, 2.6rem)) clamp(1rem, 4vw, 2rem) 0;
  padding-bottom: max(clamp(2.2rem, 6vh, 3.5rem), env(safe-area-inset-bottom));
}

.devlog-hero {
  max-width: 1080px;
  margin: 0 auto clamp(1.1rem, 2.5vh, 1.8rem);
}

.devlog-heading {
  font-size: clamp(2rem, 5.8vw, 3.5rem);
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-transform: uppercase;
}

.devlog-subtitle {
  margin-top: 0.8rem;
  max-width: 50rem;
  color: rgba(245, 245, 245, 0.85);
  line-height: 1.62;
  font-size: clamp(0.95rem, 1.8vw, 1.08rem);
}

.devlog-layout {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: clamp(1rem, 2.8vw, 2rem);
  align-items: start;
}

.devlog-timeline {
  position: sticky;
  top: calc(var(--nav-height) + 1rem);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 1rem 0.9rem;
  backdrop-filter: blur(6px);
}

.devlog-timeline__title {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(220, 235, 255, 0.88);
  margin-bottom: 0.9rem;
}

.devlog-timeline__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.devlog-timeline__item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-left: 0.85rem;
  border-left: 2px solid rgba(120, 200, 255, 0.35);
}

.devlog-timeline__date {
  font-size: 0.78rem;
  color: rgba(220, 220, 220, 0.8);
  letter-spacing: 0.05em;
}

.devlog-timeline__link {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.45;
}

.devlog-timeline__link:hover {
  color: #bde8ff;
}

.devlog-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.devlog-entry {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: clamp(1rem, 3vw, 1.35rem);
  backdrop-filter: blur(6px);
}

.devlog-entry__date {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(198, 226, 255, 0.9);
  margin-bottom: 0.55rem;
}

.devlog-entry__title {
  font-size: clamp(1.12rem, 2.6vw, 1.52rem);
  margin-bottom: 0.55rem;
  line-height: 1.3;
}

.devlog-entry__title-link {
  color: #fff;
  text-decoration: none;
}

.devlog-entry__title-link:hover {
  color: #bde8ff;
}

.devlog-entry__excerpt {
  color: rgba(245, 245, 245, 0.9);
  line-height: 1.65;
}

.devlog-footer {
  max-width: 1080px;
  width: 100%;
  margin-top: auto;
  margin-inline: auto;
  padding-top: clamp(1.5rem, 4vh, 2.5rem);
  color: rgba(230, 230, 230, 0.75);
  font-size: clamp(0.78rem, 2.4vw, 0.85rem);
  line-height: 1.45;
  text-align: center;
}

@media (max-width: 720px) {
  .top-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem 0;
  }

  .top-nav__brand {
    text-align: center;
  }

  .top-nav__links {
    justify-content: center;
  }

  .top-nav__link {
    white-space: normal;
    text-align: center;
    padding: 0.38rem 0.65rem;
    font-size: clamp(0.72rem, 3.4vw, 0.82rem);
  }

  .top-nav__lang {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    font-size: clamp(0.72rem, 3.4vw, 0.82rem);
    padding-top: 0.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }
}

@media (max-width: 920px) {
  .devlog-layout {
    grid-template-columns: 1fr;
  }

  .devlog-timeline {
    position: static;
  }
}
