/* @import url('https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&family=Lora:ital,wght@0,400..700;1,400..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&display=swap');
@import url("normalize.css"); */

*,
*::before,
*::after {
    box-sizing: border-box;
}


.grid {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    background-image: linear-gradient(to right, #80808012 1px, transparent 1px),
      linear-gradient(to bottom, #80808012 1px, transparent 1px);
    background-size: 24px 24px;
}  

/* Custom IDs */
#center {
    text-align:center
}


/* Regular tags */
img {
    max-width: 100%;
    height: auto;
}

video {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

body {
    background: rgb(255, 255, 255);
    color: rgb(21, 21, 21);
    font-size: 20px;
    line-height: 28px;
}

main {
    max-width: 580px;
    font-size: 1.2rem;
    padding: 20px;
    overflow: visible;
    margin: 0 auto
}

@media (min-width: 768px) {
    main {
      max-width: none;       /* remove max-width constraint */
      width: 90%; /* full width minus 2rem margin each side */
    }
  }
  
  @media (min-width: 1200px) {
    main {
      width: 90%; /* more margin on very wide screens */
    }
  }

a {
    text-decoration: none;
}

p {
    line-height: 1em;
    margin-top: 0.4em;
    display: block;
    font-family: "Lora";
    font-size: 1rem;
    font-weight: normal;
    font-style: normal;
    overflow: visible;
}

.site-header {
    display: flex;
    align-items: baseline;
    justify-content: flex-start; /* pushes nav-bar to the right */
    flex-wrap: nowrap; /* allows wrapping on smaller screens */
    min-width: 1024px;
}

h1 {
    margin: 0;
    margin-right: 0.6em;
    padding: 0;
    font-family: "Lora";
    font-weight: 400;
    font-style: normal;
    line-height: 1.2rem;
    flex-wrap: nowrap;
}

h1 a {
    color: black;
}

#post-list ul {
    list-style-type: none;
    padding: 0;
    display: inline;
}
  
#post-list li {
    display: inline-block;
    margin-right: 10px;
}

#self-gif {
    display: inline-block;
    position: relative;
    cursor: grabbing;
    font-family: "Lora";
    font-weight: normal;
    letter-spacing: 0.02em;
    font-style: normal;
    color: #D40000;
    background-color: transparent;
    text-decoration: underline dotted;
    -webkit-text-decoration: underline dotted; /* for safari */
}

#gif {
    position: fixed; /* without this, the gif remains fixed dim*/
    aspect-ratio: 5/3;
    width: 180px;
    top: 116px; /* place directly below the text */
    left: 180px;
    display: none;
    z-index: 10;
    pointer-events: none; /* so it doesn't block mouse */
    border-radius: 0.4em;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}
  
#self-gif:hover {
    text-decoration: none;
}

#self-gif:hover img {
    display: block;
    width: 180px;
    height: auto;
}

#self-gif:hover video {
    object-fit: cover;
    display: block;
    width: 210px;
    height: auto;
}

.flex {
    display: flex;
}

.hidden {
    display: none;
}

.m-blocker {
    position: fixed;
    width:100%;
    height:100%;
    top:0;
    left:0;
    align-items:center;
    justify-content:center;
    z-index: 100;
}

.bg-white {
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity))
}

.text-lg {
    font-family: "Lora";
    font-size: 1.125rem;
    line-height: 1.75rem
}

.text-5xl {
    font-family: "Lora";
    font-size: 3rem;
    line-height: 1
}

.text-black {
    --tw-text-opacity: 1;
    color: rgb(21 21 21 / var(--tw-text-opacity))
}

.text-center {
    text-align: center
}

.nav-wrapper {
    display: flex;
}

.nav-bar {
    font-family: "Lora";
    font-style: normal;
    font-weight: normal;
    font-size: 1rem;
    display: flex;
    gap: 12px;
    align-items:baseline;
    color: rgb(70, 70, 70);
}

.bracket-item {
    cursor: pointer;
    text-decoration: none;
}

.bracket-item.underlined {
    text-decoration: underline;  /* Underline while clicked */
}

.nav-item a {
    color: rgb(70, 70, 70);
    text-decoration: none;
}

.nav-item a:hover {
    color: #D40000;
}

.separator {
    color: rgb(70, 70, 70);
}

