:root {
  --page-max-width: 955px;
  --accent: #ab4319;
  --body-bg: #B8C4E8;
  --body-text: #61370e;
}

/* Global reset-ish */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: var(--body-bg);
  background-image: url(/homepage_07_bg.jpg);
  background-repeat: repeat-x;
  font-family: "Fredoka", sans-serif;
  line-height: 1.6;
  color: var(--body-text);
  text-rendering: optimizeLegibility;
}

a {
  font-family: "Unkempt", cursive;
  font-weight: 700;
  font-style: normal;
  font-size: 1.05rem;
  color: purple;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

p {
  margin-top: 0.85em;
}

h1 {
  color: var(--accent);
  font-family: "Purple Purse", serif;
  font-weight: 400;
  font-style: normal;
  font-size: 2.4rem;
  line-height: 1.1;
  margin: 0 0 0.5em;
}

h2 {
  color: var(--accent);
  font-family: "Purple Purse", serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1.8rem;
  line-height: 1.1;
  margin: 1em 0 0.5em;
}

b {
  font-family: "Purple Purse", serif;
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--body-text);
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 1em;
  box-shadow: 0.25em 0.25em 0.2em rgba(0, 0, 0, 0.35);
}

/* Layout shell */

.page-shell {
  padding: 1rem;
}

.page-frame {
  max-width: var(--page-max-width);
  margin: 0 auto;
  background-color: #ffffff;
  border-left: 6px #fff solid;
  border-right: 6px #fff solid;
}

/* Header / nav */

.site-header {
  text-align: center;
}

.site-header img {
  border-radius: 0;
  box-shadow: none;
  display: block;
}

/* Show image-map nav only on wider screens */
.desktop-nav-image {
  display: block;
}

.mobile-nav {
  display: none;
}

/* Mobile nav styles */
.nav-toggle {
  background-color: #ab4319;
  color: #fff;
  border: none;
  /*border-radius: 4px;*/
  padding: 0.4rem 0.8rem;
  font-size: 1rem;
  margin: 0 auto .05rem;
  display: block;
  cursor: pointer;
  width: 24rem;
}

.mobile-nav-list {
  list-style: none;
  padding: 0.5rem 0 1rem;
  margin: 0;
  text-align: center;
  background-color: #ffd16c;
  border-radius: 0 0 0.75rem 0.75rem;
}

.mobile-nav-list li {
  margin: 0.25rem 0;
}

.mobile-nav-list a {
  font-size: 1rem;
}

/* At smaller widths, hide image map and show mobile nav */

@media (max-width: 720px) {
  img.desktop-nav-image { /*////////IMPORTANT!!! img is mandatory///////////*/
    display: none;
  }
  .mobile-nav {
    display: block;
  }
}

/* Hero background strip */

.hero-strip {
  background: #FFD16C url(/images/nav/home_main.gif) no-repeat;
  padding-bottom: 1.5rem;
}

/* Two-column layout */

.layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1rem 1.5rem 0;
}

@media (max-width: 800px) {
  .layout {
    grid-template-columns: 1fr;
  }
}

main {
  min-width: 0;
}

/* Sidebar */

.sidebar {
  min-width: 0;
  background-color: #ffffff;
  border-radius: 1em;
  padding: 0.75rem 0.75rem 1.5rem;
  font-size: 0.95rem;
  line-height: 1.4;
}

.sidebar img {
  border-radius: 0;
  box-shadow: none;
  margin: 0 1rem 1rem 0;
  float: left;
}

.sidebar-section {
  margin-bottom: 1.5rem;
  clear: both;
}

.sidebar-heading {
  color: var(--accent);
  font-family: "Unkempt", cursive;
  font-weight: 700;
  font-style: normal;
  font-size: 1.35rem;
  margin: 0 0 0.25rem;
}

.findoutmore {
  display: inline-block;
  margin-top: 0.5rem;
}

/* Feature card */

.feature-card {
  background-color: #FBFBEF;
  padding: 1.25rem 1.5rem;
  border-radius: 1em;
  box-shadow: 0.25em 0.25em 0.2em rgba(0, 0, 0, 0.35);
}

