/* Renewed Memories — Modern Archive theme
   Palette + type system from Brand Notes.md. Category taxonomy: ttrpg, comics-books,
   fiction, film-tv, tech-ai (src/_data/categories.js is the source of truth). */

:root {
  --ivory: #f8f7f4;
  --tan: #bd9378;
  --navy: #383a4f;
  --rosewood: #856461;
  --mauve: #5a4e5a;
  --parchment: #ebe6e0;
  --ink: #453f3b;
  --peach: #cda390;

  --font-display: "DM Serif Display", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-script: "Alex Brush", cursive;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: inherit;
}

.script-accent {
  font-family: var(--font-script);
  color: var(--tan);
  font-weight: 400;
}

/* Header */

.site-header {
  background: var(--navy);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.logo-mark {
  height: 76px;
  width: auto;
  display: block;
}

.site-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--ivory);
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.site-nav a {
  color: var(--ivory);
  text-decoration: none;
  padding: 2px 0;
  border-bottom: 2px solid transparent;
}

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

/* Hero */

.hero {
  background: var(--navy);
  padding: 56px 0 48px;
  text-align: center;
}

.hero-kicker {
  margin: 0 0 18px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--peach);
}

.hero-headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ivory);
  font-size: 2.3rem;
  line-height: 1.35;
}

.hero-headline .script-accent {
  font-size: 1.5em;
  display: inline-block;
  margin-top: 6px;
}

/* Page heading */

main {
  padding-bottom: 60px;
}

.page-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.7rem;
  color: var(--ink);
  margin: 40px 0 26px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--parchment);
}

.page-heading-icon {
  height: 32px;
  width: auto;
}

/* Category / kicker line (shared by cards + single post) */

.post-card-kicker,
.post-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--mauve);
}

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

.post-kicker a:hover {
  color: var(--rosewood);
}

.kicker-icon {
  height: 16px;
  width: auto;
}

.dot {
  opacity: 0.6;
}

/* Post / card grid */

.post-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.post-card {
  background: var(--parchment);
  border-radius: 10px;
  padding: 22px 24px;
}

.post-card-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1.3;
}

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

.post-card-title a:hover {
  color: var(--rosewood);
}

.post-card-excerpt {
  margin: 0 0 14px;
  color: var(--ink);
  opacity: 0.85;
}

.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.revisited,
.post-date {
  font-size: 0.78rem;
  color: var(--mauve);
}

.empty-state {
  padding: 20px 24px;
  background: var(--parchment);
  border-radius: 10px;
  color: var(--mauve);
  font-style: italic;
}

/* Verdict badge — restrained editorial stamp */

.verdict-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 3px;
  border: 1.5px solid var(--tan);
  color: var(--tan);
  background: transparent;
}

.verdict-badge.verdict-worth-a-look {
  border-color: var(--mauve);
  color: var(--mauve);
}

.verdict-badge.verdict-skip-it {
  border-color: var(--rosewood);
  color: var(--rosewood);
}

/* Single post */

.post {
  padding-top: 44px;
}

.post-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2rem;
  line-height: 1.25;
  margin: 0 0 14px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 30px;
}

.post-body p {
  margin: 0 0 1.15em;
}

.post-body img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 28px auto;
}

.post-body figure {
  margin: 28px 0;
}

.post-body figcaption {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--mauve);
  text-align: center;
}

.post-divider {
  display: block;
  height: 36px;
  width: auto;
  margin: 40px auto 24px;
  opacity: 0.75;
}

.post-tags {
  text-align: center;
  margin: 0 0 10px;
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--mauve);
  border: 1px solid var(--parchment);
  border-radius: 3px;
  padding: 2px 8px;
  margin: 0 6px 6px 0;
}

/* Static pages */

main h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.8rem;
  margin-top: 44px;
}

main p {
  margin: 0 0 1.15em;
}

/* Footer */

.site-footer {
  background: var(--navy);
  color: var(--ivory);
  text-align: center;
  padding: 40px 24px 46px;
}

.footer-mark {
  height: 34px;
  width: auto;
  margin: 0 auto 18px;
  opacity: 0.85;
  filter: brightness(0) invert(1);
}

.footer-tagline {
  font-size: 1.6rem;
  margin: 0 0 14px;
}

.footer-line {
  margin: 0;
  font-size: 0.8rem;
  color: var(--peach);
  opacity: 0.9;
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }
  .hero-headline {
    font-size: 1.7rem;
  }
  .hero {
    padding: 44px 0 36px;
  }
  .post-title {
    font-size: 1.5rem;
  }
}
