/* =============== */
/* FOUNDATION      */
/* =============== */

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  position: relative;
  font-style: normal;
  font-size: 16px;
  color: black;
  background-color: #fff;
  box-sizing: border-box;
  font-family: Helvetica, Arial, sans-serif;
}

img {
  width: 100%;
  display: block;
}

/* =============== */
/* TYPOGRAPHY      */
/* =============== */

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
}

h1 {
  font-weight: 600;
  min-height: 50px;
  display: flex;
  align-items: center;
}

h2 {
  font-size: 2em;
  font-weight: 700;
  padding-bottom: 30px;
}

h3 {
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 20px;
  color: black;
  line-height: 1;
}

h4 {
  font-size: 2.4em;
  font-weight: 700;
  padding: 80px 0;
  margin-top: 20px;
}

h7 {
  font-size: 5rem;
  line-height: 1.2em;
}

#white-hero-text {
  color: white;
  font-size: 5em;
}

p {
  line-height: 1.5;
  opacity: 0.7;
  font-weight: 300;
  margin-bottom: 15px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s, transform 0.3s;
  font-weight: 400;
}

a span {
  display: inline-block;
  transition: transform 0.3s;
}

a:hover {
  color: #969ca0;
}

a:hover span {
  transform: translateX(5px);
}

/* Typography media queries */
@media only screen and (min-width: 800px) {
  body {
    font-size: 16px;
  }

  h2 {
    font-size: 3vw;
  }

    /* Overall card spacing */
  .content-box {
    padding: 2.5rem 3rem;     /* increases interior padding on all sides */
    gap: 3rem;                /* wider gap between image and text */
    align-items: center;
  }

  /* Optional: stronger structure for reversed layout as well */
  .content-box.flex-reverse {
    gap: 3rem;
  }

  /* Ensure image column is visually balanced */
  .content-box figure {
    flex: 0 0 32%;            /* image takes ~1/3 of the width */
    max-width: 32%;
    margin: 0;
    display: flex;
    justify-content: center;
  }

  .content-box figure img {
    width: 100%;
    height: auto;
    object-fit: contain;      /* prevent cropping on desktop too */
  }

  /* TEXT AREA improvements */
  .content-box .box-text {
    flex: 1 1 68%;            /* text takes ~2/3 of the width */
    padding: 0 2rem;          /* ← pushes text inward significantly */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;   /* better for reading than centered */
    box-sizing: border-box;
  }

  /* Title spacing */
  .content-box .box-text h2 {
    margin-top: 0.25rem;
    margin-bottom: 1.25rem;    /* wider space after title for clarity */
    font-size: clamp(1.5rem, 2.6vw, 2.25rem);
    line-height: 1.2;
  }

  /* Paragraph readability */
  .content-box .box-text p {
    font-size: 1rem;
    line-height: 1.7;          /* expanded line-height for long lines */
    max-width: 90%;            /* narrows text block for improved flow */
    padding-right: 1rem;       /* more breathing room near card edge */
    opacity: 0.9;
    
  }

  /* Target ONLY the second writing card */
  .content-box.flex-reverse .box-text {
    padding-left: 5rem;   /* pull inward from the right-side image */
    padding-right: 1.5rem;   /* slight inward inset from the outer edge */
    max-width: 85%;          /* narrows text width to improve shape */
  }
}

@media only screen and (min-width: 1500px) {
  body {
    font-size: 18px;
  }

  h2 {
    font-size: 3.75vw;
  }
}

/* =============== */
/* BUTTONS         */
/* =============== */

.primary-btn {
  background-color: #191A1E;
  color: #fff;
  border: 2px solid #191A1E;
  padding: 15px 35px;
  font-size: 0.9em;
  margin: 15px 0;
  cursor: pointer;
  font-family: inherit;
  border-radius: 10px;
  transition: all 0.3s;
}

.primary-btn:hover {
  background-color: transparent;
  color: #191A1E;
}

/* =============== */
/* LAYOUT / SECTIONS */
/* =============== */

section {
  box-sizing: border-box;
  position: relative;
  padding: 75px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  overflow: visible;
}

#section-bylines {
  padding-top: 40px;
  background-color: #edfaf3;
}

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-image: url(../img/hero-image.gif);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.hero button {
  margin: 15px 25px;
}