.feature-card img {
  margin: 0 0 0 1rem;
  float: right;
}

.feature-card::after {
  content: "";
  display: block;
  clear: both;
}

.feature-link {
  display: inline-block;
  margin-top: 0.75rem;
}

/* Category cards */

.category-grid {
  margin-top: 1.5rem;
}

.category-grid-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 640px) {
  .category-grid-inner {
    grid-template-columns: 1fr;
  }
  main.article-page {
  padding: 2rem .5rem 3rem;
	}
}

.category-card {
  background-color: #FBFBEF;
  padding: 1rem;
  text-align: center;
  border-radius: 1em;
  box-shadow: 0.25em 0.25em 0.2em rgba(0, 0, 0, 0.35);
  font-size: 0.95rem;
}

.category-card img {
  border-radius: 0;
  box-shadow: none;
  margin-bottom: 0.5rem;
}

/* Updated date */

.updated-strip {
  background-color: #FFD16C;
  padding: 0.5rem 1.5rem 1rem;
  font-size: 0.7rem;
}

.updated-strip p {
  margin: 0;
}

/* Footer */

.site-footer {
  padding: 1rem 1.5rem 3rem;
  background-color: #ffffff;
}

.footer-inner {
  max-width: 780px;
  margin: 0 auto;
}

.footer-inner hr {
  border: none;
  border-top: 1px solid #ccc;
  margin: 1rem 0;
}

.footer-text {
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

.footer-brand-main {
  width: 100%;
  border-radius: 0;
  box-shadow: none;
  margin: 1rem 0;
}

.footer-brand-icon {
  width: 10%;
  min-width: 60px;
  border-radius: 0;
  box-shadow: none;
  margin: 0 0 2rem 0;
}
/* Facts & Figures strip under header */

.facts-strip {
  background-color: #ffd16c;
  padding: 0.75rem 1.5rem;
  text-align: left;
}

.facts-strip-heading {
  margin: 0;
  font-size: 1.6rem;
  color: var(--accent);
  font-family: "Purple Purse", serif;
}

/* Article layout */

.article-page {
  padding: 2rem 4rem 3rem;
}

.article-card {
  background-color: #ffffff;
  border-radius: 1em;
  padding: 1.5rem 1.75rem 2rem;
  box-shadow: 0.25em 0.25em 0.2em rgba(0, 0, 0, 0.35);
}

.article-header h1 {
  margin-top: 0.25rem;
}

.article-updated {
  font-size: 0.7rem;
  margin: 0;
}

.article-updated-bottom {
  margin-top: 2rem;
  text-align: left;
}

.article-section {
  margin-top: 1.5rem;
}

/* Article figures float on desktop, stack on mobile */

.article-figure {
  max-width: 240px;
  margin: 0 0 1rem 0;
}

.article-figure img {
  border-radius: 1em;
  box-shadow: 0.25em 0.25em 0.2em rgba(0, 0, 0, 0.35);
}

.article-figure figcaption {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-family: sans-serif;
  line-height: 1.2;
}

.article-figure-left {
  float: left;
  margin: 0.5rem 1.75rem 1rem 0;
}

.article-figure-right {
  float: right;
  margin: 0.5rem 0 1rem 1.75rem;
}

/* Clear floats after each section so layout doesn’t break */

.article-section::after,
.lyrics-section::after {
  content: "";
  display: block;
  clear: both;
}

/* Lyrics section tweaks */

.lyrics-section h3 {
  text-transform: uppercase;
  font-size: 1rem;
}

/* On small screens, remove floats and center images */

@media (max-width: 640px) {
  .article-card {
    padding: 1.25rem 1rem 1.75rem;
  }

  .article-figure-left,
  .article-figure-right {
    float: none;
    margin: 0 0 1rem 0;
    max-width: 100%;
  }

  .article-figure {
    text-align: center;
  }

  .article-figure figcaption {
    margin-left: auto;
    margin-right: auto;
  }
}