/* ============================================================
   Forks and Figures — Ghost Theme Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;700;800&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,600;1,8..60,400&display=swap');

/* --- Variables --- */
:root {
  --taffy:   #E8185C;
  --butter:  #F5A623;
  --blue:    #29B5D8;
  --lime:    #7DC63F;
  --petal:   #F9B8D4;
  --garnet:  #5C1228;
  --marina:  #1D3A5C;
  --fondant: #FDF5E4;
  --max-width: 1120px;
  --reading-width: 740px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Serif 4', Georgia, serif;
  background: var(--fondant);
  color: var(--marina);
  font-size: 18px;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ============================================================
   NAV
   ============================================================ */
.site-nav {
  background: white;
  border-bottom: 3px solid var(--marina);
  padding: 0 2.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-wordmark {
  display: flex;
  align-items: baseline;
  gap: 6px;
  text-decoration: none;
}
.nav-wordmark .fork  { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.2rem; color: var(--taffy); letter-spacing: -0.02em; }
.nav-wordmark .and   { font-family: 'Syne', sans-serif; font-weight: 400; font-size: 1rem;   color: var(--marina); }
.nav-wordmark .fig   { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.2rem; color: var(--marina); letter-spacing: -0.02em; }
.nav-wordmark .dot   { width: 8px; height: 8px; border-radius: 50%; background: var(--butter); display: inline-block; margin-left: 5px; margin-bottom: 2px; }

.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--marina);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.nav-links a:hover      { border-color: var(--taffy); color: var(--taffy); }
.nav-links a.cta        { color: var(--taffy); }
.nav-links a.cta:hover  { border-color: var(--taffy); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--marina);
  color: var(--fondant);
  padding: 5.5rem 2.5rem 4.5rem;
  position: relative;
  overflow: hidden;
}
.hero-bg-circle-1 { position: absolute; top: -50px;  right: -50px;  width: 260px; height: 260px; border-radius: 50%; background: var(--taffy);  opacity: 0.13; pointer-events: none; }
.hero-bg-circle-2 { position: absolute; bottom: -70px; right: 220px; width: 180px; height: 180px; border-radius: 50%; background: var(--blue);   opacity: 0.18; pointer-events: none; }
.hero-bg-tri      { position: absolute; top: 50px; right: 90px; width: 0; height: 0; border-left: 65px solid transparent; border-right: 65px solid transparent; border-bottom: 110px solid var(--butter); opacity: 0.16; pointer-events: none; }
.hero-rainbow     { position: absolute; bottom: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--taffy), var(--butter), var(--blue), var(--lime)); }

.hero-inner { max-width: var(--max-width); margin: 0 auto; position: relative; z-index: 1; }

.hero-byline { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.75rem; }
.hero-badge  { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; background: var(--taffy); color: white; padding: 4px 11px; }
.hero-location { font-family: 'Syne', sans-serif; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--petal); opacity: 0.7; }

.hero h1 { font-family: 'Syne', sans-serif; font-weight: 800; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.04; letter-spacing: -0.03em; margin-bottom: 1.5rem; color: var(--fondant); }
.hero h1 .accent-butter { color: var(--butter); }
.hero h1 .accent-blue   { color: var(--blue); }

.hero-sub { font-style: italic; font-size: 1.15rem; line-height: 1.65; color: var(--petal); max-width: 560px; margin-bottom: 2.25rem; }

.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary { background: var(--taffy); color: white; padding: 0.75rem 1.6rem; text-decoration: none; font-family: 'Syne', sans-serif; font-weight: 800; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; transition: background 0.2s; display: inline-block; }
.btn-primary:hover { background: #c0144f; }
.btn-ghost  { background: transparent; color: var(--fondant); border: 2px solid rgba(253,245,228,0.6); padding: 0.75rem 1.6rem; text-decoration: none; font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; display: inline-block; transition: border-color 0.2s; }
.btn-ghost:hover { border-color: var(--fondant); }

/* ============================================================
   TICKER
   ============================================================ */
.ticker { background: var(--butter); padding: 0.65rem 2.5rem; display: flex; align-items: center; gap: 2rem; overflow: hidden; flex-wrap: wrap; }
.ticker-label  { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--marina); white-space: nowrap; }
.ticker-outlet { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.8rem; color: var(--marina); white-space: nowrap; }
.ticker-dot    { color: var(--taffy); margin-left: 1.5rem; }

