/* Skye's CSS for page-skrywer.php
   Scoped to .ek-skye-author, :root/body mapped to wrapper.
   Refined for high-end literary editorial finish (No section numbers). */

body.ek-skye-body-author { 
    background-color: var(--ek-linen); 
}

.ek-skye-author {
    --bg-sand: var(--ek-linen);
    --bg-paper: var(--ek-paper);
    --bg-card: var(--ek-white);
    --text-dark: var(--ek-ink);
    --text-muted: var(--ek-muted-warm);
    --accent-gold: var(--ek-gold-accent);
    --accent-gold-soft: var(--ek-gold-soft);
    --accent-gold-numeral: var(--ek-gold-numeral);
    --accent-sage: var(--ek-sage-accent);
    --hairline: var(--ek-line);
    --hairline-dark: var(--ek-line-dark);
    --font-serif: var(--ek-font-serif-skye);
    --font-sans: var(--ek-font-sans-skye);
}

.ek-skye-author,
.ek-skye-author .author-profile-page {
    background-color: var(--bg-sand);
    color: var(--text-dark);
    font-family: var(--font-sans);
    line-height: 1.85;
    font-size: 16px;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

.ek-skye-author .container-wide {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

.ek-skye-author .container-narrow {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 25px;
}

/* --- Kicker & Headers --- */
.ek-skye-author .kicker {
    font-size: 11px;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--accent-gold);
    font-weight: 600;
    display: inline-block;
    margin-bottom: 14px;
    position: relative;
}

.ek-skye-author .author-header {
    padding: 90px 0 70px;
    border-bottom: 1px solid var(--hairline);
    position: relative;
}

.ek-skye-author .author-header-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 75px;
    align-items: center;
}

.ek-skye-author .author-main-title {
    font-family: var(--font-serif);
    font-size: 88px;
    font-weight: 500;
    line-height: 0.95;
    letter-spacing: -1.5px;
    color: var(--text-dark);
    margin: 15px 0 28px 0;
}

.ek-skye-author .author-header-lead {
    font-family: var(--font-serif);
    font-size: 24px;
    font-style: italic;
    color: var(--accent-sage);
    line-height: 1.5;
    margin: 0;
    border-left: 2px solid var(--accent-gold);
    padding-left: 24px;
}

/* --- Portrait Framing --- */
.ek-skye-author .portrait-wrapper {
    position: relative;
    width: 100%;
}

/* Double architectural matting lines around portrait */
.ek-skye-author .portrait-wrapper::before {
    content: '';
    position: absolute;
    inset: -14px;
    border: 1px solid var(--accent-gold-soft);
    z-index: 0;
    pointer-events: none;
}

.ek-skye-author .portrait-wrapper::after {
    content: '';
    position: absolute;
    inset: -6px;
    border: 1px solid var(--hairline);
    z-index: 0;
    pointer-events: none;
}

.ek-skye-author .portrait-img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/5;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
    box-shadow: 0 20px 45px var(--ek-black-a06);
    filter: grayscale(12%) contrast(104%);
    transition: filter 0.5s ease, transform 0.5s ease;
}

.ek-skye-author .portrait-wrapper:hover .portrait-img {
    filter: grayscale(0%) contrast(100%);
}

.ek-skye-author .portrait-caption {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: center;
    margin-top: 22px;
}

/* --- Free State Horizon Placeholder (When no image is present) --- */
.ek-skye-author .portrait-placeholder {
    height: auto;
    aspect-ratio: 4 / 5;
    background-color: var(--ek-veld-sky);
    background-image:
        linear-gradient(to bottom, transparent calc(64% - 1px), var(--ek-veld-gold-a70) calc(64% - 1px), var(--ek-veld-gold-a70) 64%, transparent 64%),
        repeating-linear-gradient(to bottom, transparent 0 9px, var(--ek-earth-dark-a035) 9px 10px),
        linear-gradient(to bottom, var(--ek-veld-sky-top) 0%, var(--ek-veld-haze) 63.9%, var(--ek-veld-grass-light) 64%, var(--ek-veld-grass) 100%);
    background-size: 100% 100%, 100% 36%, 100% 100%;
    background-position: 0 0, 0 100%, 0 0;
    background-repeat: no-repeat;
    filter: none;
}

