:root {
  --bg: #f6f1e7;
  --surface: #fffdf8;
  --surface-2: #f2e9d9;
  --surface-3: #fbf7ee;
  --ink: #241c17;
  --ink-soft: #4a3d33;
  --muted: #6f6055;
  --line: #e3d7c2;
  --line-soft: #efe6d4;
  --gold: #8a6a24;
  --gold-soft: #b08a35;
  --gold-bright: #c9a24a;
  --gold-wash: #f7efdd;
  --crimson: #8d1f24;
  --crimson-deep: #3b1114;
  --crimson-wash: #fbf0ec;
  --radius: 3px;
  --radius-sm: 2px;
  --shell: 1200px;
  --font-body: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  --font-display: "Songti SC", "Source Han Serif SC", "Noto Serif CJK SC", "SimSun", "STSong", serif;
  --shadow: 0 1px 2px rgba(90, 64, 32, 0.06);
  --rule-line: #efd6cf;
  --gold-a22: rgba(176, 138, 53, 0.22);
  --gold-a28: rgba(176, 138, 53, 0.28);
  --gold-a40: rgba(176, 138, 53, 0.4);
  --gold-a28b: rgba(201, 162, 74, 0.28);
  --crimson-btn: #74181c;
  --shade-1: rgba(90, 64, 32, 0.05);
  --shade-2: rgba(90, 64, 32, 0.1);
  --hero-1: #fbf4e6;
  --hero-2: #f7eddb;
  --hero-3: #f4e7d1;
  --hero-veil: rgba(255, 253, 248, 0.55);
  --card-veil: rgba(255, 253, 248, 0.8);
  --badge-veil: rgba(255, 253, 248, 0.82);
  --tile-1: #f6ecd8;
  --tile-2: #f1e3c8;
  --tile-3: #efe0c2;
  --tile-edge: #e9dcc0;
  --card-word-ink: #6d2b22;
  --ctag-ink: #71531a;
  --lead-ink: #4b382f;
  --foot-bg: #2b0f12;
  --foot-text: #e8d8b8;
  --foot-soft: #c8b696;
  --foot-link: #d9c6a4;
  --foot-link-hover: #fff2d8;
  --foot-meta: #b9a684;
  --cta-fill: #6b1519;
  --cta-edge: #efdcc4;
  --cta-elevation: 0 3px 10px rgba(59, 17, 20, 0.16);
  --cta-rail: #f8eeda;
  --cta-sheen: #fdf7ec;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

h1 {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.42;
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.01em;
}

h2 {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.5;
  margin: 0;
  font-weight: 700;
}

h3 {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.55;
  margin: 0;
  font-weight: 700;
}

p {
  margin: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--ink-soft);
  text-decoration: none;
}

a:hover {
  color: var(--crimson);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--crimson);
  outline-offset: 2px;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.shell {
  width: var(--shell);
  max-width: calc(100% - 32px);
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- utility strip ---------- */

.utility {
  background: var(--crimson-deep);
  color: var(--gold-bright);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.utility-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
}

.utility-right {
  display: flex;
  gap: 14px;
}

/* ---------- masthead ---------- */

.masthead {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.masthead-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.seal {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold);
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.wordmark-latin {
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.32em;
  color: var(--gold-soft);
  font-weight: 400;
  margin-top: 2px;
}

.masthead-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.qsearch {
  display: flex;
  width: 300px;
  max-width: 100%;
  border: 1px solid var(--line);
  background: var(--surface-3);
  border-radius: var(--radius);
  overflow: hidden;
}

.qsearch input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 8px 12px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
}

.qsearch button {
  border: 0;
  background: var(--crimson);
  color: var(--surface);
  font: inherit;
  font-size: 14px;
  padding: 0 16px;
  cursor: pointer;
}

.qsearch button:hover {
  background: var(--crimson-btn);
}

.qsearch-wide {
  width: 100%;
  max-width: 460px;
}

.ghost-link {
  font-size: 13px;
  color: var(--gold);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  background: var(--surface);
}

.ghost-link:hover {
  border-color: var(--gold-bright);
  color: var(--crimson);
}

/* ---------- city pill bar ---------- */

.citybar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 6px var(--shade-1);
}

.citybar-in {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 10px 0;
}

