/* ==========================================================================
   BASE STYLES
   ========================================================================== */

body {
    font-family: 'Cormorant', serif;
    font-size: medium;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    color: black;
    text-align: center;
    background-image: url('marble.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}

/* Background overlay */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Page-specific backgrounds */
body.miscellany-page {
    background: url("studio.png") no-repeat center center fixed;
    background-size: cover;
}

body.about-page {
    background: url("salvageblue.jpg") no-repeat center center fixed;
    background-size: cover;
}

body.author-page {
    background: url("darkblue_background_marble.jpg") no-repeat center center fixed;
    background-size: cover;
}

body.submit-page {
    background: url("onionskin_background_coffee.jpg") no-repeat center center fixed;
    background-size: cover;
}

body.contact-page {
    background: url("goldlight.png") no-repeat center center fixed;
    background-size: cover;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1 {
    font-weight: 700;
    font-size: 2.5rem;
    text-align: center;
    color: #364669;
    margin: 0.8em 0 0.2em 0;
}
h4 {
    font-weight: 700;
    font-size: 2rem;
    text-align: center;
    color: #364669;
    margin: 0.2em 0;
}

h2 {
    font-weight: 700;
    font-size: 1.5rem;
    text-align: center;
    color: #1a2c55;
    margin: 0.5em 0 0.3em 0;
}

h3 {
    font-weight: 500;
    font-style: italic;
    font-size: 1.3rem;
    text-align: center;
    color: #5d273a;
    margin: 0.5em 0 0.3em 0;
}

h5 {
    font-weight: 700;
    font-size: .8rem;
    letter-spacing: 2px;
    text-align: center;
    text-transform: uppercase;
    color: black;
    margin: 0.4em 0;
}
.dinkus {
            text-align: center;
            margin: 3em 0;
            font-size: 0.7em;
            color: #880909;
        }

/* ==========================================================================
   CONTENT CONTAINERS
   ========================================================================== */

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 5px;
}

.white-box {
    background-color: #f0ede5;
    margin: 10px auto;
    padding: 30px;
    min-width: 300px;
    max-width: 90vw;
    width: 100%;
    line-height: 1.7;
    box-sizing: border-box;
}

.content {
    padding: 10px;
}

/* ==========================================================================
   WHITE-BOX TEXT ELEMENTS
   ========================================================================== */

.white-box .event {
    font-size: 0.9rem;
    font-style: italic;
    font-weight: 500;
    margin: 3em 0 0.5em 0;
}

.white-box .fictionnon {
    color: cornflowerblue;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 5px;
    margin: 2em 0 2.5em 0;
}
.white-box .fictionnon2 {
  color: #891d2e;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0 0 .5em 0;
}



.white-box p {
    font-size: 1rem;
    font-weight: 500;
    margin: 0 .8em;
    line-height: 1.4em;
    text-align: justify;
    text-indent: 1.5em;
}

.white-box p.indent {
    text-indent: 0;
    margin: 0 3.5em 2em 3.5em;
}

.white-box p.caption {
    font-family: 'Segoe UI', Tahoma, Verdana, Geneva, sans-serif;
    font-size: .8rem;
    font-weight: 400;
    line-height: 1.3em;
    margin: 5px 5px 5px 5px;
    text-align: justify;
    text-indent: unset;
    padding-bottom: 20px; 
}

/* Play-specific styles */
.white-box .play {
    font-size: 1rem;
    font-weight: 500;
    margin-right: 0.8em;
    line-height: 1.4em;
    text-align: left;
    text-indent: unset;
}

.white-box .playcenter {
    font-size: 1rem;
    font-weight: 500;
    margin-right: 0.8em;
    line-height: 1.4em;
    text-align: center;
    text-indent: unset;
}

.white-box .playact {
    font-size: 1rem;
    font-weight: 500;
    font-style: italic;
    margin-right: 0.8em;
    line-height: 1.4em;
    text-align: left;
    text-indent: 1.5em;
}

.white-box .poem {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.4em;
    text-align: center;
    text-indent: unset;
    margin: 1em 0 0.3em 0;
}

.white-box .poemleft {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.2em;
    text-align: left;
    text-indent: unset;
    margin: 1em auto 0.8em auto;
    max-width: 400px;
}

.white-box .poemleft.diamond {
    padding-left: 20px;
    position: relative;
}

.white-box .poemleft.diamond::before {
    content: "♦";
    color: #891d2e;
    position: absolute;
    left: 0;
}

.white-box .poemleftindent {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.2em;
    text-align: left;
    padding-left: 4em;
    text-indent: unset;
    margin: 1em auto 0.8em auto;
    max-width: 400px;
}

.white-box .poemleftindentital {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.2em;
    text-align: left;
    padding-left: 4em;
    text-indent: unset;
    margin: 1em auto 0.8em auto;
    max-width: 400px;
    font-style: italic;
}


.white-box .bullet {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.2em;
    text-align: left;
    padding-left: 4em;
    text-indent: unset;
    margin: 1em 2em 2em 1.5em;
}

.white-box .bullet.diamond {
    padding-left: 20px;
    position: relative;
}

.white-box .bullet.diamond::before {
    content: "♦";
    color: #891d2e;
    position: absolute;
    left: 0;
}




.white-box .signatureindent {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.2em;
    text-align: left;
    padding-left: 4em;
    text-indent: unset;
    margin: 1em auto 0.8em auto;
    max-width: 400px;
}




.white-box .bio {
    font-size: 0.9rem;
    font-style: italic;
    line-height: 1.2em;
    text-align: justify;
    text-indent: unset;
    margin: 0.2em 0 0.6em 0;
}

.bio .footnote {
    
    text-align: left;
     line-height: .8em;
     font-size: 0.8rem;
    font-style: normal;
    margin: 0 0 0 0;
    text-indent: unset;
}

.white-box .copyright {
    font-size: 0.9rem;
    text-align: center;
    margin: 0.6em 0 0.3em 0;
}

.white-box .whisper {
    font-size: 0.8rem;
    font-style: italic;
    letter-spacing: 1.5px;
    text-align: center;
    text-indent: unset;
    margin: 0.6em 0 0.3em 0;
}

.white-box .link {
    font-size: 0.9rem;
    font-style: normal;
    text-align: center;
    margin: 1.6em 0 1.3em 0;
}

.white-box span.map {
    font-size: 0.8rem;
    color: #52a4a4;
    margin: 0 1em;
}

/* White-box image sizing */
.white-box img {
    width: 100%;
    min-width: 300px;
    max-width: 400px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Override for inline images - must come after .white-box img */
.white-box .inline-img {
    width: auto;
    min-width: auto;
    max-width: none;
    height: auto;
    max-height: 200px;
    margin: 0;
    border: 3px solid #183d55;
    display: block;
    object-fit: contain;
}


.white-box .exhibition-img .photo-img {
    width: 100%;
    max-width: 500px;
     border: 6px solid #183d55;
    height: auto;
    display: block;
    margin: 40px auto 40px auto;
    box-sizing: border-box;
}

.white-box .exhibition-img .noborder {
    width: 100%;
    max-width: 500px;
     border: none;
    height: auto;
    display: block;
    margin: 0 auto 0 auto;
}

.white-box .solo-img .photo-img {
    width: 100%;
    max-width: 500px;
     border: 6px solid #183d55;
    height: auto;
    display: block;
    margin: 10px auto 0 auto;
    box-sizing: border-box;
}

p.tightcaption {
    font-family: 'Segoe UI', Tahoma, Verdana, Geneva, sans-serif;
    font-size: .5rem;
 text-transform: uppercase;
     letter-spacing: 4px;
    font-weight: 350;
    text-align: center;
    margin: 3px auto 0 auto;
    padding-bottom: 10px; 
}

 .white-box .dinkus {
            text-align: center;
            margin: 3em 0;
            font-size: 0.7em;
            color: #880909;
        }
/* ==========================================================================
   GENERAL TEXT STYLES
   ========================================================================== */

p.center {
    text-align: center;
    color: black;
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 0.5em;
}

p.list {
    text-align: left;
    color: #2a3a42;
    font-weight: 600;
    font-size: 1.1rem;
    font-family: Courier;
    line-height: 1.3;
    margin-bottom: 0.7em;
}

p.listcenter {
    text-align: center;
    color: #2a3a42;
    font-weight: 600;
    font-size: 1.1rem;
    font-family: Courier;
    line-height: 1.3;
    margin-bottom: 0.7em;
}

p.stamp {
    text-align: center;
    color: #475055;
    font-weight: 400;
    font-size: 1.1rem;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.3;
    margin-bottom: 0.7em;
}

p.highlight {
    text-align: center;
    color: #ba1931;
    font-weight: 600;
    font-size: 1.1rem;
    font-family: Courier;
    line-height: 1.3;
    margin-bottom: 0.7em;
}

p.typeprose {
    text-align: left;
    color: #2a3a42;
    font-weight: 600;
    font-size: 1.1rem;
    font-family: Courier;
    line-height: 1.5;
    margin-bottom: 0.5em;
}

p.typeital {
    text-align: left;
    color: #4f3640;
    font-weight: 600;
    font-size: 1.rem;
    font-family: Courier;
    font-style: italic;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

p.left {
    text-align: left;
    color: black;
    font-weight: 500;
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 0.5em;
}

p.leftwide {
    text-align: left;
    color: black;
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 0.5em;
        margin: 10px auto;
    padding: 10px;
    max-width: 80vw;
}

p.letter {
    text-align: left;
    color: #363a45;
    font-style: italic;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.5;
}

p.signatureindent {
    font-size: 1rem;
    font-weight: 400;
        font-style: italic;
    line-height: 1.2em;
    text-align: left;
    padding-left: 4em;
    text-indent: unset;
    margin: 1em auto 0.8em auto;
    max-width: 400px;
}

p.letterright {
    text-align: right;
    color: #363a45;
    font-style: italic;
    font-weight: 500;
   padding-left: 4em;
    text-indent: unset;
    font-size: 1rem;
    line-height: 1.5;
}



p.excerpt {
    color: black;
    font-weight: 500;
    font-size: 1rem;
    text-align: left;
    text-indent: 1.5em;
    line-height: 1.5;
    margin-bottom: 0.5em;
}
p.excerptleft {
    color: black;
    font-weight: 500;
    font-size: 1rem;
    text-align: left;
    line-height: 2;
    margin-bottom: 0.5em;
}

p.footy {
    font-family: 'Segoe UI', Tahoma, Verdana, Geneva, sans-serif;
    font-size: small;
    line-height: 1.3;
    text-align: justify;
    text-indent: unset;
    margin: 0 0 10px 0;
}

p.caution {
    font-family: 'Segoe UI', Tahoma, Verdana, Geneva, sans-serif;
    font-size: .7em;
    color: #9f271d;
    font-style: italic;
    font-weight: 400;
    line-height: 1;
    text-align: center;
    text-indent: unset;
    margin: 20px 0 20px 0;
}

.half {
    text-align: justify;
    line-height: 1.5;
}

.caption {
    font-family: 'Segoe UI', Tahoma, Verdana, Geneva, sans-serif;
    font-size: .8rem;
    font-weight: 400;
    line-height: 1.3em;
    margin: 5px 5px 5px 5px;
    text-align: justify;
    text-indent: unset;
    padding-bottom: 20px; 
}




.where {
    font-size: 12px;
    text-align: center;
    line-height: 0;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

header {
    position: relative;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.logo {
    max-width: 97%;
}

.motto {
    font-style: italic;
    font-size: medium;
    color: rgba(9, 66, 93, 0.6);
    margin: 5px 0;
}

.lightmotto {
    font-style: italic;
    font-size: medium;
    color: #fdebcd;
    margin: 5px 0;
}

.brightmotto {
    font-style: italic;
    font-size: medium;
    font-weight: 500;
    color: #ffd187;
    margin: 5px 0;
}

nav {
    margin-top: 15px;
}

nav a {
    margin: 0 15px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: color 0.3s ease-in-out;
}

nav a:hover {
    color: #555;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.button-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
}

.custom-btn {
    background-color: rgba(14, 80, 113, 0.6);
    color: #fff;
    padding: 0.5vw 1vw;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: clamp(10px, 2vw, 12px);
    text-align: center;
    flex: 1 1 auto;
    min-width: 100px;
    max-width: 120px;
    transition: background-color 0.3s ease-in-out;
}

.custom-btn:hover {
    background-color: #a1c3bf;
}

/* ==========================================================================
   FORMS
   ========================================================================== */

.subscribe-container {
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    display: inline-block;
    text-align: center;
    margin: 20px auto;
    max-width: 400px;
    width: 100%;
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.subscribe-input,
.subscribe-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    font-family: "Georgia", serif;
}

.subscribe-textarea {
    height: 100px;
    resize: none;
}

.newsletter-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    font-family: "Georgia", serif;
    color: #333;
}

.newsletter-checkbox {
    width: 20px;
    height: 20px;
}

.subscribe-btn {
    background-color: rgba(14, 80, 113, 0.8);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    width: 100%;
    transition: background 0.3s ease-in-out;
}

.subscribe-btn:hover {
    background-color: #a1c3bf;
}

/* ==========================================================================
   IMAGES
   ========================================================================== */

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

.image-border {
    border: 6px solid #183d55;
    display: block;
    width: 100%;
    box-sizing: border-box;
}




.inline-img {
    height: auto;
    max-height: 200px;
    width: auto;
    max-width: 100%;
    margin: 0;
    border: 3px solid #183d55;
    display: block;
    object-fit: contain;
}

.inline-img.left {
    float: left;
    margin: 8px 14px 8px 0;
}

.inline-img.right {
    float: right;
    margin: 8px 0 8px 14px;
}

.inline-img.center {
 
    margin: 8px 14px 8px 0;
}

/* Ensure paragraph containing inline image doesn't add extra spacing */
.white-box p:has(.inline-img) {
    text-indent: 0;
}

/* Allow inline images to shrink on mobile */
@media (max-width: 600px) {
    .inline-img {
        max-height: 150px;
    }
}

.inline-img.left {
    float: left;
    margin-right: 14px;
}

.inline-img.right {
    float: right;
    margin-left: 14px;
}


/* ==========================================================================
   STORY GRID
   ========================================================================== */
.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 400px));
    gap: 20px;
    margin: 20px auto;
    justify-content: center;
    max-width: 100%;
}

.story-card {
    display: flex;
    flex-direction: column;
    background: transparent;
    overflow: hidden;
    text-decoration: none;
    color: #0f2646;
    padding: 10px;
    border-radius: 6px;
    box-sizing: border-box;
    transition: transform 0.2s ease-in-out;
    width: 100%;
}

.story-card:hover {
    transform: translateY(-5px);
}

.story-card .fictionnon {
    color: #315493;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 1em;
}



.story-card img,
.story-card .image-border {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    display: block;
    border: 6px solid #183d55;
    box-sizing: border-box;
    object-fit: cover;
}

.story-card .title {
    font-size: 1.6rem;
    font-weight: 600;
    color: #042d6c;
    text-align: center;
    margin: 10px;
}

.story-card .fictionnon2 {
    color: #982334;  /* Add this new rule */
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: .5em 0 0 0;
}

.story-card .longtitle {
    font-size: 1.4rem;
    font-weight: 600;
    color: #042d6c;
    text-align: center;
    margin: 10px;
}

.story-card .author {
    font-size: 1rem;
    font-weight: 800;
    color: black;
    text-align: center;
    margin-bottom: 8px;
}

.story-card .excerpt {
    font-size: 1.1rem;
    color: black;
    text-align: justify;
    line-height: 1.3;
    margin: 0 5px 5px 5px;
    overflow: hidden;
    position: relative;
}




/* ==========================================================================
   MEDIA QUERIES
   ========================================================================== */

/* Mobile screens - allow images to shrink below 300px */
@media (max-width: 400px) {
    
    body {
        padding: 0 10px;
        font-size: 16px; /* Increased from 14px */
    }
    
    .white-box {
        min-width: auto;
        max-width: 95vw;
        padding: 15px;
    }
    
    .white-box img {
        min-width: auto;
        width: 100%;
    }
      .white-box p {
        font-size: 1.15rem; /* Slightly larger */
          line-height: 1.5em;
    }
    
      /* Headings adjustments */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.4rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    h4 {
        font-size: 1.8rem;
    }
    
    h5 {
        font-size: 0.85rem;
    }
      /* Bio text */
    .white-box .bio {
        font-size: 1rem; /* Increased from 0.9rem */
    }
    
    /* Poem text */
    .white-box .poem,
    .white-box .poemleft,
    .white-box .poemleftindent,
    .white-box .poemleftindentital {
        font-size: 1.1rem; /* Slightly larger */
    }
     p.caution {
        font-size: 0.75rem;
        line-height: 1.3;
    }
    
    p.tightcaption {
        font-size: 0.65rem;
        letter-spacing: 2px; /* Reduce letter-spacing on mobile */
    }
    
    /* Override for captions */
    p.captioncenter {
        font-size: 0.7rem;
    }
    .story-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .story-card {
        min-width: auto;
    }
    
    .story-card img,
    .story-card .image-border {
        min-width: auto;
        width: 100%;
    }
    
   /* Story card text */
    .story-card .title {
        font-size: 1.5rem;
    }
    
    .story-card .excerpt {
        font-size: 1.05rem; /* Slightly increased */
    }
}


@media (min-width: 401px) and (max-width: 600px) {
      /* Slightly larger phones/small tablets */
    .white-box p {
        font-size: 1.1rem;
        line-height: 1.5em;
    }
    
    p.captioncenter {
        font-size: 0.75rem;
    }
      p.caution {
        font-size: 0.75rem;
        line-height: 1.3;
    }
      p.tightcaption {
        font-size: 0.65rem;
        letter-spacing: 3px;
    }
}

/* Tablets - 2 columns */
@media (min-width: 601px) and (max-width: 1024px) {
    .story-grid {
        grid-template-columns: repeat(2, minmax(300px, 400px));
    }
    
    .white-box {
        max-width: 700px;
    }
}

/* Desktop - 3 columns */
@media (min-width: 1025px) and (max-width: 1399px) {
    .story-grid {
        grid-template-columns: repeat(3, minmax(300px, 400px));
    }
    
    .white-box {
        max-width: 800px;
    }
}

/* Large desktop - 4 columns */
@media (min-width: 1400px) and (max-width: 1799px) {
    .story-grid {
        grid-template-columns: repeat(4, minmax(300px, 400px));
    }
    
    .white-box {
        max-width: 900px;
    }
}

/* Ultra-wide - 5 columns */
@media (min-width: 1800px) {
    .story-grid {
        grid-template-columns: repeat(5, minmax(300px, 400px));
    }
    
    .white-box {
        max-width: 1000px;
    }
}

/* RSS Subscribe Section at Bottom - for contact page */
.contact-page > div:last-child {
    text-align: center;
    padding-bottom: 30px;
}

.contact-page > div:last-child nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 20px auto;
}

@media (max-width: 768px) {
    .contact-page > div:last-child nav {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-page > div:last-child nav .custom-btn {
        width: 90%;
        max-width: 300px;
    }
}

.left-list {
  list-style: none;
  padding-left: 30px;
  text-align: left;
}

.left-list li {
  padding-left: 20px;
    position: relative;
}

.left-list li::before {
  content: "♦";
  color: #891d2e;
  position: absolute;
  left: 0;
}

.left-list li strong {
  font-weight: bold;
}
.left-list li em {
  font-style: italic;
}
 .section-break {
            text-align: center;
            font-size: 12px;
            letter-spacing: 12px;
              color: #891d2e;
            margin: 30px 0;
        }

sup {
  font-size: 0.75em;
  line-height: 0;
}


/* audio sound files follows */
.audio-player {
  display: inline-block;
}

.play-button {
  width: 30px;
  height: 30px;
  border-radius: 25%;
  border: 2px solid #333;
  background-color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 20;
}

.play-button:hover {
  background-color: #333;
  color: #fff;
  transform: scale(1.1);
}

.play-button:active {
  transform: scale(0.95);
}

.play-icon,
.pause-icon {
  width: 24px;
  height: 24px;
  pointer-events: none;
}

.play-icon polygon {
  fill: currentColor;
}

.pause-icon rect {
  fill: currentColor;
}

.audio-player {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.audio-description {
    text-align: left;
    text-indent: 0;
  font-size: 14px;
  color: #333;
}