
html, body {
  height: auto;
  overflow: visible;
}

body {
  background: var(--bg2);
}

@media (min-width: 430px) {
  body {
    display: block;
    background: var(--bg2);
  }
}

.hex-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 20px 64px;
}

.hex-page h1 {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.35;
  margin: 18px 0 6px;
  color: var(--text);
}

.hex-page h2 {
  font-family: var(--serif);
  font-size: 19px;
  margin: 34px 0 10px;
  color: var(--text);
}

.hex-page h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
}

.hex-page p {
  margin: 0 0 12px;
  color: var(--text);
}

.hex-trigrams {
  color: var(--sub);
  font-size: 14px;
  margin-bottom: 22px !important;
}

.hex-card-img {
  display: block;
  width: 100%;
  max-width: 280px;
  margin: 0 auto 28px;
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .1);
}

.hex-affirmation {
  font-family: var(--serif);
  font-style: italic;
  color: var(--sub);
  border-left: 3px solid var(--gold);
  padding: 2px 0 2px 16px;
  margin: 22px 0;
}

.hex-section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 14px;
}

.hex-section h3 {
  color: var(--text);
}

.hex-section p {
  color: var(--sub);
}

.hex-section ul {
  margin: 10px 0 0 18px;
  padding: 0;
}

.hex-section li {
  margin-bottom: 6px;
  color: var(--sub);
}

.hex-cta {
  text-align: center;
  margin: 40px 0 28px;
}

.hex-cta .btn-primary {
  display: inline-flex;
  width: auto;
  min-height: 48px;
  padding: 0 28px;
  text-decoration: none;
}

.hex-related {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hex-related li {
  margin-bottom: 8px;
}

.hex-related a {
  color: var(--sub);
  text-decoration: none;
  border-bottom: 1px solid var(--line2);
  padding-bottom: 1px;
}

.hex-related a:hover {
  color: var(--text);
  border-color: var(--dim);
}

.credits-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.credit-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.credit-hex {
  font-weight: 700;
  color: var(--text);
  min-width: 90px;
}

.credit-art {
  color: var(--sub);
  flex: 1 1 200px;
}

.credit-link {
  color: var(--gold);
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
}

.credit-link:hover {
  text-decoration: underline;
}
