/* Pit Forest — Issue 15, August 2026
   Shared base styles. Each article page may override locally. */

:root {
  /* Sampled from Issue 15's blue-water and camellia cover. */
  --bg:        #dbeaff;
  --paper:     #f8fbff;
  --ink:       #102a43;
  --ink-soft:  #244a73;
  --ink-body:  #173554;
  --muted:     #55719a;
  --rule:      #b7d0ef;
  --accent:    #b42318;
  --water:     #2f6fc4;
  --leaf:      #3d6440;
  --contents-bg:          #ff765d;
  --contents-ink:         #ffffff;
  --contents-border:      #ffd0c5;
  --contents-hover-bg:    #ff9a84;
  --contents-hover-ink:   #ffffff;
  --contents-focus:       #fffaf2;
  --contents-shadow:      rgba(16, 42, 67, 0.38);
  --back-bg:              rgba(16, 42, 67, 0.42);
  --back-ink:             #fffaf2;
  --back-border:          rgba(255, 250, 242, 0.58);
  --back-hover-bg:        rgba(16, 42, 67, 0.66);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, #eaf3ff 0, var(--bg) 32rem);
  color: var(--ink);
  font-family: 'Futura', 'Futura PT', 'Trebuchet MS',
               'PingFang SC', 'Hiragino Sans GB',
               'Microsoft YaHei', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

/* ---------- page frame ---------- */

.page {
  max-width: 760px;
  margin: 0 auto;
  background: var(--paper);
  min-height: 100vh;
  padding: 72px 72px 140px;
  position: relative;
  border-top: 4px solid var(--water);
  box-shadow: 0 0 42px rgba(47, 111, 196, 0.10);
}

@media (max-width: 760px) {
  .page { padding: 44px 26px 96px; }
}

/* ---------- top nav ---------- */

.nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 64px;
}
.nav a { color: var(--muted); text-decoration: none; transition: color .15s; }
.nav a:hover { color: var(--accent); }
.nav .brand { letter-spacing: 0.22em; font-weight: 600; }

/* ---------- masthead block ---------- */

.kicker {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}

.byline {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.title {
  font-family: 'Futura', 'Futura PT', 'Trebuchet MS',
               '方正兰亭粗黑_GBK', 'PingFang SC', sans-serif;
  font-weight: 800;
  font-size: 42px;
  line-height: 1.08;
  letter-spacing: -0.005em;
  margin: 0 0 40px;
  color: var(--ink);
}
.title.zh { font-weight: 700; letter-spacing: 0.02em; }
.title .sub {
  display: block; font-size: 18px; font-weight: 500;
  color: var(--ink-soft); margin-top: 10px; letter-spacing: 0;
}

.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0 0 36px;
}

/* ---------- body text ---------- */

p { line-height: 1.9; margin: 0 0 1.05em; color: var(--ink-body); }

.body { font-size: 16px; }

.body-zh p {
  font-family: 'PingFang SC', 'Hiragino Sans GB',
               'Source Han Sans SC', 'Microsoft YaHei', sans-serif;
  line-height: 2.0;
  font-size: 15.5px;
  letter-spacing: 0.01em;
  text-align: justify;
}

.body-en p {
  font-family: 'Iowan Old Style', 'Palatino', 'Georgia', serif;
  line-height: 1.75;
  font-size: 16px;
}

.body h2 {
  font-family: inherit;
  font-weight: 700;
  font-size: 20px;
  margin: 2em 0 0.6em;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.body em, .body i { font-style: italic; color: var(--ink-soft); }
.body strong, .body b { font-weight: 700; color: var(--ink); }

/* ---------- end marks ---------- */

.fin {
  margin-top: 56px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.18em;
}
.fin::after {
  content: '■';
  display: inline-block;
  margin-left: 10px;
  color: var(--accent);
}

/* ---------- footer ---------- */

footer.colophon {
  position: absolute;
  bottom: 36px; left: 72px; right: 72px;
  display: flex; justify-content: space-between;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 760px) {
  footer.colophon { left: 26px; right: 26px; bottom: 28px; }
}
