body {
    background-color: #fffefe;
}

.bodyt {
    margin: auto;
    max-width: 1200px;
    margin-top: 20px;
}

.nav1 {
   display: flex;
   margin-top: auto;
}

.logo1 {
    text-align: center;
    
}

.nav1 p {
    font-family: 'Courier New', Courier, monospace;
}

.nav1 h1 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-weight: 95;
    margin-top: -20px;
}

.link2 {
    display: flex;
    justify-content: center;   /* horizontal */
    align-items: center;       /* vertical */
    margin-left: auto;
}

a {
    text-decoration: none;
    color: black;
}

a:hover {
    color: rgb(175, 132, 25);
    font-weight: 200;
}

.fgure {
    margin: 40px 0 0 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    
} 


figure {
    margin-top: 40px;
    border-bottom: 3px solid black;
}

figure img {
    max-width: 300px;
    aspect-ratio: 2/3;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

figure p {
    font-family: Arial, Helvetica, sans-serif;
    font-family: Arial, Helvetica, sans-serif;
    text-align: center; 
}

figure p+p {
    margin-top: -10px;
}


.subp {
    color: #737373;
    font-size: 15px;
} 

.voice {
    font-size: 15px;
    display: flex;
    justify-content: center;   /* horizontal */
    align-items: center;       /* vertical */
    margin: auto;
    margin-bottom: -20px;
}

h2 {
    color:  rgb(175, 132, 25);
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-weight: 95;

}

figure + figure {
    margin-top: 40px;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-3px);
    }
    75% {
        transform: translateX(3px);
    }
}

figure:hover img {
    animation: shake 0.4s ease-in-out;
    cursor: pointer;  /* optional: shows clickable intent */
}

.story {
    padding-top: 30px;
    max-width: 800px;
    margin: auto;
}

.chapter {
    font-family: 'Times New Roman', Times, serif;
    font-weight: 800;
    display: block;           
    text-align: center;       
    width: 100%;   
}

.story p {
    font-family: 'Times New Roman', Times, serif;
}

.story p+p {
    margin-top: 20px;
}

hr {
    margin-top: 30px;
}

/* ---------- mode toggle ---------- */

.mode1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-right: 18px;
}

.modelabel {
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    color: #737373;
}

.toggle1 {
    width: 56px;
    height: 30px;
    padding: 3px;
    border: none;
    border-radius: 999px;
    background-color: #111111;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.knob1 {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #fffefe;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s ease;
}

.dark .knob1 {
    transform: translateX(26px);
}

.toggle1:focus-visible {
    outline: 2px solid rgb(175, 132, 25);
    outline-offset: 3px;
}

footer {
    color: #737373;
    font-size: 12px;
    display: flex;
    justify-content: center;   /* horizontal */
    align-items: center;       /* vertical */
    margin: auto;
}

/* ---------- dark mode ---------- */

body {
    transition: background-color 0.3s ease;
}

.dark body {
    background-color: #161616;
    color: #f2f1f1;
}

.dark a {
    color: #f2f1f1;
}

.dark a:hover {
    color: hwb(43 29% 42%);
}

.dark h2 {
    color: hwb(43 29% 42%);
}

.dark figure {
    border-bottom: 3px solid #f2f1f1;
}

.dark figure img {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.7);
}

.dark .subp {
    color: #8f8f8f;
}

.dark hr {
    border-color: #3a3a3a;
}

.dark .modelabel {
    color: #8f8f8f;
}

.dark .toggle1 {
    background-color: #f2f1f1;
}

.dark .knob1 {
    background-color: #161616;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

footer {
    color: #3a3a3a;
    font-size: 12px;
    display: flex;
    justify-content: center;   /* horizontal */
    align-items: center;       /* vertical */
    margin: auto;
}