@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100..700;1,100..700&display=swap');


:root {
    --square-size: 62px;
    --border-color: #4da2ff;
    --hover-colors: #00bfff, #55db9c, #5c4ade;
    --transition-duration: 0.3s;

    --header-bg: #ffffff;
    --header-color: #000000;
    --link-hover-underline: underline;
    --header-gap: 1rem;
    --modal-bg: rgba(0, 0, 0, 0.7);
    --modal-content-bg: #ffffff;

    --font-family-base: 'IBM Plex Sans', sans-serif;

    /* Semantic font sizes */
    --font-size-header: 1rem;         /* ~16px - for menu */
    --font-size-headline: 3.5rem;     /* ~24px - for sections */
    --font-size-subheadline: 1.25rem; /* ~20px - for subsections */
    --font-size-paragraph: 1rem;      /* ~16px - for body text */
    --font-size-small: 0.875rem;      /* ~14px - for UI/labels */
    --font-size-project: 1.4rem;

    --font-weight-regular: 400;
    --font-weight-bold: 500;

    --line-height-base: 1.5;
    --letter-spacing: -4%;

    --filter-btn-default: #4DA2FF;
    --filter-btn-active: #FFE048;
    --filter-btn-text: #000000;
    --filter-btn-shadow: 3px 4px 0px black;


    --primary-text-color: black;
    --background-color: #F2EEE4;
    --background-color-2: #55db9c;

    /* Box modal (Colophon) */
  --modal-border-radius: 1rem;
  --modal-padding: 2rem;
  --modal-max-width: 600px;
  --modal-font-color: var(--primary-text-color);
  --modal-font-size: 1rem;
  --modal-heading-size: 1.25rem;
  --modal-subheading-size: 1.1rem;
  --modal-line: 1px solid var(--primary-text-color);


  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html, body {
    height: 100%;
    width: 100%;
  }

  /* -------FONT STYLE---------- */

  h1 {
    font-family: var(--font-family-base);
    font-size: var(--font-size-headline);
    font-weight: var(--font-weight-regular);
    letter-spacing: var(--letter-spacing);
  }
  
  h2 {
    font-size: var(--font-size-headline);
    font-weight: var(--font-weight-bold);
  }
  
  h3 {
    font-size: var(--font-size-subheadline);
    font-weight: var(--font-weight-regular);
  }
  
  p {
    font-family: var(--font-family-base);
    font-size: var(--font-size-paragraph);
    font-weight: var(--font-weight-bold);
    letter-spacing: var(--letter-spacing);
    
  }
  
  small, .caption, .label {
    font-size: var(--font-size-small);
  }


  /* -------HEADER STYLE---------- */

  header {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, auto);
    grid-row-gap: 1rem;
    padding: 1rem;
    justify-items: center;
    z-index: 10;
    position: relative;
  }
  
  .header-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
  }
  
  .header-link span {
    font-family: var(--font-family-base);
    font-size: var(--font-size-header);
    font-weight: var(--font-weight-bold);
    text-decoration: none;
  }
  
  .header-link:hover span {
    text-decoration: var(--link-hover-underline) 0.3s;
  }
  
  .header-link img {
    width: 55px;
    height: 55px;
    display: block;
  }
  
  
  @media (min-width: 1280px) {
    header {
      position: fixed;
      top: 0;
      left: 0;
      height: 100vh;
      width: 200px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: flex-start;
      padding-top: 2rem;
      gap: 0rem;
    }
  
    .header-link {
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 0.7rem 0;
      width: 100%;
    }
  
    .header-link span {
      margin-top: 0.5rem;
      font-size: 1rem;
    }
  }
   
  
  /* Modal Styles */

    /* -------COLOPHON BOX MODAL---------- */

  .modal {
    display: none;
    position: fixed;
    z-index: 999;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: var(--modal-bg);
    justify-content: center;
    align-items: center;
  }
  
  .modal-content {
    background: var(--modal-content-bg);
    /* padding: var(--modal-padding); */
    max-width: var(--modal-max-width);
    width: 90%;
    border-radius: var(--modal-border-radius);
    position: relative;
    color: var(--modal-font-color);
    font-size: var(--modal-font-size);
  }
  
  
  .modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    cursor: pointer;
  }


  .modal-content h2 {
    font-size: var(--modal-heading-size);
    font-weight: var(--font-weight-bold);
  }
  
  .modal-content h3 {
    font-size: var(--modal-subheading-size);
    font-weight: var(--font-weight-regular);
  }
  
  .modal-content hr {
    border: none;
    border-top: var(--modal-line);
    margin: 1.5rem;
  }

  
  .colophon-container {
    font-family: var(--font-family-base);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .colophon-font {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  
  .font-preview {
    border: 1px solid black;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    display: grid;
    text-align: center;
    width: fit-content;
  }
  
  .font-sample {
    font-family: var(--font-family-base);
    font-size: 3.5rem;
    line-height: 1;
  }
  
  .font-name {
    font-family: var(--font-family-base);
    font-size: var(--font-size-paragraph);
    font-weight: var(--font-weight-bold);
  }
  
  .font-description h2 {
    font-family: var(--font-family-base);
    font-size: var(--font-size-subheadline);
    font-weight: var(--font-weight-bold);
    padding: 1.5rem 0;
  }
  
  .font-description p {
    font-size: var(--font-size-paragraph);
    line-height: var(--line-height-base);
    font-weight: var(--font-weight-regular);
    padding-top: 1rem 1rem 0;
  }
  
  .colophon-colors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
    gap: 1rem;
    justify-items: center;
    padding: 1rem 1rem 2rem 1rem;
  }
  
  .color-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
  }
  
  .color-circle::before {
    content: '';
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--circle-color);
    border: 1px solid black;
  }
  
  .color-circle span {
    font-size: var(--font-size-small);
  }
  

  .modal-header {
    background-color: black;
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: var(--modal-border-radius);
    border-top-right-radius: var(--modal-border-radius);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-header);
  }
  
  .modal-title {
    font-family: var(--font-family-base);
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .modal-close {
    color: white;
    font-size: 1.2rem;
  }
  
  .color-swatch {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: var(--font-family-base);
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-bold);
  }
  
  .color-swatch::before {
    content: '';
    display: block;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--swatch-color);
    border: 1px solid black;
    margin-bottom: 0.4rem;
  }
  


  /* Desktop layout */
  @media (min-width: 768px) {
    .colophon-font {
      flex-direction: row;
      align-items: center;
      padding: 2rem 1rem 0;
    }
  
    .font-description {
      padding-left: 1.5rem;
    }
  }

  /* -------PROFESSOR BOX MODAL---------- */

  .professor-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 2rem 1.5rem;
    text-align: center;
  }
  
  .professor-card {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .professor-card img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid black;
    display: block;
    overflow: hidden;
  }
  
  .professor-card a {
    font-family: var(--font-family-base);
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-bold);
    text-decoration: underline;
    color: var(--primary-text-color);
    padding: 1rem 0;
  }
  
  @media (min-width: 768px) {
    .professor-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }


  /* ABOUT BOX MODAL */
  .about-content {
    padding: 2rem 1.5rem;
    font-family: var(--font-family-base);
    font-size: var(--font-size-paragraph);
    line-height: var(--line-height-base);
  }

  .modal-header {
    background-color: black;
    color: white;
    padding: 1rem 1.5rem;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .modal-title {
    font-family: var(--font-family-base);
    font-size: var(--font-size-header);
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.05rem;
  }
  
  .modal-close {
    cursor: pointer;
    font-size: 1.25rem;
    font-weight: bold;
  }
  
  
  

  /* -------BACKGROUND---------- */
  
  section#events {
    position: relative;
    z-index: 1; /* lower than header (10) but higher than background (0) */
    width: 100vw;
    height: 100vh;
    background: white;
    overflow: hidden;
  }
  
  /* #grid-background {
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
  }
  
  .grid-square {
    border: 0.9px solid var(--border-color);
    aspect-ratio: 1 / 1;
    width: 100%;
    transition: background-color var(--transition-duration) ease;
  } */

  /* REVISED */

  .layout-grid {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    /* min-height: 100vh; */
  }

  main {
    padding-top: 2rem;
    text-align: center;
    position: relative;
    z-index: 10;
  }
  
  .site-headline {
    font-size: var(--font-size-headline);
    font-weight: var(--font-weight-regular);
    letter-spacing: var(--letter-spacing);
  }
  
  .site-subheadline {
    font-size: var(--font-size-subheadline);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-base);
    margin: 0 auto;
  }
  


