body {
  margin: 0;
  background-color: #dbd8ce;
  font-family: "IBM Plex Serif", serif;
  font-weight: 400;
  color: #56301d;
}

.container {
  width: 80%;
  margin: 0 auto;
}

header {
  background: #faf7ed;
}

header::after {
  content: "";
  display: table;
  clear: both;
}

nav ul {
  margin: 0;
  padding: 0;
  list-style: none;

  display: flex;
  justify-content: center;
  gap: 100px;
}

nav li {
  display: inline-block;
  padding-top: 25px;
  padding-bottom: 25px;
  position: relative;
}

nav a {
  color: #56301d;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 14px;
}

nav a:hover {
  color: #9c6b3f;
}

nav a::before {
  content: "";
  display: block;
  height: 5px;
  width: 100%;
  background-color: #9c6b3f;

  position: absolute;
  top: 0;
  width: 0%;

  transition: all ease-in-out 250ms;
}

nav a:hover::before {
  width: 100%;
}
.hero {
  display: grid;
  grid-template-columns: 2fr 1fr;
  min-height: calc(100vh - 74px);
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.hero-text > div {
  width: 100%;
  max-width: 45ch;
}

.hero-text .role {
  color: #56301d;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-text h1 {
  color: black;
  font-size: 3.5rem;
  line-height: 1.1;
  font-weight: 400;
  margin: 0 0 2rem 0;
}

.hero-text .description {
  color: #56301d;

  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
  text-align: center;
}

.hero-image {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #faf7ed;
  min-width: 200px;
  box-shadow: 0px 8px 16px 0px rgba(86, 48, 29, 0.2);
  z-index: 1;
  padding: 10px 0;
  margin-top: 0;
}

.dropdown-content a {
  color: #56301d;
  padding: 12px 20px;
  text-decoration: none;
  display: block;
  text-transform: none;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
  background-color: #dbd8ce;
}

.dropdown-content a::before {
  display: none;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* About Page Styles */
.about-hero {
  padding: 5rem 0;
}

.about-intro {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 4rem;
  align-items: start;
}

.headshot {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  overflow: hidden;
}

.headshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-text h1 {
  font-size: 3.5rem;
  margin: 0 0 0.5rem 0;
  color: #56301d;
  font-weight: 400;
}

.about-text .subtitle {
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #56301d;
  margin: 0 0 2rem 0;
}

.about-text .bio {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #56301d;
  max-width: 600px;
}

.about-details {
  padding: 3rem 30px 5rem 30px;
  border-top: 3px solid #9c6b3f;
  margin-top: 3rem;
}

.detail-section {
  margin-bottom: 3rem;
}

.detail-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #56301d;
  font-weight: 500;
}

.detail-section p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #56301d;
  margin: 0.5rem 0;
}

.detail-section.links {
  display: flex;
  gap: 2rem;
}

.detail-section.links a {
  color: #faf7ed;
  background-color: #56301d;
  text-decoration: none;
  font-size: 1.1rem;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  display: inline-block;
}

.detail-section.links a:hover {
  background-color: #9c6b3f;
}

/* Writing Page Styles */
/* Writing Page Styles - for both list and individual essays */
.writing-section {
  padding: 4rem 0;
}

.writing-section .container {
  padding-left: 60px;
  padding-right: 60px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Styles for the writing list page */
.writing-section h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #56301d;
  font-weight: 400;
}

.writing-section > .container > p {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #56301d;
  margin-bottom: 3rem;
}

.writing-item {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid #9c6b3f;
}

.writing-item:last-child {
  border-bottom: none;
}

.writing-item h1,
.writing-item h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #56301d;
  line-height: 1.3;
  font-weight: 500;
}

.writing-item .date {
  font-size: 0.9rem;
  color: #9c6b3f;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.writing-item .preview {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: #56301d;
}

.read-essay,
.read-more {
  color: #56301d;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  border-bottom: 2px solid #9c6b3f;
  padding-bottom: 2px;
  transition: color 0.3s ease, border-color 0.3s ease;
  display: inline-block;
}

.read-essay:hover,
.read-more:hover {
  color: #9c6b3f;
  border-color: #56301d;
}

/* Styles for individual essay pages */
.essay-content {
  padding: 4rem 0;
}

.essay-content .container {
  padding-left: 60px;
  padding-right: 60px;
  max-width: 900px;
  margin: 0 auto;
}

.essay-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #56301d;
  font-weight: 500;
  line-height: 1.2;
}

.essay-content h2 {
  font-size: 1.8rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: #56301d;
  font-weight: 500;
}

.essay-content h3 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  color: #56301d;
  font-weight: 500;
}

.essay-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: #56301d;
}

.essay-content ul,
.essay-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.essay-content li {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 0.5rem;
  color: #56301d;
}

.essay-content blockquote {
  border-left: 4px solid #9c6b3f;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #56301d;
}

.essay-content img {
  max-width: 100%;
  height: auto;
  margin: 2rem 0;
}

.essay-content .date {
  font-size: 0.9rem;
  color: #9c6b3f;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Back link for essay pages */
.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  color: #56301d;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.back-link:hover {
  color: #9c6b3f;
}
