@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Raleway:wght@300;400;500;600&display=swap');

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

body {
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.8;
  color: #c8b894;
  background-color: #0d0d0d;
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* --- Headings --- */

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  color: #d4a856;
  letter-spacing: 0.03em;
}

h1 {
  font-size: 2.4rem;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #e8c96e;
  border-bottom: 1px solid #3a2f1a;
  padding-bottom: 0.8rem;
}

h2 {
  font-size: 1.5rem;
  margin-top: 3rem;
  margin-bottom: 0.8rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid #2a2115;
}

h3 {
  font-size: 1.15rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  color: #b89a5a;
}

/* --- Body text --- */

p {
  margin-bottom: 1rem;
}

strong {
  font-weight: 500;
  color: #dac07a;
}

em {
  color: #a89878;
}

/* --- Links --- */

a {
  color: #d4a856;
  text-decoration: none;
  border-bottom: 1px solid #3a2f1a;
  transition: color 0.2s, border-color 0.2s;
}

a:hover {
  color: #e8c96e;
  border-bottom-color: #d4a856;
}

/* --- Code --- */

code {
  font-family: 'Courier New', monospace;
  font-size: 0.88em;
  background: #1a1610;
  color: #c8a96e;
  padding: 0.15em 0.4em;
  border-radius: 2px;
  border: 1px solid #2a2115;
}

pre {
  background: #12100c;
  border: 1px solid #2a2115;
  border-left: 3px solid #4a3a1e;
  padding: 1.2rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: 2px;
}

pre code {
  background: none;
  border: none;
  padding: 0;
  color: #b8a878;
}

/* --- Blockquotes --- */

blockquote {
  border-left: 3px solid #4a3a1e;
  padding: 0.8rem 1rem;
  margin: 1.5rem 0;
  color: #a89868;
  background: #13110d;
}

blockquote p:last-child {
  margin-bottom: 0;
}

/* --- Lists --- */

ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.4rem;
}

li::marker {
  color: #6a5a3a;
}

/* --- Tables --- */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.92em;
}

th {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1rem;
  color: #d4a856;
  text-align: left;
  padding: 0.6rem 0.8rem;
  border-bottom: 2px solid #3a2f1a;
}

td {
  padding: 0.5rem 0.8rem;
  border-bottom: 1px solid #1e1a14;
}

tr:hover td {
  background: #13110d;
}

/* --- Horizontal rules --- */

hr {
  border: none;
  border-top: 1px solid #2a2115;
  margin: 2.5rem 0;
}

/* --- Back link --- */

.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 0.85rem;
  color: #8a7a5a;
  border-bottom: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 400;
}

.back-link:hover {
  color: #d4a856;
}

/* --- Guide description --- */

.guide-description {
  font-size: 1.05rem;
  color: #8a7a5a;
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  margin-bottom: 2rem;
}

/* --- Guide index --- */

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

.guide-list li {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #1e1a14;
}

.guide-list li:last-child {
  border-bottom: none;
}

.guide-list a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
  display: block;
  margin-bottom: 0.3rem;
}

.guide-list .guide-desc {
  color: #8a7a5a;
  font-size: 0.92rem;
}

/* --- Erdtree decorative divider --- */

.erdtree-divider {
  text-align: center;
  margin: 2rem 0;
  color: #3a2f1a;
  font-size: 1.2rem;
  letter-spacing: 0.5em;
}
