:root {
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #f4ede3;
    color: #1f1f23;
    font-family: "Sentient", serif;
}

main {
    width: min(90vw, 70rem);
    margin: 0 auto;
    padding: 3rem 1.5rem;
    min-height: 100vh;
}

h1 {
    margin: 0 0 2rem 0;
    font-family: "Melodrama", serif;
    font-weight: 600;
    font-size: clamp(2.5rem, 8vw, 4rem);
    letter-spacing: -0.02em;
    color: #b91c1c;
    text-align: center;
}

h2 {
    margin: 3rem 0 1.5rem 0;
    font-family: "Melodrama", serif;
    font-weight: 600;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    letter-spacing: -0.01em;
    color: #27272a;
}

h3 {
    margin: 2rem 0 1rem 0;
    font-family: "Sentient", serif;
    font-weight: 600;
    font-size: clamp(1.2rem, 3.5vw, 1.6rem);
    letter-spacing: -0.01em;
    color: #3f3f46;
}

p {
    margin: 0 0 1rem 0;
    line-height: 1.6;
}

ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
    line-height: 1.8;
}

li {
    margin: 0.75rem 0;
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: #1c1917;
}

a {
    color: #dc2626;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 150ms ease;
}

a:hover,
a:focus-visible {
    border-color: currentColor;
}

em {
    font-style: italic;
    color: #1f1f23;
}

strong {
    font-weight: 600;
    color: #1f1f23;
}

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: #57534e;
}

.back-link:hover,
.back-link:focus-visible {
    border-color: currentColor;
}

.page-footer-link {
    text-align: center;
    color: #57534e;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.page-footer-link a {
    color: inherit;
}

.section-separator {
    height: 1px;
    width: 100%;
    margin: 3rem auto;
    background: #27272a;
}

.home main {
    text-align: center;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.home h1 {
    margin: 0 auto;
    font-family: "Boska", serif;
    font-weight: 500;
    font-size: clamp(3rem, 10vw, 6.5rem);
    text-transform: capitalize;
}

.home p {
    margin: 0;
    line-height: 1.4;
}

.home .top-section {
    flex: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: clamp(2rem, 4vw, 3rem);
}

.home .bottom-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-top: 2rem;
}

.home .tagline {
    font-size: clamp(1.3rem, 3.5vw, 2.4rem);
    color: #3f3f46;
    font-weight: 400;
}

.home .separator-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 0 auto 3rem;
    max-width: min(50rem, 100%);
}

.home .separator {
    flex: 1;
    height: 1px;
    background: #27272a;
}

.home .nav-links {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.home .nav-links a {
    color: #57534e;
    border-bottom: none;
    transition: color 150ms ease;
}

.home .nav-links a:hover,
.home .nav-links a:focus-visible {
    color: #b91c1c;
    border-bottom: none;
}

.home .details {
    display: grid;
    gap: clamp(0.5rem, 1vw, 0.75rem);
}

.home .founder {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: #1c1917;
    letter-spacing: 0.02em;
}

.home .founder a {
    color: inherit;
}

.home .founder a:hover,
.home .founder a:focus-visible {
    border-color: currentColor;
}

.organizations-page h1 {
    margin-bottom: 4rem;
}

.organizations-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 2rem;
    max-width: 60rem;
    margin: 0 auto;
}

.org-item {
    padding: 2rem;
}

.org-name {
    font-size: clamp(1.3rem, 2.5vw, 1.75rem);
    font-weight: 400;
    color: #1c1917;
    margin: 0 0 0.5rem 0;
}

.org-role {
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    color: #57534e;
    margin: 0;
    font-style: italic;
}

.bookshelf-page main {
    padding: 2rem 1.5rem;
}

.bookshelf-page .back-link {
    margin-bottom: 1.5rem;
}

.books-list {
    max-width: 70rem;
    margin: 0 auto;
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 2rem 1.5rem;
}

.book-item {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.book-cover {
    width: 100%;
    height: 200px;
    background: transparent;
    overflow: hidden;
    transition: transform 150ms ease;
}

.book-cover:hover {
    transform: translateY(-4px);
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.book-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.book-title {
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    font-weight: 400;
    color: #1c1917;
    margin: 0;
    line-height: 1.25;
}

.book-author {
    font-size: clamp(0.75rem, 1.2vw, 0.85rem);
    color: #57534e;
    margin: 0;
    line-height: 1.25;
}

@media (max-width: 768px) {
    .home .separator-container {
        flex-direction: column;
        gap: 1rem;
    }

    .home .nav-links {
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (max-width: 640px) {
    .organizations-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .books-list {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 1.5rem 1rem;
    }

    .book-cover {
        height: 160px;
    }
}
