/* =========================================================
   THE SUPERCONDUCTORS SERIES
   mykindlebooks.net/books/superconductors/
   Shared stylesheet: script.css
   ========================================================= */


/* =========================================================
   1. RESET / BASE
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at top, rgba(43, 67, 116, 0.18), transparent 35%),
        linear-gradient(180deg, #07101f 0%, #03070d 55%, #05070b 100%);
    color: #f2f2f2;
    line-height: 1.75;
    font-size: 18px;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #e3b955;
    text-decoration: none;
    transition: 0.25s ease;
}

a:hover {
    color: #ffe09a;
}

strong {
    color: #ffffff;
}

p {
    margin-bottom: 1.25rem;
}


/* =========================================================
   2. SITE WRAPPER
   ========================================================= */

.site-wrapper {
    width: 100%;
    overflow: hidden;
}

.container {
    width: min(1180px, 92%);
    margin: 0 auto;
}


/* =========================================================
   3. HEADER
   ========================================================= */

.site-header {
    background: rgba(3, 8, 16, 0.96);
    border-bottom: 1px solid rgba(227, 185, 85, 0.35);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-inner {
    width: min(1220px, 94%);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    min-height: 78px;
}

.site-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #f2cf78;
    white-space: nowrap;
}

.site-title span {
    color: #ffffff;
}


/* =========================================================
   4. NAVIGATION
   ========================================================= */

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 4px;
}

.main-nav a {
    display: block;
    padding: 10px 11px;
    color: #e9e9e9;
    font-size: 0.83rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 5px;
}

.main-nav a:hover,
.main-nav a.active {
    color: #07101f;
    background: linear-gradient(135deg, #c8942f, #f0cf79);
}


/* =========================================================
   5. HERO
   ========================================================= */

.hero {
    position: relative;
    padding: 85px 0 90px;
    text-align: center;
    border-bottom: 1px solid rgba(227, 185, 85, 0.25);
    background:
        radial-gradient(circle at 50% 25%, rgba(218, 168, 56, 0.20), transparent 28%),
        radial-gradient(circle at 20% 80%, rgba(42, 75, 133, 0.20), transparent 32%);
}

.hero::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 70%;
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(
        90deg,
        transparent,
        rgba(234, 192, 91, 0.75),
        transparent
    );
}

.hero-content {
    width: min(950px, 92%);
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.eyebrow {
    color: #e5bc59;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.hero h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.03;
    color: #ffffff;
    margin-bottom: 22px;
    text-shadow: 0 3px 24px rgba(0, 0, 0, 0.85);
}

.hero h1 .gold {
    color: #e5bc59;
}

.hero h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.15rem, 2.4vw, 1.8rem);
    line-height: 1.4;
    font-weight: 400;
    color: #e3e3e3;
    max-width: 850px;
    margin: 0 auto 25px;
}

.hero p {
    max-width: 820px;
    margin: 0 auto 30px;
    color: #cfd4dc;
    font-size: 1.05rem;
}


/* =========================================================
   6. BUTTONS
   ========================================================= */

.btn,
.button {
    display: inline-block;
    padding: 13px 25px;
    margin: 6px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: 0.25s ease;
}

.btn-gold,
.button-gold {
    color: #07101f;
    background: linear-gradient(135deg, #b98227, #f0cf79);
    box-shadow: 0 6px 22px rgba(219, 167, 52, 0.18);
}

.btn-gold:hover,
.button-gold:hover {
    color: #02060d;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(219, 167, 52, 0.32);
}

.btn-outline,
.button-outline {
    color: #f2cf78;
    border: 1px solid #bc913b;
    background: rgba(0, 0, 0, 0.15);
}

.btn-outline:hover,
.button-outline:hover {
    background: rgba(227, 185, 85, 0.12);
    color: #ffffff;
}


/* =========================================================
   7. CONTENT SECTIONS
   ========================================================= */

.content-section {
    padding: 70px 0;
}

.content-section:nth-of-type(even) {
    background: rgba(255, 255, 255, 0.018);
}

.content-section h2,
.page-content h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    line-height: 1.2;
    color: #e3b955;
    margin-bottom: 24px;
}

.content-section h3,
.page-content h3 {
    font-family: Georgia, "Times New Roman", serif;
    color: #ffffff;
    font-size: 1.45rem;
    line-height: 1.3;
    margin: 30px 0 15px;
}

.content-section h4,
.page-content h4 {
    color: #e4bd62;
    margin: 24px 0 10px;
    font-size: 1.08rem;
}

.section-intro {
    max-width: 850px;
    margin: 0 auto 40px;
    text-align: center;
    color: #cbd0d8;
}


/* =========================================================
   8. SPLIT / ALTERNATING SECTIONS
   ========================================================= */

.split-section {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.5fr);
    gap: 55px;
    align-items: center;
}

.split-section.reverse {
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.8fr);
}

.split-section.reverse .split-image {
    order: 2;
}

.split-section.reverse .split-copy {
    order: 1;
}

.split-image img {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(226, 184, 82, 0.45);
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(226, 184, 82, 0.08);
}

