/* 
 * Website design by tyjohnson.com
 * © 2026 Ty Johnson. All rights reserved.
 * Milestone Codename: Goldfinger
 */

@font-face {
    font-family: 'EB Garamond';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/EBGaramond-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'EB Garamond';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/EBGaramond-Italic.woff2') format('woff2');
}

@font-face {
    font-family: 'EB Garamond';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/EBGaramond-Bold.woff2') format('woff2');
}

:root {
    --bg: #0a0a0a;
    --section-bg: rgba(17, 17, 17, 0.94);
    --text-primary: #f0d9a8;
    --text-secondary: #d4af37;
    --text-heading: #ffd700;
    --text-muted: #e8c670;
    --border: #8b6914;
    --symbol: #d4af37;
    --symbol-opacity: 0.75;
    --bullet: #d4af37;
    --h1-white: #ffffff;
    --focus: #ffd70033;
    --footer-text: #c9b38a;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: 'EB Garamond', 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
    background: var(--bg);
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(30, 25, 20, 0.92) 0%, var(--bg) 70%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
    background-blend-mode: multiply;
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.78;
    max-width: 920px;
    margin: 0 auto;
    padding: 80px 40px;
    font-size: 1.125rem;
}

header {
    text-align: center;
    margin-bottom: 5.5rem;
    position: relative;
}

.header-art {
    font-family: monospace, 'Courier New', Courier;
    font-size: 1.1rem;
    color: var(--symbol);
    opacity: 0.55;
    letter-spacing: 0.8em;
    line-height: 1.4;
    margin-bottom: 1.2rem;
    white-space: pre;
}

h1 {
    font-size: 4.2rem;
    margin-bottom: 0.6em;
    padding-bottom: 0.4em;
    border-bottom: 1px solid var(--border);
    color: var(--h1-white);
    letter-spacing: 0.18em;
    font-weight: 400;
}

.subtitle {
    font-style: italic;
    color: var(--text-muted);
    font-size: 1.45rem;
    letter-spacing: 0.08em;
    margin-top: -0.5rem;
    opacity: 0.92;
}

main {
    display: flow-root;
}

h2 {
    font-size: 2.35rem;
    margin: 6rem 0 2.2rem;
    color: var(--text-heading);
    letter-spacing: 0.12em;
    text-align: center;
    background: linear-gradient(90deg, #d4af37, #ffd700, #d4af37);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 400;
    transition: letter-spacing 0.7s ease;
}

h2:hover,
h2:focus-visible {
    letter-spacing: 0.18em;
}

p,
li {
    margin: 1.6em 0;
    color: var(--text-secondary);
    font-size: 1.18rem;
    line-height: 1.82;
}

ul {
    list-style: none;
    padding: 0;
}

li {
    position: relative;
    padding-left: 2.8em;
    margin: 1.5em 0;
    transition: color 0.45s ease, padding-left 0.45s ease;
}

li:hover,
li:focus-within {
    color: var(--text-heading);
    padding-left: 3.3em;
}

li::before {
    content: '○';
    position: absolute;
    left: 0.6em;
    color: var(--bullet);
    font-size: 1.35em;
    opacity: 0.78;
    transition: opacity 0.4s ease;
}

li:hover::before,
li:focus-within::before {
    opacity: 0.92;
}

.section {
    background: var(--section-bg);
    padding: 3.2rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    margin-bottom: 5.5rem;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(1px);
}

@supports not (backdrop-filter: blur(1px)) {
    .section {
        background: rgba(17, 17, 17, 0.98);
    }
}

.section-symbol {
    display: block;
    text-align: center;
    font-size: 1.85em;
    color: var(--symbol);
    margin: -0.6em 0 1.3em 0;
    opacity: var(--symbol-opacity);
    letter-spacing: 0.6em;
    pointer-events: none;
}

.email-reveal {
    font-family: Consolas, 'Courier New', Courier, monospace;
    font-size: 1.15rem;
    letter-spacing: 0.18em;
    text-align: center;
    line-height: 1.45;
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.3);
    position: relative;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.email-reveal-button {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: inherit;
    letter-spacing: inherit;
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease, transform 0.2s ease;
    font-style: italic;
}

.email-reveal-button:hover,
.email-reveal-button:focus-visible {
    color: var(--text-heading);
    transform: scale(1.05);
    outline: 2px solid var(--focus);
    outline-offset: 4px;
}

.email-reveal-button:active {
    transform: scale(0.98);
}

.reveal-text {
    display: inline-block;
}

.email-reveal-inner {
    display: flex;
    gap: 0.3em;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    color: var(--text-primary);
    transition: color 0.5s ease;
}

.email-reveal:hover .email-reveal-inner,
.email-reveal:focus-within .email-reveal-inner {
    color: var(--text-heading);
}

.email-reveal-inner span {
    color: inherit;
}

.email-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.email-link:hover,
.email-link:focus-visible {
    color: var(--text-heading);
    text-decoration: underline;
}

noscript .email-reveal-inner {
    color: var(--text-primary);
}

.js-only {
    display: none;
}

.js-enabled .js-only {
    display: block;
}

.js-enabled noscript {
    display: none;
}

.email-placeholder {
    margin: 0;
}

.watermark {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: clamp(5rem, 15vw, 8.5rem);
    color: rgba(255, 215, 0, 0.07);
    pointer-events: none;
    z-index: -2;
    user-select: none;
}

footer {
    text-align: center;
    margin-top: 10rem;
    font-size: 1.05rem;
    color: var(--footer-text);
}

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

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--text-heading);
    outline-offset: 2px;
    border-radius: 2px;
}

@media (max-width: 680px) {
    body {
        padding: 5rem 2rem;
        line-height: 1.72;
        font-size: 1.05rem;
    }

    h1 {
        font-size: 3.4rem;
        letter-spacing: 0.14em;
    }

    h2 {
        font-size: 2.1rem;
        margin: 4.5rem 0 2rem;
    }

    p,
    li {
        font-size: 1.12rem;
    }

    .section {
        padding: 2.4rem;
        margin-bottom: 4rem;
    }

    .email-reveal {
        font-size: 1rem;
        padding: 1.6rem;
    }

    .email-reveal-button {
        font-size: 0.95rem;
    }

    .section-symbol {
        font-size: 1.55em;
    }

    li::before {
        font-size: 1.25em;
    }

    .header-art {
        letter-spacing: 0.6em;
        font-size: 1rem;
    }
}

@media print {
    body {
        background: white;
        color: black;
        max-width: 100%;
        padding: 20px;
    }

    .watermark,
    .header-art,
    .section-symbol {
        display: none;
    }

    .section {
        page-break-inside: avoid;
        border: 1px solid #000;
        box-shadow: none;
    }

    a {
        text-decoration: underline;
    }

    .email-reveal-button {
        display: none;
    }

    noscript {
        display: block !important;
    }
}