* /* ===== RESET ===== */
    {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  /* ===== GLOBAL VARIABLES ===== */
  :root {
    --page-margin: 96px; /* ≈ 1 inch */
  }

  /* ===== BASE STYLES ===== */
  body {
    font-family: "Inter", sans-serif;
    background: #fcf8ed;
    color: #111827;
  }

  #page-fade {
    position: fixed;
    inset: 0;
    background: #fcf8ed; /* match your site background */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 9999;
  }
  
  #page-fade.active {
    opacity: 1;
  }

  .site-header {
    position: sticky;
    top: 0;
    background: #fcf8ed;
    z-index: 1000;
  }
  
  /* Utility bar (small text) */
  .utility-bar {
    font-size: 0.9rem;
  }
  
  .utility-inner {
    max-width: 1100px;          /* SAME width as header-inner */
    margin: 0 auto;
    padding: 0.5rem var(--page-margin);
  
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  /* Masthead */
  @import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&display=swap');

  .masthead {
    display: flex;
    justify-content: center;
    padding: 0.5rem 0;
    padding-left: var(--page-margin);
    padding-right: var(--page-margin);
    font-family: 'Playfair Display', serif;
  }
  
  .site-title {
    font-family: "Playfair Display", serif;
    font-size: 3rem;
    letter-spacing: -0.03em;   /* tighter = more editorial */
    line-height: 1.05;
  }
  
  /* Navigation bar */
  .main-nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
  
    padding: 0.75rem var(--page-margin);
    position: relative;
  }
  
  .main-nav::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: var(--page-margin);
    right: var(--page-margin);
    border-bottom: 3px double #111;
  }
  
  .main-nav a {
    font-family: "Inter", sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;   /* key NYT trick */
    font-weight: 500;
    color: #111827;
  }

  .main-nav a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 1px;
    background: #111;
  }
  
  .main-nav a:hover {
    text-decoration: underline;
  }
  html, body {
    height: 100%;
    scroll-snap-type: y mandatory;
  }
  
  body {
    font-family: "Inter", sans-serif;
    background: #fcf8ed;
    color: #111827;
  }
  
  .magazine {
    height: 100%;
  }
  
  
  .page {
    min-height: 100vh;              /* allow growth */
    scroll-snap-align: start;
    display: flex;
    justify-content: center;
    padding: 4rem 4rem;
    position: relative;  
  }

  
  .content {
    max-width: 900px;
  }
  
  .cover h1 {
    font-family: "Playfair Display", serif;
    font-size: clamp(3rem, 7vw, 5rem);
    line-height: 1;
    align-items: flex-start;   /* top */
    justify-content: center;   /* horizontal center */
    padding-top: 5rem;         /* spacing from top */
  }
  
  .subtitle {
    margin-top: 0.5rem;
    font-size: 1.1rem;
    color: #374151;
  }
  
  h2, h3 {
    font-family: "Playfair Display", serif;
  }
  
  .lede {
    font-size: 1.2rem;
    margin: 2rem 0;
  }
  
  .meta {
    font-size: 0.9rem;
    color: #6b7280;
  }
  
  .toc a,
  .link,
  a {
    color: #2563eb;
    text-decoration: none;
    margin-right: 1rem;
  }
  
  article {
    margin-top: 2rem;
  }

  .hero {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4rem;
    align-items: center;
  }
  

  .hero-img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #ccc;
    filter: grayscale(30%);
    transition: filter 0.3s ease;
  }
  .hero-img:hover {
    filter: grayscale(0%);
  }
  
  .bio-content {
    max-width: 60ch;
  }
  
  @media (max-width: 700px) {
    .hero {
      grid-template-columns: 1fr;
      grid-template-rows: auto auto;
      text-align: center;
    }
  
    .hero-img {
      margin: 0 auto;
    }
  
    .bio-content {
      margin: 0 auto;
    }
    #bio {
      padding-top:  12rem;
    }
  }
  
  .bio-title {
    font-family: "Playfair Display", serif;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
  }

  .project-graphs {
    max-height: 300px;
    max-width: 300px;
    overflow-y: auto;
    padding: 1.5rem;
    margin: 2rem 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
  }
  
  .project-graphs img {
    width: 100%;
    height: auto;
  }
  
  .project-graphs figure {
    margin-bottom: 2rem;
  }
  
  .project-graphs figcaption {
    font-size: 0.9rem;
    color: #555;
    margin-top: 0.5rem;
    display: block;
  }

  .project-side-by-side {
    display: flex;          /* if it already is flex, keep it */
    align-items: center;   /* vertical centering */
    gap: 32px;
  }
  .project-info {
    align-self: flex-start;
    margin-top: 2.5rem; /* tweak this */
  }
  

  .live-bar {
    display: flex;
    align-items: center;
    padding: 0.6rem var(--page-margin);
    gap: 0.75rem;
    position: relative;
  }
  
  /* Left: LIVE */
  .live-left {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: 2rem;   /* ← adjust this number */
    flex-shrink: 0;
  }
  
  /* Center: message (true center) */
  .live-center {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
  }
  

  /* Styling */
  .live-label {
    color: #dc2626;
    font-weight: 600;
    letter-spacing: 0.05em;
  }
  
  .live-time {
    color: #6b7280;
    font-size: 0.85rem;
  }
  
  
  
  .live-bar::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: var(--page-margin);
    right: var(--page-margin);
    border-bottom: 1px solid #111;
  }

  .live-label {
    color: #dc2626; /* NYT red */
    font-weight: 600;
    letter-spacing: 0.05em;
  }

