/* Jason Garrison Music — matches the old "Signify Music Dark" WordPress theme.
   Change colors and fonts here; every page uses these. */
:root {
    --bg: #000000;
    --bg-alt: #0c0c0c;
    --panel: #111111;
    --line: #2f2f2f;
    --text: #bdbdbd;
    --muted: #999999;
    --heading: #ffffff;
    --accent: #db4f3d;
    --font-heading: 'Poppins', sans-serif;
    --font-title: 'Open Sans', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --content: 1200px;
    /* Motion: "press" is instant, "settle" is a critically damped release (no overshoot) */
    --press: 90ms ease-out;
    --settle: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.75 var(--font-body);
}
img { max-width: 100%; display: block; }
a { color: var(--heading); text-decoration: none; transition: color .2s, opacity .25s; }
a:focus-visible { color: var(--accent); }
a, button { -webkit-tap-highlight-color: transparent; } /* we draw our own press state */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, h4 { color: var(--heading); font-family: var(--font-heading); line-height: 1.3; margin: 0 0 16px; }
p { margin: 0 0 18px; }

.container { width: 100%; max-width: var(--content); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }
.center { text-align: center; }
.sr-only, .skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 200; background: #fff; color: #000; padding: 8px 12px; }

/* Buttons */
.btn {
    display: inline-block; padding: 14px 32px;
    background: var(--accent); color: #fff;
    font: 600 15px/1.2 var(--font-heading); letter-spacing: .05em; text-transform: uppercase;
    border: 0; border-radius: 0; cursor: pointer;
    transition: background-color .2s, color .2s, transform .35s var(--settle);
}
.btn:focus-visible { background: #fff; color: #000; }
.btn:active { transform: scale(.97); filter: brightness(.92); transition: transform var(--press), filter var(--press); }

/* Header: transparent bar over the full-width photo on the home page */
.site-header { position: relative; background: var(--bg); }
.header-bar {
    position: relative; z-index: 2;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    max-width: 1440px; margin: 0 auto; padding: 28px 40px;
}
.site-header.is-home .header-bar { position: absolute; left: 0; right: 0; top: 0; max-width: none; }
.site-title { font: 700 30px/1.2 var(--font-title); color: var(--heading); }
.site-tagline { margin: 6px 0 0; color: #e6e6e6; font-size: 15px; }
.site-nav { display: flex; gap: 36px; }
.site-nav a {
    font: 500 15px var(--font-heading); text-transform: uppercase; letter-spacing: .08em; color: var(--heading);
}
.site-nav a.active { color: var(--accent); }
/* Links dim the instant they're pressed (Apple's tap-down highlight) */
.site-nav a:active, .cat-link:active, .more-link:active, .post-nav a:active,
.social a:active, .entry-title a:active, .site-title:active { opacity: .55; transition: opacity 60ms; }
.nav-toggle { display: none; }

.header-media {
    height: 100vh; min-height: 560px; max-height: 960px;
    background: var(--header-img, linear-gradient(135deg, #1b1b1b 0%, #000 60%, #3a1410 100%)) center / cover no-repeat;
}
.header-media::after { content: ''; display: block; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,.65) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,0) 75%, var(--bg) 100%); }

/* Sections */
.section { padding: 90px 0; }
.section-title, .page-title {
    font-size: 40px; font-weight: 600; text-align: center; margin-bottom: 48px; position: relative;
}
.section-title::after, .page-title::after {
    content: ''; display: block; width: 60px; height: 3px; background: var(--accent); margin: 18px auto 0;
}
.page-title + .entry-meta { text-align: center; margin-top: -30px; margin-bottom: 40px; }

/* Blog list */
.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }
.post-card { background: var(--panel); display: flex; flex-direction: column; }
.post-thumb { display: block; overflow: hidden; }
.post-thumb img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .5s var(--settle), filter .3s ease; }
.post-thumb:active img { transform: scale(.98); transition: transform var(--press); }
.post-body { padding: 32px; }
.cat-link {
    display: inline-block; font: 600 12px var(--font-heading); text-transform: uppercase; letter-spacing: .1em;
    color: var(--accent); margin-bottom: 10px;
}
.entry-title { font-size: 24px; margin-bottom: 8px; }
.entry-meta { color: var(--muted); font-size: 14px; }
.entry-meta a { color: var(--muted); }
.more-link { font: 600 14px var(--font-heading); text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }

