/* Reference pages (tarot, hexagrams, sticks): plain HTML in the look of the app. */
:root {
  --text: #22201c;
  --muted: #6b6760;
  --accent: #6a4fa3;
  --accent-soft: #f1edf8;
  --gold: #a67c2e;
  --border: #e6e4df;
  --night: #2d2049;
  color-scheme: light;
  font-family: system-ui, -apple-system, 'Segoe UI', 'Microsoft JhengHei', 'PingFang TC', 'Noto Sans TC', sans-serif;
  line-height: 1.75;
  color: var(--text);
  background: #fff;
}

body {
  margin: 0;
  overflow-wrap: anywhere;
}

a {
  color: var(--accent);
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  max-width: 880px;
  margin: 0 auto;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.site-header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
}

.site-header .brand img {
  border-radius: 50%;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 0.95rem;
}

.content {
  max-width: 880px;
  margin: 0 auto;
  padding: 8px 16px 32px;
}

.crumbs {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 12px 0;
}

h1 {
  font-size: 1.7rem;
  line-height: 1.35;
  margin: 8px 0;
}

h1 small {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
}

h2 {
  font-size: 1.2rem;
  margin: 28px 0 8px;
}

h3 {
  font-size: 1rem;
  margin: 16px 0 4px;
}

.meta,
.note {
  color: var(--muted);
  font-size: 0.9rem;
}

.card-face {
  margin: 16px 0;
}

.card-face img {
  height: 300px;
  width: auto;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(45, 32, 73, 0.25);
}

.hexagram {
  display: block;
  margin: 16px 0;
  padding: 18px 22px;
  background: var(--night);
  border-radius: 10px;
  fill: #f3e7c8;
}

.trigrams {
  padding-left: 1.2em;
}

.tags span {
  display: inline-block;
  margin: 0 6px 6px 0;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.85rem;
}

blockquote {
  margin: 8px 0;
  padding: 10px 16px;
  border-left: 3px solid var(--gold);
  background: #faf6ee;
  font-size: 1.05rem;
}

blockquote.verse {
  font-family: 'Noto Serif TC', 'Songti TC', 'PMingLiU', serif;
  font-size: 1.2rem;
  line-height: 2;
}

.original {
  color: var(--muted);
  font-size: 0.95rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 4px 16px;
  padding-left: 1.2em;
}

.grid.plain {
  list-style: none;
  padding-left: 0;
}

.contact-email {
  font-size: 1.2rem;
  font-weight: 700;
}

.cta {
  margin: 32px 0 16px;
  padding: 18px;
  border-radius: 12px;
  background: var(--accent-soft);
  text-align: center;
}

.cta p {
  margin: 0 0 12px;
}

.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.prev-next {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 16px 0;
  font-size: 0.9rem;
}

.site-footer {
  max-width: 880px;
  margin: 0 auto;
  padding: 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 640px) {
  .card-face img {
    height: 240px;
  }

  .prev-next {
    flex-direction: column;
  }
}
