/*
Theme Name: Say It Last
Theme URI: https://sayitlast.com
Author: Rubicon Technologies
Description: Custom theme for Say It Last
Version: 1.0
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: linear-gradient(180deg, #6BABA3 0%, #6BABA3 30%, #EAE6DD 55%, #EAE6DD 100%);
  background-attachment: fixed;
  color: #1C3F52;
  font-family: 'Bitter', serif;
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
}

#wpadminbar { display: none !important; }
html { margin-top: 0 !important; }

a { color: #1C3F52; text-decoration: none; }
a:hover { text-decoration: underline; }

h1,h2,h3,h4,h5,h6 {
  font-family: 'Young Serif', serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #1C3F52;
  margin: 1.5rem 0 0.75rem;
}

h1 { font-size: 4.5rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }
p { margin-bottom: 1rem; }
ul, ol { margin: 0 0 1rem 1.5rem; }
li { margin-bottom: 0.4rem; }
hr { border: none; border-top: 1px solid rgba(28,63,82,0.3); margin: 2rem 0; }

/* HEADER - 3 column grid: nav | empty | logo */
#masthead {
  padding: 2rem 3rem;
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: start;
}

.primary-nav {
  grid-column: 1;
}

.site-logo {
  grid-column: 2;
  display: flex;
  justify-content: center;
}

.site-logo img {
  width: 280px;
  height: auto;
}

.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem 1.2rem;
}

.primary-nav ul li a {
  font-family: 'Bitter', serif;
  font-size: 1.1rem;
  color: #1C3F52;
  text-decoration: none;
  white-space: nowrap;
  display: inline-block;
  padding: 0.15rem 0;
}

.primary-nav ul li a:hover { text-decoration: underline; }
.primary-nav ul li.current-menu-item > a { text-decoration: underline; }

/* CONTENT */
.content-area {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem;
  text-align: center;
}

.content-area h1 {
  font-size: 4.5rem;
  max-width: 420px;
  margin: 1.5rem auto 0.75rem;
  line-height: 1.1;
}


.content-area ul, .content-area ol {
  display: inline-block;
  text-align: left;
}

.home .entry-title { display: none; }

.entry-title {
  font-size: 3rem;
  margin-bottom: 2rem;
}


/* BUTTONS */
.wp-block-button__link {
  background-color: #1C3F52 !important;
  color: #EAE6DD !important;
  padding: 12px 24px;
  border-radius: 4px;
  font-family: 'Bitter', serif;
  font-weight: 500;
  display: inline-block;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
}

.wp-block-button__link:hover {
  background-color: #EAE6DD !important;
  color: #1C3F52 !important;
}

/* CONTACT FORM */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 1rem;
  border: 1px solid #1C3F52;
  border-radius: 4px;
  font-family: 'Bitter', serif;
  font-size: 1rem;
  background: rgba(255,255,255,0.85);
  color: #1C3F52;
  display: block;
}

.wpcf7-form input[type="submit"] {
  background-color: #1C3F52;
  color: #EAE6DD;
  padding: 12px 30px;
  border: none;
  border-radius: 4px;
  font-family: 'Bitter', serif;
  font-size: 1rem;
  cursor: pointer;
}

/* FOOTER */
#colophon {
  border-top: 1px solid rgba(28,63,82,0.2);
  padding: 2rem 3rem;
  text-align: center;
  font-family: 'Bitter', serif;
  color: #1C3F52;
  font-size: 0.9rem;
}

/* BLOG */
.blog-posts {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 4rem;
}

.post-item {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(28,63,82,0.2);
}

.post-meta {
  font-size: 0.85rem;
  color: rgba(28,63,82,0.7);
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .header-inner {
    grid-template-columns: 1fr;
  }
  .site-logo {
    grid-column: 1;
    margin-bottom: 1rem;
  }
  .primary-nav { grid-column: 1; }
  .content-area { padding: 1.5rem; }
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
}

.primary-nav ul li a {
  font-size: 0.95rem !important;
}

.content-area h1 {
  font-size: 3.2rem !important;
}

/* Shift logo to true center of page */
.site-logo {
  grid-column: 2 !important;
  justify-content: flex-start !important;
  padding-left: 1rem !important;
}

.primary-nav ul {
  max-width: 380px !important;
  gap: 0.1rem 1.8rem !important;
}



/* h2 width to control line breaks */







/* Badge sizing */
.content-area a img {
  height: 55px !important;
  width: auto !important;
  object-fit: contain !important;
}


.content-area h2 {
  font-size: 1.6rem !important;
  max-width: 600px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* has-large */
.content-area .has-large-font-size {
  font-size: 2.4rem !important;
  line-height: 1.4 !important;
}

.content-area .has-large-font-size {
  font-family: 'Young Serif', serif !important;
}
