/* ----------------------  LOAD FONTS FROM SERVER ------------------------------ */

@font-face {
 font-family: "GrotzecCond-Demibold";
  src: url(https://mediainnovation.camd.northeastern.edu/2021/loveinthetimeofcovid/fonts/GrotzecCond-Demibold3.woff2);
}  

@font-face {
 font-family: "GrotzecCond-DemiboldItalic";
  src: url(https://mediainnovation.camd.northeastern.edu/2021/loveinthetimeofcovid/fonts/GrotzecCond-DemiboldItalic.woff2);
}  

@font-face {
 font-family: "LeJeunePoster-Regular";
  src: url(https://mediainnovation.camd.northeastern.edu/2021/loveinthetimeofcovid/fonts/LeJeunePoster-Regular.otf);
} 

@font-face {
 font-family: "LeJeunePoster-RegularItalic";
  src: url(https://mediainnovation.camd.northeastern.edu/2021/loveinthetimeofcovid/fonts/LeJeunePoster-RegularItalic.otf);
}

/* ----------------------  BASIC CSS FOR MY STORY ------------------------------ */

* {
    box-sizing: border-box;
    
}

/* Photo opener with white headline via chatgpt */
/* Wrapper */
div.hero {
  position: relative;
  height: 100vh;       /* full screen height */
  width: 100%;
  overflow: hidden;
  font-family: "GrotzecCond-Demibold";
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45); /* adjust opacity: 0.2 → light, 0.6 → darker */
  z-index: 1;  /* sits above the image */
}


/* Background image */
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* makes the image behave like background-size: cover */
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;          /* behind the text */
}

/* Centered text */
.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 2;          /* above the image */
}

/* Text shadow for readability */
.hero-content h1,
.hero-content p {
  color: white;
    font-size: 1em);
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
/* End Photo opener with white headline via chatgpt */

/* ===== Article Body Container ===== */
.article {
  max-width: 750px;        /* central column */
  margin: 0 auto;          /* center horizontally */
  padding: 0 20px 60px;    /* side padding for mobile */
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.45;       /* tighter for newspaper style */
  color: #222;
}

/* ===== Paragraphs ===== */
.article p {
  margin-bottom: 0.6rem;   /* tighter spacing between paragraphs */
  text-align: justify;      /* newspaper-style justified text */
}

/* ===== Headings ===== */
.article h1,
.article h2,
.article h3,
.article h4 {
  margin-left: 0;
  margin-right: 0;
  text-align: left;         /* align with paragraph text */
  font-family: "GrotzecCond-Demibold", sans-serif;
  color: #111;
}

/* Main article title */
.hero-content h1 {
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
   font-family: "GrotzecCond-Demibold", sans-serif;
}

/* Section headers */
.article h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 1.8rem;
  margin-bottom: 0.4rem;
  line-height: 1.25;
  color: #222;
}

/* Sub-section headers */
.article h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.3rem;
  line-height: 1.25;
  color: #333;
}

/* Smaller labels / sub-sub headers */
.article h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1.2rem;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #444;
}

/* ===== Links ===== */
.article a {
  color: #0047cc;
  text-decoration: underline;
}

.article a:hover {
  text-decoration: none;
}

/* ===== Blockquotes ===== */
.article blockquote {
  border-left: 3px solid #ccc;
  padding-left: 14px;
  font-style: italic;
  color: #555;
  margin: 1rem 0;
}

/* ===== Byline or small labels ===== */
.article .byline,
.article .label {
  font-variant: small-caps;
  font-weight: 600;
  color: #333;
}

/* ===== Horizontal rules ===== */
.article hr {
  border: 0;
  border-top: 1px solid #ccc;
  margin: 2rem 0;
}