/* Desktop grid layout */
@media (min-width: 1280px) {
    .layout-grid {
      display: grid;
      grid-template-columns: 200px 1fr;
      grid-template-rows: auto 1fr;
      min-height: 100vh;
    }
  
    header {
      grid-column: 1 / 2;
      grid-row: 1 / 3;
      position: fixed;
      top: 0;
      left: 0;
      height: 100vh;
      width: 200px;
    }
  
    main {
      grid-column: 2 / 3;
      grid-row: 1 / 3;
      padding: 3rem;
    }
  
    .site-intro {
      padding-top: 0;
      margin-left: 0;
      padding-right: 2rem;
    }
  
    #table {
      padding-right: 2rem;
    }
  }



  /* -------INTRO---------- */

  .site-intro {
    padding-top: 2rem;
    text-align: center;
  }
  
  .site-headline {
    font-size: var(--font-size-headline);
    font-weight: var(--font-weight-regular);
    letter-spacing: var(--letter-spacing);
    margin-bottom: 1rem;
  }
  
  .site-subheadline {
    font-size: var(--font-size-subheadline);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-base);
  }

  
  @media (min-width: 1280px) {
    /* .site-intro {
      margin-left: 200px;
      padding: 2rem 3rem;
    } */
  
    .site-headline {
      font-size: 6rem;
    }
  
    .site-subheadline {
      max-width: 45%;
    }
  }

 /* -------PROJECT FILTER---------- */

  .project-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
  }
  
  .filter-button {
    font-family: var(--font-family-base);
    font-size: var(--font-size-header);
    font-weight: var(--font-weight-bold);
    background-color: var(--filter-btn-default);
    color: var(--filter-btn-text);
    border: 1.5px solid black;
    padding: 1rem 1.7rem;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: var(--filter-btn-shadow);
    transition: background-color 0.3s ease;
  }
  
  .filter-button.active {
    background-color: var(--filter-btn-active);
  }
  
  .filter-button:hover {
    background: var(--filter-btn-active);
  }



 /* -------PROJECT LIST---------- */

 .project-list {
    display: flex;
    flex-direction: column;
    padding: 2rem 1rem;
    gap: 1rem;
  }
  
  .project-header-row {
    display: none; /* hidden on mobile */
  }
  
  .project-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px solid black;
    background: white;
  }
  
  .project-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    text-align: left;
  }
  
  .project-semester {
    font-family: var(--font-family-base);
    font-size: var(--font-size-header);
    color: gray;
  }
  
  .project-title {
    font-family: var(--font-family-base);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-project);
  }
  
  .project-skills {
    font-family: var(--font-family-base);
    font-size: var(--font-size-header);
    color: var(--primary-text-color);
  }
  
  .project-link {
    flex-shrink: 0;
  }
  
  .project-button {
    background: var(--background-color);
    border: 1px solid black;
    font-size: 1.25rem;
    padding: 0.5rem;
    cursor: pointer;
  }
  
  /* Desktop layout */
  @media (min-width: 1280px) {

    .project-list {
        display: flex;
        margin: 0;
      }

    .project-list ul {
      width: 70%;
      display: grid;
      grid-template-columns: 1fr;
      gap: 0;
      border: black solid 1px;
      margin: 0 auto;
    }
    
  
    .project-header-row {
      display: grid;
      grid-template-columns: 150px 1fr 1fr 60px;
      font-family: var(--font-family-base);
      font-weight: var(--font-weight-bold);
      text-align: left;
      background-color: var(--background-color-2);
      padding: 0.75rem 1rem;
      border: 1px solid black;
    }
  
    .project-row {
      display: grid;
      grid-template-columns: 150px 1fr 1fr 60px;
      padding: 0.75rem 1rem;
      border: none;
      border: 1px solid black;
      text-align: left;
    }
  
    .project-info {
      display: contents;
    }
  
    .project-link {
      display: flex;
      text-align: left;
    }
  
    .project-button {
      font-size: 1.25rem;
      background: var(--background-color);
      border: 1.5px solid black;
    }

  
}

.hidden {
    display: none !important;
  }
  
  /* -------FOOTER---------- */

  footer {
    padding: 1rem;
    text-align: center;
    position: relative;
    z-index: 10;
  }


  #grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: grid;
    z-index: 1;
    pointer-events: auto;
  }

.grid-square {
  border: 0.9px solid var(--border-color);
  width: var(--square-size);
  height: var(--square-size);
  transition: background-color var(--transition-duration) ease;
}
