/* ============================================================
   INKWELL custom.css — dark cinematic restyle over Quark 2
   for R. Maisey. Auto-loaded by Quark 2 at priority 80.
   ============================================================ */

:root,
:root[data-theme='dark'],
:root[data-theme='light'] {
    --ink:        #0a0a12;
    --ink-2:      #121221;
    --indigo:     #1b1b33;
    --gold:       #c79a4e;
    --gold-soft:  #d8b878;
    --cyan:       #6fd3e8;
    --paper:      #e9e6df;
    --muted:      #9a98a8;
    --line:       rgba(199,154,78,0.18);

    --q2-accent: var(--gold);
    --q2-link: var(--gold-soft);

    --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
}

/* Pull in the display serif Quark 2 doesn't ship */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&display=swap');

/* Force the dark palette regardless of the light/dark toggle */
html, body,
:root[data-theme='light'] body,
:root[data-theme='dark'] body {
    background: var(--ink) !important;
    color: var(--paper) !important;
}

#page-wrapper { background: var(--ink); }

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

h1, h2, h3 {
    font-family: var(--serif) !important;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--paper);
}

/* ---------- Header ---------- */
#header {
    background: rgba(10,10,18,0.82) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
#header .logo a, #header .brand, .logo a {
    font-family: var(--serif) !important;
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--paper) !important;
}
.dropmenu a, .navbar a {
    color: var(--muted) !important;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.8rem;
}
.dropmenu a:hover, .navbar a:hover { color: var(--gold-soft) !important; }

/* ---------- Shared eyebrow + buttons ---------- */
.ink-eyebrow {
    font-size: 0.72rem; font-weight: 500; letter-spacing: 0.32em;
    text-transform: uppercase; color: var(--gold); margin-bottom: 1rem;
}
.ink-btn {
    display: inline-block;
    font-size: 0.82rem; font-weight: 500; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--ink) !important;
    background: linear-gradient(135deg, var(--gold-soft), var(--gold));
    padding: 0.85rem 1.9rem; border: 1px solid var(--gold);
    border-radius: 2px; transition: transform .25s ease, box-shadow .25s ease;
    text-decoration: none;
}
.ink-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(199,154,78,0.28); color: var(--ink) !important; }
.ink-btn-outline { background: transparent; color: var(--gold-soft) !important; }
.ink-btn-outline:hover { color: var(--cyan) !important; border-color: var(--cyan); }
.ink-btn-small { padding: 0.6rem 1.25rem; font-size: 0.74rem; margin: 0.35rem 0.5rem 0.35rem 0; }

/* ---------- Hero ---------- */
.ink-hero {
    position: relative; min-height: 88vh;
    display: flex; align-items: center;
    background: url('../images/hero-bg.png') center/cover no-repeat;
    background-color: var(--indigo);
    margin-top: -1px;
}
.ink-hero-overlay {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 60% 40%, rgba(111,211,232,0.12), transparent 55%),
        linear-gradient(180deg, rgba(10,10,18,0.55) 0%, rgba(10,10,18,0.72) 55%, var(--ink) 100%);
}
.ink-hero-inner { position: relative; text-align: center; width: 100%; padding: 6rem 1.5rem; }
.ink-hero-title { font-size: clamp(2.8rem, 8vw, 5.5rem); margin-bottom: 0.3em; text-shadow: 0 2px 40px rgba(0,0,0,0.6); }
.ink-hero-subtitle {
    font-family: var(--serif); font-style: italic;
    font-size: clamp(1.2rem, 3vw, 1.7rem); color: var(--paper);
    max-width: 620px; margin: 0 auto 2rem; opacity: 0.92;
}

/* ---------- Intro ---------- */
.ink-intro {
    max-width: 760px; margin: 5rem auto 3rem; padding: 0 1.5rem; text-align: center;
}
.ink-intro p { font-family: var(--serif); font-size: 1.35rem; line-height: 1.7; opacity: 0.9; }

/* ---------- Featured ---------- */
.ink-featured {
    max-width: 1000px; margin: 2rem auto 5rem; padding: 0 1.5rem;
    display: grid; grid-template-columns: 280px 1fr; gap: 3.5rem; align-items: center;
}
.ink-featured-cover img { border-radius: 3px; box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 1px var(--line); }

/* ---------- Page head ---------- */
.ink-page-head { text-align: center; padding: 3rem 0 1rem; border-bottom: 1px solid var(--line); margin-bottom: 2rem; }
.ink-page-sub { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--muted); }

/* ---------- Books ---------- */
.ink-book {
    display: grid; grid-template-columns: 240px 1fr; gap: 3rem;
    padding: 3rem 0; border-bottom: 1px solid var(--line); align-items: start;
}
.ink-book:last-child { border-bottom: none; }
.ink-book-cover img { border-radius: 3px; box-shadow: 0 18px 50px rgba(0,0,0,0.6), 0 0 0 1px var(--line); }
.ink-working-title { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cyan); margin-bottom: 1.2rem; }
.ink-book-synopsis { opacity: 0.86; margin-bottom: 1.5rem; }
.ink-book-synopsis em { color: var(--gold-soft); }

/* ---------- Prose / About / Contact ---------- */
.ink-prose { max-width: 760px; margin: 0 auto; padding: 0 1.5rem; font-size: 1.08rem; opacity: 0.92; }
.ink-prose blockquote { border-left: 3px solid var(--gold); padding-left: 1.2rem; color: var(--muted); font-style: italic; }
.ink-contact { text-align: center; }
.ink-contact-socials { list-style: none; padding: 0; margin: 2.5rem 0 0; }
.ink-contact-socials li { margin: 0.8rem 0; }
.ink-contact-socials a { font-family: var(--serif); font-size: 1.5rem; color: var(--gold-soft); }
.ink-contact-socials a:hover { color: var(--cyan); }

/* ---------- Footer ---------- */
#footer, .footer {
    background: var(--ink-2) !important;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
    .ink-featured, .ink-book { grid-template-columns: 1fr; gap: 1.8rem; }
    .ink-featured-cover, .ink-book-cover { max-width: 240px; margin: 0 auto; }
}

/* Kill stray list markers on the contact socials */
.ink-contact-socials { list-style: none !important; padding-left: 0 !important; margin-left: 0 !important; }
.ink-contact-socials li { list-style: none !important; }
.ink-contact-socials li::marker { content: none !important; }
.ink-contact-socials li::before { display: none !important; }

/* Stop ugly mid-word hyphenation in prose */
.ink-prose, .ink-prose p, .ink-intro, .ink-intro p, .ink-contact {
    hyphens: none !important;
    -webkit-hyphens: none !important;
    overflow-wrap: normal;
}

/* Custom footer */
.ink-footer { background: var(--ink-2) !important; border-top: 1px solid var(--line); text-align: center; padding: 3rem 0; }
.ink-footer-brand { font-family: var(--serif); font-size: 1.4rem; color: var(--gold-soft); margin-bottom: 0.8rem; }
.ink-footer-social { list-style: none !important; padding-left: 0 !important; display: flex; gap: 1.5rem; justify-content: center; margin: 0 0 1rem; }
.ink-footer-social li { list-style: none !important; }
.ink-footer-social li::marker { content: none !important; }
.ink-footer-social a { color: var(--gold-soft); }
.ink-footer-social a:hover { color: var(--cyan); }
.ink-footer-note { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.04em; margin: 0; }
