/* =======================
   Root Theme Variables
   ======================= */
:root {
  --bg: #ffffff; /* Background color */
  --text: #111111; /* Main text color */
  --accent: #000000; /* Accent for headings and key text */
  --border: #dddddd; /* Border lines */
  --muted: #555555; /* Subtext and secondary text */
  --hover-bright: #67e6a2; /* Mint green hover effect */
}

/* =======================
   Base Styles
   ======================= */
html, body {
  font-family: "Space Grotesk", sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--text);
}

/* =======================
   Header Section
   ======================= */
.site-header {
  width: 100%;
  max-width: 800px;
  padding: 40px 20px 20px 20px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}

.header-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.header-left {
  flex: 1;
}

.header-right {
  text-align: right;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
  font-family: monospace;
}

.tz-label {
  font-weight: bold;
  font-size: 13px;
}

/* =======================
   Typography & Links
   ======================= */
.site-header h1 {
  font-weight: 600;
  color: var(--accent);
  margin: 0;
  font-size: 1.75rem;
}

.tagline {
  font-style: italic;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.link-row {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}

.link-row a {
  margin: 0 4px;
}

a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* =======================
   CTA Section
   ======================= */
.cta {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 40px;
  line-height: 1.5;
}

.cta a {
  font-weight: 500;
}

/* =======================
   Paper Container
   ======================= */
.paper {
  max-width: 800px;
  padding: 40px 20px;
  margin: 0 auto;
  text-align: left;
  border: none;
}

/* =======================
   Project Section
   ======================= */
h2 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--text);
}

.project {
  margin-bottom: 30px;
}

.project h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--accent);
}

.project p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
}

.project-link {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--muted);
  transition: color 0.2s ease;
}

.project-link:hover {
  color: var(--hover-bright);
}

.project-arrow {
  transition: stroke 0.2s ease;
}

/* =======================
   Footer
   ======================= */
.site-footer {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 40px 0 20px;
}

/* =======================
   Markdown Overlay Viewer
   ======================= */
.md-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.md-overlay-inner {
  background: var(--bg);
  color: var(--text);
  max-width: 700px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 8px;
  position: relative;
}

.md-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 20px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
}

.md-content {
  line-height: 1.6;
  font-size: 14px;
}
