:root {
    --primary: #8b4513;
    --secondary: #2c5f7d;
    --text: #1a1a1a;
    --text-light: #666;
    --bg: #ffffff;
    --bg-alt: #f8f6f3;
    --border: #e0ddd8;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

.main-nav {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Crimson Text', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--primary); }

.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 6rem 2rem;
    text-align: center;
}

.hero h1 {
    font-family: 'Crimson Text', serif;
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 2rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.tagline {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-primary, .btn-secondary {
    padding: 0.75rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.2s;
}

.btn-primary {
    background: white;
    color: var(--primary);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-primary:hover, .btn-secondary:hover { transform: translateY(-2px); }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 4rem 0;
}

.intro {
    background: var(--bg-alt);
}

.intro h2 {
    font-family: 'Crimson Text', serif;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.intro p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.feature-grid, .location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card, .location-card {
    background: var(--bg);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover, .location-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.feature-card h3, .location-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.feature-card p, .location-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.feature-card a {
    color: var(--secondary);
    text-decoration: none;
}

.highlights h2 {
    font-family: 'Crimson Text', serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.main-footer {
    background: var(--text);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.main-footer a {
    color: white;
    opacity: 0.8;
}

.wiki-content {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.wiki-content h1 {
    font-family: 'Crimson Text', serif;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.wiki-content h2 {
    font-family: 'Crimson Text', serif;
    font-size: 1.75rem;
    color: var(--primary);
    margin: 2rem 0 1rem;
}

.wiki-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.wiki-content a {
    color: var(--secondary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.wiki-content a:hover {
    border-bottom-color: var(--secondary);
}

.infobox {
    float: right;
    width: 300px;
    margin: 0 0 1rem 1rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    padding: 1rem;
}

.infobox h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.infobox table {
    width: 100%;
    margin-top: 1rem;
}

.infobox td {
    padding: 0.25rem 0;
    font-size: 0.9rem;
}

.infobox td:first-child {
    font-weight: 500;
    color: var(--text-light);
}

/* ===== Content Pages (Blog, Guides, About, FAQ, etc.) ===== */

.content-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
}

.content-page h1 {
    font-family: 'Crimson Text', serif;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.content-page h2 {
    font-family: 'Crimson Text', serif;
    font-size: 1.75rem;
    color: var(--primary);
    margin: 2.5rem 0 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
}

.content-page h3 {
    font-size: 1.25rem;
    color: var(--text);
    margin: 1.5rem 0 0.75rem;
}

.content-page p {
    margin-bottom: 1rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

.content-page a {
    color: var(--secondary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.content-page a:hover {
    border-bottom-color: var(--secondary);
}

.content-page ul, .content-page ol {
    margin: 0.5rem 0 1.5rem 1.5rem;
    line-height: 1.8;
}

.content-page li {
    margin-bottom: 0.4rem;
}

.content-page blockquote {
    border-left: 4px solid var(--primary);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--bg-alt);
    font-style: italic;
    color: var(--text-light);
}

/* Lead paragraph */
.lead {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* Article metadata */
.meta {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

/* Breadcrumb */
.breadcrumb {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: var(--secondary);
    text-decoration: none;
}

/* ===== Blog Grid ===== */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    margin: 2rem 0 3rem;
}

.blog-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.75rem;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.blog-card h2 {
    font-family: 'Crimson Text', serif;
    font-size: 1.3rem;
    margin: 0 0 0.5rem;
    line-height: 1.3;
    border: none;
    padding: 0;
}

.blog-card h2 a {
    color: var(--text);
    text-decoration: none;
    border: none;
    transition: color 0.2s;
}

.blog-card h2 a:hover {
    color: var(--primary);
}

.blog-card .meta {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    padding-bottom: 0;
    border-bottom: none;
}

.blog-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
}

.blog-card > a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    margin-top: 0.75rem;
    border: none;
}

.blog-card > a:hover {
    color: var(--primary);
}

/* ===== Article Content ===== */

.article-content {
    max-width: 750px;
    margin: 0 auto;
}

.article-content h1 {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}

.article-content h2:first-of-type {
    border-top: none;
}

/* ===== Timeline ===== */

.timeline {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.timeline-entry {
    border-left: 3px solid var(--primary);
    padding: 1rem 0 1.5rem 1.5rem;
    margin-bottom: 0;
    position: relative;
}

.timeline-entry::before {
    content: '';
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    position: absolute;
    left: -7.5px;
    top: 1.25rem;
}

.timeline-entry:last-child {
    border-left-color: transparent;
}

.timeline-entry h3 {
    font-family: 'Crimson Text', serif;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.timeline-entry h3 a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
}

.timeline-entry h3 a:hover {
    color: var(--primary);
}

.timeline-entry p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 700px;
}

/* ===== Related Links ===== */

.related-links {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border);
}

.related-links h3 {
    font-family: 'Crimson Text', serif;
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

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

.related-links li {
    margin-bottom: 0.5rem;
}

.related-links a {
    color: var(--secondary);
    text-decoration: none;
    padding: 0.3rem 0;
    display: inline-block;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.related-links a:hover {
    border-bottom-color: var(--secondary);
}

/* ===== Tables ===== */

.character-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.character-table th {
    background: var(--primary);
    color: white;
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 500;
    position: sticky;
    top: 60px;
}

.character-table td {
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--border);
}

.character-table tr:hover {
    background: var(--bg-alt);
}

.character-table a {
    color: var(--secondary);
    text-decoration: none;
}

.character-table a:hover {
    text-decoration: underline;
}

/* ===== Responsive ===== */

@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .subtitle { font-size: 1.5rem; }
    .hero-actions { flex-direction: column; }
    .infobox { float: none; width: 100%; margin: 1rem 0; }
    .nav-links { gap: 0.75rem; font-size: 0.85rem; flex-wrap: wrap; }
    .content-page { padding: 2rem 1rem 3rem; }
    .content-page h1 { font-size: 1.75rem; }
    .content-page h2 { font-size: 1.4rem; }
    .blog-grid { grid-template-columns: 1fr; }
    .article-content { max-width: 100%; }
    .timeline { padding: 0 1rem; }
}