.col-left,
.col-right {
  margin: auto;
  margin-bottom: 35px;
}

.auto-width {
  width: 80%;
}

.col-30,
.col-40,
.col-50,
.col-60,
.col-80 {
  width: 80%;
}

.full-width {
  width: 100%;
}

.margin-auto {
  margin: auto;
}

.center-text {
  text-align: center;
}

.round-corners {
  border-radius: 10px;
}

/* Column layout tweaks on larger screens */
@media only screen and (min-width: 800px) {
  .col-left {
    margin-left: 10%;
    margin-right: 5%;
  }

  .col-right {
    margin-right: 10%;
    margin-left: 5%;
  }

  .auto-width {
    width: auto;
  }

  .col-30 {
    width: 30%;
  }

  .col-40 {
    width: 40%;
  }

  .col-50 {
    width: 50%;
  }

  .col-60 {
    width: 60%;
  }
}

/* Full-height hero (if used) */
@media screen and (min-width: 1025px) {
  section.full-height.hero {
    min-height: 100vh;
    padding: 100px 0;
  }
}

/* =============== */
/* HEADER & NAV    */
/* =============== */

header {
  box-sizing: border-box;
  position: fixed;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 10px 30px;
  z-index: 998;
  font-size: 1.3rem;
  background-color: rgba(255, 255, 255, 0);
  transition: all 0.3s;
}

.header-solid {
  background-color: rgba(255, 255, 255, 1);
}

/* Mobile menu */
.mobile-nav-input {
  display: none;
}

.menu--1 label {
  display: block;
  cursor: pointer;
  position: fixed;
  width: 25vw;
  height: 25vw;
  max-width: 80px;
  max-height: 80px;
  top: -5px;
  right: 0;
  z-index: 998;
  padding: 0 10px;
}

.menu--1 path {
  fill: none;
  stroke: #000;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  --length: 24;
  --offset: -38;
  stroke-dasharray: var(--length) var(--total-length);
  stroke-dashoffset: var(--offset);
  transition: all 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.menu--1 circle {
  fill: #fff3;
  opacity: 0;
}

.menu--1 label:hover circle {
  opacity: 1;
}

.menu--1 .line--1,
.menu--1 .line--3 {
  --total-length: 126.6418304443;
}

.menu--1 .line--2 {
  --total-length: 70;
}

.menu--1 input:checked + svg .line--1,
.menu--1 input:checked + svg .line--3 {
  --length: 22.6274;
  --offset: -94.1149;
}

.menu--1 input:checked + svg .line--2 {
  --length: 0;
  --offset: -50;
}

nav {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  right: -110%;
  flex-direction: column;
  z-index: 997;
  height: 100vh;
  width: 100vw;
  background-color: #F1F3F5;
  transition: right 1s;
  font-size: 2em;
  opacity: 1;
  font-weight: 600;
}

nav a {
  margin-right: 0;
  margin-bottom: 35px;
  color: black;
}

nav a:last-of-type {
  margin-right: 0;
}

.show-nav-mob {
  right: 0;
}

.overflow-mob {
  width: 110%;
}

/* Desktop nav */
@media screen and (min-width: 800px) {
  .menu--1 {
    display: none;
  }

  nav {
    position: fixed;
    right: 0;
    top: 15px;
    padding: 10px 30px;
    background-color: transparent;
    z-index: 999;
    height: auto;
    width: auto;
    flex-direction: row;
    font-size: 1em;
  }

  nav a {
    margin-right: 35px;
    margin-bottom: 0;
  }

  nav a:last-of-type {
    margin-right: 0;
  }

  .overflow-mob {
    width: 40%;
  }
}

/* =============== */
/* WRITING CARDS   */
/* (Home page)     */
/* =============== */

.container {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  padding-top: 1rem;
  background-color: #edfaf3;
}

.content-box-link {
  display: block;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

.content-box {
  width: 80%;
  max-width: 1000px;
  margin: 0 auto;
  background-color: #fff;
  border: 1px solid rgb(95, 143, 114);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 18px 18px rgb(95, 143, 114);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.content-box:hover {
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
  transform: translateY(-4px);
}

.content-box h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

.content-box p {
  margin: 0;
  line-height: 1.6;
  font-size: 1rem;
}

/* Desktop layout for content boxes */
@media only screen and (min-width: 800px) {
  .content-box {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    flex-wrap: nowrap;
    justify-content: flex-start;
    cursor: pointer;
  }

  .content-box figure {
    flex: 0 0 30%;
    max-width: 30%;
    margin: 0;
  }

  .content-box article {
    flex: 1 1 70%;
    min-width: 0;
    text-align: left;
  }

  .content-box.flex-reverse {
    flex-direction: row-reverse;
  }
}

/* Mobile spacing tweak */
@media (max-width: 799px) {
  .content-box {
    padding: 1.5rem;
    align-items: center;
    justify-content: center;
  }
}

/* Mobile: equal card + image scaling without cropping */
@media (max-width: 799px) {
  .container {
    align-items: center;
  }

  .content-box {
    width: 80%;
    max-width: 1000px;
    padding: 1.5rem;
    align-items: center;
    justify-content: flex-start;

    /* equal-height cards without forcing image cropping */
    min-height: 420px; 
    box-sizing: border-box;
  }

  /* Image wrapper */
  .content-box .box-image {
    width: 100%;
    max-width: 300px;     /* consistent width */
    margin: 0 auto 1.5rem;
    display: flex;
    justify-content: center;
  }

  /* Image itself: scale to fit, keep aspect ratio, NO cropping */
  .content-box .box-image img {
    width: 100%;
    height: auto;         /* keeps entire image visible */
    max-height: 220px;    /* keeps them visually similar in size */
    object-fit: contain;  /* ensures no cropping */
  }

  /* Text block */
  .content-box .box-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
  }

  .content-box .box-text h2 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    text-align: center;
  }



   
}

  #section-2 p {
    text-align: left;
  }