.ek-skye-author .portrait-placeholder + .portrait-caption { 
    display: none; 
}

/* --- Essay Section & Grid --- */
.ek-skye-author .essay-section {
    padding: 100px 0;
    border-bottom: 1px solid var(--hairline);
    position: relative;
}

.ek-skye-author .essay-section--last { 
    border-bottom: none; 
}

.ek-skye-author .essay-grid {
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 80px;
    position: relative;
}

.ek-skye-author .essay-sidebar {
    position: sticky;
    top: 50px;
    height: fit-content;
    padding-right: 30px;
    border-right: 1px solid var(--hairline);
}

/* Section number removed as requested */
.ek-skye-author .section-num {
    display: none;
}

/* A part heading over a run of sections ("His nature", Louis 1 Nov), in the kicker style. */
.ek-skye-author .essay-part {
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--ek-gold-text);
    margin: 0 0 18px;
}

.ek-skye-author .sidebar-heading {
    font-family: var(--font-serif);
    font-size: 34px;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.15;
    margin: 0 0 16px 0;
    position: relative;
}

/* Fine subtle top marker line for sidebar chapter anchor */
.ek-skye-author .sidebar-heading::before {
    content: '';
    display: block;
    width: 28px;
    height: 1px;
    background-color: var(--accent-gold);
    margin-bottom: 16px;
}

.ek-skye-author .sidebar-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.75;
}

/* --- Essay Body Typography & Measure --- */
.ek-skye-author .essay-body { 
    max-width: 680px; 
}

.ek-skye-author .essay-body p {
    color: var(--text-muted);
    font-size: 16.5px;
    margin-bottom: 26px;
    line-height: 1.85;
}

.ek-skye-author .essay-body p:last-child {
    margin-bottom: 0;
}

/* --- Inline Featured Image --- */
.ek-skye-author .inline-feature-img {
    margin: 50px 0;
    background: var(--bg-paper);
    border: 1px solid var(--hairline);
    padding: 14px;
    box-shadow: 0 8px 24px var(--ek-black-a05);
}

.ek-skye-author .inline-feature-img img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
    filter: grayscale(15%) sepia(8%);
    transition: filter 0.4s ease;
}

.ek-skye-author .inline-feature-img:hover img {
    filter: grayscale(0%) sepia(0%);
}

.ek-skye-author .inline-feature-caption {
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 12px;
    text-align: right;
    letter-spacing: 0.3px;
}

/* --- Editorial Pull Quotes --- */
.ek-skye-author .editorial-pull-quote {
    margin: 55px 0;
    padding: 42px 48px;
    background: var(--bg-paper);
    border: 1px solid var(--hairline);
    border-left: 3px solid var(--accent-gold);
    position: relative;
}

.ek-skye-author .pull-quote-text {
    font-family: var(--font-serif);
    font-size: 26px;
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.48;
    margin: 0 0 14px 0;
}

.ek-skye-author .pull-quote-sub {
    font-size: 11px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent-sage);
    font-weight: 600;
}

/* --- Socials Suite --- */
.ek-skye-author .author-socials-suite {
    padding: 120px 0;
    background: var(--bg-paper);
    border-top: 1px solid var(--hairline);
    text-align: center;
}

.ek-skye-author .socials-header-title {
    font-family: var(--font-serif);
    font-size: 48px;
    font-weight: 500;
    color: var(--text-dark);
    margin: 10px 0 15px 0;
}

.ek-skye-author .socials-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 580px;
    margin: 0 auto 60px auto;
}

.ek-skye-author .socials-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}

.ek-skye-author .social-card {
    background: var(--bg-sand);
    border: 1px solid var(--hairline);
    padding: 42px 25px;
    text-decoration: none;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.ek-skye-author .social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gold);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.ek-skye-author .social-card:hover {
    background: var(--ek-white);
    border-color: var(--accent-gold-soft);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px var(--ek-black-a05);
}

.ek-skye-author .social-card:hover::before {
    transform: scaleX(1);
}

