/* ============================================================
   FOLLIBACK — Brand Stylesheet v1.0
   ============================================================ */

/* 1. CSS Variables (Brand System)
   ============================================================ */
:root {
  /* Colors */
  --ink:        #1A1410;
  --soil:       #2D1F0E;
  --bark:       #5C3D1E;
  --amber:      #C8883A;
  --gold:       #E8B96A;
  --cream:      #F5EDE0;
  --parchment:  #FAF6EF;
  --mist:       #F0EBE2;
  --sage:       #7A8C6E;
  --moss:       #4A5E3A;

  /* Typography */
  --font-display:   'Cormorant Garamond', serif;
  --font-editorial: 'Instrument Serif', serif;
  --font-ui:        'DM Mono', monospace;

  /* Spacing */
  --space-xs:  8px;
  --space-sm:  16px;
  --space-md:  32px;
  --space-lg:  60px;
  --space-xl:  80px;
  --space-2xl: 100px;

}

/* 2. Reset
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  background-color: var(--parchment);
  color: var(--ink);
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.85;
}

img {
  max-width: 100%;
  display: block;
}

/* 3. Layout
   ============================================================ */
.container {
  width: 80%;
  margin: 0 auto;
}

.container--narrow {
  width: 80%;
  max-width: 760px;
  margin: 0 auto;
}


/* 4. Shared Typography Elements
   ============================================================ */
.eyebrow,
.section-eyebrow,
.homepage-eyebrow {
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--amber);
  display: block;
}

.tag {
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid var(--amber);
  padding: 3px 8px;
  display: inline-block;
  line-height: 1.4;
}

.post-date {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 300;
  color: var(--bark);
  letter-spacing: 0.5px;
}

.read-link {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--amber);
  text-decoration: none;
  border-bottom: 1px solid var(--amber);
  padding-bottom: 1px;
  transition: opacity 0.2s;
}

.read-link:hover {
  opacity: 0.7;
}

/* 5. Navigation / Header
   ============================================================ */
.site-header {
  background: var(--parchment);
  border-bottom: 1px solid var(--mist);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* Wordmark */
.wordmark {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
  text-decoration: none;
  line-height: 1;
}

.wordmark:hover {
  opacity: 0.8;
}

.wordmark-folli {
  color: var(--soil);
  font-style: normal;
}

.wordmark-back {
  color: var(--amber);
  font-style: italic;
}

/* Site Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.site-nav a {
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--bark);
  text-decoration: none;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.site-nav a:hover {
  opacity: 1;
}

/* 6. Homepage
   ============================================================ */
.homepage {
  padding-bottom: var(--space-2xl);
}

.homepage-eyebrow {
  padding-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

/* Featured Post */
.featured-post {
  padding: var(--space-md) 0 var(--space-xl);
  border-bottom: 1px solid var(--mist);
  margin-bottom: var(--space-xl);
}

.featured-inner {
  max-width: 820px;
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.featured-label {
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--bark);
  opacity: 0.5;
}

.featured-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -1.5px;
  color: var(--soil);
  margin-bottom: var(--space-md);
}

.featured-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.featured-title a:hover {
  color: var(--bark);
}

.featured-excerpt {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--bark);
  line-height: 1.65;
  max-width: 600px;
  margin-bottom: var(--space-md);
}

.featured-footer {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Post Grid */
.post-list-section {
  padding-top: var(--space-lg);
}

.section-eyebrow {
  margin-bottom: var(--space-md);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 3px;
}

.post-card {
  background: var(--mist);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: background 0.2s;
}

.post-card:hover {
  background: var(--cream);
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.post-card-title {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--soil);
  line-height: 1.3;
}

.post-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

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

.post-card-excerpt {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 300;
  color: var(--bark);
  line-height: 1.8;
  flex: 1;
}

.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--cream);
  margin-top: auto;
}

/* 7. List Page (Articles section)
   ============================================================ */
.list-page {
  padding: var(--space-xl) 0 var(--space-2xl);
}

.list-header {
  margin-bottom: var(--space-xl);
}

.list-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  letter-spacing: -1.5px;
  color: var(--soil);
  line-height: 1.0;
  margin: var(--space-sm) 0 var(--space-md);
}

.list-description {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--bark);
  max-width: 520px;
  line-height: 1.65;
}

/* 8. Single Post
   ============================================================ */
