:root {
  --max-width: 720px;
  --color-text: #4a3f35;
  --color-muted: #a08d7d;
  --color-bg: #fbf6ef;
  --color-card: #fffdfa;
  --color-accent: #c17a56;
  --color-accent-soft: #f3ded1;
  --color-sage: #7a9b76;
  --color-sage-soft: #e4ede2;
  --border-soft: #ecdfd2;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  background-image:
    radial-gradient(circle at 20% 0%, #f8ecdf 0%, transparent 45%),
    radial-gradient(circle at 100% 20%, #eef2e6 0%, transparent 40%);
  line-height: 1.75;
}

h1, h2, h3, .site-title {
  font-family: Georgia, "Times New Roman", serif;
}

.wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 16px 64px;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 16px 8px;
  flex-wrap: wrap;
  gap: 12px;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  font-style: italic;
  color: var(--color-accent);
  text-decoration: none;
}

.site-header nav a {
  margin-left: 18px;
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.9rem;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.site-header nav a:hover {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

.post-meta {
  color: var(--color-muted);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.post-card {
  background: var(--color-card);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: 0 4px 14px rgba(193, 122, 86, 0.06);
}

.post-card h2 {
  margin: 4px 0 6px;
  font-size: 1.35rem;
}

.post-card a {
  color: var(--color-text);
  text-decoration: none;
}

.post-card h2 a:hover {
  color: var(--color-accent);
}

.tag {
  display: inline-block;
  margin-right: 8px;
  margin-top: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--color-sage-soft);
  color: var(--color-sage);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 0.2s ease;
}

.tag:hover {
  background: var(--color-sage);
  color: #fff;
}

.post {
  background: var(--color-card);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 32px 28px;
  box-shadow: 0 6px 20px rgba(193, 122, 86, 0.07);
}

.post-header h1 {
  font-size: 1.9rem;
  margin: 8px 0 6px;
  line-height: 1.3;
}

.post-tags {
  margin-top: 4px;
}

.post-images {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 24px 0;
}

.post-images img {
  max-width: 100%;
  width: 100%;
  border-radius: 10px;
  border: 6px solid #fff;
  box-shadow: 0 6px 16px rgba(74, 63, 53, 0.12);
  transform: rotate(-1deg);
}

.post-images img:nth-child(even) {
  transform: rotate(1deg);
}

@media (min-width: 600px) {
  .post-images img {
    width: calc(50% - 7px);
  }
}

.post-content {
  margin-top: 20px;
}

.youtube-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  margin: 24px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(74, 63, 53, 0.12);
}

.youtube-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.tag-index {
  background: var(--color-card);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 28px;
}

.tag-group {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px dashed var(--border-soft);
}

.tag-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.tag-group h2 {
  color: var(--color-accent);
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.tag-group ul {
  list-style: none;
  padding: 0;
}

.tag-group li {
  padding: 8px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border-soft);
}

.tag-group li:last-child {
  border-bottom: none;
}

.tag-group a {
  color: var(--color-text);
  text-decoration: none;
}

.tag-group a:hover {
  color: var(--color-accent);
}

.page-content {
  background: var(--color-card);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 32px 28px;
  box-shadow: 0 6px 20px rgba(193, 122, 86, 0.07);
}

.page-content h1 {
  font-size: 1.9rem;
  margin: 8px 0 6px;
  line-height: 1.3;
}

.site-footer {
  text-align: center;
  color: var(--color-muted);
  font-size: 0.85rem;
  padding: 32px 0 16px;
}
