/* zonei.org — style.css
 * Fonts: Newsreader (body), DM Sans (nav/headings/meta)
 * Palette: clean white background, deep slate text, blue-grey accents, branded teal "i"
 */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Newsreader', Georgia, 'Times New Roman', serif;
  line-height: 1.75;
  color: #1e2328;
  background: #ffffff;
  max-width: 740px;
  margin: 0 auto;
  padding: 0 1.5rem;
  -webkit-font-smoothing: antialiased;
}

/* ── Navigation ── */

nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid #e4e7ea;
  margin-bottom: 0;
}

.nav-home {
  font-family: 'DM Sans', 'Helvetica Neue', Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1.1rem;
  color: #1e2328;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.nav-home:hover {
  color: #3b6d8f;
}

.brand-i {
  color: #2a8a7a;
  font-weight: 500;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: baseline;
}

.nav-links a {
  font-family: 'DM Sans', 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: #5e6a74;
  text-decoration: none;
  letter-spacing: 0.02em;
}

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

.nav-links .rss-nav {
  font-size: 0.75rem;
  color: #a0a8b0;
}

.nav-links .rss-nav:hover {
  color: #3b6d8f;
}

/* ── Hero ── */

.hero {
  padding: 4rem 0 3rem;
  text-align: left;
}

.hero-inner {
  max-width: 100%;
}

.hero h1 {
  font-family: 'DM Sans', 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 2rem;
  font-weight: 500;
  color: #1e2328;
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}

.hero-subtitle {
  font-family: 'DM Sans', 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 1rem;
  color: #5e6a74;
  font-weight: 400;
}

/* ── Main / Sections ── */

main {
  padding-bottom: 2rem;
}

/* ── About Section ── */

.about {
  padding: 0 0 2.5rem;
  position: relative;
}

.about-line {
  width: 32px;
  height: 2px;
  background: #2a8a7a;
  margin-bottom: 1.5rem;
}

.about p {
  font-size: 1rem;
  color: #3a4148;
  line-height: 1.75;
  margin-bottom: 1rem;
}

/* ── Services Section ── */

.services {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid #e4e7ea;
}

.services h2 {
  font-family: 'DM Sans', 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #8a939c;
  margin-bottom: 2rem;
}

.service {
  margin-bottom: 2rem;
}

.service:last-child {
  margin-bottom: 0;
}

.service h3 {
  font-family: 'DM Sans', 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: #1e2328;
  margin-bottom: 0.6rem;
}

.service p {
  font-size: 0.95rem;
  color: #3a4148;
  line-height: 1.7;
}

/* ── Writing Section (Index) ── */

.writing {
  padding: 2rem 0;
  border-top: 1px solid #e4e7ea;
}

.writing h2 {
  font-family: 'DM Sans', 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #8a939c;
  margin-bottom: 2rem;
}

.post-preview {
  margin-bottom: 2.25rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid #eef0f2;
}

.post-preview:last-of-type {
  border-bottom: none;
}

.post-preview time {
  font-family: 'DM Sans', 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 0.78rem;
  color: #8a939c;
  letter-spacing: 0.01em;
  display: block;
  margin-bottom: 0.3rem;
}

.post-preview h3 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.post-preview h3 a {
  color: #1e2328;
  text-decoration: none;
}

.post-preview h3 a:hover {
  color: #3b6d8f;
}

.post-preview > p {
  font-size: 0.93rem;
  color: #5e6a74;
  line-height: 1.65;
  margin-bottom: 0.6rem;
}

.read-more {
  font-family: 'DM Sans', 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: #3b6d8f;
  text-decoration: none;
}

.read-more:hover {
  color: #1e2328;
  text-decoration: underline;
}

/* ── Single Post ── */

.post-header {
  padding: 3rem 0 2rem;
}

.post-header time {
  font-family: 'DM Sans', 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 0.82rem;
  color: #8a939c;
  display: block;
  margin-bottom: 0.6rem;
}

.post-header h1 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.3;
  color: #1e2328;
}

/* ── Post Content ── */

.post-content {
  padding-bottom: 2rem;
}

.post-content p {
  margin-bottom: 1.4rem;
  font-size: 1rem;
  line-height: 1.75;
  color: #2a2f34;
}

.post-content h2 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 500;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: #1e2328;
}

.post-content h3 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 500;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.post-content a {
  color: #3b6d8f;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.post-content a:hover {
  color: #1e2328;
}

.post-content blockquote {
  border-left: 3px solid #2a8a7a;
  margin: 1.5rem 0;
  padding: 0.25rem 0 0.25rem 1.5rem;
  color: #5e6a74;
  font-style: italic;
}

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

.post-content blockquote p:last-child {
  margin-bottom: 0;
}

.post-content ul, .post-content ol {
  margin: 1rem 0 1.4rem 1.5rem;
}

.post-content li {
  margin-bottom: 0.4rem;
}

.post-content code {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.85em;
  background: #f3f5f7;
  padding: 0.15em 0.35em;
  border-radius: 3px;
}

.post-content pre {
  background: #1e2328;
  color: #e0e4e8;
  padding: 1.25rem 1.5rem;
  border-radius: 6px;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 0.85rem;
  line-height: 1.5;
}

.post-content pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  color: inherit;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 1.5rem 0;
}

.post-content hr {
  border: none;
  border-top: 1px solid #e4e7ea;
  margin: 2rem 0;
}

/* ── Post Back ── */

.post-back {
  padding-bottom: 2rem;
}

.post-back a {
  font-family: 'DM Sans', 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 0.85rem;
  color: #3b6d8f;
  text-decoration: none;
}

.post-back a:hover {
  color: #1e2328;
  text-decoration: underline;
}

/* ── Contact Section ── */

.contact {
  padding: 2rem 0;
  border-top: 1px solid #e4e7ea;
}

.contact h2 {
  font-family: 'DM Sans', 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #8a939c;
  margin-bottom: 1.25rem;
}

.contact p {
  font-size: 0.95rem;
  color: #3a4148;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.contact-email a {
  color: #3b6d8f;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  font-size: 1.05rem;
}

.contact-email a:hover {
  color: #1e2328;
}

.contact-location {
  font-family: 'DM Sans', 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 0.85rem;
  color: #8a939c;
}

/* ── Footer ── */

footer {
  padding: 2rem 0;
  border-top: 1px solid #e4e7ea;
  text-align: center;
}

footer p {
  font-family: 'DM Sans', 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 0.75rem;
  color: #a0a8b0;
  letter-spacing: 0.02em;
}

footer .brand-i {
  color: #2a8a7a;
}

/* ── Responsive ── */

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

  body {
    padding: 0 1rem;
  }

  nav {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 1.5rem 0 1rem;
  }

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

  .hero {
    padding: 2.5rem 0 2rem;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .post-header h1 {
    font-size: 1.4rem;
  }

  .post-preview h3 {
    font-size: 1.1rem;
  }
}