.citybar-in::-webkit-scrollbar {
  display: none;
}

.pill-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: max-content;
}

.pill-row a {
  display: block;
  padding: 5px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--surface-3);
  white-space: nowrap;
}

.pill-row a:hover {
  border-color: var(--gold-bright);
  color: var(--crimson);
  text-decoration: none;
}

.pill-row a[aria-current="page"] {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--surface);
}

/* ---------- page frame ---------- */

.main {
  padding: 18px 0 30px;
}

.crumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.crumb .sep {
  margin: 0 6px;
  color: var(--gold-soft);
}

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 0;
  background: linear-gradient(120deg, var(--hero-1) 0%, var(--hero-2) 55%, var(--hero-3) 100%);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-left {
  padding: 38px 34px 34px;
  border-right: 1px solid var(--gold-a22);
}

.hero-kicker {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 14px;
}

.hero-left h1 {
  font-size: 36px;
  color: var(--crimson-deep);
  margin-bottom: 16px;
}

.hero-line {
  font-size: 17px;
  line-height: 1.95;
  color: var(--ink-soft);
  max-width: 34em;
}

.hero-note {
  margin-top: 18px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.hero-right {
  padding: 26px 24px 24px;
  background: var(--hero-veil);
}

.hero-right-title {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.city-wall {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.city-wall-item {
  display: block;
  border: 1px solid var(--gold-a28);
  background: var(--card-veil);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}

.city-wall-item b {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--crimson-deep);
  font-weight: 700;
}

.city-wall-item span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.city-wall-item:hover {
  border-color: var(--gold-bright);
  text-decoration: none;
}

/* ---------- notice ---------- */

.notice {
  margin-top: 16px;
  background: var(--crimson-wash);
  border: 1px solid var(--rule-line);
  border-radius: var(--radius);
  padding: 14px 18px;
}

.notice h2 {
  font-size: 16px;
  color: var(--crimson);
  margin-bottom: 8px;
}

.notice ul {
  display: grid;
  gap: 4px;
}

.notice li {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
  padding-left: 16px;
  position: relative;
}

.notice li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.75em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--crimson);
}

/* ---------- sections ---------- */

.sec {
  margin-top: 24px;
}

.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 8px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.sec-head h2 {
  font-size: 22px;
  color: var(--ink);
}

.sec-head span,
.sec-more {
  font-size: 13px;
  color: var(--muted);
}

.sec-more:hover {
  color: var(--crimson);
}

/* ---------- column cards ---------- */

.col-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.col-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
}

.col-card h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.col-card h3 a {
  color: var(--ink);
}

.col-card p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.col-count {
  margin-top: 8px;
  font-size: 12px;
  color: var(--gold) !important;
  letter-spacing: 0.06em;
}

/* ---------- split with rail ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 20px;
  align-items: start;
  margin-top: 6px;
}

.rail {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.widget {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px 16px;
  box-shadow: var(--shadow);
}

.widget h2 {
  font-size: 16px;
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--crimson-deep);
}

.widget p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
}

.widget-tint {
  background: var(--gold-wash);
  border-color: var(--tile-edge);
}

.widget-tint a {
  color: var(--gold);
  font-size: 14px;
}

.rank {
  display: grid;
  gap: 9px;
}

.rank li {
  display: flex;
  gap: 9px;
  align-items: baseline;
  font-size: 14px;
  line-height: 1.65;
}

.rk {
  flex: none;
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--gold);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 5px;
  line-height: 1.7;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-cloud a {
  font-size: 13px;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-3);
  color: var(--ink-soft);
}

.tag-cloud a span {
  margin-left: 5px;
  font-size: 11px;
  color: var(--gold);
}

.tag-cloud a:hover {
  border-color: var(--gold-bright);
  color: var(--crimson);
  text-decoration: none;
}

/* ---------- chips ---------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}

.chip {
  font: inherit;
  font-size: 13px;
  line-height: 1.7;
  padding: 3px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
}

.chip:hover {
  border-color: var(--gold-bright);
}

.chip.is-on {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--surface);
}

/* ---------- cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.card:hover {
  border-color: var(--gold-bright);
  box-shadow: 0 3px 10px var(--shade-2);
}

.card-art {
  position: relative;
  display: block;
  min-height: 128px;
  background: linear-gradient(150deg, var(--tile-1) 0%, var(--tile-2) 60%, var(--tile-3) 100%);
  border-bottom: 1px solid var(--line-soft);
  padding: 12px;
}

.card-num {
  position: absolute;
  top: 10px;
  left: 12px;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--gold);
}

.card-city {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 12px;
  line-height: 1.6;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--badge-veil);
  border: 1px solid var(--gold-a40);
  color: var(--crimson);
}

.card-word {
  position: absolute;
  left: 12px;
  bottom: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--card-word-ink);
}

.card-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.card-body h3 {
  font-size: 15px;
  line-height: 1.6;
}

.card-body h3 a {
  color: var(--ink);
}

.card-lead {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.card-meta {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tag {
  font-size: 11px;
  line-height: 1.6;
  padding: 1px 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-3);
  color: var(--muted);
}

a.tag:hover {
  border-color: var(--gold-bright);
  color: var(--crimson);
  text-decoration: none;
}

/* ---------- thread rows ---------- */

