/* ============================================================
   DamonSkye Research — Design System
   Dark theme · Gold accents · Cormorant Garamond + Syne
   damonskyeresearch.com
   ============================================================ */

/* --- Custom Properties --- */
:root {
    --bg:             #0a0a08;
    --surface:        #131310;
    --surface-2:      #1b1b17;
    --border:         #2c2920;
    --border-mid:     #3e3a2c;
    --border-gold:    #5a4820;

    --text:           #d6ccb8;
    --text-muted:     #7a7468;
    --text-dim:       #4a4840;

    --gold:           #c9a553;
    --gold-light:     #debb6a;
    --gold-dark:      #8c6e32;
    --gold-bg:        #332c10;

    --white:          #ede8da;
    --red:            #c95050;
    --red-bg:         #2a1414;
    --daily:          #6a8f7a;
    --daily-bg:       #0f2018;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }

html { font-size: 18px; }

body {
    font-family: 'Cormorant Garamond', serif;
    background: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
    line-height: 1.85;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.15s;
}

a:hover {
    color: var(--gold-light);
}

::selection {
    background: var(--gold-bg);
    color: var(--gold-light);
}

/* --- Layout --- */
.page-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Navigation --- */
.site-nav {
    background: rgba(10, 10, 8, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(201, 165, 83, 0.25);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-nav-inner {
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.site-nav-brand {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gold);
    text-decoration: none;
    white-space: nowrap;
}

.site-nav-brand:hover {
    color: var(--gold-light);
}

.site-nav-links {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav-links li {
    flex-shrink: 0;
}

.site-nav-links a {
    font-family: 'Syne', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
}

.site-nav-links a:hover,
.site-nav-links a.active {
    color: var(--gold);
}

.site-nav-links a.nav-cta {
    color: var(--gold);
}

.site-nav-links a.nav-cta:hover {
    color: var(--gold-light);
}

/* Mobile toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1px;
    background: var(--gold);
    transition: transform 0.2s;
}

/* --- Page Content --- */
.page-content {
    padding: 64px 0 96px;
}

/* --- Page Header --- */
.page-header {
    text-align: center;
    margin-bottom: 52px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-mid);
    position: relative;
}

.page-header::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--gold);
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
}

.page-header .eyebrow {
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold-dark);
    margin: 0 0 14px;
}

.page-header h1 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 48px;
    margin: 0 0 14px;
    color: var(--white);
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.page-header .subhead {
    font-family: 'Syne', sans-serif;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 2px;
    margin: 0;
}

/* --- Subscribe Block --- */
.subscribe-block {
    background: var(--surface-2);
    border: 1px solid var(--border-gold);
    padding: 40px 36px;
    text-align: center;
    margin-bottom: 56px;
    position: relative;
}

.subscribe-block::before {
    content: '';
    display: block;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.subscribe-block h2 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 26px;
    color: var(--white);
    margin: 0 0 10px;
    letter-spacing: 0.3px;
}

.subscribe-block p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    color: var(--text-muted);
    margin: 0 0 26px;
    line-height: 1.7;
    font-style: italic;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 13px 28px;
    text-decoration: none;
    transition: all 0.15s;
    border-radius: 1px;
}

.btn:hover {
    text-decoration: none;
}

.btn-gold {
    background: var(--gold);
    color: var(--bg);
    border: 1px solid var(--gold);
}

.btn-gold:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    color: var(--bg);
}

.btn-outline {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--border-gold);
}

.btn-outline:hover {
    background: var(--gold-bg);
    border-color: var(--gold-dark);
    color: var(--gold-light);
}

/* --- Archive List --- */
.archive-list {
    margin: 0;
}

.archive-item {
    padding: 22px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: baseline;
    gap: 16px;
}

.archive-item:first-child {
    border-top: 1px solid var(--border);
}