/* Single post */
.entry-content { font-size: 17px; }
.entry-content a { color: var(--accent); }
.post-image { margin: 32px auto; }
.post-nav { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); padding-top: 28px; margin-top: 40px; }
.post-nav a { font: 500 18px var(--font-heading); }
.post-nav small { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.post-nav .next { text-align: right; margin-left: auto; }
.comments-title { font-size: 22px; margin-top: 48px; }
.comment { background: var(--panel); padding: 18px 22px; margin-bottom: 12px; }
.comment.reply { margin-left: 40px; }
.comment p { margin: 0; }
.comment-author { color: var(--heading); font-weight: 600; margin-bottom: 4px !important; }

/* Videos */
.video { position: relative; aspect-ratio: 16 / 9; margin: 0 0 32px; background: var(--panel); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Contact */
.contact-section { background: var(--bg-alt); padding: 90px 0; border-top: 1px solid #1a1a1a; }
.contact-section .section-title { text-align: left; }
.contact-section .section-title::after { margin-left: 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-photo img { width: 100%; height: auto; }
.form { display: grid; gap: 18px; margin-top: 32px; }
.form label { display: grid; gap: 6px; font-size: 14px; color: var(--heading); }
.form input, .form textarea {
    width: 100%; padding: 12px 14px; font: 16px var(--font-body); color: #fff;
    background: var(--panel); border: 1px solid var(--line); border-radius: 0;
    transition: border-color .15s ease;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form .btn { justify-self: start; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.form-msg { margin: 0; padding: 12px 16px; }
.form-msg.ok  { background: #10301a; color: #9be3ae; }
.form-msg.err { background: #3a1410; color: #ffb4a8; }

.photo-placeholder {
    display: grid; place-items: center; text-align: center; min-height: 280px; padding: 24px;
    border: 2px dashed var(--line); color: var(--muted); font-size: 14px;
}
.photo-placeholder code { color: var(--accent); }

/* Footer */
.site-footer { padding: 40px 24px; text-align: center; border-top: 1px solid #1a1a1a; font-size: 14px; color: var(--muted); }
.social { display: flex; justify-content: center; gap: 28px; margin-bottom: 14px; }
.social a { font: 500 14px var(--font-heading); text-transform: uppercase; letter-spacing: .1em; }
.site-footer p { margin: 0; }
.site-footer p a { color: var(--muted); }

/* Scroll-up: rises into place as it appears, sinks back the same way */
.scroll-up {
    position: fixed; right: 20px; bottom: 20px; z-index: 50;
    width: 44px; height: 44px; display: grid; place-items: center;
    background: var(--accent); color: #fff; font-size: 20px;
    opacity: 0; pointer-events: none; transform: translateY(12px);
    transition: opacity .3s ease, transform .4s var(--settle), background-color .2s, color .2s;
}
.scroll-up.show { opacity: 1; pointer-events: auto; transform: none; }
.scroll-up.show:active { transform: scale(.9); transition: transform var(--press); }

/* Hover only for devices that really hover (prevents "stuck" white buttons after a tap on phones) */
@media (hover: hover) and (pointer: fine) {
    a:hover { color: var(--accent); }
    .btn:hover { background: #fff; color: #000; }
    .site-nav a:hover { color: var(--accent); }
    .more-link:hover { color: #fff; }
    .scroll-up:hover { background: #fff; color: #000; }
    .post-thumb:hover img { transform: scale(1.03); filter: brightness(1.08); }
}

/* Phone */
@media (max-width: 860px) {
    .header-bar { padding: 18px 16px; }
    .site-title { font-size: 22px; }
    .site-tagline { font-size: 13px; }
    .nav-toggle {
        display: flex; align-items: center; gap: 4px; flex-direction: column; flex-shrink: 0;
        background: none; border: 0; color: #fff; cursor: pointer; padding: 6px;
        transition: transform .35s var(--settle);
    }
    .nav-toggle:active { transform: scale(.9); transition: transform var(--press); }
    .nav-toggle span { display: block; width: 24px; height: 2px; background: #fff;
        transition: transform .35s var(--settle), opacity .2s ease; }
    .nav-toggle b { font: 500 11px var(--font-heading); text-transform: uppercase; letter-spacing: .1em; }
    /* Hamburger morphs into an X */
    .nav-toggle[aria-expanded="true"] span:nth-of-type(1) { transform: translateY(6px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span:nth-of-type(2) { opacity: 0; }
    .nav-toggle[aria-expanded="true"] span:nth-of-type(3) { transform: translateY(-6px) rotate(-45deg); }

    /* Menu drops out from under the header and leaves the same way it came */
    .site-nav {
        display: flex; position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; gap: 0; background: var(--panel); padding: 8px 16px;
        visibility: hidden; opacity: 0; transform: translateY(-8px); pointer-events: none;
        transition: opacity .2s ease, transform .3s var(--settle), visibility 0s linear .3s;
    }
    .site-nav.open { visibility: visible; opacity: 1; transform: none; pointer-events: auto;
        transition: opacity .2s ease, transform .3s var(--settle), visibility 0s; }
    .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
    .site-nav a:last-child { border-bottom: 0; }

    .header-media { height: 75vh; min-height: 420px; }
    .container { padding: 0 16px; }
    .section, .contact-section { padding: 56px 0; }
    .section-title, .page-title { font-size: 30px; margin-bottom: 32px; }
    .post-grid { grid-template-columns: 1fr; }
    .post-body { padding: 24px; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .comment.reply { margin-left: 20px; }
}

/* Reduced motion: keep the feedback (color/opacity), drop the movement */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn:active, .nav-toggle:active, .scroll-up.show:active, .post-thumb:active img { transform: none; }
    .post-thumb:hover img { transform: none; }
    .site-nav, .site-nav.open, .scroll-up { transform: none !important; }
    .nav-toggle span { transition: none; }
}
