/* --------------------------------------
   FONT LOADING
-------------------------------------- */
@font-face {
    font-family: "LouizeDisplay";
    src: url("fonts/LouizeDisplay.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "LouizeDisplay";
    src: url("fonts/LouizeDisplay-Medium.otf") format("opentype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* --------------------------------------
   BASE LAYOUT (MOBILE-FIRST)
-------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: "LouizeDisplay", serif;
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
    padding: 0 1rem;        /* nice mobile margins */
    color: #222;
    background: #fafafa;
}

/* Desktop container */
@media (min-width: 769px) {
    body {
        max-width: 900px;
        margin: 0 auto;
        padding: 0;
    }
}

/* --------------------------------------
   HEADERS
-------------------------------------- */
header {
    text-align: center;
    padding: 1.5rem 1rem 1rem; /* mobile-friendly */
}

@media (min-width: 769px) {
    header {
        padding: 3rem 1rem 2rem;
    }
}

.subtitle {
    color: #555;
    font-size: 1.1rem;
}

/* --------------------------------------
   PROFILE PICTURE
-------------------------------------- */
.profile-pic {
    width: 100%;
    max-width: 260px;     /* ideal for iPhone */
    height: auto;
    object-fit: cover;
    border-radius: 5%;
    display: block;
    margin: 0 auto 1.5rem auto;
}

/* --------------------------------------
   NAVIGATION
-------------------------------------- */
nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.2rem;
    padding: 1rem;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    background: #fff;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
}

/* --------------------------------------
   MAIN CONTENT
-------------------------------------- */
main {
    padding: 2rem 0;
}

/* --------------------------------------
   TITLES
-------------------------------------- */
h1, h2, h3, h4 {
    font-family: "LouizeDisplay", serif;
    font-weight: 400;
    margin-top: 1.2rem;
    margin-bottom: 1rem;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.3rem; }

@media (min-width: 769px) {
    h1, h2, h3 {
        font-size: 2.4rem;
    }
}

/* --------------------------------------
   WORKING PAPER CARDS
-------------------------------------- */
.paper-card {
    /* Mobile: stacked layout */
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 100%;
    margin-bottom: 2rem;
    box-sizing: border-box;
}

@media (min-width: 769px) {
    .paper-card {
        flex-direction: row;
        align-items: flex-start;
        gap: 1.5rem;
    }
}

/* Thumbnail */
.paper-thumb {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: 5px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

/* Info container */
.paper-info {
    flex: 1;
    min-width: 0;
    overflow-wrap: break-word;
    margin-top: 1.2rem;
}

@media (min-width: 769px) {
    .paper-info {
        margin-top: 0;
    }
}

/* Button */
.paper-button {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    background: #8C1515;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 500;
    margin-top: 0.8rem;
}

.paper-button:hover {
    background: #a01a1a;
}

/* --------------------------------------
   AUDIO BLOCK
-------------------------------------- */
.audio-block {
    text-align: center;
    margin: 2rem 0;
}

.audio-block audio {
    margin-top: 1rem;
    width: 100%;
    max-width: 400px;
}

/* --------------------------------------
   FOOTER
-------------------------------------- */
footer {
    text-align: center;
    padding: 2rem 1rem;
    color: #666;
    font-size: 0.9rem;
}
