html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", sans-serif;
    background: #f8f9fb;
    color: #1f3448;
}


/* NAV */

.site-logo-link {
    display: inline-flex;
    align-items: center;
    padding-top: 6px;
    padding-bottom: 6px;
}

.site-logo {
    display: block;
    width: auto;
    height: 70px;
    max-width: 310px;
    object-fit: contain;
}
/* HERO */

.author-hero {
    position: relative;
    min-height: 78vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    padding: 70px 8%;
    overflow: hidden;
    background: linear-gradient( 90deg, rgba(255,255,255,0.94) 0%, rgba(255,255,255,0.78) 35%, rgba(255,255,255,0.10) 100% ), url("/images/hero-background.png");
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(238, 242, 244, 0.12);
    z-index: 1;
}

.hero-text,
.hero-book {
    position: relative;
    z-index: 2;
}

.hero-text {
    max-width: 480px;
}

.label {
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #1f3448;
    font-weight: 600;
    margin-bottom: 16px;
    font-size: 13px;
}

.hero-text h1 {
    font-size: 54px;
    line-height: 1.1;
    color: #1f3448;
    margin: 0 0 20px;
    font-weight: 700;
}

.description {
    max-width: 420px;
    font-size: 17px;
    line-height: 1.7;
    color: #2f3f4f;
    margin-bottom: 28px;
}

.btn,
.order-form button {
    display: inline-block;
    background: #183453;
    color: white;
    padding: 13px 26px;
    border: none;
    text-decoration: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s;
}

    .btn:hover,
    .order-form button:hover {
        background: #0f2742;
        color: white;
    }

.hero-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.72);
    color: #183453;
    border: 1px solid rgba(24, 52, 83, 0.35);
}

    .btn-outline:hover {
        background: white;
        color: #183453;
    }

.hero-book {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

    .hero-book img {
        width: 340px;
        max-width: 100%;
        border-radius: 10px;
        box-shadow: 0 25px 60px rgba(31, 52, 72, 0.30);
    }

/* SUMMARY */

.book-summary {
    padding: 72px 8% 42px;
    background: #f8f9fb;
}

.summary-grid {
    display: flex;
    align-items: center;
    gap: 45px;
}

.summary-left {
    flex: 1;
}

.summary-small-title {
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #50657a;
    margin-bottom: 16px;
    font-size: 13px;
}

.summary-left h2 {
    font-size: 28px;
    line-height: 1.4;
    color: #1f3448;
    margin-bottom: 24px;
}

.summary-text {
    font-size: 15px;
    line-height: 1.8;
    color: #4f5f68;
}

    .summary-text p {
        margin-bottom: 18px;
    }

.final-line {
    margin-top: 26px;
    font-size: 19px;
    font-weight: bold;
    color: #1f3448;
}

.summary-video {
    flex: 1.2;
}

    .summary-video video {
        width: 100%;
        border-radius: 18px;
        box-shadow: 0 18px 45px rgba(0,0,0,0.14);
    }

/* BOOK PHOTOS */

.book-photos-section {
    display: grid;
    grid-template-columns: minmax(280px, 430px) minmax(280px, 430px);
    gap: 46px;
    align-items: center;
    justify-content: center;
    padding: 34px 8% 52px;
    background: #eef3f6;
}

.book-photos-copy {
    max-width: 420px;
    justify-self: center;
    text-align: center;
}

.book-photos-copy h2 {
    margin: 0 0 14px;
    color: #1f3448;
    font-size: 27px;
    line-height: 1.3;
}

.book-photos-copy p {
    color: #4f5f68;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.book-photos-grid {
    display: grid;
    justify-content: center;
    justify-self: center;
}

.book-photo {
    width: min(100%, 390px);
    margin: 0;
    overflow: hidden;
    border-radius: 8px;
    background: white;
    box-shadow: 0 18px 45px rgba(31, 52, 72, 0.16);
}

.book-photo img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 430px;
    object-fit: cover;
}

/* CONTENT SECTIONS */

.about-author,
.future-books,
.faq-section {
    padding: 80px 8%;
}

.about-author,
.faq-section {
    background: white;
}

.future-books {
    background: #eef3f6;
}

.content-band,
.future-books-inner {
    max-width: 980px;
    margin: 0 auto;
}

.section-label {
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #50657a;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 700;
}

.content-band h2,
.future-books h2,
.faq-section h2 {
    color: #1f3448;
    font-size: 30px;
    margin-bottom: 20px;
}

.content-band p,
.future-books p,
.faq-grid p {
    color: #4f5f68;
    line-height: 1.8;
}