.ek-skye-author .social-platform-name {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 500;
    margin: 0 0 8px 0;
}

.ek-skye-author .social-handle {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-gold);
    font-weight: 600;
}

.ek-skye-author .social-arrow {
    margin-top: 20px;
    font-size: 18px;
    color: var(--text-muted);
    transition: transform 0.3s ease, color 0.3s ease;
}

.ek-skye-author .social-card:hover .social-arrow {
    transform: translateX(5px);
    color: var(--text-dark);
}

/* --- Media Queries --- */
@media (max-width: 1024px) {
    .ek-skye-author .author-header-grid {
        grid-template-columns: 1fr 300px;
        gap: 40px;
    }
    .ek-skye-author .essay-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    .ek-skye-author .essay-sidebar {
        position: relative;
        top: 0;
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid var(--hairline);
        padding-bottom: 25px;
    }
    .ek-skye-author .socials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ek-skye-author .author-header-grid {
        grid-template-columns: 1fr;
    }
    .ek-skye-author .portrait-wrapper {
        max-width: 320px;
        margin: 30px auto 0 auto;
    }
    .ek-skye-author .author-main-title {
        font-size: 60px;
    }
    .ek-skye-author .author-header-lead {
        font-size: 20px;
    }
    .ek-skye-author .socials-grid {
        grid-template-columns: 1fr;
    }
    .ek-skye-author .editorial-pull-quote {
        padding: 30px 22px;
    }
    .ek-skye-author .pull-quote-text {
        font-size: 21px;
    }
}
/* ==========================================================================
   About the author, 2 Nov: Louis's own spotlight. An opening spread (his
   photo with his name beneath it, beside The Bio), then his story as a run of
   editorial spreads: headings in a margin column, his text in a reading
   column, his short lines as serif beats, his one pull quote across both
   columns, and his closing line as the coda. Same type, colours and gold
   rules as the rest of the site; no cards, no effects.
   ========================================================================== */
/* One composition (3 Nov): the story uses the opening's two halves and gap, so
   headings line up with the photo and name, and his words with the bio's words
   (after the same 48px indent). */
.ek-skye-author { --author-gap: 88px; --author-indent: 48px; }

/* Opening spread */
.ek-skye-author .author-hero { padding: 64px 0 88px; border-bottom: 1px solid var(--hairline); } /* 80 → 64 with the taller 3:4 portrait (batch 4) */
.ek-skye-author .author-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--author-gap); align-items: center; }
.ek-skye-author .author-hero .author-hero__name { font-size: clamp(56px, 5.4vw, 84px); line-height: 0.96; letter-spacing: -1.5px; margin: 30px 0 0; text-wrap: balance; }
/* The photo sits above the name (the name never covers his face); one quiet 3:4 frame
   (batch 4, JD 23 Nov: looser, the whole seated figure with the river either side),
   the Featured image fills it. Empty = a toned panel with a fine inset rule, no wording. */
.ek-skye-author .author-hero__portrait { position: relative; max-width: 400px; aspect-ratio: 3 / 4; overflow: hidden; background: var(--ek-sage-tint); }
.ek-skye-author .author-hero__portrait::after { content: ''; position: absolute; inset: 0; border: 1px solid var(--accent-gold-soft); pointer-events: none; }
.ek-skye-author .author-hero__portrait--empty::before { content: ''; position: absolute; inset: 16px; border: 1px solid var(--hairline); }
.ek-skye-author .author-hero__photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.ek-skye-author .author-hero__bio { border-left: 1px solid var(--accent-gold-soft); padding: 6px 0 6px 48px; }
.ek-skye-author .author-hero__bio p { margin: 0 0 1.1em; font-size: 18px; line-height: 1.75; color: var(--text-muted); }
.ek-skye-author .author-hero__bio p:first-child { font-family: var(--font-serif); font-size: 25px; line-height: 1.5; color: var(--text-dark); }
.ek-skye-author .author-hero__bio p:last-child { margin-bottom: 0; }