.trow-list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.trow {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
}

.trow:last-child {
  border-bottom: 0;
}

.trow:hover {
  background: var(--surface-3);
}

.trow-idx {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--gold);
  letter-spacing: 0.06em;
  padding-top: 2px;
}

.trow-body {
  min-width: 0;
}

.trow-body h2 {
  font-size: 17px;
  line-height: 1.55;
  margin-bottom: 3px;
}

.trow-body h2 a {
  color: var(--ink);
}

.trow-lead {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 6px;
}

.trow-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.trow-col {
  font-size: 12px;
  color: var(--crimson);
  border: 1px solid var(--rule-line);
  background: var(--crimson-wash);
  border-radius: var(--radius-sm);
  padding: 0 7px;
  line-height: 1.8;
}

.empty-note {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}

.about-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: grid;
  gap: 10px;
  box-shadow: var(--shadow);
}

.about-box p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink-soft);
}

/* ---------- column page (left rail) ---------- */

.cols-left {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.leftrail {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.rail-links {
  display: grid;
  gap: 5px;
  font-size: 14px;
  line-height: 1.7;
}

.rail-links a {
  color: var(--ink-soft);
}

.rail-links a[aria-current="page"] {
  color: var(--crimson);
  font-weight: 600;
}

.rail-city-list {
  display: grid;
  gap: 2px;
}

.rail-city {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font: inherit;
  font-size: 14px;
  line-height: 1.7;
  padding: 4px 0;
  background: none;
  border: 0;
  color: var(--ink-soft);
  cursor: pointer;
  text-align: left;
}

.rail-city b {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 12px;
  color: var(--gold);
}

.rail-city:hover,
.rail-city.is-on {
  color: var(--crimson);
}

.col-main {
  min-width: 0;
}

.board-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.board-head h1 {
  font-size: 27px;
  color: var(--crimson-deep);
}

.kicker {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 8px;
}

.board-count {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.intro-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 16px 20px;
  display: grid;
  gap: 9px;
  margin-bottom: 14px;
}

.intro-box p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink);
}

/* ---------- city page ---------- */

.city-blocks {
  display: grid;
  gap: 14px;
}

.city-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow);
}

.city-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}

.city-head h2 {
  font-size: 20px;
  color: var(--crimson-deep);
}

.city-head span {
  font-size: 12px;
  color: var(--muted);
}

.city-links {
  display: grid;
  gap: 5px;
}

.city-links li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
  line-height: 1.75;
}

.city-links span {
  flex: none;
  font-size: 12px;
  color: var(--gold);
}

/* ---------- article ---------- */

.post-wrap {
  max-width: 780px;
  margin: 0 auto;
}

.post {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 28px 32px 30px;
  box-shadow: var(--shadow);
}