.future-books-inner {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 40px;
    align-items: center;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.faq-grid article {
    padding: 20px;
    border: 1px solid #e1e7ec;
    border-radius: 8px;
    background: #f8f9fb;
}

.faq-grid h3 {
    margin: 0 0 10px;
    color: #1f3448;
    font-size: 18px;
}

/* ORDER */

.order-section {
    padding: 85px 8%;
    text-align: center;
    background: white;
}

    .order-section h2 {
        font-size: 30px;
        color: #1f3448;
        margin-bottom: 12px;
        letter-spacing: 4px;
        text-transform: uppercase;
    }

    .order-section p {
        color: #5c6870;
        margin-bottom: 35px;
        font-size: 16px;
    }

    .order-section .order-price {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
        margin: -14px 0 30px;
        padding: 10px 18px;
        border: 1px solid #d7e1e8;
        border-radius: 6px;
        color: #1f3448;
        background: #f8fbfc;
        font-weight: 600;
    }

    .order-section .order-price span {
        font-weight: 500;
        color: #5c6870;
    }

.order-form {
    max-width: 760px;
    margin: auto;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
}

.form-field {
    flex: 1 1 220px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.wide-field {
    flex-basis: 460px;
}

.courier-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: -18px 0 28px;
}

.courier-links a {
    color: #183453;
    border: 1px solid #d7dfe5;
    border-radius: 8px;
    padding: 9px 13px;
    text-decoration: none;
    background: #f8f9fb;
    font-weight: 600;
}

.order-form input,
.order-form select {
    width: 100%;
    padding: 15px;
    border: 1px solid #d7dfe5;
    border-radius: 12px;
    font-size: 14px;
    outline: none;
    background: white;
}

    .order-form input:focus,
    .order-form select:focus {
        border-color: #183453;
    }

    .order-form select:disabled {
        color: #8a98a4;
        background: #f4f7f9;
        cursor: not-allowed;
    }

    .order-form button {
        padding: 15px 34px;
    }

.office-help {
    color: #6c7a86;
    font-size: 12px;
}

.office-tools {
    min-height: 22px;
}

.office-locator-link {
    display: inline-flex;
    width: fit-content;
    color: #183453;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.office-locator-link:hover {
    color: #0f2742;
    text-decoration: underline;
}

/* SUCCESS */

.success-message {
    margin-top: 20px;
    color: #1f7a45;
    font-weight: bold;
}

.validation-summary,
.field-validation {
    color: #b42318;
    font-size: 13px;
}

.validation-summary {
    flex-basis: 100%;
    text-align: left;
}

.privacy-note {
    flex-basis: 100%;
    margin: 0;
    color: #5c6870;
    font-size: 13px;
    text-align: left;
}

.privacy-note a {
    color: #183453;
    font-weight: 700;
}

/* ADMIN */

.admin-login,
.admin-orders {
    padding: 70px 8%;
}

.admin-login {
    min-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-login-panel {
    width: min(100%, 420px);
    padding: 36px;
    background: white;
    border: 1px solid #e1e7ec;
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(31, 52, 72, 0.12);
}

.admin-kicker {
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #50657a;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
}

.admin-login h1,
.admin-orders h1 {
    margin: 0;
    color: #1f3448;
    font-size: 32px;
}

.admin-login-form {
    display: grid;
    gap: 16px;
    margin-top: 28px;
}

.admin-login-form input,
.status-form select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d7dfe5;
    border-radius: 8px;
    background: white;
    color: #1f3448;
}

.admin-login-form button,
.admin-button,
.status-form button {
    border: none;
    border-radius: 8px;
    background: #183453;
    color: white;
    padding: 12px 18px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.admin-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 26px;
}

.admin-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.admin-filter-form {
    display: grid;
    grid-template-columns: 180px minmax(240px, 1fr) 150px 150px auto;
    gap: 12px;
    align-items: end;
    padding: 16px;
    margin-bottom: 18px;
    background: white;
    border: 1px solid #e1e7ec;
    border-radius: 8px;
}

.admin-filter-form label {
    color: #50657a;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-filter-form input,
.admin-filter-form select {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #d7dfe5;
    border-radius: 8px;
}

.filter-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.admin-button.secondary {
    background: #1f7a45;
}

.admin-button.ghost {
    background: #eef3f6;
    color: #1f3448;
}

.status-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.status-tab {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid #d7dfe5;
    border-radius: 8px;
    color: #1f3448;
    text-decoration: none;
    background: white;
}

.status-tab.active {
    background: #183453;
    border-color: #183453;
    color: white;
}

.orders-table-wrap {
    overflow-x: auto;
    background: white;
    border: 1px solid #e1e7ec;
    border-radius: 8px;
}

.orders-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
}

.orders-table th,
.orders-table td {
    padding: 16px;
    border-bottom: 1px solid #edf1f4;
    vertical-align: top;
    text-align: left;
}

.orders-table th {
    color: #50657a;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: #f8f9fb;
}

.orders-table td a,
.orders-table td span,
.orders-table td strong {
    display: block;
}

.order-date,
.orders-table strong {
    color: #1f3448;
}

.order-time,
.muted {
    color: #6c7a86;
    font-size: 13px;
}

.status-form {
    display: grid;
    grid-template-columns: minmax(140px, 1fr) auto;
    gap: 8px;
}

.status-form button {
    padding: 10px 14px;
}

.email-state {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eef3f6;
    color: #6c7a86;
    font-size: 12px;
    font-weight: 700;
}

.email-state.sent {
    background: #e8f5ee;
    color: #1f7a45;
}

.empty-orders {
    padding: 30px;
    border: 1px dashed #cbd5dd;
    border-radius: 8px;
    background: white;
    color: #50657a;
}

/* PRIVACY */

.privacy-page {
    padding: 70px 8% 90px;
}

.content-page {
    padding: 70px 8% 90px;
    background: white;
}

.privacy-header,
.privacy-content {
    max-width: 920px;
    margin: 0 auto;
}

.privacy-header {
    margin-bottom: 34px;
}

.privacy-kicker {
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #50657a;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
}

.privacy-header h1 {
    margin: 0 0 18px;
    color: #1f3448;
    font-size: 36px;
}

.content-page h1 {
    margin: 0 0 18px;
    color: #1f3448;
    font-size: 36px;
}

.privacy-header p,
.privacy-content p,
.privacy-content li,
.privacy-details dd {
    color: #4f5f68;
    line-height: 1.75;
}

.privacy-content {
    display: grid;
    gap: 22px;
}

.privacy-content section {
    padding: 24px 0;
    border-top: 1px solid #dfe7ed;
}

.privacy-content h2 {
    margin: 0 0 12px;
    color: #1f3448;
    font-size: 22px;
}

.privacy-content ul {
    margin: 12px 0 0;
    padding-left: 20px;
}

.privacy-details {
    display: grid;
    gap: 12px;
    margin: 20px 0 0;
}

.privacy-details div {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 16px;
    padding: 14px 16px;
    background: white;
    border: 1px solid #e1e7ec;
    border-radius: 8px;
}

.privacy-details dt {
    color: #1f3448;
    font-weight: 700;
}

.privacy-details dd {
    margin: 0;
}

.privacy-updated {
    color: #6c7a86;
    font-size: 13px;
}

/* FOOTER */

.site-footer {
    padding: 24px 0;
    background: white;
    border-top: 1px solid #e5e5e5;
}

.site-footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    font-size: 14px;
}

