/* === Mortmain Studio — shared styles for sub-pages === */
/* Used by: privacy.html, terms.html, press.html, faq.html, about.html */

:root {
    --bg-deepest: #07060a;
    --bg-dark: #0d0b0e;
    --bg-card: #14101a;
    --text-primary: #d8d2c4;
    --text-secondary: #8a8276;
    --text-tertiary: #5a5448;
    --accent: #7a3a1f;
    --accent-hover: #9a4828;
    --accent-faded: #3a1c0f;
    --border-subtle: rgba(122, 58, 31, 0.15);
    --border-medium: rgba(122, 58, 31, 0.35);
    --border-strong: rgba(122, 58, 31, 0.55);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 300;
    background: var(--bg-deepest);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Ambient background */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 800px 600px at 15% 0%, rgba(122, 58, 31, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 700px 500px at 85% 100%, rgba(122, 58, 31, 0.05) 0%, transparent 65%),
        radial-gradient(ellipse at center, transparent 30%, rgba(7, 6, 10, 0.7) 100%);
}

body::after {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    opacity: 0.025;
    background-image:
        radial-gradient(circle at 20% 30%, #fff 1px, transparent 1px),
        radial-gradient(circle at 60% 70%, #fff 1px, transparent 1px),
        radial-gradient(circle at 80% 10%, #fff 1px, transparent 1px);
    background-size: 200px 200px, 300px 300px, 250px 250px;
    z-index: 1;
}

/* Parchment border */
.page-frame {
    position: fixed;
    top: 16px; left: 16px; right: 16px; bottom: 16px;
    border: 1px solid var(--border-subtle);
    pointer-events: none;
    z-index: 50;
}

.page-frame::before, .page-frame::after {
    content: '';
    position: absolute;
    width: 24px; height: 24px;
    border: 1px solid var(--border-medium);
}

.page-frame::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.page-frame::after { top: -1px; right: -1px; border-left: none; border-bottom: none; }

.corner-br, .corner-bl {
    position: absolute;
    width: 24px; height: 24px;
    border: 1px solid var(--border-medium);
}

.corner-br { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.corner-bl { bottom: -1px; left: -1px; border-right: none; border-top: none; }

/* Nav (simpler than home: no audio toggle, no chapter indicator) */
nav {
    position: fixed;
    top: 16px; left: 16px; right: 16px;
    padding: 24px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: transparent;
    transition: padding 0.4s ease, background 0.4s ease, border-bottom 0.4s ease;
    border-bottom: 1px solid transparent;
}

nav.scrolled {
    padding: 14px 48px;
    background: rgba(7, 6, 10, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Cinzel', serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.25em;
    color: var(--text-secondary);
    text-transform: uppercase;
    text-decoration: none;
    transition: font-size 0.4s ease, color 0.3s ease;
}

.nav-brand-mark {
    width: 28px;
    height: 30px;
    flex-shrink: 0;
    transition: width 0.4s ease, height 0.4s ease;
}

.nav-brand:hover { color: var(--text-primary); }
nav.scrolled .nav-brand { font-size: 12px; }
nav.scrolled .nav-brand-mark { width: 24px; height: 26px; }

.nav-right { display: flex; align-items: center; gap: 28px; }

.nav-links { display: flex; gap: 36px; list-style: none; }

.nav-links a {
    font-family: 'Cinzel', serif;
    font-size: 12px;
    font-weight: 400;
    color: var(--text-secondary);
    text-decoration: none;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    width: 0; height: 1px;
    background: var(--accent);
    transition: width 0.4s ease, left 0.4s ease;
}

.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; left: 0; }

.lang-switcher {
    display: flex;
    gap: 2px;
    border: 1px solid var(--border-subtle);
    padding: 2px;
}

.lang-btn {
    background: transparent;
    border: none;
    font-family: 'Cinzel', serif;
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--text-tertiary);
    padding: 4px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn.active { background: var(--accent-faded); color: var(--text-primary); }
.lang-btn:hover:not(.active) { color: var(--text-secondary); }

/* Page content layout */
.page-wrapper {
    position: relative;
    z-index: 3;
    padding: 160px 24px 80px;
    min-height: 100vh;
}

.page-container {
    max-width: 820px;
    margin: 0 auto;
}

.page-prefix {
    font-family: 'Cinzel', serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.4em;
    color: var(--text-tertiary);
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 24px;
}

.page-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 24px;
    line-height: 1.2;
}

.page-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.page-divider {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 48px auto;
    max-width: 400px;
}

.page-divider::before, .page-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-medium), transparent);
}

