/*
 Theme Name:   Shelby
 Theme URI:    https://generatepress.com
 Description:  Fast, flexible, customizable
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      1.0
*/


/* variables and fonts */

:root {
  --bg: #fefefa;
  --text: #222222;
  --buttons: #138dff;
  --accent: #2891e6;
  --accent-links: #2891e6;
  --base: #e6e6e2;
  --post-wrapper: var(--bg);
}

@font-face {
  font-family: 'Inter';
  src: url('Inter.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Merriweather';
  src: url('Merriweather.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

[data-theme="dark"] {
  --bg: #161616;
  --accent: #2891e6;
  --accent-links: #57aeff;
  --text: #e2e8f0;
  --base: #2c2f33;
  --post-wrapper: var(--bg);
}

[data-theme="dark"] .site-header,
[data-theme="dark"] .blog,
[data-theme="dark"] .archive,
[data-theme="dark"] .search {
  --post-wrapper: #222222;
}


/* body and sticky footer */

body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  background-color: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, Roboto, Helvetica, 'Helvetica Neue', Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6, .site-branding .main-title {
  font-family: Merriweather, Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.container.grid-container {
  width: 100%;
}

.site-footer {
  margin-top: auto;
  padding: 30px 30px 0px 30px;
}

.site-header, .main-navigation,
.separate-containers .page-header,
.separate-containers .paging-navigation,
.separate-containers .comments-area,
.site-info {
  background-color: var(--bg);
}

.separate-containers .inside-article {
  background-color: var(--post-wrapper);
}

.blog, .archive {
  --post-wrapper: #fefefa;
}


/* header */

.main-navigation .main-nav > ul > li > a {
  font-size: 1rem;
  font-weight: 500;
}

.site-branding .main-title a {
  color: var(--text);
  font-size: 1.625rem;
}

.site-header {
  margin-bottom: 20px;
  border-bottom: 1px solid var(--base);
}

.main-navigation .main-nav > ul {
  display: flex;
  align-items: center;
}

.main-navigation .main-nav > ul > li:not(:last-child) {
  margin-left: 20px;
  margin-right: 20px;
}

.main-navigation .main-nav > ul > li:not(:last-child) > a {
  display: inline-block;
  position: relative;
  top: 2px;
  color: var(--accent);
  padding-left: 0px;
  padding-right: 0px;
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
  transition: color 0.5s ease, border-color 0.5s ease;
}

.main-navigation .main-nav > ul > li:not(:last-child):hover > a,
.main-navigation .main-nav > ul > li:not(:last-child):focus > a,
.main-navigation .main-nav > ul > li:not(:last-child):active > a,
.main-navigation .main-nav > ul > li:not(:last-child).sfHover > a,
.main-navigation .main-nav > ul > li:not(:last-child)[class*="current-menu-"] > a {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.main-nav #menu-menu li:last-child {
  background: var(--buttons);
  border-radius: 100px;
}

.main-nav #menu-menu li:last-child a {
  color: var(--base-3);
  line-height: 44px;
}

.main-nav #menu-menu li:last-child:hover {
  filter: brightness(1.1);
}

.main-nav #menu-menu li:last-child:active, .main-nav #menu-menu li:last-child[class*="current-menu-"] {
  filter: brightness(1.0);
}

.mobile-menu-control-wrapper button.menu-toggle:hover,
.mobile-menu-control-wrapper button.menu-toggle:focus,
.mobile-menu-control-wrapper button.menu-toggle,
.has-inline-mobile-toggle #site-navigation.toggled {
  color: var(--text);
  background-color: transparent;
}

.main-navigation .menu-toggle {
  color: var(--text);
}


/* the toggle */

.light-icon {
  display: none;
}

.dark-icon {
  display: block;
}

[data-theme="dark"] .light-icon {
  display: block;
}

[data-theme="dark"] .dark-icon {
  display: none;
}

.main-nav button#theme-toggle {
  padding: 10px 0px;
}

.main-nav button#theme-toggle:hover,
.main-nav button#theme-toggle:focus,
.main-nav button#theme-toggle:active,
.main-nav button#theme-toggle:visited,
.main-nav button#theme-toggle {
  color: var(--accent);
  background: transparent;
}


/* temporary styling - website is under construction */

body.home {
  font-size: 30px;
}

body.home p {
  margin-bottom: 10px;
}

body {
  background: url(bg.jpg) no-repeat;
  background-size: cover;
}

.site-header, .site-footer {
  display: none;
}

