/* =====================================================================
   Inspirations and Impact: stylesheet
   Layout-focused revision. Colours match the original site exactly.
   ===================================================================== */
html {
    background: #03070d;
    color-scheme: dark;
}
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    color: #ffffff;
    font-family: 'Cinzel', Georgia, serif;
    overflow-x: hidden;
	background:transparent;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.7);
    outline-offset: 4px;
}

/* ---------- Ad placeholders ----------
   Set to 0 height so they do not push the layout. Give them a height
   again when real ad code is inserted. */
.ad-banner-zone {
    width: 100%;
    min-height: 0;
}

/* ---------- Top menu: full width, always at the top ---------- */

.site-nav {
    position: sticky;
    top: 0;
    z-index: 10;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2px 10px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 6px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.nav-separator {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.5rem;
}

/* ---------- Page container ---------- */

.content {
    width: 100%;
    max-width: 880px;
    margin: 0 auto;
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    padding: 0 16px 40px;
}

.content--center {
    align-items: center;
    justify-content: center;
    text-align: center;
}

.content--prose {
    max-width: 880px;
    line-height: 1.75;
}

.content--prose p {
    margin-bottom: 1.1rem;
    font-size: 0.95rem;
    opacity: 0.95;
}
.content--prose .page-title {
    line-height: 1.2;
    margin-top: 26px;
}
.page-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 12px;
    margin: 24px 0 1.25rem;
    padding-bottom: 0.6rem;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-title small {
    font-size: 0.8rem;
    opacity: 0.5;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lede {
    margin: 1rem 0 1.5rem;
    line-height: 1.6;
    opacity: 0.85;
}

/* ---------- Quote page ----------
   The stage fills the screen below the menu and centres the quote
   both vertically and horizontally, whatever its length. */

.quote-page {
    text-align: center;
}

.quote-stage {
    flex: 1 0 auto;
    min-height: calc(100dvh - 90px);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Keeps text clear of the side chevrons on every screen size */
    padding: 32px 1vw;
}

.quote-block {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.quote-text {
    font-size: clamp(1.25rem, 5.5vw, 2.2rem);
    line-height: 1.4;
    font-weight: 400;
    text-wrap: balance;
    overflow-wrap: anywhere;
    text-align: center;
}

.quote-text--intro {
    margin-top: 1rem;
}

.logo {
    display: block;
    margin: 0 auto 1rem;
}

/* Author and source: centred on mobile, right-aligned on desktop */
.quote-block figcaption {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
    margin-top: 1.5rem;
}

.quote-author {
    font-size: clamp(1rem, 4vw, 1.4rem);
    font-style: italic;
    opacity: 0.85;
}

.quote-author a {
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.quote-author a:hover {
    border-bottom-color: currentColor;
}

.quote-source {
    font-size: clamp(0.8rem, 3.5vw, 1rem);
    opacity: 0.5;
    overflow-wrap: anywhere;
	max-width:440px;
}

/* ---------- Commentary: centred heading and body, readable serif ---------- */

.commentary {
    width: 100%;
    max-width: 720px;
    margin: 0 auto 2rem;
    padding: 22px 20px;
    text-align: center;
    
}

.commentary .section-title {
    margin: 0 0 1rem;
    padding-bottom: 0;
    border-bottom: none;
    text-align: center;
}

.commentary p {
    margin-bottom: 0.9rem;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1rem;
    line-height: 1.8;
    letter-spacing: 0;
    text-align: center;
}

.commentary p:last-child {
    margin-bottom: 0;
}

/* ---------- Side chevrons: visible on all screens, touch swipe still works ---------- */

.side-nav {
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 5;
    width: 12vw;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.15);
    font-size: 2rem;
    text-decoration: none;
    user-select: none;
    transition: all 0.3s ease;
}

.side-nav--prev {
    left: 0;
}

.side-nav--next {
    right: 0;
}

.side-nav:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.02);
}

/* ---------- Buttons ---------- */

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin-top: 2.5rem;
    padding: 12px 28px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 30px;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-decoration: none;
    text-transform: uppercase;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.9);
}

/* ---------- Cards ---------- */

.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    list-style: none;
}

