/* ==========================
   Google Fonts
========================== */
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

/* ==========================
   Base Styles
========================== */
* {
  padding: 0;
  margin: 0;
  font-family: "EB Garamond", serif;
  box-sizing: border-box;
}

body {
  margin: 20px;
}

.container {
  margin-top: 3em;
}


hr {
  border: none;
  border-top: 1px solid lightgrey;
}

p {
  font-size: 1.4em;
  font-weight: 400;
  font-style: normal;
  margin-bottom: 10px;
}

h1, h2 {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-style: italic;
}

h1 {
  font-size: 1.9em;
  line-height: 1.4em;
  margin-bottom: 20px;
}

h2 {
  font-size: 1.3em;
}

a {
  color: #444;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

a:hover {
  color: black;
  text-decoration: none;
}


/* Work layout shell */
.work-layout{
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  width: min(100%, 84rem);
  margin: 0 auto;
  padding-inline: clamp(12px,3vw,24px);
}

/* Left rail */
.series-rail{
  position: sticky;
  top: 80px;               /* match your header height */
  align-self: start;
  max-height: calc(100vh - 100px);
  overflow: auto;
  padding-right: 1rem;
}
.series-rail::before{
 
  display: block;
  font-size: .9rem;
  color: #666;
  margin-bottom: .5rem;
}
.series-rail nav{ display: grid; gap: .6rem; }
.series-rail nav a{
  text-decoration: none;
  color: #222;
  padding: .25rem 0;
}
.series-rail nav a.is-active{ font-weight: 600; }

/* Main column */
.series-content-main{  max-width: 500px; }

.project-intro::after {
  content: "";
  display: block;
  width: 3rem;
  height: 1px;
  background: rgba(0,0,0,0.1);
  margin: 2rem 0 1rem;
}


/* Mobile */
@media (max-width: 900px){
  .work-layout{ grid-template-columns: 1fr;
  
  }
  .series-rail {  position:static }

  .series-rail nav {  text-align: left !important; }

   /* Consistent chevrons for ALL items */
  .series-rail nav a{
    position: relative;
    padding: 0rem 0 .25rem 1.1rem; /* room for arrow */
  }
  .series-rail nav a::before{
    content: "›";            /* same arrow for every item */

  }

}


/* ==========================
   LANDING PAGE
========================== */
.work { display: flex; flex-direction: column; gap: 2.5rem; 
  margin: 0 20% 0 20%;
}

.work-intro p { font-size: 2em; margin: 0 0 .75rem 0; line-height: 1.3; }

.series-row {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.series-image { flex: 0 0 300px; max-width: 300px; }
.series-image img { display: block; width: 100%; height: auto; }

.series-content { flex: 1; line-height: 1.6; }
.series-content h2 { font-size: 1.4rem; margin: 0 0 .35rem; font-style: normal; }
.series-content h2 a { text-decoration: none; }
.series-content h2 a:hover { text-decoration: underline; }

.series-content .meta { font-weight: normal; color: #666; }
.series-dates { color: #666; margin: .5rem 0 0; font-size: .95rem; }

.rule {
  border: 0;
  border-top: 1px solid rgba(0,0,0,.12);
  margin: .5rem 0 0; /* already have vertical gap via .work */
}

/* Mobile */
@media (max-width: 700px) {
  .series-row { flex-direction: column; }
  .series-image { flex: none; max-width: 100%; }
  .work { margin: 0; }
}

 

/* ==========================
   Layout Utility
========================== */



.landing-blurb {
  width: 75%;
}

/* ==========================
   Navigation
========================== */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px 10px 30px;
}

ul.logo,
ul.nav-menu {
  list-style: none;
  display: flex;
  padding: 0;
  margin: 0;
  align-items: center;
}

ul.logo li a > img {
  width: 65%;
  display: block;
}

.logo {
  max-height: 120px;
}

ul li {
  position: relative;
  font-size: 20px;
}

ul li a {
  display: block;
  padding: 3px 0;
  color: black;
  font-size: 20px;
  text-decoration: none;
}

.nav-menu {
  margin-left: auto;
  display: flex;
  gap: 0;
  align-items: center;
}

.nav-menu a {
  padding-left: 0px;
  font-family: "EB Garamond", serif;
}

.nav-menu a:hover {
  text-decoration: underline;
}



.nav-menu {
    list-style: none;
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 0;
    margin: 0;
}

.nav-menu > li {
    position: relative;
}








/* ==========================
   Footer
========================== */
footer {
  text-align: center;
  padding: 0;
  margin-top: 20px;
  font-size: 0.9em;
}
  
footer hr {
    padding-top: 10px;
  }



/* ==========================
   Media Queries
========================== */



@media (max-width: 1000px) { 
  .work { 
  margin: 0 5% 0 5%;
}
}

@media (max-width: 675px) {

  .work-layout, .work {
    padding: 20px;
  }

  nav {
    display: block;
    padding: 0;
  }


  ul.logo{
    display: block;
    margin: 0 8rem 20px 8rem;
  }

  ul.nav-menu {
    display: block;
    text-align: center;
    font-size: 4rem;
  }

    .series-rail {
      display: none;
    }

  span.label {
    text-transform: uppercase;
    font-size: 12px;
    font-family: sans-serif;
    font-style: italic;
  }

  

  /* style the first paragraph the same as the rest for mobile view,
  with the exception of italicization */
  h1 {
    font-size: 1.4em;
    font-weight: 400;
    font-style: italic;
    margin-bottom: 10px;
    font-family: "EB Garamond", serif;
    line-height: 1.6;

  }

  details {
    width: 100%;
    margin: 10px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid lightgray;
  }
  


  .landing-blurb {
    width: 90%;
  }



  ul.logo li a > img {
    width: 100%;
      display: block;
      max-height: unset;
    }

  .nav_hr {
    border: 0;
  }



}