@import url('https://fonts.googleapis.com/css2?family=Ultra&display=swap');

/* Typography */


/** {
  outline: 1px solid red;
}*/

body {
  background: #e9edf5;
  font-family: proxima-nova, sans-serif;
  font-weight: 500;
  font-style: normal;
}

a {
  color: black;
  text-decoration: underline;
}

a:hover {
  color: #4ca7ff;
}

a img:hover {
  filter: brightness(80%);
}

/* Wrapper */
.wrapper {
  width: 80%;
  margin: 0 auto;
  padding: 2em;
}

@media (max-width: 500px) {
  .wrapper {
    width: 100%;
    padding: 0;
  }

  .section,
  .section-2010s,
  .section-aughts,
  .section-nineties,
  .section-2016,
  .section-npr {
    width: 100%;
  }
}

/* Headings */
h1 {
  font-size: 3em;
}

h2 {
  font-size: 1.5em;
  font-weight: 700;
}

p {
  font-size: 1.2em;
  font-weight: 500;
  line-height: 1.5em;
}

/* Sections - Base */
.section,
.section-2010s,
.section-aughts,
.section-nineties,
.section-2016,
.section-npr {
  width: 90%;
  margin: 0 auto;
  background-color: white;
}

.section {
  padding: 5px;
  border-radius: 15px;
  box-shadow: 4px 3px 8px gray;
}

.section h2,
.section p {
  padding-left: 30px;
}

