/* =======================
   GLOBAL BASE
======================= */
body {
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.65;
  background-color: #1b1f29;  /* dark indigo-grey */
  color: #e8eaf6;             /* light cool grey */
  margin: 0;
  padding: 0;
}

/* page column */
main {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

/* =======================
   HEADER
======================= */
/* =======================
   HEADER — 3-COLUMN LAYOUT
======================= */

header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  padding: 1.25rem 1rem;
  max-width: 1000px;
  margin: 0 auto 2rem;
  border-bottom: 1px solid #2f3545;
  background: rgba(27, 31, 41, 0.85);
  backdrop-filter: blur(6px);
}

.header-center {
  grid-column: 2;        /* stays in the center */
  justify-self: center;
  width: 100%;
  text-align: center;
}




/* LEFT: Course label */
/*.header-left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  justify-self: start;
}

.header-left .subhead {
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  color: #b8bed0;
  margin: 0;
}*/

/* CENTER: The H1 (dominant!) */
header h1 {
  grid-column: 2;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  text-align: center;
  color: #e8eaf6;
  width: 100%;
  max-width: 900px;      /* keeps it aligned with body content */
  margin: 0 auto;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: 0.5px;
}

header h1 span {
  white-space: nowrap; 
}

/* RIGHT: Navigation */
nav {
  justify-self: end;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

nav a {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  text-decoration: none;
  color: #d0d4e2;
  transition: color 0.2s ease;
}

nav a:hover {
  color: #9aa7ff;
}


h1, h2, h3, h4, h5, h6 {
  font-family: "Sora", sans-serif;
  font-weight: 600;       /* default strong heading weight */
  letter-spacing: 0.5px;  /* subtle clarity */
  line-height: 1.25;      
  margin-bottom: 0.6rem;
}

h1 {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: 1.5px;
  /*text-transform: uppercase;*/
  color: #f0f3ff;
  margin: 0 0 0.4rem 0;
}






body, p, li, a, span {
  font-family: "Inter", sans-serif;
  font-weight: 300;     /* elegant, light but readable */
  line-height: 1.65;
}

.card-content h3,
.art-info h4 {
  font-family: "Sora", sans-serif;
  font-weight: 600;
}

.authors, .description, .artist, .caption {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  opacity: 0.8;
}



.header-left h1 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0;
  color: #e8eaf6;
}

.header-left .subhead {
  font-size: 0.95rem;
  color: #b8bed0;
}

/* NAV */
nav ul {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: #b8bed0;
  font-weight: 500;
  transition: 0.2s ease;
}

nav a:hover {
  color: #9aa7ff;
}

/* =======================
   INTRO BOX
======================= */
.intro-box {
  background: #242936;      /* surface */
  border: 1px solid #2f3545;
  padding: 1.75rem;
  border-radius: 10px;
  margin-bottom: 2.5rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

.intro-box h2 {
  color: #e8eaf6;
  margin-top: 0;
}

/* =======================
   SECTION HEADINGS
======================= */
.content-section h2 {
  color: #e8eaf6;
  border-left: 4px solid #6d7bff;
  padding-left: 0.75rem;
  margin-top: 3rem;
  margin-bottom: 1.25rem;
}

/* =======================
   CARD GRID
======================= */
.card-grid,
.art-grid {
  display: grid;
  gap: 1.75rem;
}

/* 3-column on wide screens */
@media (min-width: 800px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .art-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Cards */
.card,
.art-card {
  background: #242936;
  border: 1px solid #2f3545;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  transition: transform .25s ease, box-shadow .25s ease;
}

.card:hover,
.art-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}

.card img,
.art-card img {
  width: 100%;
  display: block;
}

/* Card content */
.card-content,
.art-info {
  padding: 1.2rem;
}

.card-content h3 a,
.art-info h4 {
  color: #e8eaf6;
  text-decoration: none;
}

.card-content h3 a:hover {
  color: #9aa7ff;
}

.authors, .description, .artist, .caption {
  color: #b8bed0;
  font-size: 1.1rem;
  line-height: 1.5;
}

/* =======================
   FOOTER
======================= */
footer {
  text-align: center;
  font-size: 0.9rem;
  color: #adb4c9;
  border-top: 1px solid #2f3545;
  padding: 1.5rem 0;
  margin: 3rem auto 0;
  max-width: 700px;
}


/* ====== ESSAY PAGE ====== */
    .essay-container {
      max-width: 800px;
      margin: 0 auto;
      padding: 1rem 0 3rem;
    }

    .essay-container h2 {
      font-size: 1.8rem;
      margin-bottom: 0.25rem;
      border-left: none;
      padding-left: 0;
    }

    .essay-container .authors {
      font-size: 1.1rem;
      margin-bottom: 1.5rem;
    }

    .essay-container p {
      margin-bottom: 1.25rem;
      font-size: 1.3rem;
      line-height: 1.5;
    }

    /* ====== FIGURES ====== */
    figure {
      margin: 2rem 0;
      text-align: center;
    }

    figure img {
      width: 80%;
      margin: auto;
      height: auto;
      border-radius: 6px;
      border: 1px solid #ddd;
    }

    figcaption {
      font-size: 0.9rem;
      margin-top: 0.5rem;
      font-style: italic;
    }

    /* ====== SOURCES ====== */
    .sources-section {
      margin-top: 3rem;
      border-top: 1px solid #ccc;
      padding-top: 1.5rem;
    }

    .sources-section h3 {
      font-size: 1.2rem;
      margin-bottom: 1rem;
    }

    .sources-section ul {
      list-style-type: none;
      padding-left: 0;
    }

    .sources-section li {
      margin-bottom: 0.75rem;
      font-size: 0.95rem;
    }



    /* =======================
   GLOBAL LINK STYLES
======================= */

a {
  color: #c7ccff;                 /* soft desaturated indigo */
  text-decoration: none;
  position: relative;
  transition: color 0.25s ease;
}

/* Underline animation (hidden default) */
a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: #9aa7ff;            /* bright hover indigo */
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

/* Hover: color shift + underline grow */
a:hover {
  color: #9aa7ff;
}

a:hover::after {
  transform: scaleX(1);
}

/* Focus accessibility */
a:focus {
  outline: 2px solid #9aa7ff;
  outline-offset: 3px;
}

/* Active click */
a:active {
  color: #7785ff;
}


/*responsive video*/

.responsive-video {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin-bottom: 5%;
}

.responsive-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}



/* -----------------------------
   GROUP PROJECTS — 2 columns → 1
------------------------------ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

/* Mobile: 1 column */
@media (max-width: 700px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

/* -----------------------------
   INDIVIDUAL ART PROJECTS — 3 columns → 1
------------------------------ */
.art-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

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

/* Mobile: go to 1 column */
@media (max-width: 600px) {
  .art-grid {
    grid-template-columns: 1fr;
  }
}


