@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Playfair+Display:wght@500;700&display=swap");

:root {
    --sand: #f5f1ea;
    --ink: #141311;
    --glow: #f9f5ef;
    --forest: #2d4a3a;
    --sky: #a5b8b0;
    --accent: #b87b3a;
    --shadow: rgba(14, 13, 10, 0.12);
}

body {
    font-family: "DM Sans", sans-serif;
    background: radial-gradient(circle at top left, #f7f1e7 0%, #efe7da 45%, #e6dccb 100%);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
}

.container {
    width: min(1100px, calc(100% - 2rem));
    margin: 0 auto;
}

h1, h2, h3 {
    font-family: "Playfair Display", serif;
    color: #171512;
}

h1 {
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    margin: 0 0 1rem;
}

h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.5rem, 2.2vw, 2rem);
}

#quote-display {
    font-size: clamp(1.6rem, 2.6vw, 2.3rem);
    font-weight: 600;
    margin: 2rem 0 1.5rem;
    padding: 1.5rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #fefaf3 0%, #f0e8dc 100%);
    box-shadow: 0 18px 30px var(--shadow);
    min-height: 50px;
    position: relative;
    overflow: hidden;
}

#quote-display::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(184, 123, 58, 0.15), transparent 60%);
    pointer-events: none;
}

.quote-meta {
    margin-top: -1rem;
    margin-bottom: 1.5rem;
    color: #3e3e3e;
    display: grid;
    gap: 1rem;
}

.quote-meta p {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.quote-meta-item {
    background: #fbf7f0;
    border-radius: 14px;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(91, 91, 87, 0.08);
}

.meta-title {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.12rem;
    font-size: 0.7rem;
    color: #6a5d4b;
    margin-bottom: 0.35rem;
}

button,
.btn {
    background-color: var(--forest);
    color: var(--glow);
    border: none;
    padding: 0.85rem 1.8rem;
    font-size: 1rem;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

button:hover,
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 24px rgba(45, 74, 58, 0.24);
}

.philosopher {
    font-size: 1.2rem;
    font-style: italic;
    margin-top: 1rem;
    color: #555;
}

.quote-form {
    margin-top: 2rem;
    text-align: left;
}

.quote-form label {
    display: block;
    font-weight: bold;
    margin: 0.75rem 0 0.5rem;
    color: #444;
}

.quote-form input,
.quote-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
}

.quote-form button {
    margin-top: 1rem;
    width: 100%;
}

.form-status {
    margin: 0.75rem 0 0;
    color: #1a7f37;
    font-weight: bold;
    min-height: 1.25rem;
}

#disqus_thread {
    margin-top: 2rem;
    width: 100%;
}

.site-header {
    width: 100%;
}

.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: stretch;
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 600'%3E%3Cdefs%3E%3ClinearGradient id='sky' x1='0' x2='0' y1='0' y2='1'%3E%3Cstop offset='0%25' stop-color='%23cdd7d5'/%3E%3Cstop offset='100%25' stop-color='%23f5efe7'/%3E%3C/linearGradient%3E%3ClinearGradient id='mount' x1='0' x2='1'%3E%3Cstop offset='0%25' stop-color='%23596a63'/%3E%3Cstop offset='100%25' stop-color='%2389998f'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='1200' height='600' fill='url(%23sky)'/%3E%3Cpath d='M0 430 L250 260 L520 430 L820 210 L1200 430 L1200 600 L0 600 Z' fill='url(%23mount)'/%3E%3Cpath d='M0 480 L220 330 L500 480 L720 300 L1000 470 L1200 380 L1200 600 L0 600 Z' fill='%23506159' opacity='0.8'/%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
    filter: saturate(1.1);
    transform: scale(1.02);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(10, 12, 11, 0.58), rgba(10, 12, 11, 0.2) 55%, rgba(10, 12, 11, 0.5));
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 4.5rem 0 3rem;
}

.hero-content .container {
    background: rgba(249, 245, 239, 0.88);
    border-radius: 26px;
    padding: 3rem;
    box-shadow: 0 26px 48px rgba(11, 10, 9, 0.3);
    backdrop-filter: blur(8px);
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.lang-select {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #2d3f36;
    font-weight: 600;
}

.lang-select select {
    border-radius: 999px;
    border: 1px solid rgba(45, 74, 58, 0.35);
    padding: 0.35rem 0.85rem;
    background: #fff;
    font-size: 0.85rem;
}

.site-badge {
    text-transform: uppercase;
    letter-spacing: 0.25rem;
    font-size: 0.75rem;
    color: var(--forest);
    margin: 0 0 0.5rem;
}

.subtitle {
    margin: 0 0 1.5rem;
    color: #2c2b2a;
    font-size: 1.1rem;
    line-height: 1.6;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.site-nav a {
    color: #173a2f;
    text-decoration: none;
    font-weight: 600;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid transparent;
}

.site-nav a:hover {
    border-bottom-color: #173a2f;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.last-updated {
    margin: 0 0 1.5rem;
    font-size: 0.9rem;
    color: #4b4a45;
}

.btn.primary {
    background: #2d4a3a;
}

.btn.ghost {
    background: transparent;
    color: #2d4a3a;
    border: 1px solid rgba(45, 74, 58, 0.4);
    box-shadow: none;
}

.hero-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 1.25rem;
}

.meta-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    color: #5c5d56;
    margin: 0 0 0.35rem;
}

.meta-value {
    margin: 0;
    font-weight: 600;
}

.page {
    padding: 2rem 0 4rem;
}

.panel {
    margin: 2rem 0;
    padding: 2.2rem;
    background: #fffdf9;
    border-radius: 20px;
    box-shadow: 0 20px 36px var(--shadow);
    animation: rise 0.7s ease both;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }
.delay-7 { animation-delay: 0.7s; }
.delay-8 { animation-delay: 0.8s; }
.delay-9 { animation-delay: 0.9s; }
.delay-10 { animation-delay: 1.0s; }
.delay-11 { animation-delay: 1.1s; }
.delay-12 { animation-delay: 1.2s; }

.quote-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.helper-text {
    margin: 0.5rem 0 0;
    color: #5b5b57;
    font-size: 0.95rem;
}

.summary-list,
.guide-list,
.resource-list {
    margin: 0;
    padding-left: 1.2rem;
    color: #333;
    line-height: 1.7;
}

.summary-list li,
.guide-list li,
.resource-list li {
    margin: 0.4rem 0;
}

.resource-list a {
    color: #1f5b99;
    text-decoration: none;
    font-weight: 600;
}

.resource-list a:hover {
    text-decoration: underline;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.topic-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.topic-tags span {
    background: #efe7dc;
    color: #5b4c3b;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
}

.feature-list {
    margin: 0;
    padding-left: 1.2rem;
    color: #333;
}

.feature-list li {
    margin: 0.5rem 0;
}

.insight-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.insight-grid article {
    background: #f7f3ed;
    padding: 1rem;
    border-radius: 10px;
}

.archive-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.archive-grid div {
    background: #f4efe7;
    padding: 1rem;
    border-radius: 10px;
}

.faq dt {
    font-weight: bold;
    margin-top: 1rem;
}

.faq dd {
    margin: 0.5rem 0 0;
    color: #444;
}

@media (max-width: 720px) {
    .hero-content .container {
        padding: 2rem;
    }

    .panel {
        padding: 1.5rem;
    }

    .hero-meta {
        grid-template-columns: 1fr;
    }
}

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