/*!
Theme Name: wildethorn
Version: 1.0.0
*/


/*--------------------------------------------------------------
Base Typography & Variables
--------------------------------------------------------------*/
/* Color and Font Variables */
:root {
    --text-color: #333;
    --heading-color: #29474F;
    --header-bg-color: #29474F;
    --header-bg-color-semi-transparent: rgba(41, 71, 79, 0.6); /* manually calculated based on above value for now*/
    --nav-bar-color:#71BEA4;
    --header-text-color: #71BEA4;
    --section-bg-color:#d4ebe3;
    --border-color:  #29474F;
    --button-bg-color: #71BEA4;
    --button-hover-bg-color: #29474F;
    --link-color: #71BEA4;
    --link-hover-color: #EEB589;
    --footer-bg-color: #29474F;
    --footer-text-color: #71BEA4;
    --misc-gray: #f4f4f4;

    --primary-color: #29474F;
    --secondary-color: #71BEA4;
    --highlight-color: #EEB589;
}

@font-face {
    font-family: 'MarieAlternate';
    src: url('../assets/fonts/MarieAlternate-Ka37.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}


@font-face {
    font-family: 'MarieOptional';
    src: url('../assets/fonts/MarieOptional-2K0v.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}


body,
button,
input,
select,
textarea {
    font-family: Montserrat, "Segoe UI", sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-color);
    background: var(--section-bg-color);
}


h1, h2, h3, h4, h5, h6 {
    font-family: inherit;
    color: var(--heading-color);
    margin-bottom: 1rem;
    line-height: 1.2;
    text-align: center;
}


body {
    text-align: center;
}


p {
    margin-bottom: 1.2rem;
}

a {
    color: var(--link-color);
    text-decoration: underline;
}
a:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
}

/* Utility Classes */
.weight-normal { font-weight: 400; }
.weight-bold   { font-weight: 500; }
.font-sans     { font-family: sans-serif; }


/* Text color utilities */
.text-400 { color: #666; }
.text-600 { color: #444; }
.text-800 { color: #222; }
.text-900 { color: #111; }

/* Responsive Text Utilities */
@media (min-width: 768px) {
    .md\:text-600 { font-size: 1.25rem; }
    .md\:text-900 { font-size: 1.5rem; }
}
@media (min-width: 1024px) {
    .lg\:text-major { font-size: 2rem; }
}

a:focus {
    outline: none;
}
  
a:focus-visible {
    outline: 2px solid var(--link-color);
    border-radius: 4px;
}


/*--------------------------------------------------------------
Header Styling
--------------------------------------------------------------*/

h2 {
    font-weight: 550;  /* Normal weight */
    font-size: 1.5rem; /* Adjust the size as needed */
    line-height: 1.5;  /* Adjust line height for spacing */
}
  
h3 {
    font-weight: 400;
    font-size: 1.25rem; /* Adjust the size as needed */
    line-height: 1.5;  /* Adjust line height for spacing */
}



/*--------------------------------------------------------------
Layout Helpers & Containers
--------------------------------------------------------------*/
.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}
.radius {
    border-radius: 4px;
}
.frame {
    border: 1px solid var(--border-color);
    padding: 1rem;
    background: #fff;
}

/*--------------------------------------------------------------
Header & Global Site Elements
--------------------------------------------------------------*/
header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    background-color: var(--header-bg-color);
    color: var(--header-text-color);
    width: 90%;
    min-height: 100px;
    overflow: hidden;
}

.site-head {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    background-color: var(--header-bg-color);
    color: var(--header-text-color);
    width: 100%;
    min-height: 100px; 
}

.site-head__inner {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
}

.site-head .wrapper {
    max-width: 1200rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.site-logo {
    max-height: 100px;
    width: auto;
    height: auto;
    padding-top: 0rem;
    object-fit: contain;

}

.site-head__brand:hover {
    opacity: 0.7;
    text-decoration: none;
}

.site-title {
    font-family: 'MarieOptional', Montserrat, sans-serif;
    font-size: clamp(1.5rem, 8vw, 4.5rem);
    letter-spacing: 0.5rem;
    padding-top: 0.8rem;
    font-weight: 500;
    color: var(--header-text-color);
    margin: 0;
}

.site-nav {
    background-color: var(--nav-bar-color);
    color: #fff;
}
.site-nav a {
    text-decoration: none;
    background-color: var(--secondary-color);
    padding: 0.5rem 1rem;
}

.nav__list {
    display: flex;
    justify-content: center;
    gap: 1rem;
    list-style: none;
    padding: 1rem;
    margin: 0;
  }

.site-nav a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
}

.site-nav a:hover {
    background-color: var(--header-bg-color);
    border-radius: 10px;
}


/*--------------------------------------------------------------
Sections & Components
--------------------------------------------------------------*/

/* Intro Section (home.html) */
.intro {
    padding: 2rem;
    background-color: var(--section-bg-color);
    margin: 1rem auto;
    max-width: 800px;
    text-align: center;
}
.intro__header {
    margin-bottom: 1rem;
}
.intro__heading {
    font-size: 2rem;
}
.intro__content {
    margin: 1rem 0;
}
.intro__body {
    font-size: 1rem;
}

/* =========================
Newsletter Form Styling
========================= */
.newsletter-signup {
    padding: 1rem;
    background-color: var(--section-bg-color);
    margin: 2rem auto;
    max-width: 800px;
}

.newsletter-signup h2 {
    font-size: 1.5rem;
    color: var(--heading-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.newsletter-signup label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
}

.newsletter-signup input[type="email"] {
    display: block;
    width: 100%;
    max-width: 400px;
    padding: 0.75rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    color: var(--text-color);
    background-color: #fefefe;
}

.newsletter-signup .wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  #mc_embed_signup {
    text-align: center;
  }
  
  .mc-field-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0rem;
  }
  
  #mc-embedded-subscribe {
    margin-top: 0rem;
  }

.newsletter-signup input[type="submit"].button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    background-color: var(--link-color);
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.newsletter-signup input[type="submit"].button:hover {
    background-color: var(--header-bg-color);
}
  
/* 
    Styling for the default Mailchimp success/error messages.
*/

#mc_embed_signup #mc-embedded-subscribe-form div.mce_inline_error {display:inline-block; margin:2px 0 1em 0; padding:3px; background-color:rgba(255,255,255,0.85); -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; font-size:14px; font-weight:normal; z-index:1; color:#e85c41;}
#mc_embed_signup #mc-embedded-subscribe-form input.mce_inline_error {border:2px solid #e85c41;}    


/* People Section (people.html) */
#people {
    padding: 2rem;
    margin: 2rem auto;
    max-width: 800px;
    background-color: var(--section-bg-color);
}

.people-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 0rem;
}
.person {
    flex: 1 1 calc(33.333% - 2rem);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 5px;
}
.person__name {
    display: block;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}