.star-logos-container {
    display: flex;
    justify-content: center;
    gap: 0;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.star-logos-arena {
    display: flex;
    justify-content: center;
    gap: 0;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.arena-logo {
    margin-right: -39px;
    pointer-events: auto;
}

.arena-logo-link {
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  z-index: 999;
}


.rotating-logo {
    display: flex;
    transform-origin: center center;
    will-change: transform;
}

/* .rotating-logo:hover {
    transform: rotate(360deg);
} */

.star-logo-mobile {
    position: fixed;
    bottom: 20px; 
    left: 50%;
    transform: translateX(-50%);
    display: inline-block;
}

.wip {
    position: fixed;
    bottom: 85px; 
    /* bottom: 70px; */
    left: 50%;
    transform: translateX(-50%);
    display: inline-block;
    text-align: center;
}

.last-updated {
    position: fixed;
    bottom: 85px;
    left: 50%;
    text-align: center;
    font-size: 0.8em;
    font-style: italic;
    transform: translateX(-50%);
    display: inline-block;
    color: #555;
  }


/* Scrollable Cards */
.scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1.6rem;
    padding: 2rem 0;
    scroll-padding: 1rem;
    scrollbar-width: none; /* hide scrollbar for Firefox */
    -ms-overflow-style: none; /* hide scrollbar for IE 10+ */
    width: 100%;  /* ensure container stretches full width */
  }
  .scroll-container::-webkit-scrollbar {
    display: none;                /* Chrome, Safari */
  }
  
  .scroll-item {
    display: block;           /* make entire card clickable */
    width: 320px;
    /* padding: 1rem; */
    border-radius: 8px;
    font-family: inherit;     /* use the main font of your page */
    color: inherit;           /* inherit color so normal link color applies */
    text-decoration: inherit; /* keep underline for links */
    background: transparent;  /* no background override */
    cursor: pointer;          /* pointer cursor on hover */
    /* Remove any custom background, shadow, or colors that block link styles */
    color: rgb(70, 70, 70);
    letter-spacing: 0.01em;
  }
  
  .scroll-item a {
    color: rgb(70, 70, 70);
    text-decoration: none;
}

.scroll-item a:hover {
    color: #D40000;
}

  .scroll-item .meta {
    font-size: 0.8rem;
    font-weight: inherit;
    
    text-transform: uppercase;
    color: rgb(160, 160, 160);
    /* letter-spacing: 0.05em;
    margin-bottom: 0.4em; */
  }
  
  .scroll-item .authors {
    font-size: 1rem;
    font-weight: 540;
    margin-bottom: 0.4rem; 
  }
  
  .scroll-item .title {
    font-weight: bold;
    font-size: 1rem;
    line-height: 1.4;
  }
  

html {
    font-size: 85%; /* or 85%, 80% - adjust to match your localhost */
    line-height: 1;
    -webkit-text-size-adjust: 100%;
}

.work-link {
    position: fixed;     /* stays at the screen edge */
    top: 20px;           /* adjust to align with the nav */
    right: 20px;         /* distance from right edge */
    text-decoration: none;
    font-weight: 500;
  }

/* style.css (Modified Existing Sections) */

main {
    max-width: none; /* Allows the content to fill the width */
    /* width: 90%; Removed/Changed */ 
    font-size: 1.2rem;
    padding: 20px; /* ❗ Keep this to preserve the original 20px left margin */
    overflow: visible;
}

@media (min-width: 768px) {
    main {
      max-width: none;       
      width: 100%; 
    }
  }
  
  @media (min-width: 1200px) {
    main {
      width: 100%; 
    }
  }

.site-header {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    flex-wrap: nowrap;
    /* ❗ REMOVE min-width: 1024px; */ 
}


/* style.css (New Section to be added) */

.about-page-content {
    display: flex;
    margin-top: 140px;
    width: 100%;
}

.about-title {
    width: 100px; /* 1. Sets the width of the 'ABOUT' column. */
    flex-shrink: 0; /* 2. Prevents the 'ABOUT' column from collapsing. */
    font-family: "Lora"; 
    font-size: 1rem;
    font-weight: normal;
    font-style: normal;
    text-transform: uppercase; /* Makes the title match the image */
    margin-right: 120px; /* 3. Controls the space between the title and content (like gap). */
    text-align: left;
}

.about-text {
    max-width: 600px;      /* readable width */
    margin: 0 auto;        /* center it relative to whole page */
    transform: translateX(-60px); /* cancel ABOUT title width + margin-right */
}

/* Ensure paragraph inside about-text also follows styling */
.about-text p {
    line-height: 1.5em; /* Improves text readability. */
    margin-top: 0; 
}

/* Re-apply margin to subsequent paragraphs to separate blocks of text */
.about-text p + p {
    margin-top: 1.5em; 
}


.column-wrapper {
    margin-top: 140px;  
    column-count: 5;
    column-gap: 1.6rem;
  }
  
  .column-wrapper > * {
    break-inside: avoid;
    margin-bottom: 1.6rem;
  }

/* -------------------------------------------
   PROJECT SCROLL ITEMS — CLEAN UNIFIED VERSION
-------------------------------------------- */

.scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1.6rem;
    padding: 2rem 0;
    scroll-padding: 1rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
  }
  .scroll-container::-webkit-scrollbar {
    display: none;
  }
  
  .scroll-item {
    width: 320px;
    cursor: pointer;
    color: rgb(70,70,70);
    letter-spacing: 0.01em;
    text-decoration: none;
    background: transparent;
    border-radius: 8px;
  }
  
  .scroll-item a {
    color: inherit;
    text-decoration: none;
  }
  .scroll-item a:hover {
    color: #D40000;
  }
  
  /* --- Meta (e.g., "NEW") --- */
  .scroll-item .meta {
    /* margin-top: 120px; */
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    color: #6B6B6B;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 2rem;
  }
  
  /* --- Authors --- */
  .scroll-item .authors {
    font-family: "Lora";
    /* font-size: 0.85rem; */
    /* font-weight: 500; */
    line-height: 1.25;
    margin-bottom: 0.6rem;
    color: rgb(40,40,40);
  }
  
  /* --- Title --- */
  .scroll-item .title {
    font-family: "Lora", serif;
    font-size: 1rem;
    /* font-weight: 600; */
    line-height: 1.35;
    color: rgb(70,70,70);
    margin-bottom: 0.6rem;
  }
  
  /* --- Description Paragraph --- */
  .scroll-item p {
    margin-top: 0.9rem;
    font-family: "DM Mono", serif;
    font-size: 0.9rem;
    line-height: 1.45;
    color: rgb(90,90,90);
    text-transform: uppercase;
    line-height: 1.5;
  }
  

  /* .section-subtitle,
.projects-grid,
.project-card,
.project-card * {
  font-family: inherit;
  font-weight: inherit;
  color: inherit;
} */