/* ==========================================================================
   Chris Campbell — 2026 one-page author site
   Lightweight, responsive, framework-free
   ========================================================================== */

:root {
    --ink: #18251e;
    --ink-soft: #526058;
    --paper: #fffdf8;
    --cream: #f3eee4;
    --cream-deep: #e9dfcf;
    --green: #235c3e;
    --green-deep: #153d2a;
    --green-soft: #dfe9df;
    --gold: #b38a4c;
    --rust: #9b4937;
    --line: rgba(24, 37, 30, 0.14);
    --shadow: 0 28px 70px rgba(38, 41, 33, 0.14);
    --shadow-soft: 0 14px 35px rgba(38, 41, 33, 0.10);
    --radius: 28px;
    --radius-sm: 16px;
    --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
    --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --shell: min(1180px, calc(100% - 40px));
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 95px;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 82% 6%, rgba(179, 138, 76, 0.12), transparent 24rem),
        linear-gradient(180deg, #fbf8f1 0%, var(--paper) 26%, #faf7f0 100%);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 3px solid #d29b43;
    outline-offset: 4px;
}

::selection {
    color: #fff;
    background: var(--green);
}

.skip-link {
    position: fixed;
    left: 20px;
    top: 16px;
    z-index: 100;
    transform: translateY(-160%);
    padding: 10px 14px;
    border-radius: 10px;
    background: #fff;
    color: var(--green-deep);
    font-weight: 700;
    text-decoration: none;
    box-shadow: var(--shadow-soft);
}

.skip-link:focus {
    transform: translateY(0);
}

.shell {
    width: var(--shell);
    margin-inline: auto;
}

.section {
    padding-block: clamp(72px, 9vw, 132px);
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--green);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

h1,
h2,
h3,
blockquote {
    font-family: var(--serif);
}

h1,
h2,
h3,
p {
    text-wrap: pretty;
}

h1 {
    max-width: 870px;
    margin: 0;
    font-size: clamp(3.25rem, 7vw, 6.9rem);
    line-height: 0.96;
    letter-spacing: -0.055em;
    font-weight: 500;
}

h1 em {
    color: var(--green);
    font-weight: 500;
}

h2 {
    margin: 0;
    font-size: clamp(2.4rem, 5vw, 4.65rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
    font-weight: 500;
}

h3 {
    margin: 0;
    font-size: clamp(1.55rem, 2.1vw, 2rem);
    line-height: 1.1;
    letter-spacing: -0.025em;
    font-weight: 600;
}

.lead {
    color: var(--green-deep);
    font-family: var(--serif);
    font-size: clamp(1.3rem, 2.1vw, 1.68rem);
    line-height: 1.45;
}

/* Header ------------------------------------------------------------------ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(24, 37, 30, 0.08);
    background: rgba(255, 253, 248, 0.82);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.header-inner {
    width: var(--shell);
    min-height: 74px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    flex: 0 0 auto;
    color: var(--green-deep);
    font-family: var(--serif);
    font-size: 1.12rem;
    font-weight: 700;
    text-decoration: none;
}

.brand img {
    width: 30px;
    height: 30px;
    border-radius: 7px;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: clamp(18px, 2.4vw, 32px);
    color: #425047;
    font-size: 0.91rem;
    font-weight: 650;
}

.primary-nav a {
    text-decoration: none;
}

.primary-nav > a:not(.nav-cta) {
    position: relative;
}

.primary-nav > a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 1px;
    background: var(--green);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 180ms ease;
}

.primary-nav > a:not(.nav-cta):hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-cta {
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--green);
    color: #fff;
}

/* Buttons ----------------------------------------------------------------- */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 13px 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.93rem;
    font-weight: 750;
    line-height: 1;
    text-decoration: none;
    transition: transform 170ms ease, box-shadow 170ms ease, background-color 170ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--green);
    color: #fff;
    box-shadow: 0 10px 26px rgba(35, 92, 62, 0.22);
}

.button-primary:hover {
    background: var(--green-deep);
    box-shadow: 0 14px 30px rgba(35, 92, 62, 0.28);
}

