body {
  margin: 0;
  padding: 0;
  font-family: Georgia, serif;
  background: #f7f5ef;
  /* Graph paper background */
  background-image: 
    linear-gradient(0deg, #e7e4da 1px, transparent 1px),
    linear-gradient(90deg, #e7e4da 1px, transparent 1px);
  background-size: 32px 32px;
  background-attachment: fixed;
  color: #222;
  line-height: 1.6;
}

/* Apollo-style header */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(3px);
  background: color-mix(in oklab, #f7f5ef 90%, transparent);
  border-bottom: 1px solid #c7c3b8;
  padding: 7.5px 25px;
  font-family: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  letter-spacing: 0.02em;
  font-size: 13.75px;
  color: #666a6f;
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: space-between;
}

.header .name {
    font-weight: 600;
    font-size: 17.19px;
    letter-spacing: 0.05em;
    color: #111417;
}

.header .tagline {
    font-family: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
    letter-spacing: 0.02em;
    font-size: 17.19px;
    color: #666a6f;
    display: flex;
    align-items: center;
}

.header .nav {
  display: flex;
  gap: 7.5px;
  align-items: center;
}

.header .nav a {
  all: unset;
  cursor: pointer;
  border: 1px solid #c7c3b8;
  padding: 3.75px 10px;
  border-radius: 7.5px;
  font-weight: 500;
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 12.5px;
}

.header .nav a:hover {
  background: #e7e4da;
  border-color: #8a8f99;
}

.header .telemetry {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header .telemetry .time-display {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.125em;
    font-weight: bold;
    color: #333;
}

.header .telemetry .time-display .label {
    color: #666;
}

.header .telemetry .time-display .value {
    color: #333;
}

.main-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2em 2em;
  box-sizing: border-box;
}

.sidebar {
  display: none;
}

.content {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.about-section {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 1.5em;
}

.about-photo {
  width: 200px;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  margin-top: 2.5em;
}

.about-content {
  flex: 1;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, serif;
  font-weight: normal;
  margin-top: 2em;
  margin-bottom: 0.5em;
}

section {
  margin-bottom: 2.5em;
}

a {
  color: #222;
  text-decoration: underline;
}

a:hover {
  color: #555;
}

ul, ol {
  margin-left: 2em;
}

/* Gallery Styles */
.projects-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.project-card {
  background: #fff;
  border: 1px solid #e8e0d8;
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  border-color: #d0c8c0;
}

.project-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #f8f6f4;
  border-bottom: 1px solid #e8e0d8;
}

.project-content {
  padding: 1rem;
}

.project-title {
  font-family: Georgia, serif;
  font-size: 1em;
  margin: 0;
  color: #222;
  line-height: 1.3;
}

.project-link {
  color: #222;
  text-decoration: none;
  display: block;
}

.project-link:hover {
  text-decoration: none;
}

.project-description {
  font-size: 0.95em;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

/* Project Page Styles */
.project-page iframe {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.project-page a {
  color: #222;
  text-decoration: underline;
}

.project-page a:hover {
  color: #555;
}

.timeline-writing-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5em;
}

.timeline-section, .writing-section, .learning-focus-section {
  width: 100%;
}

.timeline-section h2, .writing-section h2, .learning-focus-section h2 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.timeline-section p, .writing-item, .learning-focus-section p {
  margin: 0 0 0.75rem 0;
  line-height: 1.4;
}

.timeline-section p:last-child, .writing-item:last-child, .learning-focus-section p:last-child {
  margin-bottom: 0;
}

.writing-item h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1em;
  font-weight: normal;
  line-height: 1.4;
}

.writing-item .date {
  font-size: 0.9em;
  color: #666;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  display: block;
  margin-top: 0.25rem;
}

.learning-focus-section p {
  margin: 0 0 0.75rem 0;
  line-height: 1.4;
}

.learning-focus-section strong {
  color: #333;
  font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .main-container {
    flex-direction: column;
  }
  .sidebar, .content {
    width: 100%;
    max-width: 100%;
    padding: 2em 1em;
  }
  .sidebar {
    align-items: center;
    text-align: center;
  }
  
  .projects-gallery {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
  }
}

@media (max-width: 600px) {
  .projects-gallery {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .project-card {
    margin-bottom: 0.8rem;
  }
} 

/* Responsive design */
@media (max-width: 860px) {
  .timeline-writing-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero {
    flex-direction: column;
    text-align: center;
    margin-bottom: 24px;
  }
  
  .projects-gallery {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
  }
  
  .header {
    flex-direction: column;
    gap: 8px;
    padding: 8px 20px;
  }
  
  .header .nav {
    justify-content: center;
  }
} 

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .header {
        padding: 10px 15px;
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .header .name {
        font-size: 16px;
    }
    
    .header .tagline {
        font-size: 14px;
    }
    
    .header .telemetry .time-display {
        font-size: 0.9em;
    }
    
    .about-section {
        flex-direction: column;
        gap: 8px; /* tighter spacing so photo sits close to About Me */
        align-items: flex-start;
        text-align: left;
    }
    
    .about-photo {
        margin-top: 0;
        margin-bottom: 0; /* remove extra space under photo */
        order: -1; /* Photo appears first on mobile */
        align-self: flex-start;
    }
    
    .about-content {
        text-align: left;
    }
    
    .timeline-writing-section {
        grid-template-columns: 1fr;
        gap: 2em;
    }
} 