:root {
    --navy: #0b1f3a;
    --navy-soft: #12345a;
    --blue: #1e40af;
    --blue-light: #dbeafe;
    --cream: #fff8ed;
    --cream-deep: #f4e7d0;
    --ink: #122033;
    --muted: #5b6b7d;
    --white: #ffffff;
    --line: rgba(18, 32, 51, 0.12);
    --shadow: 0 24px 70px rgba(11, 31, 58, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, #fffaf2 0%, #f8fbff 42%, #ffffff 100%);
}

a {
    color: inherit;
}

.author-topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1180px;
    margin: 0 auto;
    padding: 1.2rem 1.5rem;
}

.author-brand,
.topbar-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--navy);
    font-weight: 800;
    text-decoration: none;
}

.author-brand img {
    border-radius: 10px;
}

.topbar-link {
    padding: 0.65rem 1rem;
    border: 1px solid rgba(11, 31, 58, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(8px);
}

.author-shell {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
}

.author-hero {
    position: relative;
    overflow: hidden;
    padding: 7.5rem 0 4.5rem;
    background:
        radial-gradient(circle at 15% 18%, rgba(219, 234, 254, 0.85), transparent 28%),
        radial-gradient(circle at 82% 16%, rgba(244, 231, 208, 0.92), transparent 30%),
        linear-gradient(135deg, #fffaf2 0%, #eef6ff 100%);
}

.cloud {
    position: absolute;
    width: 240px;
    height: 86px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
    filter: blur(1px);
}

.cloud::before,
.cloud::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: inherit;
}

.cloud::before {
    width: 110px;
    height: 110px;
    left: 32px;
    top: -48px;
}

.cloud::after {
    width: 135px;
    height: 135px;
    right: 28px;
    top: -68px;
}

.cloud-one {
    left: -70px;
    top: 150px;
}

.cloud-two {
    right: -80px;
    bottom: 80px;
    opacity: 0.65;
}

.stars {
    position: absolute;
    right: 12%;
    top: 8.5rem;
    color: #c79b42;
    letter-spacing: 0.8rem;
    opacity: 0.85;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
    gap: 3rem;
    align-items: center;
}

.eyebrow,
.section-kicker {
    margin: 0 0 0.9rem;
    color: var(--blue);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2 {
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
}

h1 {
    margin-bottom: 1rem;
    font-size: clamp(3.5rem, 9vw, 7rem);
    line-height: 0.95;
}

h2 {
    margin-bottom: 1rem;
    font-size: clamp(2rem, 4vw, 3.35rem);
    line-height: 1.05;
}

.hero-intro {
    max-width: 36rem;
    color: var(--muted);
    font-size: 1.15rem;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.5rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.8rem 1.25rem;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
}

.button.primary {
    background: var(--navy);
    color: var(--white);
}

.button.secondary {
    border: 1px solid rgba(11, 31, 58, 0.2);
    background: rgba(255, 255, 255, 0.72);
    color: var(--navy);
}

.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 520px;
}

.portrait {
    display: block;
    width: min(74%, 420px);
    height: auto;
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.book-cover {
    position: absolute;
    right: 0;
    bottom: 0;
    display: block;
    width: min(42%, 230px);
    height: auto;
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(11, 31, 58, 0.18);
}

.author-section {
    padding: 5rem 0;
}

.split {
    display: grid;
    grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr);
    gap: 3rem;
    align-items: start;
}

.prose-card {
    padding: 2rem;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 12px 34px rgba(11, 31, 58, 0.08);
}

.prose-card p,
.book-copy p,
.connect-card p {
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.8;
}

.book-section {
    padding: 5rem 0;
    background:
        linear-gradient(135deg, rgba(219, 234, 254, 0.75), rgba(255, 248, 237, 0.9)),
        #f8fbff;
}

.book-panel {
    display: grid;
    grid-template-columns: minmax(230px, 0.72fr) minmax(0, 1.1fr);
    gap: 3rem;
    align-items: center;
    padding: clamp(1.5rem, 4vw, 3rem);
    border: 1px solid rgba(30, 64, 175, 0.1);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow);
}

.book-art img {
    display: block;
    width: auto;
    height: auto;
    max-height: 520px;
    max-width: 330px;
    margin: 0 auto;
    border-radius: 16px;
    box-shadow: 0 20px 54px rgba(11, 31, 58, 0.18);
}

.book-subtitle {
    color: var(--blue);
    font-weight: 700;
}

/* Format availability note with little "i" tooltip */
.book-format-note {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.9rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--navy);
}

.book-format-mark {
    color: #e0a615;
}

.fmt-info {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    padding: 0;
    flex: 0 0 auto;
    border: 1px solid #b7c1cf;
    border-radius: 50%;
    background: var(--white);
    color: var(--muted);
    font: 700 10px/1 Georgia, 'Times New Roman', serif;
    text-transform: none;
    cursor: help;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.fmt-info:hover,
.fmt-info:focus-visible {
    border-color: var(--navy);
    color: var(--navy);
}

.fmt-info::after {
    content: attr(data-tip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 9px);
    transform: translateX(-50%);
    width: max-content;
    max-width: 230px;
    background: var(--navy);
    color: var(--white);
    padding: 7px 10px;
    border-radius: 8px;
    font: 500 11.5px/1.35 'Inter', system-ui, sans-serif;
    letter-spacing: 0;
    text-transform: none;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    z-index: 60;
    box-shadow: 0 8px 20px rgba(11, 31, 58, 0.28);
}

.fmt-info::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: calc(100% + 4px);
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--navy);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    z-index: 60;
}

.fmt-info:hover::after,
.fmt-info:focus-visible::after,
.fmt-info:hover::before,
.fmt-info:focus-visible::before {
    opacity: 1;
    visibility: visible;
}

.centered {
    text-align: center;
}

.connect-section {
    padding: 4.5rem 0;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
}

.connect-card {
    padding: clamp(1.5rem, 4vw, 3rem);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    text-align: center;
}

.connect-card h2,
.connect-card p,
.connect-card .section-kicker {
    color: white;
}

.connect-card p {
    margin-bottom: 0;
}

.connect-card .hero-actions {
    justify-content: center;
}

.connect-card .button.secondary {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.35);
}

.author-footer {
    padding: 1.25rem;
    background: #071426;
    color: rgba(255, 255, 255, 0.82);
    text-align: center;
}

.author-footer p {
    margin: 0;
}

@media (max-width: 900px) {
    .hero-grid,
    .split,
    .book-panel {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: auto;
        justify-content: center;
    }

    .portrait {
        width: min(72%, 390px);
        height: auto;
    }

    .book-cover {
        width: min(38%, 210px);
        height: auto;
    }
}

@media (max-width: 620px) {
    .author-topbar {
        padding: 0.9rem 1rem;
    }

    .topbar-link {
        padding: 0.55rem 0.8rem;
        font-size: 0.9rem;
    }

    .author-hero {
        padding-top: 6.75rem;
    }

    h1 {
        font-size: clamp(3rem, 16vw, 4.8rem);
    }

    .hero-actions,
    .connect-card .hero-actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .portrait {
        width: 82%;
    }

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

    .author-section,
    .book-section,
    .connect-section {
        padding: 3.5rem 0;
    }
}
