* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #f4efeb;
  color: #240900;
  overflow-x: hidden;
}

body a {
  all: unset;
  text-decoration: none;
  color: none;
  cursor: pointer;
}

body a:hover {
  text-decoration: underline;
}

body h2 {
  font-family: 'Bebas', 'Bebas Neue', Helvetica, sans-serif;
  font-size: clamp(3.5rem, 4.5vw, 5rem);
  font-weight: 100;
  align-items: center;
  color: #240900;
  letter-spacing: -3px;
  margin: 0px;
  height: 100%;
  line-height: 65px;
}

body h3 {
  font-family: "eb-garamond", serif;
  margin: 0;
  letter-spacing: -1px;
  font-weight: 200;
  font-size: clamp(1.4rem, 1.7vw, 1.8rem);
  line-height: 20px;
}

body h4 {
  margin: 0;
  letter-spacing: -1.2px;
  font-family: "eb-garamond", serif;
  font-size: clamp(0.8rem, 1.2vw, 1.2rem);
  font-weight: 200;
}

.banner {
  width: 100%;
  height: 123px;
  margin-top: 25px;
  background-color: #240900;
  overflow-x: auto;
  overflow-y: hidden;
  position: absolute;
  z-index: 1000;
  display: flex;
  align-items: center;
  top: 0;
  cursor: default;
}

.banner a {
  all: unset; /* Reset all default styles */
  text-decoration: none; /* Remove underline */
  color: inherit; /* Inherit text color */
  display: block; /* Ensure it doesn't affect layout */
}

.title {
  font-family: Bebas, Helvetica, sans-serif;
  font-weight: 100;
  font-size: 160px;
  align-items: center;
  color: #f4efeb;
  letter-spacing: -3px;
  margin-left: 5px;
  height: auto;
  position: relative;
  transition: color 0.5s ease-in-out;
  top: -6%;
  text-transform: uppercase;
}

.title:hover {
  color: #240900;
  -webkit-text-stroke: 2px #f4efeb;
  transition: color 0.5s ease-in-out;
  cursor: pointer;
  transform: scaleY(0.982);
}

/* Feature Strip */
.feature-strip {
  display: flex;
  height: clamp(20rem, 26vw, 33rem);
  width: 100%;
  margin-top: 14rem;
  margin-bottom: 5rem;
  position: relative;
  overflow: visible;
  cursor: pointer;
}

.feature-block {
  position: relative;
  overflow: visible;
}

.feature-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}

.feature-block img:hover {
  opacity: 88%;
  transition: opacity 0.4s ease-in-out;
}

.feature-block.wide {
  flex: 2.7;
}

.feature-block.narrow {
  flex: 1.3;
}

/* Text Overlay */
.text-overlay {
  position: absolute;
  font-weight: bold;
  line-height: 0.9;
}

.top-left {
  top: -50px;
  left: 20px;
  text-align: left;
}

.bottom-right {
  bottom: -80px;
  right: 20px;
  text-align: right;
}

/* Credits Section */
.credits-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 2rem 0 2rem 20px;
  width: 57%;
  padding: 5rem 0;
  padding-bottom: 7rem;
  gap: 2rem;
}

.column {
  flex: 1;
  padding: 0 1rem;
  position: relative;
}

.column:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 0;
  height: 118%;
  width: 1.5px;
  background-color: #000;
}

/* Typography and spacing */
.column h3 {
  margin-bottom: 0.3rem;
  font-size: 1.6rem;
}

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

.about-tag:hover {
  text-decoration: underline;
}
.column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.column ul li {
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  line-height: 1.4;
  letter-spacing: -1px;
}

.column h4 {
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  line-height: 1;
  letter-spacing: -1px;
}

.page-wrapper {
  min-height: 95vh;
  display: flex;
  flex-direction: column;
}

.content-wrapper {
  flex: 1;
  padding-bottom: 2rem;
}

/* Footer */
footer {
  width: 97%;
  margin: 0 auto;
  margin-top: auto;
  margin-bottom: 15px;
  border-bottom: 1.5px solid #000;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  position: relative;
}

footer h4 {
  font-size: clamp(1rem, 1.2vw, 1.2rem);
}

.redirect {
  display: flex;
  flex-direction: row;
}

.redirect img {
  width: 1.2rem;
  height: 1.2rem;
  margin-left: 0.5rem;
  vertical-align: right;
  margin-right: 10px;
  margin-bottom: 0.2rem;
}

@font-face {
  font-family: 'Bebas';
  src: url('https://narrowmarginquarterly.com/bebasneuepro-bold.woff2') format('woff2'),
       url('https://narrowmarginquarterly.com/bebasneuepro-bold.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

.bebas-neue-regular {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 100;
  font-style: normal;
}

@media (max-width: 1150px) {
  .credits-section {
    width: 100%;
    margin: auto;
    gap: 0.5rem;
  }
}

@media (max-width: 783px) {
  .banner {
    height: 15.7vw;
  }

  .credits-section {
    width: 94%;
    margin: auto;
    gap: 0.5rem;
  }

  .feature-strip {
    margin-top: 12rem;
  }

  .title {
    font-size: calc(1.25 * 15.7vw);
  }

  .feature-block.wide {
    flex: 2.4;
  }

  .feature-block.narrow {
    flex: 1.6;
  }

  .wide img {
    object-position: left;
    transition: all 1.5s ease-in-out;
  }

  .column p,
  .column ul,
  .column h4 {
    letter-spacing: -0.7px;
  }

  .top-left {
    top: -30px;
    transition: all 1s ease-in-out;
  }

  .bottom-right {
    bottom: -60px;
    transition: all 1s ease-in;
  }

  body h2 {
    line-height: 50px;
  }
}

@media (max-width: 600px) {
  .feature-strip {
    margin-top: 10rem;
  }

  .credits-section {
    width: 80%;
    padding-bottom: 4rem;
    padding-top: 2rem;
  }

  .column:not(:last-child)::after {
    height: 100%;
  }

  .writers:not(:last-child)::after {
    width: 0;
  }
}

@media (max-width: 500px) {
  footer {
    font-size: 0.8rem;
  }

  footer h4 {
    font-size: 0.8rem;
  }
}
