/* Shared chrome for individualcontributor.dev (home, builder, history) */

@font-face {
  font-family: "DogicaPixelBold";
  src: url("/DogicaPixelBold.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: "DogicaPixelRegular";
  src: url("/DogicaPixelRegular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

:root {
  --ff7-blue: #003a90;
  --ff7-blue-deep: #000051;
  --ff7-text: #e6e6e6;
  --ff7-link: #00e6e6;
  --ff7-muted: #aaa;
  --ff7-panel: linear-gradient(160deg, #003a90 35%, #000051);
  --ff7-border: rgba(255, 255, 255, 0.2);
}

* { box-sizing: border-box; }

html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  background-color: #000;
  color: var(--ff7-text);
  font-family: "DogicaPixelRegular", Arial, sans-serif;
}

#space {
  overflow: hidden;
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: #000;
  background-image: url("/stars.png");
  background-repeat: repeat;
  background-position: center top;
  background-size: 512px 512px;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 20px;
}

.header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  gap: 16px;
  flex-wrap: wrap;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.nav-links a {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  color: var(--ff7-link);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--ff7-text);
  text-decoration: underline;
}

.site-logo {
  height: 40px;
  width: auto;
}

main {
  display: block;
  padding: 24px 0 40px;
}

.hero { margin-bottom: 36px; }

.brand,
.hero h1,
h1.brand {
  font-family: "DogicaPixelBold", Arial, sans-serif;
  font-size: clamp(1.4rem, 5vw, 2.2rem);
  letter-spacing: 2px;
  color: var(--ff7-text);
  margin: 0 0 16px;
}

.tagline,
.lede {
  margin: 0 0 24px;
  max-width: 40rem;
  font-size: 0.95rem;
  line-height: 1.7;
  letter-spacing: 0.6px;
  color: var(--ff7-text);
}

.lede { margin-bottom: 0; }
.lede strong { color: #fff; }

a {
  color: var(--ff7-link);
  text-decoration: none;
  letter-spacing: 0.4px;
}

a:hover {
  color: var(--ff7-text);
  text-decoration: underline;
}

code {
  font-family: "DogicaPixelRegular", monospace;
  color: var(--ff7-link);
  letter-spacing: 0.3px;
}

p {
  margin: 0 0 14px;
  font-size: 0.875rem;
  line-height: 1.7;
  letter-spacing: 0.6px;
}

.panel {
  background-color: var(--ff7-blue);
  background-image: var(--ff7-panel);
  border: 3px solid var(--ff7-text);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 8px;
}

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

/* Custom bullets: pixel fonts + default markers leave a gap on wrapped lines */
ul {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}

ul > li {
  position: relative;
  margin: 0 0 8px;
  padding-left: 1.15em;
  font-size: 0.875rem;
  line-height: 1.65;
  letter-spacing: 0.5px;
}

ul > li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--ff7-link);
  line-height: inherit;
}

ul > li:last-child { margin-bottom: 0; }

h2 {
  font-family: "DogicaPixelBold", Arial, sans-serif;
  color: var(--ff7-text);
  font-size: 1.15rem;
  letter-spacing: 1.5px;
  margin: 28px 0 12px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 8px;
}

.actions a {
  font-size: 0.8rem;
  letter-spacing: 0.4px;
  border-bottom: 1px solid var(--ff7-link);
  text-decoration: none;
}

.actions a:hover {
  border-bottom-color: var(--ff7-text);
  text-decoration: none;
}

footer {
  padding: 24px 0 40px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--ff7-muted);
}

footer p {
  margin: 0;
  font-size: inherit;
  letter-spacing: 0.4px;
  line-height: 1.5;
}

footer a {
  letter-spacing: 0.4px;
}