.page-divider-symbol {
    margin: 0 20px;
    color: var(--text-tertiary);
    font-family: 'Cinzel', serif;
    font-size: 16px;
}

/* Typography for body content */
.page-section {
    margin-bottom: 48px;
}

.page-section h2 {
    font-family: 'Cinzel', serif;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--text-primary);
    text-transform: uppercase;
    margin-bottom: 20px;
    line-height: 1.3;
}

.page-section h3 {
    font-family: 'Cinzel', serif;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    text-transform: uppercase;
    margin-top: 32px;
    margin-bottom: 14px;
}

.page-section p {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.page-section ul, .page-section ol {
    margin: 16px 0 20px 24px;
    color: var(--text-secondary);
}

.page-section li {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 8px;
}

.page-section a {
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--border-medium);
    transition: color 0.3s ease, border-color 0.3s ease;
}

.page-section a:hover {
    color: var(--accent-hover);
    border-color: var(--accent);
}

.page-section strong {
    color: var(--text-primary);
    font-weight: 500;
}

.page-section em {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 17px;
    color: var(--text-secondary);
}

.callout {
    border-left: 2px solid var(--accent);
    padding: 16px 24px;
    margin: 24px 0;
    background: rgba(20, 16, 26, 0.4);
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 16px;
    color: var(--text-secondary);
}

.disclaimer {
    margin-top: 48px;
    padding: 20px 24px;
    border: 1px solid var(--border-subtle);
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    line-height: 1.7;
    color: var(--text-tertiary);
    font-style: italic;
}

.last-updated {
    text-align: center;
    margin-top: 48px;
    font-family: 'Cinzel', serif;
    font-size: 10px;
    letter-spacing: 0.4em;
    color: var(--text-tertiary);
    text-transform: uppercase;
    opacity: 0.6;
}

/* Footer (identical to main site) */
footer {
    border-top: 1px solid var(--border-subtle);
    padding: 80px 48px 32px;
    position: relative;
    z-index: 3;
    background: rgba(7, 6, 10, 0.6);
}

.footer-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 64px;
}

.footer-column h4 {
    font-family: 'Cinzel', serif;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.footer-column ul { list-style: none; }
.footer-column li { margin-bottom: 12px; }

.footer-column a {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 300;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: inline-block;
}

.footer-column a:hover { color: var(--text-primary); padding-left: 6px; }

.footer-column .pending {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 300;
    color: var(--text-tertiary);
    cursor: not-allowed;
    display: inline-block;
    opacity: 0.5;
    position: relative;
}

.footer-column .pending::after {
    content: '— soon';
    margin-left: 6px;
    font-size: 10px;
    font-style: italic;
    color: var(--text-tertiary);
    letter-spacing: 0.1em;
}

.footer-brand h3 {
    font-family: 'Cinzel', serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--text-primary);
    text-transform: uppercase;
    margin-bottom: 16px;
}

.footer-brand p {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 280px;
}

.footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 32px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copyright {
    font-family: 'Cinzel', serif;
    font-size: 11px;
    letter-spacing: 0.25em;
    color: var(--text-tertiary);
    text-transform: uppercase;
}

.footer-legal {
    display: flex;
    gap: 24px;
    list-style: none;
}

.footer-legal a {
    font-family: 'Cinzel', serif;
    font-size: 10px;
    font-weight: 400;
    color: var(--text-tertiary);
    text-decoration: none;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.footer-legal a:hover { color: var(--text-secondary); }

.footer-contact {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: var(--text-secondary);
}

.footer-contact a { color: var(--text-secondary); text-decoration: none; transition: color 0.3s ease; }
.footer-contact a:hover { color: var(--text-primary); }

@media (max-width: 968px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
    .footer-brand { grid-column: span 2; }
}

@media (max-width: 768px) {
    .page-frame { top: 8px; left: 8px; right: 8px; bottom: 8px; }
    nav, nav.scrolled { padding: 18px 24px; }
    .nav-right { gap: 14px; }
    .nav-links { display: none; }
    .nav-brand-text { display: none; }
    .lang-switcher .lang-btn { padding: 4px 8px; font-size: 9px; }
    .page-wrapper { padding: 120px 24px 60px; }
    footer { padding: 60px 24px 24px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-brand { grid-column: span 1; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