.separate-containers .inside-article {
  background-color: transparent;
}


/* post previews - temporary disabled

body.home .inside-article, body.archive .inside-article, body.search .inside-article {
  max-width: 720px;
  margin: 0px auto 40px auto;
  background-color: var(--bg);
  border: 2px solid var(--base);
  border-radius: 12px;
}

body.home .inside-article .entry-title a,
body.search .inside-article .entry-title a,
body.archive .inside-article .entry-title a,
body.home .inside-article .entry-header .entry-meta,
body.search .inside-article .entry-header .entry-meta,
body.archive .inside-article .entry-header .entry-meta {
  color: var(--text);
}

body.home .inside-article footer.entry-meta,
body.archive .inside-article footer.entry-meta,
body.search .inside-article footer.entry-meta {
  display: none;
}

body.home .inside-article h2,
body.archive .inside-article h2,
body.search .inside-article h2 {
  font-size: 1.75rem;
}

body.home .inside-article .post-image img,
body.archive .inside-article .post-image img,
body.search .inside-article .post-image img {
  border-radius: 8px;
}

*/


/* page formatting */

.featured-image, .page-header-image-single {
  display: none;
}

h1.entry-title {
  font-size: 2rem;
}

body.single-post header.entry-header .entry-meta {
  color: var(--text);
  font-weight: 500;
  text-transform: uppercase;
}

header.entry-header span.byline,
footer.entry-meta .post-navigation,
footer.entry-meta .cat-links,
footer.entry-meta .tags-links {
  display: none;
}

.posted-on .updated {
  display: inline-block;
}

.posted-on .updated + .entry-date {
  display: none;
}

.wp-block-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

blockquote, .wp-block-quote {
  border-left: 4px solid var(--accent);
}

.entry-content a {
  color: var(--accent-links);
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color 0.5s ease, text-decoration-color 0.5s ease;
}

.entry-content a.wp-block-button__link {
  color: inherit;
  text-decoration: inherit;
}

.entry-content a:not(.wp-block-button__link):hover {
  color: var(--text);
  text-decoration-color: var(--text);
}

body.search h1.page-title,
body.search .paging-navigation,
body.archive h1.page-title,
body.single-post footer.entry-meta,
.entry-content > :is(p, h1, h2, h3, h4, h5, h6, ul, ol, blockquote, details) {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.wp-block-image, .wp-block-gallery, figure {
  margin: 28px auto;
}

ol, ul {
  padding-left: 14px;
}


/* page 404 */

body.error404 h1.entry-title, body.error404 .entry-content {
  text-align: center;
}

body.error404 .search-form {
  max-width: 320px;
  margin: 0px auto;
}

body.error404 input.search-field {
  background-color: var(--bg);
  border: 2px solid var(--base);
  border-radius: 6px;
  color: var(--text);
}

body.error404 button.search-submit {
  background-color: var(--buttons);
  border: 2px solid var(--buttons);
  border-radius: 6px;
}


/* landing pages */

body.landing-page .site-header, body.no-footer .site-footer {
  display: none;
}

body.landing-page,
body.landing-page .inside-article,
body.landing-page .site-footer,
body.landing-page .inside-site-info {
  color: var(--text);
}

body.landing-page h1, body.landing-page h5 {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, Roboto, Helvetica, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
}

body.landing-page h1.entry-title {
  font-size: 2.25rem;
  font-weight: 600;
  text-align: center;
}

body.landing-page h5 {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 16px;
}

body.centered #page {
  display: flex;
  flex-direction: column;
  justify-content: center; 
  align-items: center;     
  min-height: 100dvh;       
  box-sizing: border-box;
}

body.landing-page .entry-content {
  margin-top: 1em;
}