.archive-item-meta {
    flex-shrink: 0;
    width: 130px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.archive-date {
    font-family: 'Syne', sans-serif;
    font-size: 10px;
    color: var(--text-dim);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.ticker-badge {
    display: inline-block;
    font-family: 'Syne', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 1px;
}

.ticker-badge-equity {
    background: var(--gold-bg);
    color: var(--gold);
    border: 1px solid var(--border-gold);
}

.ticker-badge-daily {
    background: var(--daily-bg);
    color: var(--daily);
    border: 1px solid #1a3a28;
}

.archive-title {
    flex: 1;
}

.archive-title a {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    line-height: 1.35;
    display: block;
    transition: color 0.15s;
}

.archive-title a:hover {
    color: var(--gold-light);
}

/* --- Article Page --- */
.article-nav {
    margin-bottom: 40px;
}

.article-nav a {
    font-family: 'Syne', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

.article-nav a::before {
    content: '← ';
}

.article-nav a:hover {
    color: var(--gold);
}

.article-header {
    margin-bottom: 44px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-mid);
    position: relative;
}

.article-header::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: var(--gold);
    position: absolute;
    bottom: -1px;
    left: 0;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.article-date {
    font-family: 'Syne', sans-serif;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.article-header h1 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 40px;
    line-height: 1.15;
    margin: 0 0 18px;
    color: var(--white);
    letter-spacing: -0.3px;
}

.article-deck {
    font-family: 'Cormorant Garamond', serif;
    font-size: 19px;
    font-style: italic;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
    font-weight: 300;
}

/* --- Article Body --- */
.article-body {
    font-size: 17px;
    line-height: 1.88;
}

.article-body h2 {
    font-family: 'Syne', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    margin: 44px 0 18px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

/* Standalone <strong> used as section headings in generated articles */
.article-body > strong,
.article-body > div > strong:only-child {
    display: block;
    font-family: 'Syne', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--gold);
    margin: 40px 0 14px;
    padding: 0 0 8px 12px;
    border-bottom: 1px solid var(--border);
    border-left: 2px solid var(--gold);
    line-height: 1.4;
}

.article-body > strong:first-child,
.article-body > div:first-child > strong:only-child {
    margin-top: 0;
}

.article-body h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 600;
    margin: 32px 0 12px;
    color: var(--white);
}

.article-body p {
    margin: 0 0 24px;
}

.article-body p:last-child {
    margin-bottom: 0;
}

.article-body strong {
    font-weight: 700;
    color: var(--white);
}

.article-body em {
    font-style: italic;
    color: var(--text);
}

.article-body ul,
.article-body ol {
    padding-left: 24px;
    margin: 0 0 24px;
}

.article-body li {
    margin-bottom: 8px;
}

.article-body blockquote {
    border-left: 2px solid var(--gold);
    margin: 36px 0;
    padding: 2px 0 2px 24px;
    font-style: italic;
    color: var(--text-muted);
    font-size: 18px;
}

/* Data table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Syne', sans-serif;
    font-size: 13px;
    margin: 32px 0;
    border: 1px solid var(--border);
}

.data-table th {
    background: var(--surface-2);
    color: var(--gold);
    padding: 11px 16px;
    text-align: left;
    font-weight: 700;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 1px solid var(--border-gold);
}

.data-table td {
    padding: 11px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    vertical-align: top;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover td {
    background: var(--surface);
}

/* Callout boxes */
.callout {
    background: var(--surface-2);
    border-left: 2px solid var(--gold);
    padding: 18px 22px;
    margin: 32px 0;
    font-size: 16px;
    color: var(--text-muted);
}

.callout strong {
    color: var(--gold);
    font-family: 'Syne', sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 6px;
}

.callout-warning {
    border-left-color: var(--red);
    background: var(--red-bg);
}

.callout-warning strong {
    color: var(--red);
}

/* Disclaimer footer on articles */
.article-disclaimer {
    margin-top: 52px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-family: 'Syne', sans-serif;
    font-size: 10px;
    color: var(--text-dim);
    line-height: 1.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-disclaimer a {
    color: var(--text-dim);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-disclaimer a:hover {
    color: var(--gold-dark);
}

/* --- Prose (About, Disclaimer) --- */
.prose {
    font-size: 17px;
    line-height: 1.88;
}

.prose h2 {
    font-family: 'Syne', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--gold);
    margin: 44px 0 18px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.prose p {
    margin: 0 0 22px;
}

.prose ul,
.prose ol {
    padding-left: 24px;
    margin: 0 0 22px;
}

.prose li {
    margin-bottom: 8px;
}

.prose strong {
    font-weight: 700;
    color: var(--white);
}

.prose em {
    font-style: italic;
}

.prose a {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Disclaimer callout */
.notice-box {
    background: var(--red-bg);
    border: 1px solid #4a1a1a;
    border-left: 2px solid var(--red);
    padding: 18px 22px;
    margin: 0 0 36px;
    font-size: 15px;
}

.notice-box strong {
    color: var(--red);
    font-family: 'Syne', sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 6px;
}

/* --- Footer --- */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 40px 24px;
    text-align: center;
}

.site-footer-inner {
    max-width: 800px;
    margin: 0 auto;
}

.site-footer-brand {
    font-family: 'Syne', sans-serif;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold-dark);
    margin-bottom: 16px;
}

.site-footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}

.site-footer-links a {
    font-family: 'Syne', sans-serif;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-dim);
    text-decoration: none;
}

.site-footer-links a:hover {
    color: var(--gold-dark);
}

.site-footer-copy {
    font-family: 'Syne', sans-serif;
    font-size: 10px;
    color: var(--text-dim);
    letter-spacing: 0.5px;
}

/* --- Responsive --- */
@media (max-width: 640px) {
    html { font-size: 16px; }

    .page-header h1 { font-size: 36px; }

    .article-header h1 { font-size: 30px; }

    .archive-item {
        flex-direction: column;
        gap: 8px;
    }

    .archive-item-meta {
        width: auto;
        flex-direction: row;
        align-items: center;
    }

    .site-nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 8px 24px 16px;
    }

    .site-nav-links.open { display: flex; }

    .site-nav-links li { width: 100%; }

    .site-nav-links a { display: block; padding: 10px 0; }

    .nav-toggle { display: flex; }

    .subscribe-block { padding: 28px 20px; }

    .site-footer-links { gap: 16px; flex-wrap: wrap; }
}