.split-copy {
    min-width: 0;
}


/* =========================================================
   9. PORTRAITS
   ========================================================= */

.portrait {
    max-width: 390px;
    margin: 0 auto;
}

.portrait img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
}

.portrait.berny img {
    border-color: #e5bd59;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.55),
        0 0 40px rgba(220, 168, 54, 0.17);
}


/* =========================================================
   10. BOOK DISPLAY
   ========================================================= */

.book-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 45px;
    margin-top: 35px;
}

.book-card {
    background:
        linear-gradient(145deg, rgba(23, 34, 52, 0.88), rgba(5, 10, 18, 0.96));
    border: 1px solid rgba(226, 184, 82, 0.32);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.35);
}

.book-card img {
    width: min(280px, 80%);
    margin: 0 auto 26px;
    border-radius: 4px;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.55);
}

.book-card h2,
.book-card h3 {
    text-align: center;
}

.book-card p {
    color: #d1d4da;
}


/* =========================================================
   11. FEATURE CARDS
   ========================================================= */

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 35px 0;
}

.card {
    background: linear-gradient(
        145deg,
        rgba(18, 28, 44, 0.92),
        rgba(5, 10, 18, 0.96)
    );
    border: 1px solid rgba(227, 185, 85, 0.26);
    border-radius: 10px;
    padding: 28px;
    transition: 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(227, 185, 85, 0.6);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.38);
}

.card h3 {
    margin-top: 0;
    color: #e4bd62;
}

.card p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   12. SUPERCONDUCTOR CURRENT / TRAIT CARDS
   ========================================================= */

.current-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 30px 0;
}

.current-item {
    background: rgba(14, 23, 37, 0.8);
    border-left: 4px solid #d9aa44;
    padding: 20px 22px;
    border-radius: 5px;
}

.current-item strong {
    display: block;
    color: #e8bf61;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.13rem;
    margin-bottom: 5px;
}


/* =========================================================
   13. QUOTES / PRINCIPLES
   ========================================================= */

blockquote,
.quote-box,
.principle {
    position: relative;
    max-width: 900px;
    margin: 35px auto;
    padding: 28px 34px;
    background: linear-gradient(
        135deg,
        rgba(26, 42, 67, 0.82),
        rgba(10, 16, 27, 0.9)
    );
    border-left: 5px solid #e2b54e;
    border-radius: 7px;
    color: #f3f3f3;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.22rem;
    line-height: 1.65;
}

.principle {
    text-align: center;
    border-left: none;
    border-top: 1px solid rgba(227, 185, 85, 0.45);
    border-bottom: 1px solid rgba(227, 185, 85, 0.45);
}

.principle::before {
    content: "SUPERCONDUCTOR PRINCIPLE";
    display: block;
    color: #dcb14c;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    margin-bottom: 12px;
}


/* =========================================================
   14. CONNECTIONS PAGE
   ========================================================= */

.connection-list {
    display: grid;
    gap: 20px;
    margin: 35px 0;
}

.connection {
    background: rgba(13, 22, 36, 0.9);
    border: 1px solid rgba(227, 185, 85, 0.23);
    border-radius: 8px;
    padding: 24px 28px;
}

.connection h3 {
    margin: 0 0 7px;
    color: #e6bd5d;
}

.connection .role {
    color: #f3f3f3;
    font-weight: 700;
    margin-bottom: 8px;
}

.connection a {
    word-break: break-word;
}


/* =========================================================
   15. LISTS
   ========================================================= */

.page-content ul,
.page-content ol,
.content-section ul,
.content-section ol {
    padding-left: 28px;
    margin: 0 0 1.5rem;
}

.page-content li,
.content-section li {
    margin-bottom: 8px;
}

.check-list {
    list-style: none;
    padding-left: 0 !important;
}

.check-list li {
    position: relative;
    padding-left: 30px;
}

.check-list li::before {
    content: "◆";
    position: absolute;
    left: 3px;
    top: 0;
    color: #ddb049;
}


/* =========================================================
   16. PAGE BANNER
   ========================================================= */