.person__title {
    display: block;
    font-weight: 500;
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1rem;
}
.person__bio {
    font-size: 1rem;
}

/* Games Section (games.html) */
.section {
    padding: 2rem;
    background-color: var(--section-bg-color);
    margin: 2rem auto;
    max-width: 800px;
}
#games h2,
#games h3 {
    margin-bottom: 1rem;
}
#games p {
    margin-bottom: 1.5rem;
}
.game-list {
    list-style: none;
    padding: 0rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.game-list li {
    margin-bottom: 2rem;
}
.game-list iframe {
    max-width: 100%;
    border: none;
}

.game-summary {
    max-width: 552px; /* Match the iframe width */
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding-bottom: 1rem;
}

/* Contact Section (contacts.html) */
#contact {
    padding: 2rem;
    background-color: var(--section-bg-color);
    max-width: 800px;
}
#contact h2,
#contact h3 {
    margin-bottom: 1rem;
}
#contact p {
    font-size: 1rem;
}

/*--------------------------------------------------------------
Footer
--------------------------------------------------------------*/
#footer,
.site-footer {
    text-align: center;
    background-color: var(--footer-bg-color);
    color: var(--footer-text-color);
    font-size: 1rem;
    text-decoration: none;
    padding: 0.5rem 1rem;
}

