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

/* ===== BASE ===== */
html, body {
  height: 100%;
  background: #0c0d0f;
  color: #ededed;
  font-family: "Aptos", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== PAGE ENTRY ===== */
body {
  opacity: 0;
  transition: opacity 0.8s ease;
}

body.loaded {
  opacity: 1;
}

/* ===== TOP BAR ===== */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 78px;
  background: rgba(12,13,15,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  z-index: 100;
}

.topbar-inner {
  max-width: 1600px;
  height: 100%;
  margin: 0 auto;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  text-decoration: none;
  font-size: 1.05rem;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.95);
}

/* ===== NAV ===== */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px 0;
  background: rgba(255,255,255,0.9);
}

.nav {
  display: flex;
  gap: 2.2rem;
}

.nav a {
  position: relative;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.6);
  padding-bottom: 6px;
}

.nav a:hover,
.nav a.active {
  color: #ffffff;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0%;
  height: 1px;
  background: rgba(255,255,255,0.6);
  transition: width 0.28s ease, left 0.28s ease;
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
  left: 0;
}

/* ===== PAGE ===== */
.page {
  padding-top: 120px;
}

/* ===== HEADER ===== */
.page-header {
  display: flex;
  justify-content: center;
  text-align: center;
  margin-bottom: 64px;
}

.page-header h1 {
  max-width: 900px;
  font-size: 2.4rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.25;
  color: rgba(255,255,255,0.9);
}

/* ===== META ===== */
.meta {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 18px;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
}

/* ===== CONTENT ===== */
.content-surface {
  background: #181818;
}

.content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 96px 6vw 140px;
}

.content p {
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 2.4rem;
  color: rgba(255,255,255,0.88);
}

/* ===== ENTRY LINKS ===== */
.entry-links {
  margin-top: 72px;
}

.entry-links h2 {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
  color: rgba(255,255,255,0.45);
}

.entry-links ul {
  list-style: none;
}

.entry-links li {
  margin-bottom: 12px;
}

.entry-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  padding-bottom: 2px;
}

.entry-links a:hover {
  color: #ffffff;
  border-color: rgba(255,255,255,0.6);
}

/* ===== BACK LINK ===== */
.back-link {
  margin-top: 96px;
}

.back-link a {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
}

.back-link a:hover {
  color: #ffffff;
}

/* ===== FOOTER ===== */
.footer {
  height: 64px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.4);
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {

  .topbar {
    height: 64px;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #0c0d0f;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    padding: 28px 0 36px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .page {
    padding-top: 96px;
  }

  .page-header h1 {
    font-size: 1.45rem;
    letter-spacing: 0.08em;
    line-height: 1.4;
  }

  .meta {
    gap: 14px;
    margin-top: 10px;
    font-size: 0.65rem;
  }

  .content {
    padding: 72px 6vw 120px;
  }

  .content p {
    font-size: 0.95rem;
  }

  .entry-links {
    margin-top: 56px;
  }

  .back-link {
    margin-top: 72px;
  }
}