.card a {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 44px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #ffffff;
    text-decoration: none;
    text-align: left;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.card a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(13, 31, 34, 1);
    transform: translateY(-2px);
}

.card-author {
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.5;
}

.card-title {
    font-size: 1.05rem;
    letter-spacing: 0.06rem;
    line-height: 1.4;
}

/* ---------- Author page ---------- */

.bio {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
    margin-bottom: 1rem;
}

.bio p {
    line-height: 1.7;
    opacity: 0.85;
}

.bio-image {
    width: 130px;
    height: 160px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    align-self: center;
}

/* =====================================================================
   Small phones
   ===================================================================== */

@media (max-width: 400px) {
    .nav-separator {
        display: none;
    }

    .nav-link {
        font-size: 0.75rem;
        padding: 0 4px;
    }

    .commentary {
        padding: 18px 16px;
    }
}

/* =====================================================================
   Tablet and up
   ===================================================================== */

@media (min-width: 600px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .quote-block figcaption {
        align-items: flex-end;
        text-align: right;
    }

.bio {
        flex-direction: row;
        align-items: flex-start;
        gap: 24px;
    }

    .bio p {
        flex: 1 1 auto;
        margin: 0;
    }

    .bio-image {
        order: 2;               /* moves the image after the text */
        flex-shrink: 0;
        align-self: flex-start;
        width: 160px;
        height: 200px;
    }
}

/* =====================================================================
   Desktop
   ===================================================================== */

@media (min-width: 769px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .side-nav {
        font-size: 2.5rem;
    }

    .quote-text {
        font-size: clamp(1.8rem, 3.8vw, 1.6rem);
    }
}

/* =====================================================================
   Reduced motion
   ===================================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .card a:hover {
        transform: none;
    }
}

/* ---------- Subtle background drift ----------
   A fixed layer behind the content. It reuses the exact gradient colours
   and slowly shifts their positions. */

.bg-drift {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 160vmax;
    height: 160vmax;
    margin: -80vmax 0 0 -80vmax;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 15% 15%, rgba(63, 131, 248, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 85% 85%, rgba(164, 53, 240, 0.25) 0%, transparent 35%),
        radial-gradient(circle at center, #0f1c30 0%, #03070d 100%);
    animation: bg-drift 18s linear infinite;
    will-change: transform;
}

@keyframes bg-drift {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .bg-drift {
        animation: none;
    }
}
/* =====================================================================
   Menu: mobile dropdown, desktop horizontal bar
   ===================================================================== */

/* ---------- Mobile (default) ---------- */

.site-nav {
    position: sticky;
    top: 0;
    z-index: 10;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Hide the native checkbox; the label is the visible control */
.menu-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.menu-toggle-icon {
    position: relative;
    display: block;
    width: 20px;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 -6px 0 rgba(255, 255, 255, 0.8), 0 6px 0 rgba(255, 255, 255, 0.8);
}

/* Panel is hidden until the toggle is checked */
.menu-panel {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding-top: 10px;
}

.menu-checkbox:checked ~ .menu-panel {
    display: flex;
}

.menu-checkbox:focus-visible ~ .menu-toggle {
    outline: 2px solid rgba(255, 255, 255, 0.7);
    outline-offset: 3px;
}

.nav-link {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
}

.nav-link:hover,
.nav-link:active {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.nav-separator {
    display: none;
}

/* ---------- Desktop: horizontal bar, no toggle ---------- */

@media (min-width: 720px) {
    .site-nav {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 2px 10px;
        padding: 6px 16px;
        max-width: none;
    }

    .menu-checkbox,
    .menu-toggle {
        display: none;
    }

    .menu-panel {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 2px 10px;
        padding-top: 0;
    }

    .nav-link {
        display: inline-flex;
        min-height: 44px;
        padding: 0 6px;
        border: 0;
        border-radius: 0;
        background: none;
        color: rgba(255, 255, 255, 0.6);
        font-size: 0.8rem;
    }

    .nav-link:hover,
    .nav-link.active {
        background: none;
        color: #ffffff;
    }

    .nav-separator {
        display: inline;
        color: rgba(255, 255, 255, 0.2);
        font-size: 0.5rem;
    }
}


