/* Shared styles for Journey, Blog and Admin pages (matches index.html design) */
:root {
    --color-dark: #0a0a0a;
    --color-charcoal: #1a1a1a;
    --color-slate: #2a2a2a;
    --color-gray: #6a6a6a;
    --color-light-gray: #a0a0a0;
    --color-accent: #d4af37;
    --color-accent-dim: #9d8028;
    --color-white: #fafafa;
    --color-off-white: #e8e8e8;
    --font-display: 'Playfair Display', serif;
    --font-body: 'Work Sans', sans-serif;
    --max-width: 1200px;
    --read-width: 740px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.7;
    color: var(--color-white);
    background: var(--color-dark);
    overflow-x: hidden;
}
a { color: var(--color-accent); }
img { max-width: 100%; height: auto; }

/* Navigation */
nav.site-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}
.nav-container {
    max-width: var(--max-width); margin: 0 auto; padding: 1.5rem 2rem;
    display: flex; justify-content: space-between; align-items: center;
}
.logo {
    font-family: var(--font-display); font-size: 1.5rem; font-weight: 900;
    letter-spacing: -0.02em; color: var(--color-accent); text-decoration: none;
}
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
    color: var(--color-off-white); text-decoration: none; font-size: 0.95rem;
    font-weight: 400; letter-spacing: 0.02em; transition: color 0.3s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--color-accent); }
.nav-toggle {
    display: none; background: none; border: 1px solid var(--color-accent-dim);
    color: var(--color-accent); font-size: 1.2rem; padding: 0.3rem 0.7rem; cursor: pointer;
}

/* Generic layout */
.page { padding: 9rem 2rem 5rem; }
.container { max-width: var(--max-width); margin: 0 auto; }
.narrow { max-width: var(--read-width); margin: 0 auto; }
.eyebrow {
    color: var(--color-accent); text-transform: uppercase; letter-spacing: 0.25em;
    font-size: 0.8rem; font-weight: 500; margin-bottom: 1rem;
}
h1.page-title {
    font-family: var(--font-display); font-size: 3.6rem; font-weight: 900;
    line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 1.5rem;
}
.lead { font-size: 1.2rem; color: var(--color-light-gray); line-height: 1.8; }
.muted { color: var(--color-gray); }