.post h1 {
  font-size: 29px;
  line-height: 1.45;
  color: var(--crimson-deep);
  margin-bottom: 12px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.post-col {
  font-size: 12px;
  color: var(--crimson);
  border: 1px solid var(--rule-line);
  background: var(--crimson-wash);
  border-radius: var(--radius-sm);
  padding: 0 8px;
  line-height: 1.8;
}

.post-city,
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.ctag {
  font-size: 11px;
  line-height: 1.7;
  padding: 0 7px;
  border: 1px solid var(--gold-a40);
  border-radius: var(--radius-sm);
  color: var(--ctag-ink);
  background: var(--gold-wash);
}

.post-lead {
  font-size: 17px;
  line-height: 1.9;
  color: var(--lead-ink);
  background: var(--gold-wash);
  border-left: 0;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 18px;
}

.post-body {
  display: grid;
  gap: 14px;
}

.post-body p {
  font-size: 16px;
  line-height: 1.95;
  color: var(--ink);
}

.rule-box {
  margin-top: 22px;
  background: var(--crimson-wash);
  border: 1px solid var(--rule-line);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.rule-box h2 {
  font-size: 15px;
  color: var(--crimson);
  margin-bottom: 6px;
}

.rule-box ul {
  display: grid;
  gap: 3px;
}

.rule-box li {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink);
}

.rel {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.rel h2 {
  font-size: 17px;
  margin-bottom: 10px;
}

.rel ul {
  display: grid;
  gap: 7px;
}

.rel li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
  line-height: 1.7;
}

.rel li span {
  flex: none;
  font-size: 12px;
  color: var(--gold);
}

/* ---------- plain / search ---------- */

.plain {
  max-width: 780px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
  display: grid;
  gap: 12px;
  box-shadow: var(--shadow);
}

.plain h1 {
  font-size: 26px;
  color: var(--crimson-deep);
}

.plain p {
  font-size: 16px;
  line-height: 1.9;
}

.search-status {
  font-size: 14px;
  color: var(--muted);
}

.search-results {
  display: grid;
}

.search-results li {
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}

.search-results li:last-child {
  border-bottom: 0;
}

.search-results a {
  font-size: 16px;
  color: var(--ink);
}

.search-results span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- footer ---------- */

.site-foot {
  margin-top: 30px;
  background: var(--foot-bg);
  color: var(--foot-text);
  border-top: 3px solid var(--gold);
}

.foot-in {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr));
  gap: 22px;
  padding: 28px 0 22px;
}

.foot-brand a {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  color: var(--gold-bright);
}

.foot-brand p {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.85;
  color: var(--foot-soft);
  max-width: 30em;
}

.foot-col h2 {
  font-size: 14px;
  color: var(--gold-bright);
  margin-bottom: 8px;
}

.foot-col ul {
  display: grid;
  gap: 4px;
  font-size: 13px;
}

.foot-col a {
  color: var(--foot-link);
}

.foot-col a:hover {
  color: var(--foot-link-hover);
}

.foot-base {
  border-top: 1px solid var(--gold-a28b);
  padding: 12px 0 72px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--foot-meta);
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-left h1 {
    font-size: 31px;
  }

  .foot-in {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .cols-left {
    grid-template-columns: minmax(0, 1fr);
  }

  .leftrail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-left {
    border-right: 0;
    border-bottom: 1px solid var(--gold-a22);
    padding: 28px 24px 24px;
  }

  .col-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .shell {
    max-width: calc(100% - 20px);
  }

  .utility-in {
    min-height: 34px;
    font-size: 11px;
  }

  .masthead-in {
    gap: 10px;
    padding: 10px 0;
  }

  .seal {
    width: 40px;
    height: 40px;
  }

  .wordmark {
    font-size: 22px;
  }

  .qsearch {
    width: 100%;
  }

  .hero-left {
    padding: 22px 18px 20px;
  }

  .hero-left h1 {
    font-size: 24px;
  }

  .hero-line {
    font-size: 15px;
  }

  .hero-right {
    padding: 18px;
  }

  .city-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .card-art {
    min-height: 104px;
  }

  .card-word {
    font-size: 16px;
  }

  .leftrail {
    grid-template-columns: minmax(0, 1fr);
  }

  .rail {
    grid-template-columns: minmax(0, 1fr);
  }

  .post {
    padding: 20px 16px 24px;
  }

  .post h1 {
    font-size: 23px;
  }

  .board-head {
    padding: 14px 16px;
  }

  .board-head h1 {
    font-size: 22px;
  }

  .intro-box {
    padding: 14px 16px;
  }

  .plain {
    padding: 18px 16px;
  }

  .foot-in {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .trow {
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 12px 14px;
  }

  .rel li,
  .city-links li {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
}