body.centered .entry-content, body.centered .site-info {
  width: 100%;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

body.centered .fluentform {
  max-width: 380px;
  margin-top: 32px;
  margin-left: auto;
  margin-right: auto;
}

body.landing-page .ff_btn_style, body.landing-page .fluentform .ff-btn-submit {
  display: block;
  width: 100%;
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 24px;
}

body.landing-page p.note {
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

body.landing-page .inside-site-info {
  border-top: 0px;
  padding-top: 40px;
  padding-bottom: 40px;
}

body.landing-page .copyright-bar ul li, body.landing-page .copyright-bar ul li a {
  color: #a2a2a2;
}

body.landing-page ul li:nth-child(1),
body.landing-page ul li:nth-child(3){
  display: none;
}

body.landing-page ul li:nth-child(2) {
  margin: auto;
}

body.video figure {
  max-width: 860px;
}

body.video figure iframe {
  border-radius: 12px;
}

body.video .wp-block-button a {
  transition: filter 0.2s ease;
}

body.video .wp-block-button a:hover {
  filter: brightness(1.15);
  color: var(--base);
}

.wp-block-buttons .cta-button a.wp-block-button__link {
  color: #ffffff!important;
  font-weight: 500!important;
}


/* forms */

.fluentform .ff-el-form-control {
  background-color: var(--bg);
  border: 2px solid #bebebe;
  border-radius: 6px;
  color: var(--text);
  padding: 10px 14px;
  transition: border-color 0.2s ease;
}

body.landing-page .ff-el-form-control:focus, .fluentform .ff-el-form-control:focus {
  background-color: var(--bg);
  border-color: var(--accent);
  outline: none;
}

body.landing-page .fluentform .ff-el-form-control:focus {
  color: var(--text);
}

.fluentform .ff-message-success {
  border: 0px;
  box-shadow: none;
  margin-top: 16px;
  padding: 0px;
}

body.landing-page .fluentform .ff-btn-submit:not(.ff_btn_no_style) {
  background-color: var(--buttons);
  border: 0px;
  border-radius: 6px;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.1s ease;
}

body.landing-page .fluentform .ff-btn-submit:not(.ff_btn_no_style):hover,
body.landing-page .fluentform .ff-btn-submit:not(.ff_btn_no_style):focus {
  filter: brightness(1.15);
  opacity: 1;
  outline: none;
}

body.landing-page .fluentform .ff-btn-submit:not(.ff_btn_no_style):active {
  transform: scale(0.98);
}


/* footer */

.site-info {
  max-width: 1020px;
  margin: 0px auto;
}

.inside-site-info {
  display: block;
  border-top: 1px solid var(--base);
  padding: 20px 0px;
}

.copyright-bar ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0px;
  padding: 0px;
  list-style: none;
  text-align: left;
  font-size: 16px;
}

.copyright-bar ul li a {
  text-decoration: none;
}


/* desktop media queries */

@media (min-width: 769px) {

  /* header */

  .main-navigation .main-nav > ul > li:not(:last-child) > a {
    line-height: 1.2;
  }

  .main-nav #menu-menu li:last-child {
    margin-left: 20px;
  }

  /* page formatting */

  h1.entry-title, body.single-post header.entry-header .entry-meta {
    text-align: center;
  }

  /* video page */

  body.video .inside-article {
    margin-top: 60px;
  }

  /* footer */

  .copyright-bar ul {
    flex-direction: row;
    align-items: center;
  }

  .copyright-bar ul li:first-child {
    margin-right: auto;
  }

  .copyright-bar ul li a {
    color: var(--text);
    border-bottom: 2px solid transparent;
    transition: border-color 0.5s ease;
  }

  .copyright-bar ul li a:hover {
    border-bottom-color: var(--accent);
  }
}


/* mobile media queries */

@media (max-width: 768px) {

  /* header */

  .main-navigation .main-nav > ul > li:not(:last-child) {
    margin: 0px 0px 20px 20px;
  }

  .main-navigation .main-nav > ul > li:not(:last-child) > a {
    display: block;
    border-bottom: none;
  }

  .main-nav #menu-menu li:last-child a {
    padding: 0px 30px 0px 30px;
    line-height: 56px;
  }

  .main-navigation .main-nav > ul > li:not(:last-child) > a {
    line-height: 44px;
  }

  .main-navigation .main-nav > ul > li > a {
    font-size: 1rem;
    font-weight: 500;
  }

  /* post previews */

  body.home .inside-article, body.archive .inside-article, body.search .inside-article {
    border-top: 0px;
    border-left: 0px;
    border-right: 0px;
    border-bottom: 2px solid var(--base);
    border-radius: 0px;
    box-shadow: none;
  }

  /* page formatting */

  body.landing-page h1.entry-title, h1.entry-title, h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.375rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  h4 {
    font-size: 1.125rem;
  }

  body.landing-page h5, h5, h6 {
    font-size: 1rem;
  }

  /* footer */

  .copyright-bar ul {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: space-between;
    align-items: center;
    row-gap: 16px;
  }

  .copyright-bar ul li:first-child {
    grid-column: 1 / -1;
    order: 1;
    text-align: left;
  }
}