.live-dot {
    width: 6px;
    height: 6px;
    background-color: #dc2626;
    border-radius: 50%;
    animation: live-pulse 1.8s ease-in-out infinite;
    margin-right: 8px;
  }

  @keyframes live-pulse {
    0% {
      transform: scale(1);
      opacity: 1;
    }
    50% {
      transform: scale(1.4);
      opacity: 0.6;
    }
    100% {
      transform: scale(1);
      opacity: 1;
    }
  }

  .live-content {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
  }

  #live-text {
    display: inline-block;
    text-align: center;
    opacity: 1;
    transition: opacity 0.4s ease;
  }

  #live-text.fade-out {
    opacity: 0;
  }
  
  .live-time {
  font-size: 0.8rem;
  color: #6b7280;
  white-space: nowrap;
}

/* separator dot before time */
.live-time::before {
  content: "•";
  margin-left: 0.1rem;   /* tiny breathing room */
  margin-right: 0.1rem;
  color: #9ca3af;
}

.live-inline {
    display: inline-flex;
    align-items: center;
    gap: 0;
  }

.live-icons {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-left: auto;
}

.live-bar .icon-link i {
  color: #374151;
}



.page-bar {
  position: absolute;
  bottom: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  left: 0;
  width: 100%;
  height: 10.5rem;        /* bar height */
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);   /* optional glass effect */
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-bar::before {
  content: "";
  position: absolute;
  top: -6px;            /* pull it above the main bar */
  left: 0;
  width: 100%;
  height: 6px;         /* thickness of the second bar */
  background: #286301
}

.page-bar p {
  text-align: center;
}

.page-bar a {
  color: white;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.page-bar a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.footer-link {
  color: white;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;           /* 👈 controls spacing between icons */
  margin-bottom: 1.5rem;
}

.footer-copy {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  font-size: 0.8rem;

}

.footer-copy-description {
  display: block;
  margin-top: 0.5rem;   /* 👈 small space between the two lines */
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

.footer-link:hover {
  display: block;
  opacity: 1;
  transform: translateY(-1px);
}

.icon-link i {
  font-size: 30px;
}

.icon-link:hover {
  box-shadow: 0 0 12px rgba(255,255,255,0.15);
}

.badge {
  font-size: 0.7em;
  padding: 2px 6px;
  border-radius: 999px;        /* pill shape */
  background: #ffe8cc;
  color: #8a4b00;
  border: 1px solid #f2c18d;   /* subtle outline */
  margin-left: 6px;
}
  
.project-card {
  border-radius: 16px;
  padding: 4px 28px;
  margin: 24px 0 24px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;

}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

/* Subtle tints that match your palette */
.project-card.steam {
  background: #fff6ea;   /* warm cream */
}

.project-card.waterpark {
  background: #f4f8ff;   /* soft cool blue */
}



.project-github {
  position: absolute;
  top: 10px;
  right: 1px;
  z-index: 3;
  color: #777
}

/* Optional: tweak the icon for card context */
.project-card .icon-link i {
  font-size: 2rem;
  opacity: 0.75;
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.project-card .icon-link:hover i {
  opacity: 1;
  transform: translateY(-1px);
}

/* ===== Coursework Section ===== */

#coursework .coursework-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 2.5rem;
}

#coursework .coursework-col h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid #d6c7aa;
}

.coursework-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.coursework-pills span {
  border: 1px solid #d6c7aa;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.85rem;
  background: #fffaf0;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.coursework-pills span:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.coursework-note {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: #6b7280;
  line-height: 1.4;
}

.coursework-callout {
  margin-top: 4rem;
  padding: 1.5rem 2rem;
  border-left: 4px solid #d6c7aa;
  background: #fffaf0;
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 800px) {
  #coursework .coursework-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

#coursework .coursework-grid + .coursework-grid {
  margin-top: 4rem;   /* was 3rem inline */
}

#coursework h2 {
  text-align: center;
}

#projects h2 {
  text-align: center;
}

.sidequest-title {
  text-align: center;
  font-size: 2.25rem;
  margin-bottom: 3rem;
}

#sidequests {
  display: block;   /* override flex/grid from .page */
}

.sidequest-title {
  text-align: center;
  font-size: 2.25rem;
  width: 100%;
}

/* Side Quest photo grid */
.sidequest-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding:  1rem 6rem;  /* ⬅ increase bottom padding */
}

.sidequest-grid img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sidequest-grid img:hover {
  transform: translateY(-6px) rotate(-0.4deg);
  box-shadow: 0 20px 45px rgba(0,0,0,0.18);
}

/* Responsive */
@media (max-width: 900px) {
  .sidequest-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .sidequest-grid {
    grid-template-columns: 1fr;
    padding-bottom: 7rem;
  }
}

