/* Import clean serif font */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&display=swap');

body {
  margin: 0;
  padding: 0;
  font-family: 'Playfair Display', serif;
  background-color: #c86b4a; /* terracotta */
  color: #2b1b14;
  line-height: 1.6;
}

/* Header base */
header {
  background: #9b3d2d;
  border-bottom: 1px solid #852f20;
}

.header-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  height: 40px;        /* reduced from ~80 */
  padding: 5px 30px;  /* less vertical padding */
}

header h1 {
  margin: 0;
  font-size: 2em;
  color: #FFE8D6;
  line-height: 1;
}


/* Desktop nav links */
.nav-links {
  display: flex;
  gap: 40px;       /* more breathing room */
}

.nav-links a {
  color: #FFE8D6;
  font-weight: bold;
  text-decoration: none;
  font-size: 1em;
  line-height: 1.2;
  transition: opacity 0.2s ease;
}

.nav-links a:hover {
  opacity: 0.7;
}


/* Hamburger button for mobile */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2em;
  color: #FFE8D6;
  cursor: pointer;
}

/* Mobile responsive */
@media (max-width: 700px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: 10px 20px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
  }

  .nav-links a {
    margin: 10px 0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: block;
    margin-top: 5px;
  }
}




main {
  margin-top: 80px;    /* pushes content down from header */
  margin-bottom: 160px; /* BIG space before email/footer */
}


section {
  margin-bottom: 40px;
}

/* Center About Me section and narrow text width */
section h2 {
  text-align: center;
}
.about {
  text-align: center;
  max-width: 600px;   /* narrower than main for elegance */
  margin: 0 auto;
}


section p {
  max-width: 600px; /* narrower text line */
  margin: 10px auto; /* centers text block */
  text-align: center;
}

footer {
  text-align: center;
  font-size: 0.9em;
  color: #2b1b14;
  padding: 20px 0;
  border-top: 1px solid #852f20;
}
.contact-email {
  margin-top: 340px;          /* space from main content */
  padding-top: 30px;
  text-align: center;
  font-size: 0.95em;
  color: #6e3b2f;             /* muted terracotta */
}

.contact-email a {
  color: #6e3b2f;
  text-decoration: none;
  letter-spacing: 0.03em;
}

.contact-email a:hover {
  color: #9b3d2d;             /* header terracotta */
}
.about {
  max-width: 550px;          /* ideal reading width */
  margin: 120px auto 80px;   /* space above & below */
  text-align: center;
}

.about h2 {
  margin-bottom: 30px;
  font-size: 1.6em;
}

.about p {
  font-size: 1.05em;
  line-height: 1.6;
}
.about p {
  opacity: 0.9;
}
.nav-links a.active {
  opacity: 0.6;
}
.site-title {
  color: #FFE8D6;
  text-decoration: none;
}

.site-title:hover {
  opacity: 0.85;
}
.about p + p {
  margin-top: 1.2em;
}
/* Writing page formatting */
.writing {
  max-width: 700px;
  margin: 100px auto 120px;  /* generous spacing top/bottom */
  padding: 0 20px;
}

.writing h1 {
  margin: 0 0 30px;
  font-size: 1.8em;
  text-align: left; /* ensures heading is flush left */
  color: #2b1b14;
}

.writing-entry {
  margin-bottom: 50px; /* space between each entry */
}

.writing-entry h2 {
  margin: 0 0 8px;
  font-size: 1.3em;
}

.writing-entry h2 a {
  text-decoration: none;
  color: #3b1f18; /* dark, legible */
  font-weight: bold;
  transition: opacity 0.2s ease;
}

.writing-entry h2 a:hover {
  opacity: 0.7;
  text-decoration: underline;
}

.pub {
  font-size: 0.95em;
  color: #6e3b2f;
  margin: 0;
  text-align: left;
}

.more-link {
  margin-top: 12px;
  text-align: center;
}

.more-link a {
  font-size: 1.3em;
  font-weight: 600;
  font-style: italic;
  color: #3b1f18;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(59, 31, 24, 0.4);
  letter-spacing: 0.02em;
  transition: text-decoration-color 0.2s ease;
}

.more-link a:hover {
  text-decoration-color: rgba(59, 31, 24, 0.8);
}


