/* DM Mono (SIL Open Font License, see fonts/DM-Mono-OFL.txt), hosted with the site */
@font-face {
    font-family: "DM Mono";
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url("../fonts/dm-mono-latin-ext-300-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
    font-family: "DM Mono";
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url("../fonts/dm-mono-latin-300-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
    font-family: "DM Mono";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/dm-mono-latin-ext-400-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
    font-family: "DM Mono";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/dm-mono-latin-400-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "DM Mono", "Courier New", monospace;
    font-size: 12px;
    font-weight: 300;
    line-height: 1.8;
    color: rgb(87, 87, 87);
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
}


/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "DM Mono", "Courier New", monospace;
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: rgb(87, 87, 87);
}

h1 {
    font-size: 18px;
}

h2 {
    font-size: 16px;
}

h3 {
    font-size: 14px;
    font-weight: 400;
}

p {
    margin-bottom: 1rem;
    font-family: "DM Mono", "Courier New", monospace;
    font-size: 12px;
    font-weight: 300;
    line-height: 1.8;
    color: rgb(87, 87, 87);
}

a {
    color: inherit;
    text-decoration: underline;
}

a:hover {
    opacity: 0.7;
}

/* Layout Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header */
header {
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    flex: 0 0 auto;
    width: 70px;
}

.logo img {
    width: 70px;
    height: auto;
    display: block;
}

/* Navigation */
nav.main-nav {
    flex: 1 1 auto;
    text-align: right;
    padding-left: 20px;
}

nav.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 20px;
}

nav.main-nav a {
    text-decoration: none;
    font-family: "DM Mono", "Courier New", monospace;
    font-size: 12px;
    font-weight: 300;
    text-transform: uppercase;
    color: rgb(87, 87, 87);
}

nav.main-nav a:hover,
nav.main-nav .active a {
    text-decoration: underline;
}

/* Main Content */
main {
    padding: 40px 0;
    min-height: 500px;
}

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.col {
    padding: 0 15px;
    margin-bottom: 30px;
}

.col-12 {
    width: 100%;
}

.col-8 {
    width: 66.666%;
}

.col-6 {
    width: 50%;
}

.col-4 {
    width: 33.333%;
}

.col-3 {
    width: 25%;
}

.col-2 {
    width: 16.666%;
}

.col-5 {
    width: 41.666%;
}

.col-7 {
    width: 58.333%;
}

/* Image Blocks */
.image-block {
    margin-bottom: 30px;
}

.image-block img {
    width: 100%;
    height: auto;
    display: block;
}

.image-link {
    display: block;
    text-decoration: none;
}

/* Content Blocks */
.content-section {
    margin-bottom: 40px;
    text-align: center;
}

.content-section p {
    text-align: left;
    max-width: 800px;
    margin: 0 auto 1rem;
}

.content-section img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.spacer {
    height: 20px;
}

/* Footer */
footer {
    padding: 40px 0;
    border-top: 1px solid #ddd;
    text-align: center;
    font-family: "DM Mono", "Courier New", monospace;
    font-size: 12px;
    font-weight: 300;
    color: rgb(87, 87, 87);
}

footer a {
    margin: 0 10px;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-family: "DM Mono", "Courier New", monospace;
    font-size: 12px;
    font-weight: 300;
    color: rgb(87, 87, 87);
    cursor: pointer;
    padding: 10px;
    text-transform: uppercase;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .col {
        width: 100% !important;
    }

    header .container {
        flex-wrap: wrap;
    }

    .logo {
        flex: 1 1 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    nav.main-nav ul {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        justify-content: center;
    }

    .mobile-menu-toggle {
        display: block;
        margin: 0 auto;
    }

    nav.main-nav {
        display: none;
        flex: 1 1 100%;
        text-align: center;
    }

    nav.main-nav.active {
        display: block;
    }

    h1 {
        font-size: 16px;
    }

    h2 {
        font-size: 14px;
    }

    h3 {
        font-size: 12px;
    }
}

/* Author Grid */
.author-item {
    margin-bottom: 30px;
}

.author-item .row {
    align-items: flex-start;
}

.author-image {
    margin-bottom: 20px;
    text-align: right;
    padding-right: 30px;
}

.author-image img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}

.author-content h3 {
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 12px;
    color: rgb(200, 200, 200);
    font-weight: 300;
}

.author-content p {
    font-size: 11px;
    line-height: 1.6;
}

/* Author page specific layout */
.authors-container {
    max-width: 700px;
    margin: 0 auto;
}

/* Book Grid */
.book-item {
    margin-bottom: 30px;
}

.book-info {
    padding: 20px 0;
}

.book-info p {
    margin-bottom: 0.5rem;
    font-family: "DM Mono", "Courier New", monospace;
    font-size: 12px;
    font-weight: 300;
    color: rgb(87, 87, 87);
}

.book-info h3 {
    margin: 20px 0;
}

/* Buy Button */
.buy-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #222;
    color: #fff;
    text-decoration: none;
    font-family: "DM Mono", "Courier New", monospace;
    font-size: 12px;
    font-weight: 300;
    transition: opacity 0.3s;
}

.buy-button:hover {
    opacity: 0.8;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

/* Primary/Originals sections */
.book-section {
    margin-bottom: 80px;
}

.book-section h2 {
    margin-bottom: 30px;
}

/* Homepage specific */
.hero-image {
    max-width: 600px;
    margin: 0 auto;
}

/* Centered content */
.centered {
    text-align: center;
}

/* About page specific */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}