/* ============================================================
   WRITING / CARD GRID
   ============================================================ */
.section-writing { padding: 4.5rem 2.5rem; max-width: var(--max-width); margin: 0 auto; }

.section-header { display: flex; align-items: baseline; gap: 1rem; border-bottom: 3px solid var(--marina); padding-bottom: 0.75rem; margin-bottom: 2.5rem; }
.section-header h2 { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.6rem; letter-spacing: -0.02em; color: var(--marina); }
.section-header .sub { font-style: italic; font-size: 0.9rem; color: var(--taffy); }

.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }

.card { background: white; border: 2px solid var(--marina); padding: 1.5rem; position: relative; transition: transform 0.15s, box-shadow 0.15s; }
.card:hover { transform: translate(-4px, -4px); box-shadow: 7px 7px 0 var(--marina); }

.card-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.8rem; }
.card-outlet { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }

.card-tag { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 3px 8px; color: white; }

/* Tag color mapping */
.card-tag.tag-food,
.tag-food .card-tag        { background: var(--lime); }
.card-tag.tag-housing,
.tag-housing .card-tag    { background: var(--butter); color: var(--marina); }
.card-tag.tag-public-health,
.tag-public-health .card-tag       { background: var(--blue); }
.card-tag.tag-governance,
.tag-governance .card-tag { background: var(--taffy); }
.card-tag.tag-rural,
.tag-rural .card-tag     { background: var(--garnet); }
.card-tag.tag-organizing,
.tag-organizing .card-tag    { background: var(--marina); }
.card-tag                          { background: var(--blue); } /* fallback */

.card h3 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1rem; line-height: 1.35; color: var(--marina); margin-bottom: 0.75rem; }
.card h3 a { text-decoration: none; color: inherit; }
.card h3 a:hover { color: var(--taffy); }
.card p  { font-size: 0.875rem; line-height: 1.7; color: #555; margin-bottom: 1.1rem; }

.card-footer { display: flex; justify-content: space-between; align-items: center; }
.card-date   { font-family: 'Syne', sans-serif; font-size: 0.68rem; color: #aaa; letter-spacing: 0.05em; }
.card-link   { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--taffy); text-decoration: none; }
.card-link:hover { color: var(--garnet); }

.view-all { text-align: center; margin-top: 2.25rem; }
.view-all a { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--marina); text-decoration: none; border-bottom: 2px solid var(--butter); padding-bottom: 2px; }
.view-all a:hover { color: var(--taffy); border-color: var(--taffy); }

/* ============================================================
   BEATS
   ============================================================ */
