:root {
  --primary: #6db99f;
  --secondary: #f2f7f5;
  --text: #333;
  --accent: #a3d2ca;
}

body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  background: var(--secondary);
  color: var(--text);
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 200px;
  height: 100%;
  background: white;
  color: black;
  padding-top: 2rem;
  box-shadow: 2px 0 6px rgba(0, 0, 0, 0.1);
  z-index: 999;
  display: flex;           /* NEW */
  flex-direction: column;  /* NEW */
  justify-content: space-between; /* NEW */
  align-items: center;     /* NEW */
}
#hamburger {
  display: none; /* default hide */
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: black;
  margin-top: 0.5rem;
}
/* Default hamburger icon */
#hamburger::before {
  content: "\2630"; /* Unicode for ☰ */
}

/* When active (menu open), change to X */
#hamburger.active::before {
  content: "\2715"; /* Unicode for ✕ */
}


#sidebar-menu.open {
  display: block;
}


/* Show hamburger on mobile */
@media (max-width: 768px) {
  #hamburger {
    display: inline-block;
  }

  /* Initially hide the nav */
  .sidebar ul {
    display: none;
    width: 100%;
    padding-left: 0;
    margin: 0;
    list-style: none;
    text-align: left;
  }

  /* Show nav when active */
  .sidebar ul.active {
    display: block;
    margin-top: 1rem;
  }

  /* Nav link styles on mobile */
  .sidebar ul li {
    margin: 1rem 0;
    text-align: left; /* better for nav links on mobile */
  }

  .sidebar ul li a {
    font-size: 1.2rem;
    font-weight: 600;
    padding-left: 1rem;
    display: block;
  }
  .sidebar-header-top {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between; /* pushes hamburger to the right */
    padding: 0 1rem;
  }
  .sidebar-header {
    position: relative; /* enables absolute positioning for hamburger */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1rem;
  }
  
  .sidebar-header h1 {
    font-size: 1.5rem;
    margin: 0.5rem 0;
    text-align: center;
  }

  .sidebar-header {
    position: relative; /* enables absolute positioning for hamburger */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1rem;
  }
  #hamburger {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: black;
    z-index: 2;
  }

  #sidebar-menu {
    display: block; /* keep it block for animation */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    background: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding-left: 0;
    margin: 0;
    z-index: 9999;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
  }
  
  #sidebar-menu li {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  
  /* When open, animate the max-height to a big number to reveal */
  #sidebar-menu.open {
    max-height: 500px; /* big enough to show all items */
  }
  
  /* Animate each item with delay when menu is open */
  #sidebar-menu.open li {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Stagger delays for each li */
  #sidebar-menu.open li:nth-child(1) {
    transition-delay: 0.05s;
  }
  #sidebar-menu.open li:nth-child(2) {
    transition-delay: 0.15s;
  }
  #sidebar-menu.open li:nth-child(3) {
    transition-delay: 0.25s;
  }
  #sidebar-menu.open li:nth-child(4) {
    transition-delay: 0.35s;
  }
  /* Add more if needed */
  
}

.divider-wave {
  width: 100%;
  height: 10px;
  display: block;
  margin: 1.5rem 0; /* vertical spacing around the line */
}

