html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

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

body {
  background: #14181c;
  color: #99aabb;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
}

header {
  max-width: 1200px;
  margin: 10px auto 8px;
  padding: 8px 24px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.header-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 3px;
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  min-width: 0;
}

.header-subline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  min-width: 0;
}

header h1 {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
}

header p {
  font-size: 0.6rem;
  color: #718191;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0;
  max-width: 56ch;
  min-width: 0;
}

.header-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex-shrink: 0;
  justify-self: end;
}

.nav-link,
.nav-link-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #687888;
  text-decoration: none;
  padding: 0;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.nav-link::before,
.nav-link-current::before {
  content: '/';
  color: #42505d;
  margin-right: 8px;
}

.nav-link:first-child::before,
.nav-link-current:first-child::before {
  content: '';
  margin-right: 0;
}

.nav-link:hover {
  color: #f1f4f7;
}

.nav-link-current {
  color: #a6b5c3;
  pointer-events: none;
}

@media (max-width: 640px) {
  header {
    margin: 10px 16px 12px;
    padding: 8px 0;
  }

  .header-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .header-subline {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .header-links {
    justify-content: flex-start;
  }

  header h1 {
    white-space: normal;
    font-size: 1.15rem;
  }
}
