/* notebook.css — Warm Notebook theme for agrim123.github.io */

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

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

html {
  font-family: 'Inter', Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
}

body {
  background-color: #f5f3ef;
  color: #5a4a3a;
  -webkit-text-size-adjust: 100%;
}

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

/* Main content wrapper */
.wrap {
  background: #faf8f4;
  min-height: 100vh;
  padding-bottom: 4rem;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  color: #2c2416;
  line-height: 1.25;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

h1 { font-size: 2rem; font-weight: 700; }
h2 { font-size: 1.5rem; font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
h4, h5, h6 { font-size: 1rem; font-weight: 700; }

p {
  margin: 0 0 1rem;
}

a {
  color: #c0603a;
  text-decoration: none;
}
a:hover, a:focus {
  text-decoration: underline;
  text-underline-offset: 2px;
}

strong { color: #2c2416; }

code, pre {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85em;
}

/* Inline code */
code {
  background: #f0ebe3;
  border: 1px solid #e8e0d0;
  border-radius: 3px;
  padding: 0.1em 0.35em;
  color: #2c2416;
}

/* Code blocks */
pre {
  background: #f0ebe3;
  border: 1px solid #e8e0d0;
  border-radius: 4px;
  padding: 1rem 1.2rem;
  overflow-x: auto;
  line-height: 1.5;
  margin: 1.5rem 0;
}

pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.82rem;
}

/* Blockquotes */
blockquote {
  margin: 1.5rem 0;
  padding: 0.75rem 1.25rem;
  border-left: 4px solid #c0603a;
  background: #fdf5f0;
  color: #5a4a3a;
  font-style: italic;
}

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

blockquote span {
  display: block;
  font-style: normal;
  font-weight: 700;
  color: #2c2416;
  margin-top: 0.5rem;
}

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

ul, ol {
  padding-left: 1.5rem;
  margin: 0 0 1rem;
}

li { margin-bottom: 0.25rem; }

img {
  max-width: 100%;
  border-radius: 3px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

th, td {
  padding: 0.5rem 0.75rem;
  border: 1px solid #e8e0d0;
  text-align: left;
}

th {
  background: #f0ebe3;
  font-family: 'Playfair Display', Georgia, serif;
  color: #2c2416;
}

/* === Header === */
.site-header {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid #e8e0d0;
  margin-bottom: 2.5rem;
}

.site-header-inner {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.site-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #2c2416;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
}

.site-name:hover {
  text-decoration: none;
  color: #2c2416;
}

.site-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  color: #9e8e7a;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 400;
}

.site-nav {
  display: flex;
  gap: 1.2rem;
}

.site-nav a {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: #7a6a5a;
  text-decoration: none;
  letter-spacing: 0.03em;
}

.site-nav a:hover {
  color: #c0603a;
  text-decoration: none;
}

.site-nav a.active {
  color: #c0603a;
  border-bottom: 1px solid #c0603a;
  padding-bottom: 1px;
}

/* === Post List (Homepage) === */
.posts {
  margin: 0;
}

.posts .post {
  margin-bottom: 0;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e8e0d0;
  margin-bottom: 2rem;
}

.posts .post:last-child {
  border-bottom: none;
}

.post-date {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  color: #b09070;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.35rem;
}

.post-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c2416;
  line-height: 1.25;
  margin: 0 0 0.5rem;
}

.post-title a {
  color: #2c2416;
  text-decoration: none;
}

.post-title a:hover {
  color: #c0603a;
  text-decoration: none;
}

/* Category tag pills */
.category-list {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.category-list li {
  float: none;
  font: inherit;
}

.category-list-element {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  background: #f8ece7;
  color: #c0603a;
  border-radius: 3px;
  padding: 0.15rem 0.6rem;
  text-decoration: none;
  display: inline-block;
  height: auto;
  line-height: 1.6;
  position: static;
  margin: 0;
  letter-spacing: 0.02em;
  transition: background 0.15s, color 0.15s;
}

.category-list-element::before,
.category-list-element::after {
  display: none;
}

.category-list-element:hover {
  background: #c0603a;
  color: #fff;
  text-decoration: none;
}

.post-excerpt {
  font-family: 'Inter', sans-serif;
  color: #5a4a3a;
  margin-bottom: 0.75rem;
}

.read-more {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: #c0603a;
  text-decoration: none;
}

.read-more:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* === Pagination === */
.pagination {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e8e0d0;
}

.pagination-item {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: #c0603a;
  text-decoration: none;
}

.pagination-item:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

span.pagination-item {
  color: #c0c0b0;
  cursor: default;
}

/* === Single Post Page === */
.post .post-title {
  font-size: 2.2rem;
  margin-bottom: 0.4rem;
}

.post-content {
  margin-top: 1.5rem;
}

.post-content h1,
.post-content h2,
.post-content h3 {
  margin-top: 2rem;
}

/* Table of Contents */
details {
  margin-bottom: 1.5rem;
  border: 1px solid #e8e0d0;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  background: #fdf8f4;
}

details summary {
  cursor: pointer;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: #2c2416;
  padding: 0.25rem 0;
  user-select: none;
}

details[open] summary {
  margin-bottom: 0.5rem;
}

#toc ul, #toc ol {
  margin-bottom: 0;
  padding-left: 1.2rem;
}

#toc li:empty {
  display: none;
}

#toc a {
  color: #c0603a;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
}

/* Related Posts */
.related {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e8e0d0;
}

.related h2 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.related-posts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-posts li {
  margin-bottom: 0.75rem;
}

.related-posts h3 {
  font-size: 1rem;
  margin: 0;
}

.related-posts a {
  color: #2c2416;
  font-family: 'Playfair Display', Georgia, serif;
}

.related-posts a:hover {
  color: #c0603a;
  text-decoration: none;
}

.related-posts small {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  color: #b09070;
  display: block;
  margin-top: 0.1rem;
}

/* === Pages (About, Archives, Quotes) === */
.page .post-title {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e8e0d0;
}

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

  .container {
    padding: 0 1rem;
  }

  .site-header {
    padding: 1.5rem 0 1rem;
  }

  .site-name {
    font-size: 1.3rem;
  }

  .post-title {
    font-size: 1.25rem;
  }

  .post .post-title {
    font-size: 1.7rem;
  }

  pre {
    font-size: 0.78rem;
    padding: 0.75rem 1rem;
  }
}