.button-ghost {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.66);
    color: var(--ink);
}

.button-light {
    background: #fff;
    color: var(--green-deep);
}

.text-link {
    color: var(--green);
    font-size: 0.93rem;
    font-weight: 750;
    text-decoration: none;
}

.text-link span {
    display: inline-block;
    transition: transform 170ms ease;
}

.text-link:hover span {
    transform: translateX(4px);
}

/* Hero -------------------------------------------------------------------- */

.hero {
    position: relative;
    overflow: hidden;
    padding-top: clamp(72px, 8vw, 118px);
    padding-bottom: clamp(78px, 9vw, 138px);
}

.hero::before {
    content: "";
    position: absolute;
    width: 620px;
    aspect-ratio: 1;
    right: -290px;
    top: 30px;
    border: 1px solid rgba(35, 92, 62, 0.12);
    border-radius: 50%;
}

.hero::after {
    content: "";
    position: absolute;
    width: 420px;
    aspect-ratio: 1;
    right: -160px;
    top: 130px;
    border: 1px solid rgba(179, 138, 76, 0.18);
    border-radius: 50%;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    gap: clamp(58px, 7vw, 110px);
    align-items: center;
}

.hero-intro {
    max-width: 720px;
    margin: 32px 0 0;
    color: var(--ink-soft);
    font-size: clamp(1.08rem, 1.5vw, 1.3rem);
    line-height: 1.7;
}

.hero-actions,
.section-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 20px;
    margin-top: 34px;
}

.hero-note {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 34px 0 0;
    color: #6c655a;
    font-size: 0.89rem;
}

.hero-note > span {
    color: var(--gold);
}

.hero-note strong {
    color: var(--ink);
}

.hero-art {
    justify-self: center;
    width: min(100%, 400px);
}

.cover-stage {
    position: relative;
    width: min(86%, 340px);
    margin-inline: auto;
    transform: rotate(1.2deg);
}

.cover-stage::before {
    content: "";
    position: absolute;
    inset: 22px -22px -22px 22px;
    z-index: -1;
    border-radius: 7px;
    background: linear-gradient(150deg, var(--green-soft), #ead7b9);
    box-shadow: var(--shadow);
}

.main-cover {
    display: block;
    width: 100%;
    border-radius: 5px;
    box-shadow: 0 26px 60px rgba(17, 30, 23, 0.28);
}

.out-now {
    position: absolute;
    right: -42px;
    top: 26px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 86px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--rust);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    transform: rotate(7deg);
    box-shadow: 0 12px 26px rgba(155, 73, 55, 0.25);
}

.hero-caption {
    width: min(100%, 390px);
    margin: 38px auto 0;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 17px;
    border-top: 1px solid var(--line);
    color: #6c736e;
    font-size: 0.82rem;
}

.hero-caption a {
    color: var(--green);
    font-weight: 750;
    text-decoration: none;
}

/* Testimonial ------------------------------------------------------------- */

.testimonial-wrap {
    padding-bottom: clamp(64px, 7vw, 100px);
}

.testimonial {
    margin: 0;
    padding: clamp(36px, 5vw, 66px);
    border: 1px solid rgba(35, 92, 62, 0.13);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 92% 10%, rgba(179, 138, 76, 0.14), transparent 18rem),
        linear-gradient(135deg, #edf3ed 0%, #f8f5ed 100%);
}

.testimonial blockquote {
    max-width: 930px;
    margin: 0;
    color: var(--green-deep);
    font-size: clamp(1.75rem, 3.25vw, 3.3rem);
    line-height: 1.18;
    letter-spacing: -0.035em;
    font-weight: 500;
}

.testimonial figcaption {
    margin-top: 28px;
    display: flex;
    gap: 8px 16px;
    flex-wrap: wrap;
    align-items: baseline;
    color: var(--ink-soft);
    font-size: 0.9rem;
}

.testimonial figcaption strong {
    color: var(--ink);
}

/* Memoir ------------------------------------------------------------------ */

.memoir-section {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.52);
}