.page-banner {
    padding: 65px 0;
    text-align: center;
    background:
        radial-gradient(circle at center, rgba(224, 174, 61, 0.13), transparent 35%),
        linear-gradient(180deg, #0d1728, #050b14);
    border-bottom: 1px solid rgba(225, 181, 74, 0.3);
}

.page-banner h1 {
    font-family: Georgia, "Times New Roman", serif;
    color: #ffffff;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    line-height: 1.1;
    margin-bottom: 15px;
}

.page-banner p {
    max-width: 800px;
    margin: 0 auto;
    color: #c8ced7;
}


/* =========================================================
   17. MAIN PAGE CONTENT
   ========================================================= */

.page-content {
    width: min(980px, 92%);
    margin: 0 auto;
    padding: 65px 0 80px;
}

.page-content > p:first-of-type {
    font-size: 1.08rem;
}


/* =========================================================
   18. CALL TO ACTION
   ========================================================= */

.cta {
    margin: 50px auto;
    padding: 42px 35px;
    max-width: 1000px;
    text-align: center;
    background:
        radial-gradient(circle at top, rgba(219, 170, 56, 0.16), transparent 50%),
        #0b1421;
    border: 1px solid rgba(227, 185, 85, 0.38);
    border-radius: 12px;
}

.cta h2 {
    margin-bottom: 15px;
    color: #e7bd5d;
}

.cta p {
    max-width: 760px;
    margin: 0 auto 22px;
}


/* =========================================================
   19. HIGHLIGHT BOX
   ========================================================= */

.highlight-box {
    margin: 28px 0;
    padding: 25px 28px;
    background: rgba(217, 171, 65, 0.08);
    border: 1px solid rgba(217, 171, 65, 0.35);
    border-radius: 8px;
}

.highlight-box h3 {
    margin-top: 0;
    color: #e1b353;
}


/* =========================================================
   20. AUTHOR BOX
   ========================================================= */

.author-box {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 35px;
    align-items: center;
    margin: 45px 0;
    padding: 30px;
    background: rgba(13, 22, 36, 0.9);
    border: 1px solid rgba(226, 184, 82, 0.3);
    border-radius: 10px;
}

.author-box img {
    width: 220px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 8px;
}

.author-box h2,
.author-box h3 {
    margin-top: 0;
}


/* =========================================================
   21. BREADCRUMBS
   ========================================================= */

.breadcrumbs {
    padding: 15px 0;
    font-size: 0.84rem;
    color: #929aa6;
}

.breadcrumbs a {
    color: #d6ad50;
}


/* =========================================================
   22. FOOTER
   ========================================================= */

.site-footer {
    background: #02050a;
    border-top: 1px solid rgba(227, 185, 85, 0.3);
    padding: 45px 0 30px;
    color: #9ca3ad;
    font-size: 0.88rem;
    text-align: center;
}

.footer-nav {
    margin-bottom: 18px;
}

.footer-nav a {
    display: inline-block;
    margin: 5px 9px;
    color: #d3ab4e;
}

.footer-nav a:hover {
    color: #f4d47f;
}

.site-footer p {
    margin-bottom: 7px;
}


/* =========================================================
   23. UTILITY CLASSES
   ========================================================= */

.text-center {
    text-align: center;
}

.gold {
    color: #e2b653;
}

.white {
    color: #ffffff;
}

.muted {
    color: #aab1bb;
}

.small {
    font-size: 0.88rem;
}

.max-800 {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.mt-0 {
    margin-top: 0;
}

.mt-20 {
    margin-top: 20px;
}

.mt-40 {
    margin-top: 40px;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}


/* =========================================================
   24. RESPONSIVE
   ========================================================= */

@media (max-width: 1000px) {

    .header-inner {
        flex-direction: column;
        justify-content: center;
        padding: 16px 0;
    }

    .site-title {
        white-space: normal;
        text-align: center;
    }

    .main-nav ul {
        justify-content: center;
    }

    .split-section,
    .split-section.reverse {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .split-section.reverse .split-image,
    .split-section.reverse .split-copy {
        order: initial;
    }

    .split-image {
        max-width: 540px;
        margin: 0 auto;
    }

    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


@media (max-width: 760px) {

    body {
        font-size: 17px;
    }

    .site-header {
        position: relative;
    }

    .main-nav ul {
        gap: 2px;
    }

    .main-nav a {
        font-size: 0.72rem;
        padding: 8px 7px;
    }

    .hero {
        padding: 58px 0 62px;
    }

    .content-section {
        padding: 50px 0;
    }

    .book-grid,
    .card-grid,
    .current-grid {
        grid-template-columns: 1fr;
    }

    .book-card {
        padding: 25px 20px;
    }

    .author-box {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .author-box img {
        margin: 0 auto;
    }

    blockquote,
    .quote-box,
    .principle {
        padding: 24px 22px;
        font-size: 1.08rem;
    }

    .page-content {
        padding: 45px 0 60px;
    }
}


@media (max-width: 480px) {

    body {
        font-size: 16px;
    }

    .container {
        width: 90%;
    }

    .site-title {
        font-size: 1.12rem;
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
    }

    .main-nav li,
    .main-nav a {
        width: 100%;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.35rem;
    }

    .hero h2 {
        font-size: 1.08rem;
    }

    .btn,
    .button {
        display: block;
        width: 100%;
        max-width: 320px;
        margin: 10px auto;
    }

    .page-banner {
        padding: 45px 0;
    }

    .content-section h2,
    .page-content h2 {
        font-size: 1.8rem;
    }
}


/* =========================================================
   25. PRINT
   ========================================================= */

@media print {

    .site-header,
    .site-footer,
    .btn,
    .button,
    .breadcrumbs {
        display: none;
    }

    body {
        background: #ffffff;
        color: #000000;
    }

    a {
        color: #000000;
    }

    .content-section,
    .page-content {
        padding: 20px 0;
    }

    .card,
    .book-card,
    .highlight-box,
    .quote-box,
    .principle {
        background: #ffffff;
        color: #000000;
        box-shadow: none;
    }
}