* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;  
}

/* still needs some improvement im not even gonna lie*/

@font-face {
    font-family: HelveticaNeueL;
    src: url(../common//fonts/HelveticaNeue-Light.otf);
}
@font-face {
    font-family:LEDDOT ;
    src: url(../common/fonts/LED\ Dot-Matrix.ttf);
}
@font-face {
    font-family:MSPGOTHIC ;
    src: url(../common/fonts/MSPGothic.ttf);
}

body {
    font-family: "Trebuchet MS", Tahoma, Verdana, HelveticaNeueL, Arial, sans-serif;
    color: #2f2d35;
    background:#fff8d9;
}

#jjlogo {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 12em;
    margin: 0 auto;
}

p {
    font-family: "MS UI Gothic", "Trebuchet MS", HelveticaNeueL, Arial, sans-serif;
    letter-spacing: 0.033em;
}

header {
    width: min(860px, calc(100% - 2rem));
    margin: 1.25rem auto 0;
    background: linear-gradient(180deg, #f6e8a8 0%, #efd98b 45%, #e7ca72 100%);
    color: #4f3f14;
    border: 2px solid #b89f47;
    border-bottom: 0;
}

nav {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0.65rem 0.75rem;
}

nav a {
    color: #5a4a1b;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    font-family: HelveticaNeueL;
    letter-spacing: 0.2px;
    padding: 0.35rem 0.75rem;
    border: 2px solid #ad9440;
    background: linear-gradient(180deg, #f7e9ab 0%, #ebd487 100%);
    box-shadow: 0 1px 0 #fff8d8 inset;
    text-shadow: 0 1px 0 rgba(120, 94, 25, 0.35);
}

nav a:hover {
    background: linear-gradient(180deg, #f9efbd 0%, #efd98f 100%);
    color: #4d3f16;
}

main {
    width: min(860px, calc(100% - 2rem));
    margin: 0 auto;
    border-left: 2px solid #b89f47;
    border-right: 2px solid #b89f47;
    background: #fff5cf;
}

.container {
    max-width: 760px;
    margin: 0 auto;
    padding: 1.6rem 1.7rem 1.8rem;
    background: #fffef8;
    box-shadow: 0 5px 12px rgba(140, 114, 40, 0.18);
}

.container p {
    margin-top: 0.7rem;
    margin-bottom: 0.95rem;
    font-size: 1.2rem;
}

.container h1 {
    margin-bottom: 0.85rem;
    color: #ad9440;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: clamp(1.7rem, 4vw, 2.25rem);
    letter-spacing: 0.3px;
}

.container h2{
    margin-bottom: 0.85rem;
    color: #ad9440;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: clamp(0.85rem, 2vw, 1.125rem);
    letter-spacing: 0.3px;
}

#heroimg {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0.4rem auto 1.1rem;
    border: 1px solid #d8c277;
    background: #fff9e1;
    padding: 4px;
}

footer {
    text-align: center;
    width: min(860px, calc(100% - 2rem));
    margin: 0 auto 1.25rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(180deg, #edd98f 0%, #e2c873 100%);
    color: #4f3f14;
    border: 2px solid #b89f47;
    border-top: 0;
    font-size: 0.9rem;
}
footer p{
    letter-spacing: 0.2rem;
}

@media (max-width: 768px) {
    header,
    main,
    footer {
        width: calc(100% - 1rem);
    }

    nav {
        gap: 0.4rem;
        justify-content: flex-start;
    }

    nav a {
        font-size: 0.9rem;
    }

    .container {
        padding: 1.25rem 1.1rem 1.35rem;
    }
}