/* Each slot: a margin column for the headings, a reading column for his words */
.ek-skye-author .author-vignette { padding: 64px 0; }
.ek-skye-author .author-vignette__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--author-gap); }
.ek-skye-author .author-prose { padding-left: var(--author-indent); }
.ek-skye-author .author-vignette--opens-part { padding-top: 104px; }
.ek-skye-author .author-vignette--part1.author-vignette--opens-part { padding-top: 96px; }
/* A hairline between slots, exactly as wide as the two columns */
.ek-skye-author .author-vignette + .author-vignette:not(.author-vignette--opens-part) .author-vignette__grid::before { content: ''; grid-column: 1 / -1; border-top: 1px solid var(--hairline); margin-bottom: 64px; }
.ek-skye-author .author-vignette + .author-vignette:not(.author-vignette--opens-part) { padding-top: 0; }
/* The second part sits on paper, so the turn from nurture to nature is felt. */
.ek-skye-author .author-vignette--part2 { background: var(--bg-paper); }
.ek-skye-author .author-vignette--part2.author-vignette--opens-part { border-top: 1px solid var(--hairline); }

/* Quiet part label above the first heading: small capitals in the darkened gold */
.ek-skye-author .author-part { margin: 0 0 28px; font-family: var(--font-sans); font-size: 13px; font-weight: 600; letter-spacing: 2.5px; line-height: 1.4; text-transform: uppercase; color: var(--ek-gold-text); }
.ek-skye-author .author-part::before { content: ''; display: block; width: 32px; height: 1px; margin-bottom: 18px; background: var(--ek-veld-gold); }
/* A part label with no title under it (His nurture) sits close to its text */
.ek-skye-author .author-vignette__rail .author-part:last-child { margin-bottom: 0; }
/* The end of a part matches the space where the next part opens */
.ek-skye-author .author-vignette:has(+ .author-vignette--opens-part) { padding-bottom: 104px; }
.ek-skye-author .author-vignette__title { font-family: var(--font-serif); font-size: 34px; font-weight: 500; line-height: 1.15; margin: 0; color: var(--text-dark); text-wrap: balance; }

/* The reading column */
.ek-skye-author .author-prose p { margin: 0 0 0.8em; font-size: 19px; line-height: 1.75; color: var(--text-muted); }
.ek-skye-author .author-prose > :last-child { margin-bottom: 0; }
/* His first paragraph of each part opens a little larger, in the serif */
.ek-skye-author .author-vignette--opens-part .author-prose > p:first-child { font-family: var(--font-serif); font-size: 25px; line-height: 1.5; color: var(--text-dark); }
/* Beats: his short lines ("Nothing.", "Religion.") keep their timing */
.ek-skye-author .author-prose .author-beat { margin: 0 0 0.35em; font-family: var(--font-serif); font-size: 24px; line-height: 1.35; color: var(--text-dark); }
.ek-skye-author .author-prose p:not(.author-beat) + .author-beat { margin-top: 1.1em; }
.ek-skye-author .author-prose .author-beat + p:not(.author-beat) { margin-top: 1.1em; }
/* His one question, across both columns */
.ek-skye-author .author-prose .author-pull { margin: 56px 0 56px calc(-100% - 2 * var(--author-indent) - var(--author-gap)); padding: 40px 0; border-top: 1px solid var(--accent-gold-soft); border-bottom: 1px solid var(--accent-gold-soft); font-family: var(--font-serif); font-size: clamp(30px, 3.2vw, 42px); font-style: italic; line-height: 1.25; color: var(--text-dark); text-wrap: balance; }
/* The coda: his closing line ends the page */
.ek-skye-author .author-prose .author-coda { margin: 48px 0 0; padding-top: 40px; border-top: 1px solid var(--accent-gold-soft); font-family: var(--font-serif); font-size: clamp(26px, 2.4vw, 32px); line-height: 1.4; color: var(--text-dark); text-wrap: pretty; }
.ek-skye-author .author-vignette--last { padding-bottom: 128px; }

/* The veld: wide, unframed (only with the 'veld-photo' flag; off since 2 Nov) */
.ek-skye-author .author-veld { max-width: 1100px; margin: 80px auto 0; padding: 0 32px; }
.ek-skye-author .author-veld img { display: block; width: 100%; height: auto; }

