/* 
  Theme: Solitude, Zen, Minimalist
  Colors: Whites, Light Grays, Earth Tones (Muted Saffron)
*/

@import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@300;400;600&display=swap');

:root {
    --bg-color: #fbfbfb;
    --text-primary: #333333;
    --text-secondary: #777777;
    --accent-color: #d1bfae; /* Muted earth tone / monk robe inspiration */
    --font-main: 'Sarabun', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.8;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Typography */
h1, h2, h3 {
    font-weight: 300;
    letter-spacing: 1px;
    color: var(--text-primary);
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Layout */
.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Header */
header {
    padding: 2rem 0;
    text-align: center;
}

header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

header .subtitle {
    font-size: 1rem;
    color: var(--accent-color);
    letter-spacing: 2px;
}

/* Hero Image */
.hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 4px;
    margin: 3rem 0;
    opacity: 0.9;
    filter: grayscale(20%); /* Adds a bit of peaceful muting */
}

/* Content Area */
.content-section {
    text-align: center;
    margin: 2rem 0;
}

.quote {
    font-size: 1.4rem;
    font-style: italic;
    color: var(--text-primary);
    border-left: 2px solid var(--accent-color);
    padding-left: 2rem;
    margin: 4rem 0;
    text-align: left;
    font-weight: 300;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-top: 1px solid #eaeaea;
    margin-top: 4rem;
}

/* Navigation */
nav {
    margin-top: 1rem;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

nav a:hover, nav a.active {
    color: var(--text-primary);
    border-bottom: 1px solid var(--accent-color);
}

/* Dhamma Index List */
.dhamma-list {
    list-style: none;
    text-align: left;
    margin: 2rem auto;
    max-width: 600px;
}

.dhamma-list li {
    margin-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 0.5rem;
}

.dhamma-list a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    transition: color 0.3s;
}

.dhamma-list a:hover {
    color: var(--accent-color);
}

.sutta-ref {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}

/* Specific Dhamma Page */
.dhamma-content {
    margin-top: 2rem;
    text-align: center;
}

.dhamma-quote {
    font-size: 1.6rem;
    color: var(--text-primary);
    line-height: 2;
    margin: 3rem 0;
    font-weight: 400;
}

.dhamma-source {
    font-size: 1rem;
    color: var(--accent-color);
    margin-bottom: 3rem;
}

.back-link {
    display: inline-block;
    margin-top: 3rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    border: 1px solid #eaeaea;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s;
}

.back-link:hover {
    background-color: var(--bg-color);
    border-color: var(--accent-color);
}

/* Animations */
.fade-in {
    animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
