
:root {
    font-family: system-ui, sans-serif;
    color: #222;
    background: #fafafa;
}

body {
    margin: 0;
}

.site-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #ddd;
}

.site-header a {
    color: inherit;
    font-weight: 700;
    text-decoration: none;
}

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

h1, h2 {
    margin-top: 0;
}


/* Presentation grid */

.presentation-grid {
    display: grid;
    grid-template-columns: repeat(
    auto-fill,
    minmax(min(100%, 280px), 1fr)
  );
    gap: 2rem;
}

.presentation-card {
    color: inherit;
    text-decoration: none;
}

.presentation-card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 0.5rem;
    background: #eee;
    transition: transform 0.2s ease;
}

.presentation-card:hover img {
    transform: translateY(-4px);
}

.presentation-card h2 {
    margin: 1rem 0 0.5rem;
    font-size: 1.25rem;
}

.presentation-card p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

/* Presentation detail */

.presentation {
    max-width: 960px;
    margin: 0 auto;
}

.presentation-description {
    color: #666;
    font-size: 1.125rem;
    line-height: 1.6;
}

.pdf-preview {
    margin-top: 2rem;
    background: #eee;
    border-radius: 0.5rem;
    overflow: hidden;
}

@media (max-width: 768px) {
    .pdf-preview {
        display: none;
    }
}

.pdf-preview iframe {
    display: block;
    width: 100%;
    height: calc(100vh - 18rem);
    height: calc(100dvh - 18rem);
    border: 0;
}

.presentation-download {
    margin-top: 2.5rem;
    margin-bottom: 3rem;
}

/*
.presentation-download a {
    display: inline-block;
    padding: 0.85rem 1.25rem;
    background: #222;
    color: white;
    border-radius: 0.375rem;
    text-decoration: none;
}

.presentation-download a:hover {
    background: #444;
}*/

@media (max-width: 600px) {
    .pdf-preview iframe {
        height: 60vh;
        height: 60dvh;
    }
}

@media (prefers-reduced-motion: reduce) {
    .presentation-card img {
        transition: none;
    }
}


.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.site-header nav {
    display: flex;
    gap: 1rem;
}

.site-header nav a {
    color: #666;
    text-decoration: none;
}

.site-header nav a[aria-current="page"] {
    color: #222;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.3em;
}


.presentation-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.presentation-filters button,
.general-button {
    padding: 0.65rem 1.25rem;
    border: 1px solid #ccc;
    border-radius: 2rem;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    text-decoration: none;
}

.presentation-filters button:hover,
.general-button:hover {
    border-color: #222;
}

.presentation-filters button[aria-pressed="true"],
.general-button[aria-pressed="true"] {
    background: #222;
    border-color: #222;
    color: #fff;
}

.presentation-card[hidden] {
    display: none;
}



/* Landing page */

.landing-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 4rem 2rem;
    box-sizing: border-box;
}

.landing-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.65fr);
    align-items: start;
    gap: clamp(2rem, 6vw, 6rem);

    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.landing-content h1 {
    font-size: clamp(2.2rem, 4vw, 2.5rem);
    line-height: 1.1;
    margin: 0;
}

.landing-content h2 {
    font-size: clamp(2rem, 3.3vw, 2.2rem);
    line-height: 1.1;
    margin: 0 0 1.2rem;
    font-weight: normal;
}

.landing-content p {
    font-size: 1.25rem;
    line-height: 1.45;
    color: #666;
}

.language-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}
/*
.language-choices a {
    display: inline-block;
    padding: 1rem 1.5rem;
    background: #222;
    color: #fff;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
}*/

@media (max-width: 768px) {
    .language-choices a {
        width: 100%;
        text-align: center;
    }
}

/*
.language-choices a:hover {
    background: #444;
}

.language-choices a:focus-visible {
    outline: 3px solid #666;
    outline-offset: 3px;
}*/

/* Author portrait */

.landing-image {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 1rem;
}

.landing-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive layout */

@media (max-width: 768px) {
    .landing-page {
        padding: 3rem 1.5rem;
    }

    .landing-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .landing-image {
        max-width: 420px;
    }
}

.quote-homepage {
    text-align: center;
}

.quote-homepage q {
    font-size: 1.25rem;
    line-height: 1.2;
    color: #666;
    font-style: italic;
    max-width: 26rem;
    display: block;
    margin: 0 auto;
}

.quote-homepage p {
    font-size: 1rem;
}


.homepage-image-and-btn a {
    color: inherit;
    margin-top: 1rem;
    display: block;
}

.outline-link-btn:hover {
    background: #e1dfdf;
}

.homepage-image-and-btn {
    position: relative;
}