/*--------------------------------------------------------------
Responsive Adjustments
--------------------------------------------------------------*/
@media (max-width: 768px) {
    .people-list {
        flex-direction: column;
    }
    .person {
        flex: 1 1 100%;
    }
}


/* Screen reader stuff */
.screen-reader-text,
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/*--------------------------------------------------------------
Blog Page Styling
--------------------------------------------------------------*/

#post-list {
    display: flex;
    justify-content: center;
}

.post-list {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
    max-width: 60rem;
}

.post-list__link {
    display: block;
    text-decoration: none;
    color: var(--secondary-color);
}
  
.post-list__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
    padding: 20px;
    background-color: var(--primary-color);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.post-list__title {
    color: var(--secondary-color);
}

.post-list__title:hover {
    color: var(--tertiary-color);
}

.post-list .post-cover {
    width: 100%;
    height: 30rem;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 10px;
}

.post-list .post-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures uniform cropping */
}



/*--------------------------------------------------------------
Post Page Styling
--------------------------------------------------------------*/

.post-content {
    max-width: 70rem;
    text-align: left;
}

.post-content img {
    display: block;
    margin: 1.5rem auto;
    max-width: 100%;
    width: 100%;
    max-width: 70rem;
} 

.post-cover img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    text-decoration: none;
}


.post-pagination {
    display: flex;
    margin: 2rem auto;
    width: 100%;
    max-width: 800px;
    padding: 0 1rem;
  }
  
  .prev-wrapper,
  .next-wrapper {
    flex: 1;
  }
  
  .prev-wrapper {
    text-align: left;
  }
  
  .next-wrapper {
    text-align: right;
  }
  
  .post-pagination a {
    padding: 0.75rem 1.5rem;
    transition: background-color 0.2s ease-in-out;
  }

.post-grid__item:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease-in-out;
}

.post-grid__link {
    display: block;
    text-decoration: none;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 1.5rem;
  justify-content: center;
  justify-items: center;
  list-style-type: none;
}

.post-grid__item {
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
    padding: 20px;
    background-color: var(--primary-color);
    border-radius: 8px;
}

.post-grid__item:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease-in-out;
}

.post-grid .post-cover {
    width: 100%;
    height: 15rem;
    background-color: white;
    justify-content: center;
    align-items: center;
}

.post-grid .post-cover img {
    height: 100%;
    object-fit: cover;
    overflow: hidden;
}

.post-grid_link {
    display: block;
    text-decoration: none;
    color: var(--secondary-color);
}

.post-grid__title {
    color: var(--secondary-color);
}

.post-grid__title:hover {
    color: var(--tertiary-color);
}

.post-grid__title {
    font-size: 1.2rem;
    font-weight: bold;
    padding: 1rem;
    color: var(--color-primary);
}


.post-pagination {
    display: flex;
    margin: 2rem auto;
    width: 100%;
    max-width: 800px;
    padding: 0 1rem;
  }
  
  .prev-wrapper,
  .next-wrapper {
    flex: 1;
  }
  
  .prev-wrapper {
    text-align: left;
  }
  
  .next-wrapper {
    text-align: right;
  }
  
  .post-pagination a {
    padding: 0.75rem 1.5rem;
    transition: background-color 0.2s ease-in-out;
  }

  /* 404 Page*/
  .error-404 {
    text-align: center;
    padding: 5rem 2rem;
  }
  .error-404 h1 {
    font-size: 2.5rem;
    color: var(--heading-color);
  }
  .error-404 a {
    color: var(--link-color);
  }
  .error-404 a:hover {
    color: var(--link-hover-color);
  }