/* Section-specific */
.section-2016 {
  width: 90%;
  margin: 0 auto;
  background-image: url("images/newsprint.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.section-2016 img {
  display: block;
  margin: 1.5em auto 0;
  width: 80%;
}

.section-2016 p {
  margin: 0 1em;
}

.section-2016 h1 {
  font-family: sans-serif;
  margin: 0 20px;
}

.section-2016 .banner {
  background-color: #fbc91a;
  width: 100%;
}

.section-2016 .banner h2 {
  font-family: serif;
  font-size: 1.1em;
  text-align: center;
  color: #243d8e;
}

.section-2016 hr {
  border-top: 2px solid black;
}

.section-2016 .main-content {
  max-width: 1000px;
  margin: auto;
  border-bottom: 2px solid black;
  padding-bottom: 2em;
}

.section-2016 .sidebar {
  display: flex;
  gap: 2em;
  justify-content: space-between;
  margin-top: 1em;
  text-align: center;
}

.section-2016 .sidebar .box {
  flex: 1;
  padding: 1em;
}

.section-2016 .box h2 {
  margin: 0.5em 0;
  font-size: 1.5em;
}

.section-2016 .box span {
  display: block;
  font-weight: bold;
}

/* Section - Aughts */

.section-aughts {
  width: 90%;
  margin: 0 auto;
}

.section-aughts img:hover {
  filter: brightness(100%);
}

.section-aughts h2 {
  font-family: sans-serif;
  color: blue;
  font-size: 1.3em;
}

.section-aughts a:hover {
  color: blue;
}

.section-aughts .footnote {
  background-color: #e9edf5;
}

/* Section - Nineties */
.section-nineties {
  width: 90%;
  margin: 0 auto;
  background-color: #bfbfbf;
  border: 5px groove white;
}

.section-nineties h1,
.section-nineties p {
  font-family: serif;
}

.section-nineties a {
  color: blue;
  text-decoration: underline;
}


/*Express*/

.express-wrapper {
  max-width: 90%;
  margin: 0 auto;
  font-family: 'Helvetica Neue', sans-serif;
  padding: 0;
  border-radius: 2em 2em 2em 2em;
  border: 5px solid white;
  overflow: hidden; /* ← this makes the border-radius apply visually */
  margin-bottom: 20px;
}

.story-block {
  display: flex;
  border-top: 1px solid #ccc;
  background: #f2f2f2;
  padding: 10px;
  transition: background 0.2s ease;
}

.story-block:hover {
  background: #fafafa;
}

.story-block img {
  width: 146px;
  object-fit: cover;
  margin-right: 15px;
}

.story-block .overline {
  font-size: .9em;
  color: #ef4923;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.story-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left; /* 👈 forces left alignment of all children */
}

.story-content h2 {
  font-family: jubilat, serif;
  font-style: normal;
  font-weight: 700;
  font-size: 1.8rem;
  color: #111;
  margin: 0 0 6px;
  line-height: 1.1;
  letter-spacing: .8px;
}

.story-content p {
  font-size: 1rem;
  color: #545a69;
  margin: 0;
  line-height: 1.4;
  padding: 0; /* 👈 remove any horizontal padding */
  text-align: left;
}

.story-content a {
  text-decoration: none;
  /*turn off underlining on story links*/
}

.express-header {
  position: relative;
  background: #4b4f5e;
  border-radius: 10px 10px 0 0;
  padding-top: 20px;
  margin: 0 auto;
  max-width: 80%;
}

.express-topbar {
  background: black;
  color: white;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center; /* 🪄 center both logo + icons */
  font-family: 'Helvetica Neue', sans-serif;
  box-shadow: 0 3px 4px rgba(0, 0, 0, 0.4);
}

@media (max-width: 900px) {
  .express-topbar {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
  }

  .express-topbar .social-icons {
    justify-content: center;
    flex-wrap: wrap;
    padding-top: .3em;
  }

  .express-topbar .social-icons img {
    height: 28px;
    margin: 0 5px;
  }
}

.express-topbar .logo {
  font-size: 2rem;
  color: #00aaff;
  font-family: 'Ultra', serif;
  font-weight: 100;
}

@media (max-width: 500px) {
  .express-topbar .logo {
    font-size: 1.5em;
    color: #00aaff;
    font-family: 'Ultra', serif;
    font-weight: 100;
  }
}

.express-topbar .logo span {
  color: #66ccff;
}

.express-topbar .logo strong {
  color: white;
}

.express-topbar .social-icons img {
  width: 25px;
  height: 25px;
  margin-bottom: .5em;
  margin-top: .5em;
  display: inline-block;
}

.express-shell {
  max-width: 90%;
  margin: 0 auto;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 #fff, /* soft inner edge */
    0 0 0 1px #d1d1d1,  /* outer border */
    0 2px 4px rgba(0, 0, 0, 0.2); /* faint drop shadow */
  background-image: url("images/body_bg.jpg");
  background-repeat: repeat;
}

@media (max-width: 600px) {
  .story-block {
    flex-direction: column;
    align-items: center;
    text-align: left;
    padding-bottom: 2em;
  }

  .story-block img {
    width: 90%;
    max-width: 300px;
    margin: 0 auto 10px;
  }

  .story-content {
    width: 100%;
  }

  .story-content h2 {
    font-size: 1.4rem;
    /* text-align: center; ❌ remove this line */
  }

  .story-content p {
    text-align: left;
  }
}

@media (max-width: 1024px) and (min-width: 601px) {
  .story-block {
    flex-direction: row;
    align-items: flex-start;
    padding: 15px;
  }

  .story-block img {
    max-width: 200px;
    margin-bottom: 0;
  }

  .story-content {
    width: 60%;
  }

  .story-content h2 {
    font-size: 1.4rem;
  }

  .story-content p {
    font-size: 1rem;
    line-height: 1.4;
  }
}

/* === Intro Era Section === */
.intro-era-section {
  margin-bottom: 3em;
  text-align: center;
  background-color: #e9edf5; /* match your body background */
}

/* HEADER CONTAINER */
.intro-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1em 0;
}

.intro-header p {
  max-width: 60%;
  margin: 0 auto;
}

@media (max-width: 767px) {
  .intro-header p {
    padding: 0 5vw;
  }
}

@media (min-width: 1300px) {
  .intro-header p {
  padding-left: 20em;
  padding-right: 20em;
  }
}

/* IMAGE */
.intro-portrait {
  width: 200px;
  max-width: 30vw;
}