.section-beats { padding: 4rem 2.5rem; max-width: 920px; margin: 0 auto; }
.section-beats h2 { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.6rem; letter-spacing: -0.02em; color: var(--marina); margin-bottom: 0.4rem; }
.beats-sub { font-style: italic; font-size: 0.95rem; color: #888; margin-bottom: 1.75rem; }
.beats-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.beat-pill { display: inline-flex; align-items: center; gap: 7px; padding: 0.55rem 1.1rem; border-radius: 50px; font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.82rem; letter-spacing: 0.04em; color: white; text-decoration: none; transition: opacity 0.2s, transform 0.15s; }
.beat-pill:hover { opacity: 0.85; transform: translateY(-1px); }

/* ============================================================
   SUBSCRIBE
   ============================================================ */
.section-subscribe { background: var(--blue); padding: 4.5rem 2.5rem; position: relative; overflow: hidden; text-align: center; }
.sub-bg-circle-1 { position: absolute; top: -40px; left: 80px; width: 200px; height: 200px; border-radius: 50%; background: white; opacity: 0.07; pointer-events: none; }
.sub-bg-tri { position: absolute; bottom: -20px; right: 60px; width: 0; height: 0; border-left: 75px solid transparent; border-right: 75px solid transparent; border-bottom: 130px solid var(--butter); opacity: 0.18; pointer-events: none; }

.sub-inner { max-width: 520px; margin: 0 auto; position: relative; z-index: 1; }
.sub-inner h2 { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 2rem; letter-spacing: -0.02em; color: white; margin-bottom: 0.75rem; }
.sub-inner p  { font-style: italic; font-size: 1rem; color: rgba(255,255,255,0.8); line-height: 1.65; margin-bottom: 2rem; }

.sub-form { display: flex; max-width: 400px; margin: 0 auto; }
.sub-form input[type="email"] { flex: 1; border: 2px solid var(--marina); border-right: none; padding: 0.8rem 1rem; font-family: 'Source Serif 4', serif; font-size: 1rem; background: white; outline: none; }
.sub-form input[type="email"]:focus { border-color: var(--marina); }
.sub-form button { background: var(--taffy); color: white; border: none; padding: 0.8rem 1.4rem; font-family: 'Syne', sans-serif; font-weight: 800; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; transition: background 0.2s; }
.sub-form button:hover { background: var(--garnet); }

.post-subscribe { margin-top: 0; }

/* ============================================================
   POST PAGE
   ============================================================ */
.post-page { max-width: var(--reading-width); margin: 0 auto; padding: 4rem 2rem; }

.post-header { margin-bottom: 2.5rem; }
.post-tag { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 10px; color: white; text-decoration: none; display: inline-block; margin-bottom: 1.25rem; }

/* post tag colors via slug */
.post-tag.tag-food        { background: var(--lime); }
.post-tag.tag-housing    { background: var(--butter); color: var(--marina); }
.post-tag.tag-public-health       { background: var(--blue); }
.post-tag.tag-governance { background: var(--taffy); }
.post-tag.tag-rural     { background: var(--garnet); }
.post-tag.tag-organizing    { background: var(--marina); }
.post-tag                         { background: var(--blue); }

.post-title { font-family: 'Syne', sans-serif; font-weight: 800; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.1; letter-spacing: -0.02em; color: var(--marina); margin-bottom: 1rem; }

.post-meta { display: flex; gap: 1.5rem; align-items: center; font-family: 'Syne', sans-serif; font-size: 0.78rem; color: #888; letter-spacing: 0.05em; margin-bottom: 1rem; }

.post-excerpt { font-style: italic; font-size: 1.2rem; line-height: 1.6; color: #555; border-left: 3px solid var(--butter); padding-left: 1.25rem; margin-top: 1rem; }

.post-feature-image { margin: 2rem 0; border: 2px solid var(--marina); }
.post-feature-image img { width: 100%; }
.post-feature-image figcaption { font-family: 'Syne', sans-serif; font-size: 0.72rem; color: #888; padding: 0.5rem 0.75rem; background: #f5f5f5; letter-spacing: 0.05em; }

/* Ghost content styles */
.gh-content { font-size: 1.05rem; line-height: 1.8; }
.gh-content h2 { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.6rem; letter-spacing: -0.02em; color: var(--marina); margin: 2.5rem 0 1rem; }
.gh-content h3 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.25rem; color: var(--marina); margin: 2rem 0 0.75rem; }
.gh-content p  { margin-bottom: 1.5rem; }
.gh-content a  { color: var(--taffy); text-decoration: underline; text-underline-offset: 3px; }
.gh-content a:hover { color: var(--garnet); }
.gh-content blockquote { border-left: 4px solid var(--butter); padding: 0.5rem 1.5rem; margin: 2rem 0; font-style: italic; color: #555; font-size: 1.1rem; }
.gh-content ul, .gh-content ol { padding-left: 1.5rem; margin-bottom: 1.5rem; }
.gh-content li { margin-bottom: 0.5rem; }
.gh-content figure { margin: 2rem 0; }
.gh-content figure img { width: 100%; border: 2px solid var(--marina); }
.gh-content figcaption { font-family: 'Syne', sans-serif; font-size: 0.72rem; color: #888; margin-top: 0.5rem; letter-spacing: 0.05em; }
.gh-content hr { border: none; border-top: 2px solid var(--butter); margin: 2.5rem 0; }

.post-footer { margin-top: 3rem; padding-top: 1.5rem; border-top: 2px solid var(--marina); }
.post-footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.back-link { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--marina); text-decoration: none; border-bottom: 2px solid var(--butter); padding-bottom: 2px; }
.back-link:hover { color: var(--taffy); border-color: var(--taffy); }

/* ============================================================
   TAG PAGE
   ============================================================ */
.tag-header { background: var(--marina); color: var(--fondant); padding: 4rem 2.5rem; position: relative; overflow: hidden; }
.tag-header-inner { max-width: var(--max-width); margin: 0 auto; }
.tag-label { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; background: var(--taffy); color: white; padding: 4px 10px; display: inline-block; margin-bottom: 1rem; }
.tag-header h1 { font-family: 'Syne', sans-serif; font-weight: 800; font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -0.03em; color: var(--fondant); margin-bottom: 0.75rem; }
.tag-description { font-style: italic; font-size: 1.1rem; color: var(--petal); max-width: 560px; margin-bottom: 1rem; }
.tag-count { font-family: 'Syne', sans-serif; font-size: 0.78rem; color: var(--petal); opacity: 0.7; letter-spacing: 0.08em; }

.tag-writing { padding-top: 3rem; }

/* ============================================================
   ERROR PAGE
   ============================================================ */
.error-page { display: flex; align-items: center; justify-content: center; min-height: 60vh; text-align: center; padding: 4rem 2rem; }
.error-code { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 8rem; color: var(--taffy); opacity: 0.15; display: block; line-height: 1; margin-bottom: -2rem; }
.error-inner h1 { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 2.5rem; color: var(--marina); margin-bottom: 1rem; }
.error-inner p  { color: #777; margin-bottom: 2rem; font-style: italic; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--marina); color: var(--fondant); padding: 1.75rem 2.5rem; border-top: 4px solid var(--taffy); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-brand .name { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1rem; color: var(--butter); }
.footer-brand .copy { font-family: 'Syne', sans-serif; font-size: 0.72rem; opacity: 0.45; margin-left: 1rem; letter-spacing: 0.05em; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; transition: opacity 0.2s; }
.footer-links a:hover { opacity: 0.7; }
.footer-links .bsky  { color: var(--blue); }
.footer-links .email { color: var(--petal); }
.footer-dots { display: flex; gap: 6px; align-items: center; }
.footer-dots span { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .site-nav { padding: 0 1rem; }
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 0.7rem; letter-spacing: 0.08em; }
  .hero { padding: 3rem 1.5rem 2.5rem; }
  .section-writing { padding: 2.5rem 1.5rem; }
  .section-beats { padding: 2.5rem 1.5rem; }
  .cards-grid { grid-template-columns: 1fr; }
  .section-subscribe { padding: 3rem 1.5rem; }
  .sub-form { flex-direction: column; }
  .sub-form input[type="email"] { border-right: 2px solid var(--marina); border-bottom: none; }
  .post-page { padding: 2rem 1.25rem; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .ticker { gap: 1rem; padding: 0.65rem 1.5rem; }
}

/* ============================================================
   GHOST EDITOR CARD WIDTHS (required by Ghost theme validator)
   ============================================================ */
.gh-content .kg-width-wide {
  margin-left: calc(50% - 50vw + 2.5rem);
  margin-right: calc(50% - 50vw + 2.5rem);
  max-width: none;
}

.gh-content .kg-width-full {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: none;
}

.gh-content .kg-image-card img,
.gh-content .kg-gallery-card img {
  width: 100%;
}

.gh-content .kg-embed-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: 1.5rem 0;
}

.gh-content .kg-bookmark-card {
  border: 2px solid var(--marina);
  padding: 1rem;
  margin: 1.5rem 0;
  display: flex;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
}

.gh-content .kg-callout-card {
  background: var(--fondant);
  border-left: 4px solid var(--butter);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

/* ============================================================
   SCROLLING TICKER
   ============================================================ */
.ticker-wrap {
  background: var(--butter);
  overflow: hidden;
  white-space: nowrap;
  padding: 0.65rem 0;
  position: relative;
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  animation: ticker-scroll 28s linear infinite;
  white-space: nowrap;
}

.ticker-wrap:hover .ticker-track {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--marina);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.ticker-sep {
  color: var(--taffy);
  font-size: 0.6rem;
  flex-shrink: 0;
}

/* beats hint — only visible in admin, hidden on front end */
.beats-hint {
  display: none;
}

.footer-links .linkedin  { color: var(--blue); }
.footer-links .instagram { color: var(--petal); }
.footer-links .contact   { color: var(--butter); }

/* ============================================================
   ROTATING HERO LABEL
   ============================================================ */
.hero-rotating-label {
  display: inline-block;
  position: relative;
  height: 1.4em;
  overflow: hidden;
  vertical-align: bottom;
  margin-bottom: 1.75rem;
}

.rotating-word {
  display: block;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: white;
  background: var(--taffy);
  padding: 3px 12px;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  animation: word-rotate 10s linear infinite;
  white-space: nowrap;
}

.rotating-word:nth-child(1) { animation-delay: 0s; }
.rotating-word:nth-child(2) { animation-delay: 2s; }
.rotating-word:nth-child(3) { animation-delay: 4s; }
.rotating-word:nth-child(4) { animation-delay: 6s; }
.rotating-word:nth-child(5) { animation-delay: 8s; }

@keyframes word-rotate {
  0%        { opacity: 0; transform: translateY(8px); }
  5%        { opacity: 1; transform: translateY(0); }
  18%       { opacity: 1; transform: translateY(0); }
  23%       { opacity: 0; transform: translateY(-8px); }
  100%      { opacity: 0; transform: translateY(-8px); }
}

/* ============================================================
   LINK POST TEMPLATE
   ============================================================ */
.link-post-page {
  max-width: var(--reading-width);
  margin: 0 auto;
  padding: 4rem 2rem;
}

.link-post-header { margin-bottom: 2.5rem; }
.link-post-header-inner { max-width: var(--reading-width); }

.link-post-intro {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  border-left: 3px solid var(--butter);
  padding-left: 1.25rem;
  color: #444;
}

.link-post-cta {
  background: var(--fondant);
  border: 2px solid var(--marina);
  padding: 2rem;
  margin: 2.5rem 0;
  text-align: center;
}

.link-post-cta-label {
  font-family: 'Syne', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 1.25rem;
}

/* Style Ghost's button card inside link posts */
.link-post-button-wrap .kg-btn {
  background: var(--taffy);
  color: white;
  padding: 0.85rem 2rem;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
}

.link-post-button-wrap .kg-btn:hover {
  background: var(--garnet);
}

/* Outlet label on post page */
.post-outlet-label {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--taffy);
  border-left: 2px solid var(--butter);
  padding-left: 0.75rem;
  margin-left: 0.5rem;
}

/* Subscribe button (non-form version) */
.sub-btn {
  background: var(--taffy);
  color: white;
  border: none;
  padding: 0.8rem 1.4rem;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}
.sub-btn:hover { background: var(--garnet); }

/* Portal subscribe buttons */
.sub-portal-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.sub-btn-portal {
  display: inline-block;
  background: var(--taffy);
  color: white;
  padding: 0.9rem 2rem;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s;
}
.sub-btn-portal:hover { background: var(--garnet); }

.sub-btn-portal--secondary {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.5);
  color: white;
}
.sub-btn-portal--secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
}

.sub-already {
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.05em;
  margin-top: 1rem;
}

.nav-wordmark .by {
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 0.8rem;
  color: #aaa;
  margin-left: 6px;
  letter-spacing: 0;
}

/* Feature images on cards */
.card-image-wrap {
  display: block;
  overflow: hidden;
  border-bottom: 2px solid var(--marina);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.card:hover .card-image {
  transform: scale(1.03);
}

.card-body {
  padding: 1.5rem;
}

/* Adjust card padding when image present */
.card {
  padding: 0;
}

.card-body {
  padding: 1.5rem;
}

/* ============================================================
   MOBILE NAV FIXES
   ============================================================ */
@media (max-width: 600px) {
  .site-nav {
    padding: 0 1rem;
    height: auto;
    min-height: 56px;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
  }

  .nav-wordmark {
    flex-shrink: 0;
  }

  .nav-wordmark .fork { font-size: 1rem; }
  .nav-wordmark .fig  { font-size: 1rem; }
  .nav-wordmark .and  { font-size: 0.85rem; }

  /* Hide "by Cole Hanson" on small screens */
  .nav-wordmark .by { display: none; }

  .nav-links {
    gap: 0.75rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    padding-bottom: 0.25rem;
  }

  .nav-links a {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Hero mobile tweaks */
  .hero {
    padding: 2.5rem 1.25rem 2rem;
  }

  .hero-badge { font-size: 0.6rem; }

  .hero-btns {
    flex-direction: column;
    gap: 0.75rem;
  }

  .btn-primary, .btn-ghost {
    text-align: center;
    width: 100%;
  }

  /* Ticker mobile */
  .ticker-wrap { padding: 0.5rem 0; }
  .ticker-item { font-size: 0.75rem; }

  /* Cards mobile */
  .cards-grid { grid-template-columns: 1fr; gap: 1rem; }

  /* Subscribe mobile */
  .sub-portal-btns {
    flex-direction: column;
    align-items: center;
  }

  .sub-btn-portal { width: 100%; max-width: 300px; text-align: center; }

  /* Footer mobile */
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem 1rem;
  }

  .footer-links { flex-wrap: wrap; gap: 1rem; }
}

/* ============================================================
   MUST-READ FEATURED SECTION
   ============================================================ */
.must-read-section {
  background: white;
  border-bottom: 3px solid var(--marina);
}

.must-read-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2.5rem;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 3rem;
  align-items: center;
}

.must-read-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
  border-right: 3px solid var(--butter);
  padding-right: 2rem;
}

.must-read-eyebrow {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--taffy);
  line-height: 1.4;
}

