/* ====== Font variables (Fraunces + IBM Plex Sans) ====== */
:root{
  --title-font: "Fraunces", Georgia, "Times New Roman", serif;
  --body-font:  "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

/* ====== Base layout ====== */
body{
  margin: 0;
  background-color: white;
  color: black;
  font-family: var(--body-font);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.01em;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Header with logo and title */
.site-header {
  background-color: white;
  padding: 1.5rem 1rem 0.5rem;
  text-align: center;
  flex-shrink: 0;
  border-bottom: 1px solid #eee;
}

.site-header .logo-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.site-header .logo-title:hover {
  opacity: 0.8;
  text-decoration: none;
}

.site-header .logo-title img {
  width: 90px;
  height: 90px;
}

.site-header .logo-title h1 {
  font-family: var(--title-font);
  font-size: 4rem;
  font-weight: 700;
  margin: 0;
  color: black;
  letter-spacing: 0.02em;
}

/* Nav */
nav{
  background-color: white;
  padding: 0 2rem 1.5rem;
  text-align: center;
  flex-shrink: 0;
}

nav a{
  color: black;
  text-decoration: none;
  margin: 0 1.5rem;
  font-size: 1.1rem;
  font-family: var(--title-font);
  font-weight: 500;
  letter-spacing: 0.01em;
  position: relative;
  display: inline-block;
  padding: 0.5rem 0;
  transition: color 0.2s ease;
}

nav a:hover{
  color: #555;
  text-decoration: none;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background-color: black;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

nav a:hover::after {
  width: 100%;
}

/* Add subtle separators between nav items */
nav a:not(:last-child)::before {
  content: '·';
  position: absolute;
  right: -1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: #ccc;
  font-size: 1.2rem;
}

/* Content - for text-based pages */
main{
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 2rem;
  max-width: 600px;
  margin: 0 auto;
  overflow: hidden; /* Prevent main from scrolling */
}

/* Scrollable content container */
.content-scroll {
  flex: 1;
  width: 100%;
  overflow-y: auto;
  padding-right: 1rem; /* Space for scrollbar */
  text-align: justify;
}

/* Custom scrollbar styling */
.content-scroll::-webkit-scrollbar {
  width: 6px;
}

.content-scroll::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.content-scroll::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.content-scroll::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* Visualization container - for the landing page */
#visualization-container {
  flex: 1;
  width: 100%;
  height: calc(100vh - 180px); /* Subtract approximate header + nav height */
  padding: 0;
  margin: 0;
  max-width: none;
  overflow: hidden;
}

#visualization-container canvas {
  display: block;
}

h1{
  font-family: var(--title-font);
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}
h2{
  font-family: var(--title-font);
  font-size: 2rem;
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}
p{ margin: 0 0 1.15rem; }
