/* 黑羊外参 — Modern Light Editorial
   Brand palette per CLAUDE.md § 7.6.7:
     ivory ground      #F5EFDB
     deep ink          #1A1D24
     mid graphite      #4A4F58
     warm gold         #C9A961
     muted vermillion  #A24A3F
*/

:root {
  --bg: #F5EFDB;
  --ink: #1A1D24;
  --graphite: #4A4F58;
  --gold: #C9A961;
  --vermillion: #A24A3F;
  --hairline: rgba(26, 29, 36, 0.18);
}

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

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Editorial trim frame — magazine convention per § 7.6.7 */
.page-frame {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 24px;
  border: 1.5px solid var(--ink);
  min-height: calc(100vh - 32px);
  margin-top: 16px;
  margin-bottom: 16px;
}

@media (max-width: 720px) {
  .page-frame {
    border: none;
    margin: 0;
    padding: 20px 16px;
  }
}

/* Masthead */
.masthead {
  display: flex;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 40px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

/* Inline SVG black-sheep silhouette
   color: inherits from var(--ink) via SVG `fill="currentColor"` */
.brand-mark {
  width: 36px;
  height: auto;
  color: var(--ink);
  flex-shrink: 0;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.02em;
}

.brand-tag {
  font-size: 12px;
  color: var(--graphite);
  margin-top: 2px;
}

/* Landing page */
.landing {
  padding: 24px 0;
}

.hero {
  text-align: center;
  padding: 60px 0 80px;
  border-bottom: 1px solid var(--hairline);
}

.hero-title {
  font-family: "Noto Serif SC", serif;
  font-weight: 700;
  font-size: 56px;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 16px;
}

.hero-tagline {
  font-family: "Noto Serif SC", serif;
  font-weight: 500;
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 8px;
}

.hero-sub {
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 0.06em;
  margin-bottom: 32px;
}

.hero-manifesto {
  max-width: 580px;
  margin: 0 auto;
  color: var(--graphite);
  font-size: 15px;
  line-height: 1.8;
}

/* Section titles on landing */
.section-title {
  font-family: "Noto Serif SC", serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--ink);
  margin-bottom: 32px;
  padding-top: 60px;
  border-top: 1px solid var(--hairline);
  padding-top: 60px;
  margin-top: 60px;
}

.latest .section-title:first-child,
.latest > .section-title {
  margin-top: 0;
}

/* Essay cards on landing */
.essay-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.essay-card {
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.3);
  transition: border-color 0.2s ease;
}

.essay-card:hover {
  border-color: var(--ink);
}

.card-link {
  display: block;
  padding: 24px 28px;
  text-decoration: none;
  color: var(--ink);
}

.card-date {
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.card-title {
  font-family: "Noto Serif SC", serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.45;
  margin-bottom: 12px;
  color: var(--ink);
}

.card-excerpt {
  color: var(--graphite);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.card-readmore {
  font-size: 13px;
  color: var(--vermillion);
  letter-spacing: 0.04em;
}

@media (min-width: 720px) {
  .essay-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* About */
.about p {
  max-width: 640px;
  color: var(--graphite);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 12px;
}

/* Essay page */
.essay-page {
  padding: 40px 0;
}

.essay {
  max-width: 720px;
  margin: 0 auto;
}

.essay-meta {
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hairline);
}

.meta-date {
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.essay-title {
  font-family: "Noto Serif SC", serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.4;
  color: var(--ink);
}

.essay-body p {
  margin-bottom: 24px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
}

.essay-body p:has(strong) { /* future-friendly */ }

/* Section headings within essay */
.section-heading {
  font-family: "Noto Serif SC", serif;
  font-weight: 700;
  font-size: 22px;
  margin-top: 48px;
  margin-bottom: 24px;
  color: var(--ink);
}

/* Divider */
.section-divider {
  border: none;
  height: 1px;
  background: var(--ink);
  opacity: 0.5;
  margin: 48px 0;
  max-width: 200px;
  margin-left: auto;
  margin-right: auto;
}

/* Bullets */
.bullet {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  line-height: 1.75;
}

.bullet-mark {
  flex-shrink: 0;
  width: 20px;
  font-weight: 700;
}

.bullet-yes .bullet-mark { color: var(--vermillion); }
.bullet-no .bullet-mark { color: var(--graphite); }
.bullet-arrow .bullet-mark { color: var(--gold); }

.bullet-text {
  flex-grow: 1;
  color: var(--ink);
}

.hashtags {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.back-link {
  margin-top: 48px;
  text-align: center;
}

.back-link a {
  color: var(--graphite);
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px dotted var(--graphite);
  padding-bottom: 2px;
}

.back-link a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* Footer */
.site-footer {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--hairline);
  text-align: center;
}

.channel-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 32px;
}

.channel-link {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--hairline);
  text-decoration: none;
  color: var(--ink);
  font-size: 13px;
  transition: border-color 0.2s ease;
}

.channel-link:hover {
  border-color: var(--ink);
}

.channel-name {
  font-weight: 500;
}

.channel-desc {
  color: var(--graphite);
  margin-left: 8px;
  font-size: 12px;
}

.disclaimer {
  max-width: 560px;
  margin: 0 auto 24px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--graphite);
}

.seal {
  color: var(--vermillion);
  font-size: 13px;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.copyright {
  font-size: 11px;
  color: var(--graphite);
  letter-spacing: 0.08em;
}