@media (max-width: 1100px) {
	.ek-skye-author { --author-gap: 56px; }
	.ek-skye-author .author-hero__grid { gap: 56px; }
	.ek-skye-author .author-vignette__title { font-size: 30px; }
}
@media (max-width: 850px) {
	.ek-skye-author .author-hero { padding: 40px 0 56px; }
	.ek-skye-author .author-hero__grid { grid-template-columns: 1fr; gap: 36px; align-items: start; }
	.ek-skye-author .author-hero .author-hero__name { font-size: clamp(44px, 12vw, 68px); letter-spacing: -1px; margin-top: 24px; }
	.ek-skye-author .author-hero__portrait { max-width: 320px; }
	.ek-skye-author .author-hero__bio { border-left: 0; border-top: 1px solid var(--accent-gold-soft); padding: 28px 0 0; }
	.ek-skye-author .author-hero__bio p:first-child { font-size: 22px; }
	.ek-skye-author .author-vignette__grid { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
	.ek-skye-author .author-prose { padding-left: 0; }
	.ek-skye-author .author-vignette__rail { margin-bottom: 24px; }
	.ek-skye-author .author-vignette { padding: 44px 0; }
	.ek-skye-author .author-vignette + .author-vignette:not(.author-vignette--opens-part) .author-vignette__grid::before { margin-bottom: 44px; }
	.ek-skye-author .author-vignette--opens-part { padding-top: 64px; }
	.ek-skye-author .author-vignette--part1.author-vignette--opens-part { padding-top: 56px; }
	.ek-skye-author .author-vignette:has(+ .author-vignette--opens-part) { padding-bottom: 64px; }
	.ek-skye-author .author-vignette__title { font-size: 30px; }
	.ek-skye-author .author-prose p { font-size: 18px; }
	.ek-skye-author .author-vignette--opens-part .author-prose > p:first-child { font-size: 22px; }
	.ek-skye-author .author-prose .author-beat { font-size: 22px; }
	.ek-skye-author .author-prose .author-pull { margin: 40px 0; padding: 28px 0; font-size: 27px; }
	.ek-skye-author .author-prose .author-coda { font-size: 24px; margin-top: 40px; padding-top: 32px; }
	.ek-skye-author .author-vignette--last { padding-bottom: 88px; }
	.ek-skye-author .author-veld { margin-top: 56px; padding: 0; }
}

/* 3 Nov (Skye's picks):
   A. On desktop each anecdote's heading (and part label) stays beside the story
      while you read it, then moves on with its section. Sticky position only,
      no animation. Desktop only (the header scrolls away there, so nothing
      slides under it); tablets and phones keep the stacked layout.
   C. "Follow the Author" sits on the page's two halves, like the opening and
      the story: heading on the left, the cards in two columns on the right
      after the same 48px indent; an odd last card spans both. */
@media (min-width: 1025px) {
	.ek-skye-author .author-vignette__rail { position: sticky; top: 40px; align-self: start; }
	/* 17 Nov (Lydette): an anecdote with a pull quote keeps its heading in place. The quote
	   spans both columns, so a sticky heading would sit on top of it while you read. */
	.ek-skye-author .author-vignette:has(.author-pull) .author-vignette__rail { position: static; }
}
@media (min-width: 1101px) {
	.ek-skye-author .author-socials-suite { text-align: left; }
	.ek-skye-author .author-socials-suite > .container-wide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: var(--author-gap); align-items: start; }
	.ek-skye-author .author-socials-suite .kicker { grid-column: 1; grid-row: 1; }
	.ek-skye-author .author-socials-suite .socials-header-title { grid-column: 1; grid-row: 2; margin-top: 10px; }
	.ek-skye-author .author-socials-suite .socials-grid { display: grid; grid-column: 2; grid-row: 1 / span 2; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px; max-width: none; margin: 0; padding-left: var(--author-indent); }
	.ek-skye-author .author-socials-suite .socials-grid > * { flex: none; }
	.ek-skye-author .author-socials-suite .socials-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
