/*
Theme Name: Woodcock Author
Theme URI: https://www.laawoodcock.co.uk/
Author: L. A. A. Woodcock
Description: A responsive fantasy-gothic author landing page with editable WordPress content.
Version: 2.2.2
Text Domain: woodcock-author
*/

:root {
    --ink: #090c13;
    --slate: #101722;
    --panel: rgba(12, 17, 27, 0.92);
    --ivory: #f0eadc;
    --muted: #b9b8b4;
    --heading: #f0eadc;
    --gold: #5f8296;
    --gold-light: #d3e7ee;
    --button-bg: #9bbed0;
    --button-text: #090b10;
    --button-hover: #d3e7ee;
    --header-bg: #070a10;
    --menu-color: #f0eadc;
    --line: #5f8296;
    --content: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--ink);
    color: var(--ivory);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    line-height: 1.7;
}

body.admin-bar .site-header {
    top: 32px;
}

a {
    color: var(--gold-light);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

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

.skip-link:focus {
    top: 10px;
    left: 10px;
    z-index: 10000;
    width: auto;
    height: auto;
    padding: 10px 16px;
    clip: auto;
    background: var(--ivory);
    color: var(--ink);
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    border-bottom: 1px solid transparent;
    transition: background 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
    border-color: var(--line);
    background: var(--header-bg);
    backdrop-filter: blur(12px);
}

.header-inner,
.section-inner,
.footer-inner {
    width: min(calc(100% - 40px), var(--content));
    margin: 0 auto;
}

.header-inner {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.site-title {
    color: var(--ivory);
    font-size: clamp(20px, 2.2vw, 30px);
    font-weight: 400;
    letter-spacing: 0.12em;
    text-decoration: none;
    text-transform: uppercase;
}

.site-branding {
    flex: 0 1 auto;
}

.custom-logo-link {
    display: block;
}

.custom-logo {
    width: auto;
    max-height: 58px;
}

.main-navigation {
    flex: 1;
}

.site-header .woodcock-nav-trigger {
    display: none;
    width: 46px !important;
    min-width: 46px !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 10px !important;
    border: 1px solid var(--line) !important;
    border-radius: 0 !important;
    appearance: none;
    background: rgba(0, 0, 0, 0.34) !important;
    box-shadow: none !important;
    color: var(--gold-light) !important;
    cursor: pointer;
    font: inherit;
    line-height: 1 !important;
    text-decoration: none !important;
}

.woodcock-nav-lines {
    display: grid;
    gap: 5px;
}

.woodcock-nav-lines span {
    display: block;
    width: 24px;
    height: 1px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
}

.site-header .woodcock-nav-trigger[aria-expanded="true"] .woodcock-nav-lines span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.site-header .woodcock-nav-trigger[aria-expanded="true"] .woodcock-nav-lines span:nth-child(2) {
    opacity: 0;
}

.site-header .woodcock-nav-trigger[aria-expanded="true"] .woodcock-nav-lines span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.primary-menu {
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.primary-menu a {
    color: var(--menu-color);
    font-size: 13px;
    letter-spacing: 0.17em;
    text-decoration: none;
    text-transform: uppercase;
}

.primary-menu a:hover,
.primary-menu a:focus {
    color: var(--gold-light);
}

.hero {
    position: relative;
    display: grid;
    min-height: 100svh;
    align-items: center;
    overflow: hidden;
    background-image:
        linear-gradient(90deg, rgba(4, 7, 13, 0.88) 0%, rgba(4, 7, 13, 0.56) 48%, rgba(4, 7, 13, 0.12) 100%),
        linear-gradient(0deg, var(--ink) 0%, transparent 20%),
        var(--hero-image);
    background-position: center;
    background-size: cover;
}

.hero::after {
    position: absolute;
    inset: auto 0 0;
    height: 160px;
    background: linear-gradient(transparent, var(--ink));
    content: "";
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(calc(100% - 40px), var(--content));
    margin: 70px auto 0;
}

.eyebrow,
.section-kicker {
    margin: 0 0 18px;
    color: var(--gold-light);
    font-size: 12px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(58px, 9vw, 128px);
    font-weight: 400;
    letter-spacing: 0.025em;
    line-height: 0.94;
    text-shadow: 0 4px 28px rgba(0, 0, 0, 0.58);
}

.hero-name-image {
    position: relative;
    max-width: 100%;
    margin: 0 0 24px;
}

.hero-name-image img {
    display: block;
    max-width: 100%;
    filter: drop-shadow(0 4px 28px rgba(0, 0, 0, 0.58));
}

.hero-tagline {
    max-width: 600px;
    margin: 26px 0 34px;
    color: #ddd7cc;
    font-size: clamp(21px, 2.5vw, 31px);
    font-style: italic;
    line-height: 1.35;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.button {
    display: inline-block;
    border: 1px solid var(--gold);
    background: var(--button-bg);
    color: var(--button-text);
    padding: 13px 22px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 160ms ease, color 160ms ease;
}

.button:hover,
.button:focus {
    background: var(--button-hover);
    color: var(--button-text);
}

.button-outline {
    background: rgba(8, 11, 17, 0.35);
    color: var(--ivory);
}

.button-outline:hover,
.button-outline:focus {
    background: var(--gold);
}

.section {
    position: relative;
    padding: clamp(80px, 10vw, 140px) 0;
}

.section h2 {
    margin: 0 0 24px;
    font-size: clamp(38px, 5vw, 66px);
    font-weight: 400;
    line-height: 1.05;
}

.featured,
.books-section {
    background:
        linear-gradient(rgba(9, 12, 19, 0.9), rgba(9, 12, 19, 0.96)),
        var(--section-image, none),
        radial-gradient(circle at 75% 30%, rgba(76, 85, 111, 0.22), transparent 40%),
        var(--ink);
    background-position: center;
    background-size: cover;
}

.featured-grid,
.about-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(300px, 1.35fr);
    gap: clamp(46px, 8vw, 110px);
    align-items: center;
}

.books-section .section-kicker,
.books-section > .section-inner > h2 {
    text-align: center;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(30px, 4vw, 60px);
    margin-top: 58px;
}

.book-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    color: var(--muted);
    text-align: center;
}

.book-card h3 {
    margin: 30px 0 10px;
    color: var(--heading);
    font-size: clamp(24px, 2.6vw, 36px);
    font-weight: 400;
    line-height: 1.1;
}

.book-card p {
    flex: 1;
    margin: 0 0 24px;
}

.book-cover {
    position: relative;
    display: grid;
    aspect-ratio: 2 / 3;
    max-width: 390px;
    align-items: center;
    justify-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    background:
        linear-gradient(rgba(10, 14, 24, 0.3), rgba(6, 8, 13, 0.86)),
        var(--hero-image);
    background-position: center;
    background-size: cover;
    box-shadow: 22px 28px 55px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.book-cover::before {
    position: absolute;
    inset: 18px;
    border: 1px solid var(--gold-light);
    content: "";
}

.book-cover-title {
    position: relative;
    z-index: 1;
    max-width: 80%;
    color: var(--ivory);
    font-size: clamp(32px, 4vw, 52px);
    letter-spacing: 0.08em;
    line-height: 1.05;
    text-transform: uppercase;
}

.book-cover.has-cover-image {
    display: block;
    aspect-ratio: auto;
    background: none;
}

.book-cover.has-cover-image::before {
    display: none;
}

.book-cover img {
    width: 100%;
    height: auto;
}

.prose {
    max-width: 700px;
    color: var(--muted);
}

.prose p:first-child {
    color: var(--ivory);
    font-size: 21px;
}

.about {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    background:
        linear-gradient(90deg, rgba(17, 24, 35, 0.96), rgba(9, 12, 19, 0.92)),
        var(--section-image);
    background-position: center;
    background-size: cover;
}

.about-grid {
    grid-template-columns: minmax(300px, 1.3fr) minmax(250px, 0.8fr);
}

.author-mark {
    display: grid;
    aspect-ratio: 1;
    max-width: 360px;
    place-items: center;
    justify-self: end;
    border: 1px solid var(--line);
    border-radius: 50%;
    background:
        radial-gradient(circle, color-mix(in srgb, var(--gold) 18%, transparent), transparent 60%),
        rgba(4, 7, 12, 0.64);
    color: var(--gold-light);
    font-size: clamp(60px, 9vw, 110px);
    letter-spacing: 0.06em;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.author-mark.has-portrait {
    overflow: hidden;
    background: #080b11;
}

.author-mark.has-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-content {
    position: relative;
    min-height: 75vh;
    padding: var(--page-spacing, 150px) 0 max(80px, calc(var(--page-spacing, 150px) * .7));
    background:
        linear-gradient(rgba(7, 10, 16, var(--page-overlay, .78)), rgba(9, 12, 19, var(--page-overlay, .78))),
        var(--page-image, var(--hero-image));
    background-position: var(--page-position, center);
    background-size: cover;
    background-attachment: fixed;
}

.page-layout {
    display: grid;
    align-items: center;
    gap: clamp(36px, 7vw, 90px);
}

.page-layout:not(.has-page-photo) {
    display: block;
}

.page-layout.has-page-photo.photo-right {
    grid-template-columns: minmax(0, 1fr) minmax(160px, var(--page-photo-width, 360px));
}

.page-layout.has-page-photo.photo-left {
    grid-template-columns: minmax(160px, var(--page-photo-width, 360px)) minmax(0, 1fr);
}

.page-layout.photo-left .page-feature-photo {
    order: -1;
}

.page-layout.photo-above {
    grid-template-columns: 1fr;
}

.page-layout.photo-above .page-feature-photo {
    width: min(100%, var(--page-photo-width, 360px));
    justify-self: center;
    margin-inline: auto;
}

.page-article {
    max-width: var(--page-content-width, 820px);
}

.page-align-center .page-article {
    margin-inline: auto;
    text-align: center;
}

.page-align-right .page-article {
    margin-left: auto;
    text-align: right;
}

.page-feature-photo {
    width: min(100%, var(--page-photo-width, 360px));
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
}

.page-feature-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-feature-photo.photo-shape-square,
.page-feature-photo.photo-shape-rounded,
.page-feature-photo.photo-shape-circle {
    aspect-ratio: 1;
}

.page-feature-photo.photo-shape-rounded {
    border-radius: 24px;
}

.page-feature-photo.photo-shape-circle {
    border-radius: 50%;
}

.page-content h1 {
    font-size: clamp(42px, 7vw, 76px);
    font-weight: 400;
    line-height: 1.05;
}

.newsletter {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(rgba(12, 17, 26, 0.9), rgba(12, 17, 26, 0.96)),
        var(--section-image, none),
        var(--slate);
    background-position: center;
    background-size: cover;
    text-align: center;
}

.newsletter .section-inner {
    max-width: 760px;
}

.newsletter p {
    color: var(--muted);
}

.site-footer {
    padding: 32px 0;
    background: #06080d;
    color: #898b90;
    font-size: 14px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-inner a {
    text-decoration: none;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 16px;
}

@media (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }

    .site-header .woodcock-nav-trigger {
        display: block !important;
        flex: 0 0 46px !important;
    }

    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        display: none;
        width: 100%;
        border-top: 1px solid var(--line);
        background: rgba(7, 10, 16, 0.98);
    }

    .main-navigation.is-open {
        display: block;
    }

    .primary-menu {
        display: block;
        width: min(calc(100% - 40px), var(--content));
        margin: 0 auto;
        padding: 14px 0;
    }

    .primary-menu a {
        display: block;
        padding: 11px 0;
    }

    .featured-grid,
    .about-grid {
        grid-template-columns: 1fr;
    }

    .page-content {
        background-attachment: scroll;
    }

    .page-layout.has-page-photo {
        grid-template-columns: 1fr;
    }

    .page-feature-photo,
    .page-layout.photo-left .page-feature-photo {
        order: -1;
        width: min(100%, var(--page-mobile-photo-width, 260px));
        justify-self: center;
    }

    .books-grid {
        grid-template-columns: 1fr;
    }

    .book-cover,
    .author-mark {
        justify-self: center;
    }

    .about-copy {
        order: 2;
    }

    .footer-inner {
        display: block;
        text-align: center;
    }

    .social-links {
        justify-content: center;
        margin-top: 14px;
    }
}

@media (max-width: 600px) {
    .hero {
        background-position: 62% center;
    }

    .hero h1 {
        font-size: clamp(50px, 17vw, 76px);
    }

    .button-row {
        display: grid;
    }

    .button {
        text-align: center;
    }
}