/* HEADLINE */
.intro-headline h1 {
  font-family: 'scriptorama-markdown-jf', serif;
  font-style: normal;
  font-weight: normal;
  font-size: clamp(2.5rem, 8vw, 5rem); /* fluid scaling */
  line-height: 1.1;
  margin: 0.2em 0;
}

/* SUBHEAD */
.intro-headline .subhead {
  font-family: 'thirsty-script', sans-serif;
  font-style: normal;
  font-weight: normal;
  font-size: clamp(2rem, 6vw, 3.2rem); /* fluid and bold */
  line-height: 1.2;
  margin-top: 0.2em;
  margin-bottom: 0.5em;
}

/* SQUIGGLE DIVIDER */
.divider-squiggle {
  height: 70px;
  background: url('images/yellow-squiggle.svg') no-repeat center;
  background-size: contain;
}

@media (max-width: 500px) {
  .divider-squiggle {
    height: 50px;
  }
}

/* === Eras Nav Section === */
.eras-nav .eras-intro {
  color: #c94f41;
  font-family: 'thirsty-script', serif;
  font-size: 2rem;
  font-style: normal;
  font-weight: normal;
  margin-bottom: 1rem;
}

.eras-nav .eras {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  font-weight: bold;
  font-size: 1.1rem;
}

.eras-nav .eras a {
  text-decoration: none;
  color: black;
}

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

/* === NPR Training === */

.section-npr {
  width: 90%;
  margin: 0 auto;
  background-color: #F5F5F5;
}

.section-npr .header {
  padding: 5px;
  background: #3366FF;
  box-shadow: 4px 3px 8px gray;
}

.section-npr .header img {
  width: 150px;
  padding-left: 10px;
  padding-top: 5px;
}

.section-npr .header .sb-icon-search {
  display: block;
  margin-top: 10px;
  float: right;
  width: 45px;
  height: 45px;
  color: white;
  z-index: 90;
  background: url(images/icn_search_open.png) no-repeat;
}

.section-npr .card {
  width: 95%;
  margin: 0 auto;
  padding: 5px;
}

.section-npr .card h2,
.section-npr .card p {
  padding-left: 30px;
}

/* Portfolio row */

.portfolio-row {
  margin: 0 auto 1em;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1em;
}

.portfolio-row .container {
  max-width: 30%;
  margin: 0 auto 1em;
  background-color: white;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background-color: white;
  box-shadow: 4px 3px 8px gray;
  min-height: 275px;
}

.portfolio-row .container-profile {
  max-width: 100%;
  margin: 0 auto 1em;
  background-color: white;
  display: flex;
  flex-direction: row;
  background-color: white;
  box-shadow: 4px 3px 8px gray;
  align-items: center; /* centers vertically */
}

.portfolio-row .container .caption {
  font-size: 1.1em;
  font-weight: 500;
  padding-top: 1em;
  padding-left: 1em;
  padding-right: 1em;
}

.portfolio-row .container-profile .caption {
  font-size: 1.1em;
  font-weight: 500;
  padding-left: 1em;
  padding-right: 1em;
  /* REMOVE padding-top! it pushes the caption down and ruins centering */
}

.portfolio-row .container-profile .caption .greeting {
  font-size: 2em;
  font-weight: 700;
}

.portfolio-row .container img {
  width: 100%;
  margin: 0 auto;
}

.portfolio-row .container-profile img {
  width:50%;
}

.section h2,
.section p {
  padding-left: 30px;
}

/* Responsive - Portfolio */
@media (max-width: 925px) {
  .portfolio-row {
    flex-direction: column;
  }

  .portfolio-row .container {
    padding-bottom: 1em;
  }

  .portfolio-row .container-profile {
    flex-direction: column;
    padding-bottom: 1em;
  }

  .portfolio-row .container-profile img {
    width: 100%;
    padding-bottom: 1em;
  }

  .portfolio-row .container {
    max-width: 100%;
  }
}