.site-footer a {
    color: #183453;
    text-decoration: none;
    font-weight: 600;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #eef3f6;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.social-link:hover,
.social-link:focus-visible {
    background: #e0ebf4;
    box-shadow: 0 8px 18px rgba(24, 52, 83, 0.12);
    transform: translateY(-1px);
    outline: none;
}

.social-icon {
    display: block;
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.footer-credit,
.developer-credit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-separator {
    margin: 0 8px;
    color: #9aa7b3;
}

.developer-credit {
    color: #5c6870;
    font-weight: 600;
}

.developer-credit-text {
    color: #5c6870;
}

.developer-logo {
    display: block;
    width: auto;
    height: 92px;
    max-width: 175px;
    border-radius: 6px;
    object-fit: contain;
}

.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1050;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(24, 52, 83, 0.18);
    border-radius: 50%;
    background: #183453;
    color: white;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 12px 30px rgba(31, 52, 72, 0.22);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, background 0.2s ease;
}

.back-to-top:hover,
.back-to-top:focus-visible {
    background: #0f2742;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* MOBILE */

@media (max-width: 1000px) {

    .author-hero {
        flex-direction: column;
        text-align: center;
        padding: 50px 20px;
        background-position: center;
    }

    .hero-text h1 {
        font-size: 42px;
    }

    .description {
        margin: 0 auto 28px;
        font-size: 16px;
    }

    .hero-book {
        justify-content: center;
    }

        .hero-book img {
            width: 260px;
        }

    .summary-grid {
        flex-direction: column;
    }

    .book-photos-section {
        grid-template-columns: 1fr;
    }

    .book-photos-copy {
        max-width: none;
        text-align: center;
    }

    .future-books-inner,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .summary-left h2 {
        font-size: 24px;
    }

    .order-form {
        flex-direction: column;
    }

    .form-field,
    .wide-field {
        width: 100%;
        flex-basis: auto;
    }

    .admin-toolbar {
        flex-direction: column;
    }

    .admin-actions {
        justify-content: flex-start;
    }

    .admin-filter-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .site-logo {
        height: 56px;
        max-width: 245px;
    }

    .privacy-page {
        padding: 44px 20px 64px;
    }

    .content-page {
        padding: 44px 20px 64px;
    }

    .privacy-header h1,
    .content-page h1 {
        font-size: 30px;
    }

    .privacy-details div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .site-footer-inner {
        align-items: center;
        flex-direction: column;
        justify-content: center;
        gap: 14px;
        text-align: center;
    }

    .footer-copyright {
        display: block;
        width: 100%;
        line-height: 1.5;
    }

    .book-photos-section {
        padding: 34px 20px 44px;
    }

    .book-photos-grid {
        justify-content: center;
    }

    .book-photo img {
        max-height: 420px;
    }

    .footer-credit {
        justify-content: center;
        align-items: center;
        gap: 10px;
        width: 100%;
    }

    .footer-separator {
        margin: 0 2px;
    }

    .developer-credit {
        flex-basis: 100%;
        justify-content: center;
        gap: 6px;
        margin-top: 4px;
    }

    .developer-logo {
        height: 68px;
        max-width: 132px;
    }

    .back-to-top {
        right: 16px;
        bottom: 16px;
        width: 42px;
        height: 42px;
        font-size: 22px;
    }
}
