/* =====================================
   Color Variables
   ===================================== */
:root {
  --bg-color: #F0EBCE;
  --text-color: #3B3B3B;
  --heading-color: #5E6C76;
  --accent-color: #C4A1A8;
  --highlight-color: #8CA9C4;
  --white: #ffffff;
}

html {
  overflow-y: scroll;
}

/* =====================================
   Base Styles
   ===================================== */
body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'Segoe UI', 'Montserrat', sans-serif;
  line-height: 1.5;
  margin: 0;
  padding: 0;
  font-size: 18px;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.75em 2em;
}

/* =====================================
   Headings
   ===================================== */
h1, h2 {
  font-family: 'Playfair Display', serif;
  color: var(--heading-color);
  margin-top: 0;
  margin-bottom: 0.3em;
}

h1 {
  font-size: 2.5em;
  line-height: 1.2;
}

h2 {
  font-size: 1.75em;
  line-height: 1.25;
}

/* =====================================
   Logo
   ===================================== */
.logo {
  width: 160px;
  max-width: 35vw;
  height: auto;
  margin-right: 0.75em;
}

/* =====================================
   Navigation Layout
   ===================================== */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4em 2em;
  max-width: 960px;
  margin: 0 auto;
}

.main-nav a {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-color);
  text-decoration: none;
  margin-left: 1.25em;
  font-weight: 600;
  font-size: 1.1em;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: var(--accent-color);
}

/* =====================================
   Paragraphs & Lists
   ===================================== */
p {
  margin-top: 0.8em;
  margin-bottom: 1.2em;
}

ul {
  margin: 0.4em 0 0.4em 1.25em;
  padding: 0;
  list-style-type: disc;
  list-style-position: outside;
}

/* =====================================
   Footer
   ===================================== */
footer p {
  font-size: 0.85em;
  color: #555;
  text-align: center;
  margin-top: 1em;
}

/* =====================================
   Skip Link
   ===================================== */
.skip-link {
  position: absolute;
  top: -50px;
  left: 0;
  background-color: #3B3B3B;
  color: #ffffff;
  padding: 0.5em 1em;
  z-index: 100;
  text-decoration: none;
  border-radius: 0 0 4px 0;
  transition: top 0.3s ease;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
}

/* =====================================
   Blog Listings
   ===================================== */
.blog-listing {
  margin-bottom: 1.5em;
  border-bottom: 1px solid #ccc;
  padding-bottom: 1em;
}

.blog-listing h3 {
  font-size: 1.3em;
  margin-bottom: 0.2em;
  font-family: 'Playfair Display', serif;
  color: var(--heading-color);
}

.blog-listing a {
  text-decoration: none;
  color: var(--heading-color);
}

.blog-listing a:hover {
  color: var(--accent-color);
}

.blog-date {
  font-size: 0.9em;
  color: #666;
  margin-top: 0;
  margin-bottom: 0.5em;
}

.blog-listing:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* =====================================
   Contact Form
   ===================================== */
form#contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 600px;
  margin: 0.75rem 0;
  align-items: flex-start;
}

form#contact-form label {
  font-weight: 600;
  margin-bottom: 0.1rem;
}

form#contact-form input,
form#contact-form textarea {
  width: 100%;
  padding: 0.55rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  background-color: #fff;
  color: #333;
}

form#contact-form input:focus,
form#contact-form textarea:focus {
  outline: none;
  border-color: #666;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.15);
}

form#contact-form button {
  background-color: #333;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  align-self: flex-start;
  margin-top: 0.2rem;
}

form#contact-form button:hover {
  background-color: #555;
}

.form-status {
  margin-top: 0.4rem;
  font-weight: 600;
  color: #333;
}


.video-container video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1280 / 1656; /* EXACT ratio */
  object-fit: contain;
}
.video-container {
  max-width: 650px;
  margin: 2rem auto;
}



/* =====================================
   Responsive Adjustments
   ===================================== */
@media (max-width: 600px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75em 1.5em;
  }

  .main-nav {
    margin-top: 0.4em;
  }

  .main-nav a {
    display: block;
    margin: 0.3em 0;
  }

  .logo {
    width: 120px;
    margin-bottom: 0.4em;
  }

  .headshot,
  .name-caption {
    float: none;
    display: block;
    margin: 0 auto 1em auto;
    width: 80%;
    text-align: center;
  }
}

/* =====================================
   About Page – Float-Based Layout
   ===================================== */
.bio-wrap {
  overflow: hidden;
}

.headshot {
  float: left;
  width: 200px;
  border-radius: 4px;
  margin: 0 1.5em 0.5em 0;
}

.name-caption {
  float: left;
  width: 200px;
  text-align: center;
  font-weight: 600;
  font-size: 1.1em;
  color: var(--heading-color);
  margin: 0 1.5em 1.5em 0;
}

/* Removed ul from overflow:hidden group */
.bio-wrap h1,
.bio-wrap h2,
.bio-wrap p {
  overflow: hidden;
}
.container a,
.bio-wrap a {
  text-decoration: none;
  color: var(--heading-color);
  border-bottom: 1px solid var(--heading-color);
  padding-bottom: 2px; /* prevents descenders like g, y, p from touching the line */
}

.container a:hover,
.bio-wrap a:hover {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
}

/* =====================================
   List Restoration Fix
   ===================================== */
.bio-wrap ul {
  list-style-type: disc;
  list-style-position: outside;
  overflow: visible;
  margin-left: 1.5em;
}
.nobr {
  white-space: nowrap;
}
.clarity-list {
  padding-left: 1.5rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.clarity-list li {
  margin-bottom: 1rem;
  line-height: 1.4;
}

.clarity-list li strong {
  display: inline-block;
  font-weight: 600;
}
.last-paragraph {
  position: relative;
  margin-bottom: 2.5rem;
}

.last-paragraph::after {
  content: "";
  display: block;
  width: 640px;
  max-width: 90%;
  height: 1px;
  margin: 1.75rem auto 0;
  background-color: #999;
  opacity: 0.5;
  border-radius: 1px;
}

/* Base nav styles */
#main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.5rem;
}

#main-nav a {
  text-decoration: none;
  color: inherit;
}

/* Toggle button (hidden on desktop) */
#nav-toggle {
  display: none;
  font-size: 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* Mobile styles */
@media (max-width: 768px) {
  #nav-toggle {
    display: block;
    margin-bottom: 1rem;
  }

  #nav-menu {
    display: none;
  }

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

  #main-nav ul {
    flex-direction: column;
    gap: 1rem;
  }

}


