:root {
    --bulma-link-h: 29deg;
    --bulma-link-s: 53%;
    --bulma-link-l: 37%;
    --bulma-primary-h: 29deg;
    --bulma-primary-s: 53%;
    --bulma-primary-l: 37%;
    --paper: #f6f3ee;
    --paper-strong: #efe8de;
    --ink: #120e0b;
    --muted: #6e655d;
    --line: rgba(31, 27, 23, 0.14);
    --accent: #8c5a2b;
    --accent-dark: #62401f;
    --shadow: 0 18px 45px rgba(23, 20, 16, 0.08);
    --radius: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.85), transparent 25%),
        linear-gradient(180deg, #fbfaf7 0%, var(--paper) 100%);
    line-height: 1.7;
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

.page-shell {
    min-height: 100vh;
}

.site-header {
    padding-top: 2.5rem;
    background-image: url("../img/BG.png");
    background-position: center;
    background-size: cover;
}

.masthead {
    text-align: center;
    padding-bottom: 0;
}

.brand-logo,
.custom-logo {
    width: min(100%, 380px);
    margin: 0 auto;
}

.tagline-bar {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #efe8de;
}

.tagline {
    max-width: 52rem;
    margin: 0 auto;
    padding: 0.75rem 0;
    color: var(--muted);
    font-size: 0.95rem;
    text-align: center;
}

.top-nav {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #efe8de;
    backdrop-filter: blur(12px);
}

.top-nav .navbar {
    position: relative;
    background: transparent;
    align-items: stretch;
    justify-content: center;
}

.top-nav .navbar-menu {
    background: transparent;
}

.top-nav .navbar-brand {
    align-items: stretch;
}

.top-nav .navbar-burger {
    display: none;
    align-self: stretch;
    height: auto;
    min-height: 3.75rem;
    margin-left: auto;
    background: transparent;
    border: 0;
}

.top-nav .navbar-start {
    margin: 0 auto;
}

/* Remove default list bullets when WP outputs a <ul> in the navbar and make items inline */
.top-nav .navbar-start,
.top-nav .navbar-start ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.top-nav .navbar-start li {
    list-style: none;
    display: flex;
    align-items: stretch;
}

.top-nav .navbar-item {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    min-height: 3.75rem;
    padding-top: 0;
    padding-bottom: 0;
    font-size: 0.86rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink);
}

.top-nav .navbar-item::after {
    content: "";
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0.8rem;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}
.top-nav .navbar-item:hover{
    background-color: #d7c2a4;
}
.top-nav .navbar-item:hover::after,
.top-nav .navbar-item.is-active::after {
    transform: scaleX(1);
}

.navbar-burger span {
    height: 1px;
}

