/*
Theme Name: Meghan Writer
Theme URI: https://meghanshultz.com
Author: Meghan Shultz
Description: A minimalist literary theme built from scratch.
Version: 1.0
*/

body {
  font-family: 'Inter', sans-serif;
  background-color: #F5F3EE;
  color: #2b2b2b;
  max-width: 750px;
  margin: 0 auto;
  padding: 1.5rem 2rem 2rem 1rem;
  line-height: 1.8;
}

/* Headings */
h1, h2, .site-title {
  font-family: 'Lora', serif;
  font-weight: 400;
}

h1 {
  font-family: 'Lora', serif;
  font-size: clamp(2rem, 3vw, 2.4rem);
  font-weight: 400;
  margin-bottom: 2rem;
}

/* Paragraphs */
p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

/* Header Layout */
.site-header {
   padding-top: 2.25rem; 
   margin-bottom: 1.75rem;
}

.site-title {
  margin: 0;
  padding: 0;
  line-height: 0;
}

.signature-logo {
  width: clamp(320px, 40vw, 500px);
  height: auto;
  display: block;
  margin-left: -3.5rem;
  padding-top: 0rem;
  margin-bottom: -5rem;
}

/* Navigation */
.main-nav {
  margin-top: 0.75rem;
  display: flex;
  gap: 2rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-nav a {
  color: #2b2b2b;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 1px;
  background-color: #2b2b2b;
  transition: width 0.3s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.main-nav a {
  text-decoration: none;
  color: #2b2b2b;
}

.main-nav a {
  border: none;
  background: none;
}

.main-nav a:hover {
  opacity: 0.6;
}

/* Divider */
.divider {
  height: 1px;
  background-color: #d6d1c8;
  width: 100%;
  margin-top: 1.5rem;
}

/* Hero */
.hero {
  margin: 4rem 0 5rem 0;
}

.hero p {
  font-size: clamp(1.4rem, 2vw, 1.7rem);
  font-family: 'Lora', serif;
  line-height: 1.6;
}


/* Blog previews */
.post-preview {
  margin-bottom: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(214, 209, 200, 0.4);
}

.post-preview p {
  color: #5a554d;
  font-size: 1rem;
}

.post-meta {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9c9489;
  margin-bottom: 2rem;
}

/* Footer */
footer {
  margin-top: 5rem;
  font-size: 0.9rem;
  color: #777;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  body {
    padding: 1.5rem;
  }

  h1 {
    font-size: 2rem;
  }
}

.single .post-content p:first-of-type::first-letter {
  font-family: 'Lora', serif;
  font-size: 1.9rem;
  font-weight: 500;
  font-style: italic;
  margin-right: 4px;
  line-height: 0.9;
}

/* Blockquotes */
blockquote {
  margin: 3rem 0;
  padding-left: 1.75rem;
  border-left: 2px solid rgba(125, 143, 133, 0.45);
  font-family: 'Lora', serif;
  font-size: 1.22rem;
  line-height: 1.65;
  color: #4a463f;
}

blockquote p {
  margin-bottom: 0;
}

/* Essay Subheadings */
.single .post-content h2 {
  font-family: 'Lora', serif;
  font-size: 1.4rem;
  font-weight: 400;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.single .post-content h3 {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  color: #5a554d;
}
.post-ending {
  margin-top: 4rem;
}

.post-signoff {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 1rem;
  color: #5a554d;
}

.writing-intro {
  margin-bottom: 4rem;
}

.writing-intro p {
  font-family: 'Lora', serif;
  font-size: clamp(1.4rem, 2vw, 1.6rem);
  line-height: 1.55;
  color: #4a463f;
  max-width: 620px;
}

.post-preview h2 {
  font-family: 'Lora', serif;
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.post-preview {
  margin-bottom: 3.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(214, 209, 200, 0.35);
}


/* Remove all automatic spacing from header */
header,
.site-header {
  margin: 0 !important;
  padding: 0 !important;
}

.site-title {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0;
}

a {
  color: #7D8F85;
  text-decoration: none;
  background-image: linear-gradient(
    rgba(125, 143, 133, 0.15),
    rgba(125, 143, 133, 0.15)
  );
  background-size: 100% 0%;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.25s ease;
}

a:hover {
  background-size: 100% 32%;
}

a {
  transition: background-size 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* About Page Refinement */
.page-id-37 .post-content {
  max-width: 620px;
  margin-top: 2rem;
}

.page-id-37 .post-content p:first-of-type {
  font-family: 'Lora', serif;
  font-size: 1.3rem;
  line-height: 1.6;
}

/* About Photo */
.page-id-37 .about-photo {
  margin: 0 auto 2.5rem auto;
  text-align: center;
}

.page-id-37 .about-photo img {
  width: 100%;
  max-width: 320px;
  border-radius: 12px;
}

.post-share {
  margin-top: 3rem;
}

.share-label {
  font-family: 'Lora', serif;
  font-size: 1rem;
  color: #5a554d;
  margin-bottom: 0.75rem;
}

.share-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.share-links a {
  color: #7D8F85;
  text-decoration: none;
  border-bottom: 1px solid rgba(125, 143, 133, 0.3);
}

.share-links a:hover {
  border-bottom: 1px solid #7D8F85;
}


/* Make header a true layout container */
.site-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Remove text-style behavior from title container */
.site-title {
  display: inline-block;
  line-height: 0;
}