/* --- BASE PAGE STYLING --- */
body {
    margin: 0;
    background-color: linen;                  /* Linen background everywhere */
    font-family: Garamond, "Times New Roman", serif;
    color: #4b3621;                           /* Dark brown text */
    line-height: 1.6;
}

/* --- HEADER --- */
header {
    padding: 20px 40px;
    border-bottom: 2px solid #a1866f;        
    background-color: #fffaf0;               
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

header h1 {
    margin: 0;
    font-size: 2em;
    color: #3b2a1a;
    text-shadow: 1px 1px 0 #d6c8b8;
}

/* --- NAV LINKS (homepage and library) --- */
nav ul {
    list-style: none;
    padding: 0;
    margin-top: 10px;
    display: flex;
    gap: 25px;
}

header nav ul {  
    justify-content: flex-start; /* homepage aligns left like before */
}

.library-page nav ul {  
    justify-content: center;     /* library nav centered on library page only */
}

nav li {
    display: inline-block;
}

nav a {
    text-decoration: none;
    color: #4b3621;         /* dark brown links */
    font-size: 18px;
    transition: color 0.3s;
}

nav a:hover {
    color: #8b5e3c;         /* amber/brown hover color */
    text-decoration: underline;
}

/* --- MAIN CONTENT --- */
main:not(.two-column-layout) {
    max-width: 800px;
    padding: 40px;
    margin: 40px auto;
    background-color: #fff8ec;   /* subtle parchment box */
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Headings */
h2, h3 {
    color: #3b2a1a;
    text-shadow: 0.5px 0.5px 0 #d6c8b8;
}

/* Links inside content */
main a {
    color: #6b4226;
    text-decoration: underline;
}

main a:hover {
    color: #8b5e3c;
}

/* --- FOOTER --- */
footer {
    border-top: 1px solid #a1866f;
    padding: 20px;
    text-align: center;
    margin-top: 40px;
    font-size: 0.9em;
    color: #4b3621;
}

/* --- LANDING PAGE --- */
body.landing-page main {
    background-color: transparent;   /* remove parchment box for storybook look */
    padding: 0;
    margin: 60px auto;
    max-width: 700px;
    text-align: center;
}

body.landing-page .storybook .choices {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

body.landing-page .storybook .choice-button {
    text-decoration: none;
    background-color: #8b5e3c;      
    color: linen;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
}

body.landing-page .storybook .choice-button:hover {
    background-color: #a67450;      
    transform: scale(1.05);
}

/* Optional: small spacing for story panel */
body.landing-page .storybook h2, 
body.landing-page .storybook p {
    margin-bottom: 20px;
}

/* --- CONTACT FORM --- */
#contact-form {
    display: flex;
    flex-direction: column;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #d6c8b8;
    font-family: Garamond, "Times New Roman", serif;
    margin-bottom: 20px;
    font-size: 16px;
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: #8b5e3c;
    box-shadow: 0 0 5px rgba(139, 94, 60, 0.5);
}

#contact-form button {
    background-color: #8b5e3c;
    color: linen;
    border: none;
    padding: 14px 28px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

#contact-form button:hover {
    background-color: #a67450;
    transform: scale(1.05);
}

/* --- LIBRARY PAGE --- */
.library-page main h1,
.library-page main h2,
.library-page main h3,
.library-page main p {
    text-align: center;
}

.artifact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.artifact-card {
    background-color: #fff8ec;  /* parchment-style */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.artifact-card h3 {
    margin-top: 15px;
    margin-bottom: 10px;
}

.artifact-card p {
    font-size: 15px;
    line-height: 1.5;
}

.artifact-card img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 10px;
}

.artifact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/* --- TWO-COLUMN HOMEPAGE LAYOUT --- */
.two-column-layout {
    display: flex;
    gap: 25px;
    max-width: 1100px;
    margin: 40px auto;
}

.center-column {
    flex: 3 1 600px; /* main content column */
    background-color: #fff8ec; /* parchment-style box */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-align: center;
}

.center-column img {
    max-width: 100%;
    margin: 15px 0;
    border-radius: 6px;
}

/* --- RIGHT SIDEBAR --- */
.right-column {
    flex: 1 1 260px;
    background: linen;
    border: 4px solid #3b2a1a;
    border-radius: 8px;
    padding: 20px;
    color: #2b1d12;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.right-column iframe {
    display: block;
    margin: 15px auto;
    border: 2px solid #3b2a1a; 
    background: transparent;     
    padding: 4px;
}

.right-column a {
    color: #5c2e0f;
    text-decoration: none;
    font-weight: bold;
}

.right-column a:hover {
    text-decoration: underline;
}

/* --- MOON WIDGET CONTAINER --- */
.moon-widget-container {
    background-color: linen;
    padding: 1px;
    border: none;
    border-radius: 6px;
    text-align: center;
    margin: 15px 0;
}

.moon-widget-container iframe {
    border: none;
}