.single-post {
  padding: var(--space-xl) 0 var(--space-2xl);
}

.post-header {
  margin-bottom: var(--space-xl);
}

.post-header-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.post-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -1.5px;
  color: var(--soil);
  margin-bottom: var(--space-md);
}

.post-lead {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--bark);
  line-height: 1.65;
  max-width: 580px;
  margin-bottom: var(--space-md);
}

.post-divider {
  height: 1px;
  background: var(--mist);
  margin-top: var(--space-md);
}

/* Post Content (markdown) */
.post-content {
  color: var(--ink);
}

.post-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 300;
  letter-spacing: -0.5px;
  color: var(--soil);
  line-height: 1.1;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

.post-content h3 {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 1.21rem;
  font-weight: 400;
  color: var(--bark);
  line-height: 1.4;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.post-content h4 {
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--amber);
  margin-top: var(--space-md);
  margin-bottom: var(--space-sm);
}

.post-content p {
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.85;
  margin-bottom: var(--space-md);
  max-width: 65ch;
}

.post-content ul,
.post-content ol {
  padding-left: var(--space-md);
  margin-bottom: var(--space-md);
}

.post-content li {
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.8;
  margin-bottom: var(--space-xs);
}

.post-content li::marker {
  color: var(--amber);
}

.post-content strong {
  font-weight: 500;
  color: var(--soil);
}

.post-content em {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
}

.post-content a {
  color: var(--amber);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: opacity 0.2s;
}

.post-content a:hover {
  opacity: 0.7;
}

.post-content blockquote {
  border-left: 2px solid var(--amber);
  padding: var(--space-sm) 0 var(--space-sm) var(--space-md);
  margin: var(--space-lg) 0;
}

.post-content blockquote p {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 1.16rem;
  color: var(--bark);
  margin-bottom: 0;
}

.post-content hr {
  border: none;
  border-top: 1px solid var(--mist);
  margin: var(--space-xl) 0;
}

/* Tables */
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-lg) 0;
  font-size: 14px;
  display: block;
  overflow-x: auto;
}

.post-content th {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--bark);
  border-bottom: 1px solid var(--mist);
  padding: var(--space-sm);
  text-align: left;
  white-space: nowrap;
}

.post-content td {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 300;
  color: var(--ink);
  border-bottom: 1px solid var(--mist);
  padding: var(--space-sm);
  vertical-align: top;
  line-height: 1.7;
}

.post-content tr:last-child td {
  border-bottom: none;
}

.post-content code {
  font-family: var(--font-ui);
  font-size: 13px;
  background: var(--mist);
  padding: 2px 6px;
  color: var(--bark);
}

/* Post Footer */
.post-footer {
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--mist);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.post-footer-tags {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.back-link {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--bark);
  text-decoration: none;
  opacity: 0.6;
  border-bottom: 1px solid var(--mist);
  padding-bottom: 1px;
  transition: opacity 0.2s;
}

.back-link:hover {
  opacity: 1;
}

/* 9. Footer
   ============================================================ */
.site-footer {
  background: var(--soil);
  padding: var(--space-xl) 0;
  margin-top: var(--space-2xl);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  text-align: center;
}

.footer-wordmark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: -0.5px;
  line-height: 1;
}

.footer-wordmark .wordmark-folli {
  color: var(--cream);
  font-style: normal;
}

.footer-wordmark .wordmark-back {
  color: var(--gold);
  font-style: italic;
}

.footer-tagline {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--cream);
  opacity: 0.6;
  margin-top: var(--space-xs);
}

.footer-disclaimer {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 300;
  color: var(--cream);
  opacity: 0.35;
  max-width: 520px;
  line-height: 1.75;
  margin-top: var(--space-sm);
}

.footer-copy {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 1px;
  color: var(--cream);
  opacity: 0.25;
}

/* 10. About Page
   ============================================================ */
.about-page {
  padding: var(--space-xl) 0 var(--space-2xl);
}

.about-page .post-content p:first-of-type {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--bark);
  line-height: 1.65;
}

/* 11. Responsive
   ============================================================ */
@media (max-width: 900px) {
  .container,
  .container--narrow {
    width: 90%;
  }

  .post-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 600px) {
  .container,
  .container--narrow {
    width: 95%;
  }

  .site-nav a {
    display: none;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .featured-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }

  .post-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .post-content table {
    font-size: 13px;
  }
}