.sidebar ul li {
  text-transform: uppercase;
  font-weight: 300;           /* thinner font weight */
  letter-spacing: 0.05em;     /* optional: slight spacing for readability */
  font-family: 'Roboto', sans-serif;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.sidebar li {
  margin: 1.5rem 0;
  text-align: center;
}

.sidebar a {
  color: black;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
}

.sidebar a:hover {
  text-decoration: underline;
}

.sidebar-header {
  text-align: center;
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}
.sidebar-header h1 {
  margin: 0;
  font-size: 1.8rem;
  font-family: 'Original Surfer', cursive;
  display: inline-block;
}

.sidebar-header p {
  margin-top: 2rem;
  font-size: 0.9rem;
  font-style: normal;
  color: #444;
  letter-spacing: 0.05em;
}


.sidebar-headshot {
  width: 85%;
  height: auto;
  margin: 1.5rem auto 2.75rem; /* More bottom margin to lift it off the bottom */
  border: 2px solid white;
  object-fit: contain;
  display: block;
}
header {
  background: white;
  padding: 2rem 1rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  margin-left: 220px; /* Match sidebar space */
}

header h1 {
  font-family: 'Playfair Display', serif;
  margin: 0;
  font-size: 2.5rem;
  color: var(--primary);
}

header p {
  margin-top: 0.5rem;
  font-style: italic;
  color: black;
}
section {
  max-width: 960px;
  margin: 2rem auto;
  padding: 0 1rem;
  margin-left: 220px; /* Add space for sidebar */
}
.about {
  max-width: 700px;
  margin: 4rem auto;
  padding: 0 1.5rem;
  text-align: center;
  color: #1a1a1a;
  margin-left: 220px; /* Add space for sidebar */

}
@media (max-width: 768px) {
  .about {
    margin-left: 0;
  }
}

.about-name {
  font-family: 'Original Surfer', sans-serif;
  font-weight: 700;
  font-size: 3.5rem;
  margin-bottom: 0;
  letter-spacing: 0.04em;
}

.about-title {
  font-family: 'Original Surfer', sans-serif;
  font-weight: 1;
  font-size: 1.75rem;
  color: #555;
  margin: 1rem;
}

.about p {
  font-family: 'Merriweather', serif;
  font-weight: 300;
  font-size: 1.125rem;
  line-height: 1.8;
  color: #333;
}

.about p.signature {
  font-family: 'Mrs Saint Delafield', cursive;
  font-size: 3rem;
  margin-top: 1rem;
  display: inline-block;
  transform: rotate(-5deg);
  color: #333;
}


/* --- Card Caption Container --- */
.card-caption {
padding-top: 0.5rem;
  font-family: 'Merriweather', serif;
  color: #333;
  flex-shrink: 0;
  background: transparent; /* make sure no background */
  min-height: 100px; /* optional for consistent height */
}


/* --- Meta Line: Outlet + Category --- */
.card-caption .meta-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #777;
  font-family: 'Merriweather', serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Divider Style */
.meta-line .divider {
  color: #ccc;
  font-weight: normal;
}

/* Outlet: slightly bolder and darker */
.card-caption .outlet-text {
  color: #444;
  font-weight: 700;
}

/* Category: lighter visual weight */
.card-caption .category-text {
  color: #888;
  font-weight: 600;
}


/* --- Title (h3) --- */
.card-caption h3 {
  font-family: 'Merriweather', serif;
  font-size: 1rem;
  font-weight: 700;
  color: #222;
  margin: 0.25rem 0;
  line-height: 1.4;
  text-transform: capitalize;
}

/* --- Summary / Subtitle --- */
.card-caption .subtitle-text {
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 0.85rem;
  color: #555;
  line-height: 1.5;
  margin-top: 0.25rem;
}

/* --- Responsive & Clean Look --- */
.article-card {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  border-radius: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  overflow: hidden;
}

.article-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.article-content {
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer; /* shows clickable */
  border-radius: 0; /* no rounding as you want */
}

/* Hover effect on entire card */
.article-content:hover {
  transform: translateY(-4px);
}

/* Optional grid container if needed */
.articles {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}


.caption-text {
  font-size: 0.85rem;
  font-weight: 400;
  color: #333;
}

.card-content {
  background: rgba(0, 0, 0, 0.5); /* translucent black */
  color: white;
  padding: 1rem;
  width: 100%;
}

.card-content h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.card-content p {
  font-size: 0.9rem;
  margin: 0;
}

.article-card h3 {
  margin-top: 0;
  color: var(--primary);
}

.see-more-button {
  display: inline-block;
  padding: 10px 26px;
  background-color: transparent;
  color: #111;            /* almost black text */
  border: 2px solid #111; /* black border */
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;  /* removes underline */
}

.see-more-button:hover,
.see-more-button:focus {
  background-color: #111; /* black fill on hover */
  color: #f2f7f5;          /* light background text */
  outline: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.filter-search {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

#filter,
#search {
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background-color: #fff;
  color: #333;
}

#filter {
  min-width: 160px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath fill='%23666' d='M0 0l5 6 5-6H0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 10px 6px;
  cursor: pointer;
}

#search {
  flex: 1;
  min-width: 200px;
  max-width: 400px;
}

#filter:hover,
#filter:focus,
#search:hover,
#search:focus {
  border-color: #999;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
  outline: none;
  background-color: #f9f9f9;
}


.contact {
  margin: 0 auto;
  text-align: center;
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  color: #222;
}

.contact h2 {
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-left: 220px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 1.1rem;
  color: #222; /* monochrome black */
  text-decoration: none;
  background-color: transparent;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.social-link:hover {
  color: white;;
}

.social-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: fill 0.3s ease;
}

.social-link:hover .social-icon {
  fill: white;
}

.headshot-mobile {
  display: none;
}

footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  color: #666;
  margin-left: 220px; /* Align with main content */
}

@media (max-width: 768px) {
  .articles {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  main, footer, section, .social-links{
    margin-left: 0;
  }
}

.responsive-break::after {
  content: "\A";            /* Line break */
  white-space: pre;
}

@media (max-width: 768px) {
  .responsive-break::after {
    content: "  ";           /* Just a space */
  }
}


/* Responsive: Sidebar becomes top nav on small screens */
@media (max-width: 768px) {

  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  }

  .sidebar-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: none;
    padding: 0;
  }

  .sidebar-header h1 {
    font-size: 1.5rem;
    margin: 0.5rem 0;
  }

  .sidebar-headshot {
    display: none;
  }

  .headshot-mobile{
    display: inline-block;
    width: 40px;
    height: auto;
    margin-right: 0.5rem;
    vertical-align: middle;
  }

  /* Hide other sidebar elements */
  .sidebar-header p,
  .sidebar ul,
  .sidebar svg,
  .sidebar .wave-divider {
    display: none;
  }

  main {
    margin-left: 0;
    margin-top: 4.5rem; /* height of top nav */
    padding: 1rem;
  }

  .articles {
    grid-template-columns: repeat(1, 1fr); /* stack cards */
  }
}

/* Responsive typography for small devices */
@media (max-width: 480px) {
  .sidebar-header h1 {
    font-size: 1.25rem;
  }
  .sidebar-header p {
    font-size: 0.8rem;
  }
  .article-card {
    min-height: 160px;
  }
  .social-link {
    font-size: 1rem;
    gap: 0.3rem;
  }
  .social-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
}