@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap");

:root {
  --bg-color: #f5f4ef;
  --text-color: #000000;
  --max-width: 850px;
  --font-serif: "Playfair Display", serif;
  --font-mono: "Roboto Mono", monospace;
  --spacing-base: 2rem;
  --font-size-base: 14px;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-mono);
  line-height: 1.6;
  padding: var(--spacing-base);
  font-size: var(--font-size-base);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4rem;
}

.logo {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 400;
  text-decoration: none;
  color: var(--text-color);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav a {
  text-decoration: none;
  color: var(--text-color);
  font-family: var(--font-mono);
  font-size: var(--font-size-base);
  font-weight: 400;
}

nav a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

h1 {
  font-size: 30px;
}

h2 {
    font-size: 24px;
}

p {
  margin-bottom: 1.5rem;
  font-size: var(--font-size-base);
  font-weight: 400;
}

ul.list {
  list-style: none;
  margin-bottom: 1.5rem;
}

ul.list li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.2rem;
  font-size: var(--font-size-base);
  line-height: 1.6;
}

ul.list li::before {
  content: "-";
  position: absolute;
  left: 0;
}

footer {
  margin-top: 6rem;
  padding-top: 2rem;
  font-size: 12px;
  opacity: 0.7;
}

a {
  color: var(--text-color);
}

.post-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  text-decoration: none;
  font-size: var(--font-size-base);
  font-weight: 400;
}

.post-item:hover .post-title {
  text-decoration: underline;
}

.post-date {
  color: #666;
  min-width: 120px;
}

.post-title {
  flex-grow: 1;
}

.post-meta {
    font-size: 12px;
}

@media (max-width: 600px) {
  header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .post-item {
    flex-direction: column;
  }

  .post-date {
    margin-bottom: 0.25rem;
  }

  .reading-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .book-info {
    margin-left: 0 !important;
    margin-top: 1.5rem;
  }
}

#currently-reading {
    margin-top: 4rem;
}

.reading-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.book-cover {
    width: 150px;
    max-width: 100%;
    height: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.book-cover:hover {
    transform: scale(1.05);
}

.book-info {
    flex: 1;
}

.book-title {
    font-size: 20px;
    font-family: var(--font-serif);
    margin-bottom: 0.5rem;
}

.book-author {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 1.5rem;
}

.amazon-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid var(--text-color);
    text-decoration: none;
    font-size: 12px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.amazon-link:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}
