@charset "UTF-8";

/* ===================================================================
 * Minimalist Author Profile - Billy Littlejohn
 * Clean, Professional, Simple
 * ================================================================ */

/* -------------------------------------------------------------------
 * ## FONTS
 * ------------------------------------------------------------------- */
@import url("https://fonts.googleapis.com/css2?family=Castoro:ital@0;1&family=Public+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700&display=swap");

:root {
    /* Fonts */
    --font-1: "Public Sans", sans-serif;
    --font-2: "Castoro", serif;

    /* Colors - Minimal Palette */
    --color-text: #1a1a1a;
    --color-text-light: #666666;
    --color-bg: #ffffff;
    --color-bg-alt: #fafafa;
    --color-accent: #2c5f7c;
    --color-accent-light: #4a8db0;
    --color-border: #e0e0e0;
    --color-shadow: rgba(0, 0, 0, 0.1);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Layout */
    --max-width: 1200px;
    --header-height: 80px;
}

/* -------------------------------------------------------------------
 * ## RESET
 * ------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-1);
    font-size: 1.6rem;
    line-height: 1.8;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* -------------------------------------------------------------------
 * ## TYPOGRAPHY
 * ------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-2);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
}

h1 { font-size: clamp(4rem, 8vw, 6rem); }
h2 { font-size: clamp(3rem, 6vw, 4.5rem); }
h3 { font-size: clamp(2.4rem, 4vw, 3rem); }
h4 { font-size: 2rem; }

p {
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

a:hover {
    color: var(--color-accent-light);
}

.s-about__main a,
.s-works__book a:not(.btn) {
    border-bottom: 1px solid transparent;
}

.s-about__main a:hover,
.s-works__book a:not(.btn):hover {
    border-bottom: 1px solid var(--color-accent-light);
}

em { font-style: italic; }

blockquote {
    font-family: var(--font-2);
    font-size: 2rem;
    font-style: italic;
    line-height: 1.6;
    padding: var(--spacing-md) var(--spacing-md) var(--spacing-md) var(--spacing-lg);
    border-left: 4px solid var(--color-accent);
    margin: var(--spacing-lg) 0;
    color: var(--color-text-light);
    background: linear-gradient(to right, rgba(44, 95, 124, 0.03), transparent);
    position: relative;
}

blockquote::before {
    content: '"';
    font-size: 6rem;
    font-family: Georgia, serif;
    color: var(--color-accent);
    opacity: 0.15;
    position: absolute;
    left: 0.5rem;
    top: -1rem;
}

.attention-getter {
    font-size: clamp(1.8rem, 2.5vw, 2.2rem);
    line-height: 1.6;
    color: var(--color-text);
    font-weight: 400;
    padding-left: var(--spacing-sm);
    border-left: 3px solid var(--color-accent);
    background: linear-gradient(to right, rgba(44, 95, 124, 0.05), transparent);
    padding: var(--spacing-sm) var(--spacing-sm) var(--spacing-sm) var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

/* -------------------------------------------------------------------
 * ## LAYOUT GRID
 * ------------------------------------------------------------------- */
.row {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.column {
    width: 100%;
}

@media (min-width: 768px) {
    .row {
        display: flex;
        flex-wrap: wrap;
        gap: var(--spacing-lg);
    }

    .column.lg-4 {
        flex: 0 0 calc(33.333% - var(--spacing-lg) / 2);
        display: flex;
        flex-direction: column;
    }

    .column.lg-5 {
        flex: 0 0 calc(41.666% - var(--spacing-lg) / 2);
    }

    .column.lg-6 {
        flex: 0 0 calc(50% - var(--spacing-lg) / 2);
    }

    .column.lg-7 {
        flex: 0 0 calc(58.333% - var(--spacing-lg) / 2);
    }

    .column.lg-8 {
        flex: 0 0 calc(66.666% - var(--spacing-lg) / 2);
        display: flex;
        flex-direction: column;
    }

    .column.xl-12 {
        flex: 0 0 100%;
    }
}

/* -------------------------------------------------------------------
 * ## BUTTONS
 * ------------------------------------------------------------------- */
.btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    font-family: var(--font-1);
    font-size: 1.4rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    border: 2px solid var(--color-accent);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn--primary {
    background-color: var(--color-accent);
    color: #ffffff;
}

.btn--primary:hover {
    background-color: var(--color-accent-light);
    border-color: var(--color-accent-light);
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 95, 124, 0.3);
}

.btn--stroke {
    background-color: transparent;
    color: var(--color-accent);
}