.btn {
    display: inline-block; padding: 0.9rem 2.2rem; text-decoration: none; font-weight: 500;
    letter-spacing: 0.05em; transition: all 0.3s ease; border: 2px solid var(--color-accent);
    text-transform: uppercase; font-size: 0.85rem; cursor: pointer; font-family: var(--font-body);
}
.btn-primary { background: var(--color-accent); color: var(--color-dark); }
.btn-primary:hover { background: var(--color-accent-dim); border-color: var(--color-accent-dim); }
.btn-secondary { background: transparent; color: var(--color-accent); }
.btn-secondary:hover { background: var(--color-accent); color: var(--color-dark); }
.btn-small { padding: 0.45rem 1rem; font-size: 0.75rem; }
.btn-danger { border-color: #b84a4a; color: #e08a8a; background: transparent; }
.btn-danger:hover { background: #b84a4a; color: #fff; }

/* Journey page */
.journey-hero {
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: center;
}
.journey-hero .portrait { position: relative; max-width: 460px; justify-self: center; }
.journey-hero .portrait::before {
    content: ''; position: absolute; top: -18px; left: -18px; right: 18px; bottom: 18px;
    border: 2px solid var(--color-accent); z-index: -1;
}
.journey-hero .portrait img { display: block; width: 100%; }
.feature-badge {
    display: inline-flex; gap: 0.8rem; align-items: center; margin-top: 2rem;
    padding: 0.8rem 1.2rem; border: 1px solid rgba(212,175,55,0.35); background: var(--color-charcoal);
    font-size: 0.9rem; color: var(--color-off-white);
}
.feature-badge strong { color: var(--color-accent); font-weight: 500; }

.chapter {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
    padding: 5rem 0; border-top: 1px solid var(--color-slate);
}
.chapter.flip .chapter-media { order: 2; }
.chapter-media img { width: 100%; display: block; filter: grayscale(15%); transition: filter .3s; }
.chapter-media img:hover { filter: none; }
.chapter-media.tall { justify-self: center; width: 100%; max-width: 340px; }
.chapter-media.tall img { aspect-ratio: 2 / 3; object-fit: cover; object-position: 50% 30%; border: 2px solid rgba(212,175,55,0.35); }
.chapter-media figcaption { font-size: 0.85rem; color: var(--color-gray); margin-top: 0.6rem; }
.chapter-num { font-family: var(--font-display); color: var(--color-accent-dim); font-size: 1rem; letter-spacing: .1em; }
.chapter h2 {
    font-family: var(--font-display); font-size: 2.4rem; line-height: 1.2;
    margin: 0.4rem 0 1.4rem; font-weight: 700;
}
.chapter p { color: var(--color-light-gray); margin-bottom: 1.1rem; font-size: 1.05rem; }
.chapter.full { grid-template-columns: 1fr; }
.pullquote {
    font-family: var(--font-display); font-size: 1.45rem; line-height: 1.5; color: var(--color-off-white);
    border-left: 3px solid var(--color-accent); padding: 0.4rem 0 0.4rem 1.5rem; margin: 1.8rem 0;
    font-style: italic;
}
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.5rem; }
.chapter:not(.full) .cards-3 { grid-template-columns: 1fr; gap: .6rem; }
.chapter:not(.full) .mini-card { padding: 1rem 1.2rem; border-top: 0; border-left: 3px solid var(--color-accent); }
.mini-card { background: var(--color-charcoal); border-top: 3px solid var(--color-accent); padding: 1.4rem; }
.mini-card h3 { font-family: var(--font-display); color: var(--color-accent); font-size: 1.15rem; margin-bottom: .4rem; }
.mini-card p { font-size: 0.95rem; margin: 0; }

.timeline { position: relative; margin: 3rem auto 0; max-width: 900px; }
.timeline::before {
    content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px;
    background: linear-gradient(var(--color-accent), var(--color-accent-dim));
    transform: translateX(-50%);
}
.tl-item { position: relative; width: 50%; padding: 0 3rem 2.6rem; }
.tl-item:nth-child(odd) { left: 0; text-align: right; }
.tl-item:nth-child(even) { left: 50%; }
.tl-item::after {
    content: ''; position: absolute; top: 0.55rem; width: 14px; height: 14px; border-radius: 50%;
    background: var(--color-dark); border: 3px solid var(--color-accent);
}
.tl-item:nth-child(odd)::after { right: -7px; }
.tl-item:nth-child(even)::after { left: -7px; }
.tl-year { font-family: var(--font-display); font-size: 1.6rem; color: var(--color-accent); font-weight: 700; }
.tl-text { color: var(--color-light-gray); }

.rapid { display: grid; gap: .6rem; margin-top: 2rem; }
.rapid > div { background: var(--color-charcoal); padding: .9rem 1.2rem; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.rapid .q { color: var(--color-light-gray); font-size: 0.85rem; text-transform: uppercase; letter-spacing: .08em; }
.rapid .a { font-family: var(--font-display); font-size: 1.25rem; color: var(--color-accent); text-align: right; }

.closing {
    text-align: center; padding: 5rem 0 2rem; border-top: 1px solid var(--color-slate);
}
.closing .big {
    font-family: var(--font-display); font-style: italic; font-size: 2.8rem; color: var(--color-accent);
    line-height: 1.2; margin-bottom: 1.5rem;
}

/* Blog list */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; margin-top: 3rem; }
.post-card {
    background: var(--color-charcoal); display: flex; flex-direction: column;
    border-top: 3px solid transparent; transition: all .3s ease; text-decoration: none; color: inherit;
}
.post-card:hover { transform: translateY(-6px); border-top-color: var(--color-accent); box-shadow: 0 20px 40px rgba(0,0,0,.4); }
.post-card .cover { aspect-ratio: 16 / 9; background: var(--color-slate) center/cover no-repeat; }
.post-card .body { padding: 1.6rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.post-card h2, .post-card h3 { font-family: var(--font-display); font-size: 1.45rem; line-height: 1.3; color: var(--color-white); }
.post-card .excerpt { color: var(--color-light-gray); font-size: .98rem; flex: 1; }
.post-meta { font-size: .82rem; color: var(--color-gray); letter-spacing: .04em; text-transform: uppercase; }
.tag {
    display: inline-block; font-size: .75rem; padding: .15rem .6rem; margin: 0 .3rem .3rem 0;
    border: 1px solid var(--color-accent-dim); color: var(--color-accent); text-decoration: none;
}
.tag:hover { background: var(--color-accent); color: var(--color-dark); }
.pagination { display: flex; justify-content: center; gap: 1rem; margin-top: 3rem; }
.empty-state { text-align: center; padding: 4rem 1rem; color: var(--color-light-gray); }

/* Article */
.article-header { text-align: center; margin-bottom: 2.5rem; }
.article-header h1 { font-family: var(--font-display); font-size: 3rem; line-height: 1.15; margin: .6rem 0 1rem; }
.article-cover { margin: 0 auto 3rem; max-width: 1000px; }
.article-cover img { width: 100%; max-height: 520px; object-fit: cover; object-position: 50% 25%; display: block; }
.prose { font-size: 1.13rem; line-height: 1.85; color: var(--color-off-white); }
.prose > * + * { margin-top: 1.3rem; }
.prose h2 { font-family: var(--font-display); font-size: 2rem; margin-top: 2.6rem; color: var(--color-white); }
.prose h3 { font-family: var(--font-display); font-size: 1.5rem; margin-top: 2rem; color: var(--color-accent); }
.prose p, .prose li { color: #d6d6d6; }
.prose ul, .prose ol { padding-left: 1.6rem; }
.prose li + li { margin-top: .4rem; }
.prose blockquote {
    border-left: 3px solid var(--color-accent); padding: .3rem 0 .3rem 1.4rem;
    font-family: var(--font-display); font-style: italic; font-size: 1.3rem; color: var(--color-off-white);
}
.prose img { display: block; margin: 2rem auto; }
.prose code { background: var(--color-slate); padding: .1rem .4rem; font-size: .92em; }
.prose pre { background: var(--color-charcoal); padding: 1.2rem; overflow-x: auto; border-left: 3px solid var(--color-accent-dim); }
.prose pre code { background: none; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; }
.prose th, .prose td { border: 1px solid var(--color-slate); padding: .6rem .8rem; text-align: left; }
.prose hr { border: 0; border-top: 1px solid var(--color-slate); margin: 2.5rem 0; }
.prose iframe { max-width: 100%; }
.article-footer { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--color-slate); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; align-items: center; }
.share a { margin-left: .8rem; text-decoration: none; }

/* Forms (contact + admin) */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: .85rem; color: var(--color-light-gray); margin-bottom: .4rem; letter-spacing: .04em; }
.field input, .field select, .field textarea {
    width: 100%; background: var(--color-dark); border: 1px solid var(--color-slate); color: var(--color-white);
    padding: .85rem 1rem; font-family: var(--font-body); font-size: 1rem; font-weight: 300;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--color-accent); }