/* =============== */
/* BYLINES PAGE    */
/* =============== */

#section-bylines {
  overflow: visible;
  padding-bottom: 40px;
}

#byline-row {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 3rem;
  padding: 0 12px;
  box-sizing: border-box;
}

#byline-row > a {
  display: flex;
  flex: 1 1 auto;
  text-decoration: none;
  color: inherit;
}

.byline-card {
  background-color: #fff;
  border-radius: 16px;
  border: 1px solid rgb(95, 143, 114);
  box-shadow: 18px 18px rgb(95, 143, 114);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  overflow: hidden;
  padding-bottom: 2rem;
  width: 100%;
}

.byline-card:hover {
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
  transform: translateY(-4px);
}

.byline-card figure {
  width: 100%;
  height: 240px;
  margin: 0;
  overflow: hidden;
}

.byline-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.byline-card .byline-source,
.byline-card .byline-title,
.byline-card .byline-desc {
  padding: 0 1.25rem;
  color: black;
}

.byline-card .byline-source {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.byline-card .byline-title {
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.1;
}

.byline-card .byline-desc {
  margin-bottom: 0;
  font-size: 0.95rem;
  font-weight: 300;
}

/* Bylines layout on desktop */
@media screen and (min-width: 800px) {
  #byline-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
  }

  #byline-row > a {
    flex: 0 1 33.3333%;
    max-width: 33.3333%;
  }

  .byline-card figure {
    height: 260px;
  }
}

/* Bylines section extras */

#section-bylines h3 {
  color: black;
  margin-bottom: 2rem;
}

#section-bylines .primary-btn {
  margin-top: 5rem;
  margin-bottom: 5rem;
}

#magazine-embeds iframe {
  margin-bottom: 3rem;
}

.contact-section  {
  background-color: #edfaf3;
}

/* FOOTER */


#site-footer {
  margin-top: 0;
  padding: 0.9rem 1.5rem;
  background-color: #000;
  color: #fff;

  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;   /* LEFT + RIGHT layout */

  text-align: left;
  position: relative;
  z-index: 1;
}

#site-footer .linkedin-btn {
  width: 32px;
  height: 32px;
  display: block;
  background: url("../img/ico-linkedin-light.svg") no-repeat center center;
  background-size: contain;
}

/* copyright text to the far right */
#copyright {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.85;
}


