/* adamdorr.com
   The original March 2026 stylesheet, unchanged in look: the same colors, typefaces
   (Cormorant Garamond and Inter) and components. New pieces added for the 2026 update
   (navigation, current work, research list, Advisory and Film pages) are at the end
   and use only the original tokens. */

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

:root {
    --bg-primary: #0f1118;
    --bg-secondary: #131620;
    --bg-card: #181c28;
    --text-primary: #e8e6e1;
    --text-secondary: #9a978f;
    --text-muted: #6b6860;
    --accent: #5ea86a;
    --accent-light: #7cc487;
    --accent-soft: rgba(94, 168, 106, 0.10);
    --accent-glow: rgba(94, 168, 106, 0.04);
    --border: rgba(94, 168, 106, 0.08);
    --serif: 'Cormorant Garamond', Georgia, serif;
    --sans: 'Inter', -apple-system, sans-serif;
    color-scheme: dark;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
}

/* ---- Subtle background glow ---- */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(94,168,106,0.025) 0%, transparent 55%);
    pointer-events: none;
    z-index: 0;
}

/* ---- Layout ---- */
.container {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 2.5rem;
    position: relative;
    z-index: 1;
}

.container--narrow {
    max-width: 680px;
}

section {
    padding: 2.5rem 0;
}

/* ---- Hero ---- */
.hero {
    padding-top: 5rem;
    padding-bottom: 1.5rem;
}

.hero-name {
    font-family: var(--serif);
    font-size: clamp(2.6rem, 5.5vw, 4rem);
    font-weight: 300;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.hero .eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.4rem;
    font-weight: 500;
}

.hero-tagline {
    font-family: var(--serif);
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1.3;
    color: var(--text-secondary);
    margin-bottom: 1.4rem;
}

.hero-tagline em {
    font-style: italic;
    color: var(--accent-light);
}

.hero .subtitle {
    font-size: 1.02rem;
    color: var(--text-secondary);
    max-width: 500px;
    line-height: 1.75;
    font-weight: 300;
}

.divider {
    width: 36px;
    height: 1px;
    background: var(--accent);
    margin: 2rem 0;
    opacity: 0.4;
}

/* ---- About ---- */
.about-layout {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 2.5rem;
    align-items: start;
}

.about-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
    opacity: 0.92;
    transition: opacity 0.4s ease;
}

.about-photo:hover {
    opacity: 1;
}

.about p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about p strong {
    color: var(--text-primary);
    font-weight: 400;
}