.btn--stroke:hover {
    background-color: var(--color-accent);
    color: #ffffff;
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 95, 124, 0.3);
}

/* -------------------------------------------------------------------
 * ## UTILITIES
 * ------------------------------------------------------------------- */
.u-screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* -------------------------------------------------------------------
 * ## PRELOADER
 * ------------------------------------------------------------------- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ss-preload #preloader {
    opacity: 1;
    visibility: visible;
}

.ss-loaded #preloader {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
}

#loader {
    width: 60px;
    display: flex;
    justify-content: space-between;
}

.dots-fade div {
    width: 12px;
    height: 12px;
    background-color: var(--color-accent);
    border-radius: 50%;
    animation: dotFade 1.4s infinite ease-in-out both;
}

.dots-fade div:nth-child(1) { animation-delay: -0.32s; }
.dots-fade div:nth-child(2) { animation-delay: -0.16s; }

@keyframes dotFade {
    0%, 80%, 100% { opacity: 0.3; }
    40% { opacity: 1; }
}

/* -------------------------------------------------------------------
 * ## HEADER
 * ------------------------------------------------------------------- */
.s-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: transparent;
    z-index: 1000;
    transition: all 0.3s ease;
}

.s-header.sticky {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

.s-header.sticky::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--color-accent), transparent);
    opacity: 0.3;
}

.s-header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.s-header__logo img {
    height: 40px;
    width: auto;
}

/* Navigation */
.s-header__nav {
    display: none;
}

.s-header__menu-links {
    display: flex;
    gap: var(--spacing-lg);
    list-style: none;
}

.s-header__menu-links a {
    font-size: 1.4rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    color: var(--color-text);
}

.s-header__menu-links li.current a {
    color: var(--color-accent);
}

/* Mobile menu toggle */
.s-header__menu-toggle {
    display: block;
    width: 30px;
    height: 30px;
    cursor: pointer;
    position: relative;
}

.s-header__menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-text);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.s-header__menu-toggle span::before,
.s-header__menu-toggle span::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-text);
    position: absolute;
    transition: all 0.3s ease;
}

.s-header__menu-toggle span::before {
    top: -8px;
}

.s-header__menu-toggle span::after {
    bottom: -8px;
}

.s-header__menu-toggle.is-clicked span {
    background-color: transparent;
}

.s-header__menu-toggle.is-clicked span::before {
    top: 0;
    transform: rotate(45deg);
}

.s-header__menu-toggle.is-clicked span::after {
    bottom: 0;
    transform: rotate(-45deg);
}

@media (min-width: 901px) {
    .s-header__nav {
        display: block;
    }

    .s-header__menu-toggle {
        display: none;
    }
}

@media (max-width: 900px) {
    .s-header__nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        padding: var(--spacing-md);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .menu-is-open .s-header__nav {
        display: block;
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .s-header__menu-links {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
}

/* -------------------------------------------------------------------
 * ## INTRO SECTION
 * ------------------------------------------------------------------- */
.s-intro {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--spacing-xl) 0;
    background: linear-gradient(to bottom, #ffffff 0%, #fafafa 100%);
    position: relative;
}

.s-intro::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-border), transparent);
}

.s-intro__content {
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.s-intro__title {
    margin-bottom: var(--spacing-sm);
    position: relative;
    display: inline-block;
}

.s-intro__title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--color-accent);
    border-radius: 2px;
}

.s-intro__subtitle {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: var(--color-text-light);
    margin-bottom: var(--spacing-xs);
    margin-top: var(--spacing-md);
}

.s-intro__location {
    font-size: 1.6rem;
    color: var(--color-text-light);
}

.s-intro__scroll-down {
    margin-top: var(--spacing-lg);
}

.s-intro__scroll-down a {
    font-size: 1.4rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    color: var(--color-text-light);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.s-intro__scroll-down a:hover {
    color: var(--color-accent);
    transform: translateY(3px);
}

/* -------------------------------------------------------------------
 * ## ABOUT SECTION
 * ------------------------------------------------------------------- */
.s-about {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-bg-alt);
}

.section-header {
    margin-bottom: var(--spacing-lg);
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--color-accent);
    border-radius: 2px;
}

.section-header[data-num]::before {
    content: attr(data-num);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-accent);
    display: block;
    margin-bottom: var(--spacing-xs);
    letter-spacing: 0.2rem;
}

.text-display-title {
    font-weight: 400;
}

.s-about__main {
    align-items: stretch;
}

.s-about__sidebar {
    display: flex;
    flex-direction: column;
}

.s-about__card {
    background: var(--color-bg);
    padding: var(--spacing-lg);
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--color-accent);
    flex: 1;
    display: flex;
    flex-direction: column;
}