.top-nav .navbar-menu {
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.top-nav .navbar-start {
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.top-nav .navbar-item.is-active,
.top-nav .navbar-item:hover {
    background-color: #d7c2a4;
}

.top-nav .navbar-menu.is-active {
    display: flex;
}

.hero-panel {
    padding: 4rem 1.5rem 3rem;
}

.hero-frame {
    padding: 2.5rem;
    background:
        linear-gradient(135deg, rgba(22, 18, 14, 0.8), rgba(22, 18, 14, 0.35)),
        url("../img/Anthony-by-Jack-Lawson.jpg") center 20% / cover no-repeat;
    box-shadow: var(--shadow);
}

.hero-kicker,
.section-kicker,
.title-band .subtitle {
    color: #d7c2a4;
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.hero-frame .title,
.hero-frame .subtitle,
.hero-frame p {
    color: #fff7ee;
}

.hero-frame .title {
    font-size: clamp(2.3rem, 5vw, 4.75rem);
    line-height: 1.02;
}

.hero-frame p {
    max-width: 40rem;
    margin-top: 1rem;
    font-size: 1.02rem;
}

.hero-actions {
    margin-top: 1.75rem;
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.button.is-accent {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
    border-radius: var(--radius);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.button.is-accent:hover {
    background: #a46c39;
    border-color: #a46c39;
    color: #fff;
}

.button.is-outline {
    background: transparent;
    border: 1px solid rgba(255, 247, 238, 0.65);
    color: #fff7ee;
    border-radius: var(--radius);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.button.is-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.section-block {
    padding: 1.5rem;
}

.section-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(214, 205, 195, 0.8);
    box-shadow: var(--shadow);
}

.section-heading {
    margin-bottom: 1.4rem;
}

.section-heading .title {
    font-size: clamp(1.8rem, 3vw, 2.75rem);
    margin-bottom: 0.35rem;
    color: #a46c39;
}

.section-heading p,
.muted-copy,
.story-date,
.meta-copy,
.footer-copy {
    color: var(--muted);
}

.featured-story {
    overflow: hidden;
}

.featured-story .media-column {
    min-height: 100%;
}

.featured-story .media-column img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
}

.featured-story .content-column {
    display: flex;
    align-items: center;
    padding: 2rem;
}

.featured-story .content-column div {
    padding: 2rem;
}

.featured-story .title {
    color: #a46c39;
    font-size: clamp(2rem, 3vw, 3.25rem);
    line-height: 1.05;
}

.editorial-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1rem;
    color: var(--accent-dark);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    text-decoration: none;
}

.editorial-link:hover {
    color: #a46c39;
}

.event-card {
    padding: 1.5rem;
}

.event-card .title {
    color: #a46c39;
}

.date-badge {
    display: grid;
    align-items: center;
    justify-items: center;
    min-height: 170px;
    padding: 1rem;
    background: var(--paper-strong);
    border: 1px solid var(--line);
}

.date-badge .month,
.date-badge .year {
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.date-badge .day {
    font-size: 3rem;
    line-height: 1;
}

.book-grid .book-card {
    display: block;
    text-decoration: none;
}

.book-cover {
    overflow: hidden;
    box-shadow: 0 15px 28px rgba(28, 22, 16, 0.14);
}

.book-cover img {
    width: 100%;
    aspect-ratio: 0.7;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.book-card:hover .book-cover img {
    transform: scale(1.04);
}

.book-meta {
    padding-top: 0.85rem;
}

.book-meta .title {
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
}

.title-band {
    padding: 2.3rem 1.5rem 1.2rem;
}

.title-band .band-inner {
    border-bottom: 1px solid var(--line);
    padding-bottom: 1.3rem;
}

.title-band .title {
    font-size: clamp(2rem, 4vw, 4rem);
    margin-top: 0.2rem;
    color: #a46c39;
}

.main-content {
    padding: 1rem 1.5rem 0;
}

.content-card,
.sidebar-card,
.news-item,
.gallery-panel,
.footer-panel {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(214, 205, 195, 0.82);
    box-shadow: var(--shadow);
}

.content-card,
.sidebar-card,
.gallery-panel,
.footer-panel {
    padding: 1.6rem;
}

.content-card .feature-image {
    margin-bottom: 1.4rem;
}

.content-card .feature-image img {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
}

.content-card .content p+p {
    margin-top: 1rem;
}

.sidebar-stack {
    display: grid;
    gap: 1.25rem;
}

.sidebar-card .title {
    color: #a46c39;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--line);
}

.mini-item {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
}

.mini-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.mini-item h3,
.mini-item h4 {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.news-list {
    display: grid;
    gap: 1.5rem;
}

.news-item {
    overflow: hidden;
}

.news-item .columns {
    margin: 0;
}

.news-item .column {
    padding: 0;
}

.news-item-image img {
    width: 100%;
    height: 100%;
    min-height: 250px;
    object-fit: cover;
}

.news-item-copy div {
    padding: 1.85rem;
}

.news-item-copy .title {
    font-size: clamp(1.6rem, 3vw, 2.35rem);
    line-height: 1.08;
    color: #a46c39;
}

.pagination-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1.2rem;
}

.pagination-links a,
.pagination-links span,
.pagination-links .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.65rem;
    min-height: 2.65rem;
    padding: 0 1rem;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.88);
    text-decoration: none;
}

.pagination-links .current {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

.pagination-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
}

.gallery-panel {
    padding: 0;
    overflow: hidden;
}

.gallery-stages {
    display: block;
}

.carousel-image {
    min-height: 100%;
}

.carousel-stage {
    display: none;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    align-items: center;
}

.carousel-stage.is-active {
    display: grid;
}

.carousel-stage img {
    width: 100%;
    height: 100%;
    min-height: 500px;
    object-fit: cover;
}

.carousel-stage .carousel-image img {
    display: block;
}

.carousel-copy {
    padding: 2rem;
}

.carousel-copy .title {
    font-size: clamp(1.85rem, 3vw, 3rem);
    line-height: 1.06;
    color: #a46c39;
}

.carousel-controls {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.4rem;
}

.carousel-button {
    border: 1px solid var(--ink);
    background: transparent;
    color: var(--ink);
    padding: 0.85rem 1.15rem;
    font: inherit;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
}

.carousel-button:hover {
    background: #a46c39;
    border-color: #a46c39;
    color: #fff;
}

.thumbnail-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 0.85rem;
    padding: 1.25rem 1.5rem 1.5rem;
    border-top: 1px solid var(--line);
    background: #fcfbf8;
}

.thumb-button {
    padding: 0;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
}

.thumb-button.is-active {
    border-color: var(--accent);
}

.thumb-button img {
    width: 100%;
    height: 82px;
    object-fit: cover;
}

.thumb-button span {
    display: block;
    padding-top: 0.45rem;
    text-align: left;
    font-size: 0.82rem;
    color: var(--muted);
}

.gallery-grid {
    margin-top: 1.5rem;
}

.gallery-grid .card {
    height: 100%;
    border-radius: 0;
    box-shadow: none;
    border: 1px solid var(--line);
}

.gallery-grid .card-image img {
    height: 220px;
    width: 100%;
    object-fit: cover;
}

.site-footer {
    padding: 3rem 1.5rem 2rem;
}

.site-footer .columns {
    align-items: stretch;
}

.site-footer .column {
    display: flex;
}

.footer-panel {
    background: rgba(255, 255, 255, 0.72);
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.footer-widget + .footer-widget {
    margin-top: 1rem;
}

.footer-widget {
    display: block;
}

.footer-panel .title {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    color: #a46c39;
    letter-spacing: 0.08em;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li+li {
    margin-top: 0.45rem;
}

.copyright {
    margin-top: 1.6rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.92rem;
    text-align: center;
}

@media (max-width: 1023px) {
    .top-nav .navbar-burger {
        display: flex;
    }

    .top-nav .navbar-brand {
        width: 100%;
    }

    .top-nav .navbar {
        flex-wrap: wrap;
    }

    .top-nav .navbar-menu {
        display: none;
        width: 100%;
        padding-bottom: 1rem;
    }

    .top-nav .navbar-menu.is-active {
        display: block;
    }

    .top-nav .navbar-start {
        width: 100%;
        flex-direction: column;
    }

    .top-nav .navbar-start li {
        width: 100%;
    }

    .top-nav .navbar-item::after {
        display: none;
    }

    .top-nav .navbar-item {
        width: 100%;
        justify-content: center;
    }

    .featured-story .content-column,
    .news-item-copy,
    .carousel-copy {
        padding: 1.4rem;
    }

    .carousel-stage.is-active {
        grid-template-columns: 1fr;
    }

    .carousel-stage .carousel-image img {
        min-height: 260px;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding-top: 1.75rem;
        
    }

    .hero-panel,
    .title-band,
    .main-content,
    .site-footer,
    .section-block {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero-frame {
        padding: 1.5rem;
    }

    .featured-story .media-column img,
    .carousel-stage img {
        min-height: 260px;
    }

    .date-badge {
        min-height: 120px;
    }

    .news-item-image img {
        min-height: 220px;
    }
}
