/* ============================================================
   Variables & Reset
   ============================================================ */
:root {
  --navy: #001F3E;
  --gold: #FFC354;
  --white: #FFFFFF;
  --off-white: #F8F7F4;
  --near-black: #1A1A1A;
  --gray: #6B7280;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
  --max-width: 720px;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
}

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

/* ============================================================
   Base
   ============================================================ */
html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--near-black);
  background-color: var(--off-white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--gold);
}

img {
  max-width: 100%;
  height: auto;
}

/* ============================================================
   Layout
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  border-bottom: 3px solid var(--gold);
  padding: var(--spacing-md) 0;
  background-color: var(--navy);
  overflow: hidden;
}

.site-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--white);
  letter-spacing: 0.01em;
}

.site-title:hover {
  color: var(--gold);
}

.site-logo {
  height: 120px;
  width: auto;
  display: block;
}

/* ============================================================
   Main
   ============================================================ */
.site-main {
  min-height: calc(100vh - 200px);
  padding: var(--spacing-lg) 0;
}

/* ============================================================
   Home / Post List
   ============================================================ */
.blog-intro {
  margin-bottom: var(--spacing-lg);
}

.blog-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--navy);
  margin-bottom: var(--spacing-xs);
}

.blog-description {
  color: var(--gray);
  font-size: 1rem;
}

.post-list {
  list-style: none;
}

.post-item {
  border-top: 1px solid #E5E7EB;
  padding: var(--spacing-md) 0;
  transition: none;
}

.post-item:last-child {
  border-bottom: 1px solid #E5E7EB;
}

.post-item article {
  padding-left: 0;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: var(--spacing-xs);
  font-weight: 500;
}

.read-time::before {
  content: "·";
  margin-right: var(--spacing-xs);
}

.post-item-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.3;
  margin-bottom: var(--spacing-xs);
}

.post-item-title a {
  color: var(--near-black);
  transition: color 0.15s ease;
}

.post-item-title a:hover {
  color: var(--navy);
}

.post-item-excerpt {
  color: #374151;
  margin-bottom: var(--spacing-sm);
  font-size: 1rem;
  line-height: 1.7;
}

.read-more {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}

.read-more:hover {
  color: var(--gold);
}

/* ============================================================
   Post
   ============================================================ */
.post-header {
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid #E5E7EB;
}

.post-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: var(--spacing-sm);
}

.post-excerpt {
  font-size: 1.15rem;
  color: var(--gray);
  line-height: 1.7;
  font-style: italic;
}

/* Post content typography */
.post-content {
  font-size: 1rem;
  line-height: 1.85;
}

.post-content h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--navy);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.post-content h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--navy);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.post-content p {
  margin-bottom: 1.5rem;
}

.post-content ul,
.post-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.75rem;
}

.post-content li {
  margin-bottom: 0.5rem;
}

.post-content blockquote {
  border-left: 4px solid var(--gold);
  padding: 0.75rem 1.5rem;
  margin: 2rem 0;
  background-color: var(--off-white);
  font-style: italic;
  color: #374151;
}

.post-content strong {
  font-weight: 600;
  color: var(--near-black);
}

.post-content a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
}

.post-content a:hover {
  color: var(--gold);
}

.post-content hr {
  border: none;
  border-top: 1px solid #E5E7EB;
  margin: 2.5rem 0;
}

/* ============================================================
   Post Navigation
   ============================================================ */
.post-nav {
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-md);
  border-top: 1px solid #E5E7EB;
}

.back-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
}

.back-link:hover {
  color: var(--gold);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background-color: var(--off-white);
  border-top: 1px solid #E5E7EB;
  padding: var(--spacing-md) 0;
  text-align: center;
}

.site-footer p {
  font-size: 0.85rem;
  color: var(--gray);
}

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

  .post-title,
  .blog-title {
    font-size: 2rem;
  }

  .post-item-title {
    font-size: 1.35rem;
  }

  .site-main {
    padding: var(--spacing-md) 0;
  }
}

@media (max-width: 480px) {
  .post-title {
    font-size: 1.75rem;
  }
}