@media (max-width: 767px) {
    .s-about__sidebar {
        margin-bottom: var(--spacing-md);
    }
}

.s-about__card h4 {
    font-size: 1.6rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-accent);
    font-family: var(--font-1);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
}

.s-about__facts {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.s-about__facts li {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--color-border);
}

.s-about__facts li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.fact-label {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    color: var(--color-text-light);
    font-weight: 600;
}

.fact-value {
    font-size: 1.6rem;
    color: var(--color-text);
    font-weight: 500;
}

.s-about__content-main {
    background: var(--color-bg);
    padding: var(--spacing-lg);
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    flex: 1;
}

.s-about__content-main h4 {
    font-size: 1.6rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-accent);
    font-family: var(--font-1);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
}


/* -------------------------------------------------------------------
 * ## WORKS SECTION
 * ------------------------------------------------------------------- */
.s-works {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-bg);
    position: relative;
}

.s-works__book {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: var(--color-bg-alt);
    border-radius: 8px;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.s-works__book:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
}

.s-works__cover {
    width: 100%;
    max-width: 400px;
    height: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    margin-bottom: var(--spacing-md);
    transition: all 0.4s ease;
    border-radius: 4px;
}

.s-works__cover:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
}

.s-works__genre {
    font-size: 1.4rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    color: var(--color-accent);
    margin-bottom: var(--spacing-sm);
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(44, 95, 124, 0.08);
    border-radius: 4px;
}

.s-works__tagline {
    font-size: clamp(1.8rem, 2.5vw, 2.2rem);
    font-family: var(--font-2);
    font-style: italic;
    line-height: 1.5;
    margin-bottom: var(--spacing-md);
    margin-top: var(--spacing-md);
    color: var(--color-text);
    padding-left: var(--spacing-sm);
    border-left: 3px solid var(--color-accent-light);
}

.s-works__buttons {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
    flex-wrap: wrap;
}

.s-works__book p {
    color: var(--color-text);
    line-height: 1.8;
}

.s-works__book p:last-of-type {
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .s-works__cover {
        margin-bottom: 0;
    }
}

/* -------------------------------------------------------------------
 * ## FOOTER SECTION
 * ------------------------------------------------------------------- */
.s-footer {
    padding: var(--spacing-xl) 0 var(--spacing-md);
    background: linear-gradient(to bottom, var(--color-bg-alt), #f0f0f0);
    position: relative;
}

.s-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-border), transparent);
}

.s-footer__content {
    margin-top: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--color-border);
}

.s-footer h4 {
    font-size: 1.6rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
}

.s-footer__links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.s-footer__links a {
    display: inline-block;
    padding: 0.5rem 0;
    color: var(--color-text);
    transition: all 0.3s ease;
    position: relative;
}

.s-footer__links a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s ease;
}

.s-footer__links a:hover {
    color: var(--color-accent);
    padding-left: 25px;
    opacity: 1;
}

.s-footer__links a:hover::before {
    opacity: 1;
    left: 0;
}

.s-footer__bottom {
    margin-top: var(--spacing-md);
    text-align: center;
    font-size: 1.4rem;
    color: var(--color-text-light);
}

/* Back to top button */
.ss-go-top {
    position: fixed;
    bottom: var(--spacing-md);
    right: var(--spacing-md);
    width: 50px;
    height: 50px;
    background-color: var(--color-accent);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 500;
}

.ss-go-top.link-is-visible {
    opacity: 1;
    visibility: visible;
}

.ss-go-top a {
    color: #ffffff;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ss-go-top:hover {
    transform: translateY(-3px);
}

/* -------------------------------------------------------------------
 * ## RESPONSIVE
 * ------------------------------------------------------------------- */
@media (max-width: 767px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }

    .s-works__buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

/* Smooth scrolling behavior */
.smoothscroll {
    cursor: pointer;
}

/* Page wrap */
.s-pagewrap {
    width: 100%;
    overflow-x: hidden;
}

.ss-show {
    opacity: 1 !important;
}

/* Target sections - subtle entrance */
.target-section {
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

.target-section:nth-child(1) { animation-delay: 0s; }
.target-section:nth-child(2) { animation-delay: 0.1s; }
.target-section:nth-child(3) { animation-delay: 0.2s; }
.target-section:nth-child(4) { animation-delay: 0.3s; }

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Subtle text selection */
::selection {
    background-color: var(--color-accent);
    color: #ffffff;
}

::-moz-selection {
    background-color: var(--color-accent);
    color: #ffffff;
}
