/* ----- shared.css ----- */

/* Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Midnight pastel theme */
:root {
  --bg-color-start: #13141a;
  --bg-color-end:   #171821;
  --text-color:     #e8e9f0;
  --accent-color:   #8fb8ff;
  --muted-text:     #a9abc1;
  --pastel-grey:    #b6b8c7;
}

/* Typography & layout */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, var(--bg-color-start), var(--bg-color-end));
  color: var(--text-color);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  gap: 1.5rem;
}
h1 {
  font-size: 2.2rem;
  font-weight: 500;
}
.subtitle {
  font-size: 0.95rem;
  color: var(--muted-text);
  line-height: 1.7;
}
.subtitle div {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}
.subtitle div:nth-child(1) { animation-delay: 0.2s; }
.subtitle div:nth-child(2) { animation-delay: 0.6s; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Nav links */
nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.25rem;
}
nav a {
  position: relative;
  text-decoration: none;
  color: var(--accent-color);
  font-size: 0.95rem;
  padding-bottom: 4px;
}
nav a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 100%; height: 2px;
  background-color: var(--pastel-grey);
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform .25s ease;
  opacity: .85;
}
nav a:hover::after { transform: translateX(-50%) scaleX(1); }

/* Footer */
footer {
  font-size: .8rem;
  color: var(--pastel-grey);
  text-align: center;
  padding: 1rem 0 1.25rem;
}
footer a { color: var(--pastel-grey); }
