@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Crimson+Pro:ital,wght@0,300;0,400;1,300;1,400&display=swap');

:root {
  --bg: #09080a;
  --bg-card: #0f0e11;
  --text: #c4bdb6;
  --text-dim: #6b6460;
  --text-bright: #ece8e1;
  --accent: #b8956a;
  --accent-dim: #7a6245;
  --accent-glow: rgba(184,149,106,0.12);
  --rule: #1e1c1f;
  --rule-light: #2d2a30;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--text-bright);
}

/* ── LAYOUT ── */

.site-wrapper {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ── HEADER ── */

.site-header {
  text-align: center;
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 48px;
}

.site-logo-link {
  display: inline-block;
  margin-bottom: 24px;
}
.site-logo {
  width: 120px;
  height: auto;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}
.site-logo:hover {
  opacity: 1;
}

.site-header-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 8vw, 3.2rem);
  font-weight: 300;
  color: var(--text-bright);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 6px;
}
.site-header-name a {
  color: inherit;
}
.site-header-name a:hover {
  color: var(--accent);
}

.site-header-tagline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.7rem;
  color: var(--accent-dim);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.site-nav {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 32px;
}
.site-nav a {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.85rem;
  color: var(--text-dim);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.site-nav a:hover {
  color: var(--accent);
}

/* ── ORNAMENT ── */

.ornament {
  text-align: center;
  margin: 48px 0;
  opacity: 0.3;
}
.ornament svg {
  width: 180px;
  height: 14px;
}

/* ── POST LIST (HOME) ── */

.post-list {
  list-style: none;
  display: grid;
  gap: 32px;
}

.post-card {
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 32px;
  background: var(--bg-card);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.post-card:hover {
  border-color: var(--accent-dim);
  box-shadow: 0 0 24px var(--accent-glow);
}

.post-card-date {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.post-card-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-bright);
  line-height: 1.3;
  margin-bottom: 12px;
}
.post-card-title a {
  color: inherit;
}
.post-card-title a:hover {
  color: var(--accent);
}

.post-card-description {
  font-size: 1rem;
  font-weight: 300;
  color: var(--text);
  line-height: 1.6;
}

.post-card-tags {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.post-card-tags a {
  font-size: 0.7rem;
  color: var(--accent-dim);
  border: 1px solid var(--rule-light);
  padding: 2px 10px;
  border-radius: 3px;
  letter-spacing: 0.05em;
  text-transform: lowercase;
  transition: border-color 0.2s, color 0.2s;
}
.post-card-tags a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── SINGLE POST ── */

.post-header {
  text-align: center;
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--rule);
}

.post-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 400;
  color: var(--text-bright);
  line-height: 1.25;
  margin-bottom: 16px;
}

.post-meta {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.post-content {
  margin-bottom: 64px;
}
.post-content p {
  margin-bottom: 1.4em;
}
.post-content h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-bright);
  margin-top: 2.5em;
  margin-bottom: 0.8em;
  letter-spacing: 0.04em;
}
.post-content h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text-bright);
  margin-top: 2em;
  margin-bottom: 0.6em;
}
.post-content hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 2.5em 0;
}
.post-content em {
  color: var(--accent);
}
.post-content strong {
  color: var(--text-bright);
  font-weight: 600;
}
.post-content a {
  border-bottom: 1px solid var(--accent-dim);
  transition: border-color 0.2s;
}
.post-content a:hover {
  border-color: var(--accent);
}
.post-content blockquote {
  border-left: 2px solid var(--accent-dim);
  padding-left: 20px;
  margin: 1.5em 0;
  color: var(--text-dim);
  font-style: italic;
}
.post-content ul, .post-content ol {
  margin-bottom: 1.4em;
  padding-left: 1.5em;
}
.post-content li {
  margin-bottom: 0.4em;
}
.post-content iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  border-radius: 4px;
  margin: 1.5em 0;
}

/* ── POST FOOTER / NAV ── */

.post-footer {
  border-top: 1px solid var(--rule);
  padding-top: 40px;
  margin-bottom: 64px;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.post-tags a {
  font-size: 0.7rem;
  color: var(--accent-dim);
  border: 1px solid var(--rule-light);
  padding: 3px 12px;
  border-radius: 3px;
  letter-spacing: 0.05em;
  text-transform: lowercase;
}
.post-tags a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}
.post-nav a {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.9rem;
  color: var(--text-dim);
}
.post-nav a:hover {
  color: var(--accent);
}

/* ── PAGINATION ── */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin: 48px 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.pagination a {
  color: var(--text-dim);
}
.pagination a:hover {
  color: var(--accent);
}
.pagination .current {
  color: var(--accent);
}

/* ── TAG LIST PAGE ── */

.tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}
.tag-list li a {
  font-size: 0.85rem;
  color: var(--text-dim);
  border: 1px solid var(--rule-light);
  padding: 6px 16px;
  border-radius: 3px;
  transition: border-color 0.2s, color 0.2s;
}
.tag-list li a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── FOOTER ── */

.site-footer {
  text-align: center;
  padding: 48px 0;
  border-top: 1px solid var(--rule);
  margin-top: 48px;
}

.footer-logo-link {
  display: inline-block;
  margin-bottom: 16px;
}
.footer-logo {
  width: 48px;
  height: auto;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}
.footer-logo:hover {
  opacity: 0.7;
}
.site-footer p {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}
.site-footer a {
  color: var(--accent-dim);
}
.site-footer a:hover {
  color: var(--accent);
}

/* ── RESPONSIVE ── */

@media (max-width: 500px) {
  .site-wrapper { padding: 0 20px; }
  .site-header { padding: 48px 0 36px; }
  .site-header-name { letter-spacing: 0.15em; }
  .post-card { padding: 24px; }
  .site-nav { gap: 20px; }
}