.must-read-sub {
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  font-size: 0.85rem;
  color: #999;
}

.must-read-content {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  align-items: center;
}

.must-read-image-wrap {
  display: block;
  overflow: hidden;
  border: 2px solid var(--marina);
  flex-shrink: 0;
}

.must-read-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.must-read-image-wrap:hover .must-read-image {
  transform: scale(1.04);
}

.must-read-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.must-read-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--marina);
  margin-bottom: 0.75rem;
}

.must-read-title a {
  text-decoration: none;
  color: inherit;
}

.must-read-title a:hover { color: var(--taffy); }

.must-read-excerpt {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 1.25rem;
}

/* Mobile must-read */
@media (max-width: 768px) {
  .must-read-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem 1.25rem;
  }

  .must-read-label {
    flex-direction: row;
    justify-content: flex-start;
    border-right: none;
    border-bottom: 2px solid var(--butter);
    padding-right: 0;
    padding-bottom: 1rem;
    text-align: left;
    gap: 1rem;
  }

  .must-read-content {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .must-read-image { height: 200px; }
}

/* ============================================================
   FOOTER MOBILE LINKS FIX
   ============================================================ */
@media (max-width: 600px) {
  .footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1.5rem;
    width: 100%;
  }

  .footer-links a {
    font-size: 0.7rem;
  }

  .footer-dots { display: none; }
}