.memoir-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(48px, 8vw, 130px);
    align-items: start;
}

.section-heading {
    position: sticky;
    top: 112px;
}

.section-heading h2 em {
    color: var(--green);
    font-weight: inherit;
}

.section-deck {
    max-width: 500px;
    margin: 26px 0 0;
    color: var(--ink-soft);
    font-size: 1rem;
}

.memoir-copy {
    max-width: 700px;
}

.memoir-copy > p:not(.lead) {
    color: var(--ink-soft);
    font-size: 1.04rem;
}

.memoir-copy > p + p {
    margin-top: 22px;
}

.memoir-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin-top: 38px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--line);
}

.memoir-meta div {
    padding: 18px 20px;
    background: var(--paper);
}

.memoir-meta span,
.memoir-meta strong {
    display: block;
}

.memoir-meta span {
    margin-bottom: 2px;
    color: #7b817d;
    font-size: 0.73rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.memoir-meta strong {
    color: var(--ink);
    font-size: 0.94rem;
}

/* About ------------------------------------------------------------------- */

.about-section {
    background: var(--green-deep);
    color: #fff;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(50px, 8vw, 130px);
    align-items: start;
}

.about-section .eyebrow {
    color: #a9cdb4;
}

.about-copy h2 {
    max-width: 720px;
}

.about-copy p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.72);
}

.about-copy .lead {
    color: #fff;
}

.portrait-card {
    position: sticky;
    top: 112px;
}

.portrait-frame {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 220px 220px 28px 28px;
    background: #284c39;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.22);
}

.portrait-frame img,
.portrait-fallback {
    width: 100%;
    height: 100%;
}

.portrait-frame img {
    display: block;
    object-fit: cover;
    object-position: 50% 25%;
}

.portrait-fallback {
    display: grid;
    place-items: center;
    color: rgba(255,255,255,0.88);
    font-family: var(--serif);
    font-size: clamp(4rem, 10vw, 8rem);
    background:
        radial-gradient(circle at 25% 15%, rgba(179,138,76,.28), transparent 18rem),
        linear-gradient(150deg, #315c44, #173d2a);
}

.portrait-caption {
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
}

.journey {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin-top: 42px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.12);
}

.journey div {
    min-height: 160px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.035);
}

.journey span,
.journey strong,
.journey small {
    display: block;
}

.journey span {
    margin-bottom: 34px;
    color: #d8b774;
    font-size: 0.76rem;
    font-weight: 800;
}

.journey strong {
    font-family: var(--serif);
    font-size: 1.35rem;
}

.journey small {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.82rem;
    line-height: 1.45;
}

/* Books ------------------------------------------------------------------- */

.books-section {
    background: var(--cream);
}

.books-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
    gap: 50px;
    align-items: end;
    margin-bottom: clamp(44px, 6vw, 72px);
}

.books-heading > p {
    margin: 0 0 8px;
    color: var(--ink-soft);
}

.book-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.book-card {
    min-width: 0;
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 26px;
    align-items: center;
    padding: 24px;
    border: 1px solid rgba(24, 37, 30, 0.10);
    border-radius: 22px;
    background: rgba(255, 253, 248, 0.82);
    box-shadow: 0 10px 30px rgba(30, 34, 26, 0.05);
}

.legacy-cover {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    display: block;
    border-radius: 5px;
    background: #d5c6a7;
    box-shadow: 0 12px 26px rgba(30, 34, 26, 0.16);
    text-decoration: none;
}

.legacy-cover img,
.cover-fallback {
    width: 100%;
    height: 100%;
}

.legacy-cover img {
    display: block;
    object-fit: cover;
}

.cover-fallback {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 18px 14px;
    color: #fff;
}

.cover-fallback b {
    font-family: var(--serif);
    font-size: 1.32rem;
    line-height: 1.05;
}

.cover-fallback small {
    font-size: 0.63rem;
    line-height: 1.35;
    opacity: 0.8;
}

