/*
Theme Name: The Sine Die Covenant
Theme URI: https://thesinediecovenant.example
Author: The Sine Die Covenant
Author URI: https://thesinediecovenant.example
Description: A dark, atmospheric one-page theme for the band The Sine Die Covenant. Features the band logo as the centerpiece, social links, and a copyright footer. Built around an occult-metal aesthetic with drifting smoke, hairline ornamentation, and gothic serif typography.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sinediecovenant
Tags: one-page, dark, band, music, full-screen
*/

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bone: #f4f1ec;
    --bone-dim: #b8b2a8;
    --ash: #6e6a64;
    --void: #050505;
    --void-2: #0a0a0a;
    --ember: #c89858;
}

html, body {
    height: 100%;
    background: var(--void);
    color: var(--bone);
    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

a { color: inherit; text-decoration: none; }

/* ---------- Atmospheric smoke layer ---------- */
.smoke {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.smoke::before,
.smoke::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(200,200,200,0.06) 0%, transparent 40%),
        radial-gradient(ellipse at 75% 60%, rgba(180,180,180,0.05) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 80%, rgba(220,220,220,0.04) 0%, transparent 50%);
    animation: drift 60s linear infinite;
}

.smoke::after {
    animation: drift 90s linear infinite reverse;
    opacity: 0.6;
}

@keyframes drift {
    0%   { transform: translate(0, 0) rotate(0deg); }
    50%  { transform: translate(-3%, 2%) rotate(180deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

/* Faint film grain */
.grain {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.08;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout ---------- */
.site {
    position: relative;
    z-index: 2;
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
}

.site-main {
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem 6rem;
}

.hero {
    text-align: center;
    max-width: 720px;
    width: 100%;
    animation: rise 1.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

/* ---------- Logo ---------- */
.hero-logo {
    display: block;
    width: 100%;
    max-width: 520px;
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 0 40px rgba(0,0,0,0.8));
}

/* ---------- Ornament rule ---------- */
.ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 3rem auto 2.5rem;
    max-width: 360px;
    opacity: 0;
    animation: fade-in 1.2s ease-out 0.8s forwards;
}

.ornament .line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--ash), transparent);
}

.ornament .diamond {
    width: 6px;
    height: 6px;
    background: var(--bone);
    transform: rotate(45deg);
    opacity: 0.7;
}

@keyframes fade-in {
    to { opacity: 1; }
}

/* ---------- Social links ---------- */
.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0 auto;
    opacity: 0;
    animation: fade-in 1.2s ease-out 1.1s forwards;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(244, 241, 236, 0.15);
    border-radius: 50%;
    color: var(--bone);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(255,255,255,0.01);
}

.social-links a:hover,
.social-links a:focus-visible {
    border-color: var(--bone);
    background: rgba(244, 241, 236, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 0 24px rgba(244, 241, 236, 0.15);
    outline: none;
}

.social-links svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.social-links a span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

/* ---------- Footer ---------- */
.site-footer {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    padding: 2rem 1.5rem 2.5rem;
    text-align: center;
    font-family: 'Cinzel', 'Times New Roman', serif;
    font-size: 0.72rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--ash);
}

.site-footer .sep {
    display: inline-block;
    margin: 0 0.6em;
    opacity: 0.5;
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
    .site-main { padding: 3rem 1rem 4rem; }
    .hero-logo { max-width: 88vw; }
    .ornament { margin: 2rem auto 1.75rem; max-width: 260px; }
    .social-links { gap: 1.25rem; }
    .social-links a { width: 44px; height: 44px; }
    .site-footer { font-size: 0.65rem; letter-spacing: 0.25em; }
}

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