.field textarea { min-height: 160px; resize: vertical; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 1rem 1.2rem; margin-bottom: 1.5rem; border-left: 3px solid var(--color-accent); background: var(--color-charcoal); }
.notice.error { border-left-color: #c85c5c; }
.notice.success { border-left-color: #5ca86b; }

/* Footer */
footer.site-footer {
    background: var(--color-charcoal); padding: 3rem 2rem; text-align: center;
    border-top: 1px solid var(--color-slate); color: var(--color-gray); font-size: .9rem;
}
footer.site-footer a { color: var(--color-light-gray); text-decoration: none; margin: 0 .6rem; }
footer.site-footer a:hover { color: var(--color-accent); }

/* Responsive */
@media (max-width: 968px) {
    .journey-hero, .chapter { grid-template-columns: 1fr; gap: 2.5rem; }
    .chapter.flip .chapter-media { order: 0; }
    .journey-hero .portrait { order: -1; }
    h1.page-title { font-size: 2.8rem; }
    .cards-3 { grid-template-columns: 1fr; }
    .timeline::before { left: 8px; }
    .tl-item, .tl-item:nth-child(even) { width: 100%; left: 0; text-align: left; padding: 0 0 2.2rem 2.5rem; }
    .tl-item:nth-child(odd) { text-align: left; }
    .tl-item:nth-child(odd)::after, .tl-item:nth-child(even)::after { left: 1px; right: auto; }
}
@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: rgba(10,10,10,.98); border-bottom: 1px solid var(--color-slate); }
    .nav-links.open { display: flex; }
    .nav-links li a { display: block; padding: 1rem 2rem; }
    .form-grid { grid-template-columns: 1fr; }
    .article-header h1 { font-size: 2.2rem; }
    .chapter h2 { font-size: 1.9rem; }
    .closing .big { font-size: 2rem; }
}
