/* ============================
   loganeastman.com — main.css
   noir without the cynicism
   ============================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Lora', Georgia, serif;
  background: #f7f6f0;
  color: #111111;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- Layout --- */
.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

main {
  flex: 1;
  padding: 3rem 0;
}

/* --- Typography --- */
h1, h2, h3 {
  font-family: 'Cutive', 'Courier New', monospace;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

h1 { font-size: 2rem; margin-bottom: 1.5rem; }
h2 { font-size: 1.4rem; margin-bottom: 1rem; margin-top: 2rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.75rem; margin-top: 1.5rem; }

p {
  margin-bottom: 1.2rem;
}

blockquote {
  border-left: 2px solid #111;
  padding-left: 1.2rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #333;
}

hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 2.5rem 0;
}

/* --- Links --- */
a {
  color: #111;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: text-decoration-thickness 0.15s ease;
}

a:hover {
  text-decoration-thickness: 2.5px;
}

/* --- Images --- */
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem 0;
}

img.bw {
  filter: grayscale(100%);
}

.img-small {
  max-width: 45%;
  margin: 0.5rem auto;
}

.img-row {
  display: flex !important;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.img-row img {
  flex: 1 1 0;
  min-width: 0;
  max-width: 33%;
  margin: 0;
  height: auto;
}

.img-full {
  width: 100vw;
  max-width: none;
  margin-left: calc(-50vw + 50%);
}

figure {
  margin: 2rem 0;
}

figure img {
  margin-bottom: 0.5rem;
}

figcaption {
  font-family: 'Courier Prime', 'Courier New', monospace;
  font-size: 0.8rem;
  color: #666;
  text-align: center;
}

/* --- Navigation --- */
.site-nav {
  padding: 2rem 0 1rem;
  text-align: center;
  border-bottom: 1px solid #333;
}

.site-nav .site-name {
  font-family: 'Cutive', 'Courier New', monospace;
  font-size: 1.3rem;
  text-decoration: none;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.6rem;
}

.site-nav .site-name:hover {
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.8rem;
}

.nav-links a {
  font-family: 'Courier Prime', 'Courier New', monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: #555;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: #111;
}

/* --- Footer --- */
.site-footer {
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid #333;
}

.footer-name {
  font-family: 'Courier Prime', 'Courier New', monospace;
  font-size: 0.75rem;
  color: #111;
  margin-bottom: 0.8rem;
  white-space: nowrap;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
}

.footer-links a {
  color: #111;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.footer-links a:hover {
  opacity: 0.5;
}

/* --- Home Page --- */
.chapter-heading {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.3rem;
  color: #333;
  margin-bottom: 1.5rem;
  text-align: center;
}

.home {
  text-align: center;
  padding-top: 0.5rem;
}

.home .hero-photo {
  max-width: 480px;
  margin: 0 auto 2.5rem;
}

.home .hero-photo img {
  width: 100%;
  margin: 0;
}

.intro {
  font-style: italic;
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto 2.5rem;
  color: #333;
  text-align: center;
}

/* --- About Page --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 1rem;
}

.about-bio p {
  margin-bottom: 0.4rem;
}

.about-photo img {
  width: 100%;
}

/* --- Writing List --- */
.writing-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.writing-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0;
  margin: 0;
  line-height: 1.3;
}

.writing-list .post-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 1rem;
}

.writing-list .post-meta {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  flex-shrink: 0;
  margin-left: 1rem;
}

.post-type-tag {
  font-family: 'Courier Prime', 'Courier New', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #333;
  background: #edece6;
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
}

.post-date {
  font-family: 'Courier Prime', 'Courier New', monospace;
  font-size: 0.75rem;
  color: #333;
  white-space: nowrap;
}

/* --- Back Link --- */
.back-link {
  font-family: 'Courier Prime', 'Courier New', monospace;
  font-size: 0.8rem;
  color: #333;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.back-link:hover {
  color: #111;
}

/* --- Single Post --- */
.post-header {
  margin-bottom: 2rem;
}

.post-header h1 {
  margin-bottom: 0.5rem;
}

.post-header .post-meta {
  display: flex;
  gap: 1rem;
  align-items: baseline;
}

.post-content p {
  margin-bottom: 1.2rem;
}

/* --- Poem Layout --- */
.poem .post-content {
  max-width: 420px;
  line-height: 1.5;
}

/* --- Newsletter --- */
.newsletter-signup {
  background: #edece6;
  padding: 2rem;
  margin-bottom: 3rem;
  text-align: center;
}

.newsletter-signup h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.newsletter-signup p {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 1.2rem;
}

.newsletter-signup form {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  max-width: 400px;
  margin: 0 auto;
}

.newsletter-signup input[type="email"] {
  font-family: 'Lora', Georgia, serif;
  font-size: 0.9rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid #ccc;
  background: #fff;
  flex: 1;
}

.newsletter-signup button {
  font-family: 'Courier Prime', 'Courier New', monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 1.2rem;
  border: 1px solid #111;
  background: #111;
  color: #f7f6f0;
  cursor: pointer;
  transition: background 0.15s ease;
}

.newsletter-signup button:hover {
  background: #333;
}

/* --- Work Page --- */
article ul {
  list-style-position: outside;
  padding-left: 1.2rem;
}

.work-cta {
  font-family: 'Courier Prime', 'Courier New', monospace;
  font-size: 0.9rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #ddd;
}

/* --- Responsive --- */
@media (max-width: 600px) {
  html { font-size: 16px; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-photo {
    order: -1;
  }

  .writing-list li {
    flex-direction: column;
    gap: 0.3rem;
  }

  .writing-list .post-meta {
    margin-left: 0;
  }

  .home .hero-photo {
    max-width: 100%;
  }

  .newsletter-signup form {
    flex-direction: column;
  }

  .nav-links {
    gap: 1rem;
  }
}