.cover-tall .cover-fallback {
    background: linear-gradient(160deg, #314f3b, #9d6a42);
}

.cover-laughs .cover-fallback {
    background: linear-gradient(160deg, #a14732, #d89e46);
}

.cover-arthur .cover-fallback {
    background: linear-gradient(160deg, #27354d, #7d6948);
}

.cover-charge .cover-fallback {
    background: linear-gradient(160deg, #494a46, #9f2d2d);
}

.book-kind {
    color: var(--green);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.book-card h3 {
    margin-top: 8px;
}

.book-card p {
    margin: 14px 0 18px;
    color: var(--ink-soft);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Closing ----------------------------------------------------------------- */

.closing-section {
    padding: clamp(72px, 9vw, 124px) 0;
    background: var(--paper);
}

.closing-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 50px;
    align-items: center;
    padding: clamp(36px, 5vw, 66px);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 95% 8%, rgba(179, 138, 76, 0.20), transparent 19rem),
        var(--green);
    color: #fff;
}

.closing-card .eyebrow {
    color: #bed5c5;
}

.closing-card h2 {
    max-width: 760px;
    font-size: clamp(2.3rem, 4.3vw, 4.3rem);
}

.closing-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 13px;
    min-width: 190px;
}

.closing-link {
    color: rgba(255,255,255,.84);
    font-size: 0.88rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

/* Footer ------------------------------------------------------------------ */

.site-footer {
    padding: 30px 0 40px;
    border-top: 1px solid var(--line);
    background: var(--paper);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 22px;
    align-items: center;
    color: #6b736e;
    font-size: 0.82rem;
}

.footer-inner > div:first-child {
    display: flex;
    gap: 8px 16px;
    flex-wrap: wrap;
    align-items: baseline;
}

.footer-inner strong {
    color: var(--ink);
    font-family: var(--serif);
    font-size: 1rem;
}

.footer-links {
    display: flex;
    gap: 22px;
}

.footer-links a {
    color: var(--green);
    font-weight: 700;
    text-decoration: none;
}

.footer-inner > p {
    grid-column: 1 / -1;
    margin: 0;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

/* Responsive -------------------------------------------------------------- */

@media (max-width: 980px) {
    .hero-grid,
    .memoir-grid,
    .about-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        max-width: 860px;
    }

    .hero-art {
        justify-self: start;
        width: min(100%, 420px);
        margin-top: 22px;
    }

    .section-heading,
    .portrait-card {
        position: static;
    }

    .portrait-card {
        width: min(100%, 390px);
    }

    .books-heading {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .book-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    :root {
        --shell: min(100% - 28px, 1180px);
    }

    .site-header {
        position: static;
    }

    html {
        scroll-padding-top: 20px;
    }

    .header-inner {
        min-height: 66px;
    }

    .primary-nav a:not(.nav-cta) {
        display: none;
    }

    .nav-cta {
        padding: 9px 13px;
        font-size: 0.82rem;
    }

    .brand span {
        font-size: 1rem;
    }

    .hero {
        padding-top: 56px;
    }

    .hero-grid {
        gap: 54px;
    }

    .hero-art {
        justify-self: center;
    }

    .out-now {
        right: -20px;
        width: 74px;
    }

    .testimonial {
        border-radius: 22px;
    }

    .memoir-meta {
        grid-template-columns: 1fr;
    }

    .journey {
        grid-template-columns: 1fr;
    }

    .book-card {
        grid-template-columns: 112px 1fr;
        gap: 18px;
        padding: 18px;
    }

    .closing-card {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .closing-actions {
        align-items: flex-start;
    }

    .closing-link {
        text-align: left;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-links {
        justify-self: start;
    }
}

@media (max-width: 520px) {
    h1 {
        font-size: clamp(3rem, 15.5vw, 4.45rem);
    }

    .hero-actions,
    .section-actions {
        align-items: stretch;
    }

    .hero-actions .button {
        width: 100%;
    }

    .hero-note {
        align-items: flex-start;
    }

    .book-card {
        grid-template-columns: 88px 1fr;
    }

    .book-card p {
        display: none;
    }

    .book-card h3 {
        font-size: 1.34rem;
    }

    .portrait-card {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