.about .credentials {
    display: flex;
    gap: 2.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.about .credential {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.about .credential .label {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.about .credential .value {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

/* ---- Books ---- */
.books-section .section-header {
    margin-bottom: 1.8rem;
}

.section-label {
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.6rem;
    font-weight: 500;
}

.section-title {
    font-family: var(--serif);
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 300;
    color: var(--text-primary);
    line-height: 1.3;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

.book-cover-wrapper {
    margin-bottom: 1.2rem;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: var(--bg-card);
}

.book-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease, opacity 0.4s ease;
    opacity: 0.9;
}

.book-card:hover .book-cover {
    transform: scale(1.03);
    opacity: 1;
}

.book-card {
    padding: 1.8rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-secondary);
    transition: border-color 0.4s ease, background 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.book-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.book-card:hover {
    border-color: rgba(94, 168, 106, 0.2);
    background: var(--bg-card);
}

.book-card:hover::before {
    opacity: 1;
}

.book-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.8rem;
}

.book-year {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.book-tag {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
}

.book-title {
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    font-style: italic;
}

.book-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

a.book-cover-wrapper {
    display: block;
}

.book-subtitle {
    font-family: var(--serif);
    font-size: 0.88rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 1rem;
}

.book-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.75;
    flex-grow: 1;
}

/* ---- Research ---- */
.research-section p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* ---- Contact ---- */
.contact-section p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

.research-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
    transition: gap 0.3s ease;
}

.research-link:hover {
    gap: 0.8rem;
}

.research-link .arrow {
    transition: transform 0.3s ease;
}

.research-link:hover .arrow {
    transform: translateX(3px);
}

.contact-link {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    text-decoration: none;
    padding: 0.75rem 1.8rem;
    border: 1px solid rgba(94, 168, 106, 0.3);
    border-radius: 4px;
    transition: all 0.35s ease;
}

.contact-link:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
}

/* ---- Footer ---- */
footer {
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    text-align: center;
}

footer p {
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* ---- Fade-in animation (only when JavaScript runs, so content never stays hidden) ---- */
.js .fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .fade-in { opacity: 1; transform: none; transition: none; }
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .books-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .about-layout {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 1.5rem;
    }

    .about .credentials {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero {
        padding-top: 3rem;
    }

    section {
        padding: 2rem 0;
    }

    .book-card {
        padding: 1.5rem;
    }

    .about .credentials {
        gap: 1.5rem;
    }
}


/* =====================================================================
   Additions for the 2026 update. Same tokens, same type, same components.
   ===================================================================== */

/* ---- Accessibility ---- */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    z-index: 50;
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border: 1px solid var(--accent);
    border-radius: 4px;
    font-size: 0.8rem;
    text-decoration: none;
}

a:focus-visible {
    outline: 1px solid var(--accent-light);
    outline-offset: 4px;
    border-radius: 2px;
}

/* ---- Top navigation ---- */
.site-nav {
    position: relative;
    z-index: 2;
    padding-top: 1.75rem;
}

.site-nav .container {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem 2rem;
}

.site-nav--home .container {
    justify-content: flex-end;
}

.nav-brand {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-brand:hover {
    color: var(--accent-light);
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.6rem;
    list-style: none;
}

.nav-links a,
.elsewhere a {
    font-size: 0.66rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.elsewhere a:hover {
    color: var(--accent-light);
}

.nav-links a[aria-current="page"] {
    color: var(--accent);
}

/* ---- Hero additions ---- */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 2rem;
    margin-top: 2rem;
}

.hero-actions .research-link {
    margin-top: 0;
}

.page-title {
    font-family: var(--serif);
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 300;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 1.4rem;
    max-width: 820px;
}

.page-hero .subtitle {
    max-width: 620px;
}

.hero .small-note {
    margin-top: 1.4rem;
}

.small-note,
.contact-section .small-note {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.contact-section .small-note {
    margin-top: 1.4rem;
    margin-bottom: 0;
}

/* ---- Section intro ---- */
.section-intro {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-top: 0.8rem;
    max-width: 640px;
}

/* ---- Cards that share the book-card look ---- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    margin-top: 1.8rem;
}

.cards-grid--two {
    grid-template-columns: repeat(2, 1fr);
}

.card-title {
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.book-card .book-description + .research-link {
    margin-top: 1rem;
}

.cards-grid .book-meta {
    flex-wrap: wrap;
    row-gap: 0.4rem;
}

.book-tag {
    white-space: nowrap;
}

.book-tag--muted {
    color: var(--text-secondary);
    background: rgba(232, 230, 225, 0.06);
}

.card-name {
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.8rem;
    font-weight: 500;
}

/* ---- Research list ---- */
.pub-list {
    list-style: none;
    margin: 1.5rem 0 1.75rem;
    border-top: 1px solid var(--border);
    max-width: 760px;
}

.pub-list li {
    display: grid;
    grid-template-columns: 3.5rem 1fr;
    gap: 1rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.pub-list .year {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    padding-top: 0.2rem;
}

.pub-list a {
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid rgba(94, 168, 106, 0.3);
    transition: color 0.3s ease, border-color 0.3s ease;
}

.pub-list a:hover {
    color: var(--accent-light);
    border-color: var(--accent-light);
}

.pub-list .note {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ---- Contact additions ---- */
.elsewhere {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.8rem;
    list-style: none;
    margin-top: 1.8rem;
}

/* ---- Footer additions ---- */
footer .footer-links {
    margin-top: 0.5rem;
}

footer .footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

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

footer .footer-links a + a {
    margin-left: 1.5rem;
}

/* ---- Advisory: the five parts of a brief ---- */
.parts {
    list-style: none;
    counter-reset: part;
    margin-top: 1.8rem;
    border-top: 1px solid var(--border);
    max-width: 760px;
}

.parts li {
    counter-increment: part;
    display: grid;
    grid-template-columns: 3.5rem 1fr;
    gap: 1rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--border);
}

.parts li::before {
    content: counter(part, decimal-leading-zero);
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.35rem;
    color: var(--accent);
    line-height: 1.3;
}

.parts h3 {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 0.2rem;
}

.parts p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* ---- Advisory: analysis and areas ---- */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-top: 1.8rem;
}

.split p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.focus-list {
    list-style: none;
    border-top: 1px solid var(--border);
}

.focus-list li {
    display: grid;
    grid-template-columns: 7.5rem 1fr;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.focus-list .k {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding-top: 0.25rem;
}

/* ---- Film ---- */
.film-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.film-art {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    aspect-ratio: 1 / 1;
    background: var(--bg-card);
}

.film-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 55% 0%;
    display: block;
    opacity: 0.92;
}

.credits {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 1.2rem;
}

.credits strong {
    color: var(--text-primary);
    font-weight: 400;
}

.book-card p.thread {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.secret {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.35rem;
    color: var(--text-secondary);
    margin-top: 1.8rem;
}

.quote {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 300;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    line-height: 1.35;
    color: var(--text-secondary);
    max-width: 820px;
    margin-top: 0.6rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin-top: 1.5rem;
}

.tags li {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 0.3rem 0.65rem;
    border-radius: 3px;
}

.novel-layout {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 2.5rem;
    align-items: start;
    margin-top: 1.5rem;
}

.novel-layout img {
    width: 180px;
    border-radius: 4px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    opacity: 0.92;
}

.novel-layout p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.novel-layout .meta-line {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.75rem;
}

/* ---- Responsive additions ---- */
@media (max-width: 900px) {
    .cards-grid,
    .cards-grid--two,
    .split,
    .film-hero-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .split,
    .film-hero-grid {
        gap: 2rem;
    }

    .novel-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 600px) {
    .site-nav {
        padding-top: 1.25rem;
    }

    .site-nav--home .container {
        justify-content: flex-start;
    }

    .nav-links {
        gap: 0.5rem 1.2rem;
    }

    .page-title {
        font-size: 2.2rem;
    }

    .focus-list li {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }
}

/* ---- Single-section pages (Advisory): the footer stays at the bottom of the window ---- */
.page-solo {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
}

.page-solo main {
    flex: 1;
    display: flex;
    align-items: center;
}

.page-solo main > section {
    width: 100%;
    padding-bottom: 7rem;
}

/* ---- About: credentials in a tidy grid (degrees and professorship, then roles) ---- */
@media (min-width: 601px) {
    .about .credentials {
        display: grid;
        grid-template-columns: repeat(3, auto);
        justify-content: start;
        column-gap: 2.5rem;
        row-gap: 1.4rem;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .about .credentials {
        justify-content: center;
    }
}

/* ---- About: motto under the bio, in the hero tagline's italic serif ---- */
.about .motto {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    font-size: 1.6rem;
    line-height: 1.3;
    letter-spacing: 0.01em;
    color: var(--accent-light);
    margin: 0.3rem 0 0;
}
