@font-face {
  font-family: 'STIXTwoText';
  src: url('../fonts/STIXTwoText-Regular.otf');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'STIXTwoText';
  src: url('../fonts/STIXTwoText-Bold.otf');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'STIXTwoText';
  src: url('../fonts/STIXTwoText-Italic.otf');
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: 'IBMPlexSans';
  src: url('../fonts/IBMPlexSans-Regular.otf');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'IBMPlexSans';
  src: url('../fonts/IBMPlexSans-Bold.otf');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'IBMPlexSans';
  src: url('../fonts/IBMPlexSans-Italic.otf');
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: 'IBMPlexMono';
  src: url('../fonts/IBMPlexMono-Regular.ttf');
  font-weight: normal;
  font-style: normal;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

p {
  text-align: justify;
}

button {
  font-family: 'IBMPlexSans';
}

body {
  margin: 0;
  font-family: 'STIXTwoText';
  background: #f0f0f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;

  background-image: url('../imgs/space.jpg');
  background-attachment: fixed;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

header {
  max-width: 800px;
  width: 100%;
}

nav {
  display: flex;
  justify-content: left;
  gap: 1rem;
  width: 100%;
  margin: 2rem 0 0 0;
}

nav a {
  padding: 0.5rem 1.2rem;
  margin-bottom: 0.5rem;
  background: white;
  text-decoration: none;
  color: black;
  font-weight: bold;
  transition: background 0.2s ease;
  font-family: 'IBMPlexSans';
}

nav a:hover {
  background: #f9f9f9;
}

.paper-btn {
  padding: 0.5rem;
  font-size: 1.2rem;
  font-family: 'IBMPlexSans';
}

main {
  background: white;
  max-width: 800px;
  width: 100%;
  padding: 2rem;
  margin: 0 0 2rem 0;
  font-size: 1.3rem;
}

.page-header {
  font-family: 'IBMPlexSans';
}

main img {
  display: block;
  max-width: 80%;
  margin: 1rem auto;
  height: auto;
}

main code {
  background: rgba(255, 255, 255, 0.4);
  font-family: 'IBMPlexMono';
  font-size: 0.9rem;
}

pre code {
  display: block;
  overflow-x: auto;
  max-width: 100%;
  white-space: pre;
  padding: 1rem;
  background: #f0f0f0;
  font-family: 'IBMPlexMono';
}

.article-preview {
  position: relative;
  padding: 0.8rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.article-preview h3 {
  margin: 0;
  font-family: 'IBMPlexSans';
  font-size: 1.3rem;
}

.lang-flag {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 1.2rem;
}


/* Footer centered at bottom */
footer {
  text-align: center;
  padding: 1rem;
  color: white;
  margin-top: auto;
}



