/* Lindsay Klug E-Portfolio
   Bright academic palette with dark whimsical accents */

:root {
    --parchment: #fff8e8;
    --honey: #f4cc63;
    --coral: #ef8f79;
    --teal: #167d7f;
    --teal-dark: #0f595b;
    --plum: #4f2b4c;
    --plum-light: #75466f;
    --charcoal: #2c2a2f;
    --white: #ffffff;
    --shadow: 8px 8px 0 var(--plum);
    --soft-shadow: 0 16px 40px rgb(79 43 76 / 16%);
    --border: 2px solid var(--plum);
    --radius: 18px;
    --content-width: 1180px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--charcoal);
    background:
        radial-gradient(circle at 8% 12%, rgb(244 204 99 / 35%), transparent 25rem),
        radial-gradient(circle at 92% 30%, rgb(239 143 121 / 24%), transparent 28rem),
        var(--parchment);
    font-family: "Trebuchet MS", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: var(--teal-dark);
    text-underline-offset: 0.22em;
    text-decoration-thickness: 2px;
}

a:hover {
    color: var(--plum);
}

a:focus-visible,
button:focus-visible {
    outline: 4px solid var(--honey);
    outline-offset: 4px;
}

h1,
h2,
h3 {
    margin-top: 0;
    color: var(--plum);
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.12;
}

h1 {
    margin-bottom: 1.25rem;
    font-size: clamp(2.5rem, 6vw, 5.25rem);
    letter-spacing: -0.045em;
}

h2 {
    margin-bottom: 1.75rem;
    font-size: clamp(2rem, 4vw, 3.25rem);
}

h3 {
    margin-bottom: 0.65rem;
    font-size: 1.45rem;
}

p {
    margin-top: 0;
}

.site-header {
    position: sticky;
    z-index: 10;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1rem max(1.25rem, calc((100vw - var(--content-width)) / 2));
    color: var(--parchment);
    background: var(--plum);
    border-bottom: 5px solid var(--honey);
}

.site-name {
    color: var(--white);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
    font-weight: 700;
    text-decoration: none;
}

.site-name:hover {
    color: var(--honey);
}

.site-header nav {
    display: flex;
    align-items: center;
    gap: clamp(0.8rem, 2.5vw, 2rem);
}

.site-header nav a {
    position: relative;
    color: var(--white);
    font-size: 0.94rem;
    font-weight: 700;
    text-decoration: none;
}

.site-header nav a::after {
    position: absolute;
    right: 0;
    bottom: -0.35rem;
    left: 0;
    height: 3px;
    background: var(--honey);
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
}

.site-header nav a:hover {
    color: var(--honey);
}

.site-header nav a:hover::after,
.site-header nav a:focus-visible::after {
    transform: scaleX(1);
}

.hero {
    display: grid;
    grid-template-columns: minmax(260px, 0.82fr) minmax(320px, 1.18fr);
    align-items: center;
    gap: clamp(2.5rem, 7vw, 6.5rem);
    width: min(var(--content-width), calc(100% - 3rem));
    min-height: calc(100vh - 76px);
    margin: 0 auto;
    padding: clamp(4rem, 9vw, 8rem) 0;
}

.hero-image {
    position: relative;
    isolation: isolate;
}

.hero-image::before {
    position: absolute;
    z-index: -1;
    inset: -1rem 1rem 1rem -1rem;
    background: var(--honey);
    border: var(--border);
    border-radius: var(--radius);
    content: "";
}

.hero-image img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border: 4px solid var(--plum);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-content {
    max-width: 690px;
}

.hero-content > p:not(.eyebrow) {
    max-width: 65ch;
    font-size: clamp(1rem, 1.5vw, 1.15rem);
}

.eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.4rem 0.8rem;
    color: var(--plum);
    background: var(--honey);
    border: 2px solid var(--plum);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.button {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.85rem 1.35rem;
    color: var(--white);
    background: var(--teal-dark);
    border: 2px solid var(--plum);
    border-radius: 999px;
    box-shadow: 4px 4px 0 var(--plum);
    font-weight: 800;
    text-decoration: none;
    transition: box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.button:hover {
    color: var(--white);
    background: var(--plum-light);
    box-shadow: 2px 2px 0 var(--plum);
    transform: translate(2px, 2px);
}

.background {
    padding: clamp(4rem, 8vw, 7rem) max(1.5rem, calc((100vw - var(--content-width)) / 2));
    background: var(--honey);
    border-block: 4px solid var(--plum);
}

.background > h2 {
    text-align: center;
}

.background-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.background-grid article,
.work-card {
    padding: clamp(1.4rem, 3vw, 2rem);
    background: var(--parchment);
    border: var(--border);
    border-radius: var(--radius);
    box-shadow: 6px 6px 0 var(--plum);
}

.background-grid article:nth-child(2) {
    background: #e3f3ef;
}

.background-grid article:nth-child(3) {
    background: #ffe0d7;
}

.contact {
    width: min(820px, calc(100% - 3rem));
    margin: clamp(4rem, 9vw, 8rem) auto;
    padding: clamp(2rem, 5vw, 4rem);
    text-align: center;
    background: #e3f3ef;
    border: 3px solid var(--plum);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact p {
    max-width: 60ch;
    margin-inline: auto;
}

.contact a {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 800;
}

/* Scholarly-work page */
.page-intro {
    width: min(840px, calc(100% - 3rem));
    margin: 0 auto;
    padding: clamp(4rem, 9vw, 7rem) 0 3rem;
    text-align: center;
}

.page-intro p {
    max-width: 65ch;
    margin-inline: auto;
    font-size: 1.1rem;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    width: min(var(--content-width), calc(100% - 3rem));
    margin: 0 auto;
    padding-bottom: clamp(5rem, 10vw, 8rem);
}

.work-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.work-card:nth-child(4n + 2),
.work-card:nth-child(4n + 3) {
    background: #ffe0d7;
}

.work-card .tag {
    margin-bottom: 1rem;
    padding: 0.28rem 0.7rem;
    color: var(--white);
    background: var(--teal-dark);
    border-radius: 999px;
    font-size: 0.77rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.work-card p {
    flex-grow: 1;
}

.work-card a {
    font-weight: 800;
}
.resume-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.secondary-button {
    color: var(--plum);
    background: var(--honey);
}

.secondary-button:hover {
    color: var(--white);
    background: var(--plum-light);
}

.resume-container {
    width: min(950px, calc(100% - 3rem));
    margin: 0 auto clamp(5rem, 10vw, 8rem);
    padding: 1rem;
    background: var(--honey);
    border: 3px solid var(--plum);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.resume-viewer {
    display: block;
    width: 100%;
    min-height: 900px;
    background: var(--white);
    border: 0;
    border-radius: 10px;
}

.writing-feature {
    width: min(950px, calc(100% - 3rem));
    margin: 0 auto clamp(5rem, 10vw, 8rem);
}

.story-intro,
.chapter-preview {
    padding: clamp(1.75rem, 5vw, 3.5rem);
    background: var(--parchment);
    border: 3px solid var(--plum);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.story-intro {
    margin-bottom: 3rem;
    background: #ffe0d7;
}

.story-intro .tag {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.3rem 0.75rem;
    color: var(--white);
    background: var(--teal-dark);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.chapter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.chapter-preview {
    background: var(--honey);
}

.chapter-preview > h2 {
    text-align: center;
}

.writing-viewer {
    display: block;
    width: 100%;
    min-height: 850px;
    background: var(--white);
    border: 2px solid var(--plum);
    border-radius: 10px;
}

/* ========================================
   LIBGUIDE PAGE
   ======================================== */

/* Main LibGuide content width and spacing */
.page-hero,
.project-section {
    width: 100%;
    padding: 3rem 1.5rem;
}

/* Keeps content centered with comfortable margins */
.page-hero .container,
.project-section .container {
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* Main page heading */
.page-hero h1 {
    margin: 0 auto 1.25rem;
    text-align: center;
}

/* Small label above the main heading */
.page-hero .eyebrow {
    margin-bottom: 0.75rem;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Introductory paragraph */
.page-hero .intro {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.7;
}

/* Section headings */
.project-section h2 {
    margin: 0 auto 1.25rem;
    text-align: center;
}

/* Regular paragraphs */
.project-section p {
    max-width: 750px;
    margin: 0 auto 1.25rem;
    text-align: center;
    line-height: 1.7;
}

/* Learning Goals list */
.project-section ul {
    display: inline-block;
    max-width: 700px;
    margin: 0 auto;
    padding-left: 1.5rem;
    text-align: left;
    line-height: 1.8;
}

/* Gives the list a little breathing room */
.project-section li {
    margin-bottom: 0.5rem;
}

/* View Guide button */
.guide-button {
    display: block;
    width: fit-content;
    margin: 1.5rem auto;
}

/* Prevent sections from feeling crowded together */
.project-section + .project-section {
    padding-top: 2rem;
}


.presentation-container {
    width: 100%;
    max-width: 1000px;
    aspect-ratio: 16 / 9;
    margin: 2rem auto;
    overflow: hidden;
    border-radius: 12px;
}

/* Makes an embedded Canva presentation
   fill the container without distortion */
.presentation-container iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Better spacing on phones and small screens */
@media (max-width: 700px) {
    .page-hero,
    .project-section {
        padding: 2rem 1rem;
    }

    .page-hero .container,
    .project-section .container {
        width: 95%;
    }

    .project-section ul {
        width: 100%;
        max-width: 600px;
    }
}
.pdf-container {
    width: 90%;
    max-width: 1000px;
    height: 750px;
    margin: 2rem auto;
}

.pdf-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

.copyright-note {
    margin: 1.5rem 0 0;
    font-size: 0.9rem;
    text-align: center;
}

@media (max-width: 700px) {
    .writing-feature {
        width: calc(100% - 2rem);
    }

    .chapter-actions {
        justify-content: center;
    }

    .writing-viewer {
        min-height: 650px;
    }
}

@media (max-width: 700px) {
    .resume-viewer {
        min-height: 650px;
    }
}

footer {
    padding: 1.5rem;
    color: var(--parchment);
    text-align: center;
    background: var(--plum);
    border-top: 5px solid var(--honey);
}

footer p {
    margin: 0;
}

@media (max-width: 820px) {
    .site-header {
        position: static;
        flex-direction: column;
        gap: 0.65rem;
    }

    .site-header nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 4rem;
    }

    .hero-image {
        width: min(430px, 92%);
        margin: 0 auto;
    }

    .hero-content {
        text-align: center;
    }

    .hero-content > p:not(.eyebrow) {
        margin-right: auto;
        margin-left: auto;
    }

    .background-grid,
    .work-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .site-header nav {
        gap: 0.7rem 1rem;
    }

    .site-header nav a {
        font-size: 0.86rem;
    }

    .hero,
    .work-grid {
        width: min(100% - 2rem, var(--content-width));
    }

    .hero-image::before {
        inset: -0.65rem 0.65rem 0.65rem -0.65rem;
    }

    .contact {
        width: calc(100% - 2rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

@media print {
    .site-header {
        position: static;
    }

    body {
        background: var(--white);
    }

    .button {
        color: var(--charcoal);
        background: transparent;
        box-shadow: none;
    }
}
