:root {
  --d64-black:            #000000;
  --d64-white:            #ffffff;
  --d64-nearwhite:        #f0f0f0;
  --d64-yellow:           #fbff00;
  --d64-red:              #ba0000;
  --d64-blue:             #0050bf;
  --d64-green:            #36ce0c;
  --d64-green-trans:      #62ea2c40;
  --d64-green-dark:       #1c6c06;
  --d64-green-light:      #8eeb75;
  --d64-green-nearwhite:  #cff0c6;
  --d64-purple:           #4a0e4e;
  --d64-purple-light:     #8b5a8b;
  --d64-purple-nearwhite: #e6d6e6;
  --d64-purple-dark:      #3a0b3e;
  --d64-darken:           #00000040;
  --d64-darken-heavy:     #00000080;
  --d64-darken-heaviest:  #000000c0;
  --d64-lighten:          #ffffff40;
  --d64-lighten-heavy:    #ffffffe0;
}

* {
  margin: 0;
  padding: 0;
  /* See https://stackoverflow.com/questions/24914511/why-is-l-box-breaking-purecss-io-grids */
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

body {
  color: var(--d64-black);
  background: linear-gradient(135deg, var(--d64-purple-nearwhite) 0%, var(--d64-white) 30%, var(--d64-green-nearwhite) 100%);
  margin: 0 auto;
  font-family: "Noto Sans", sans-serif;
  font-weight: 300;
  font-size: 18px;
  min-height: 100vh;
  max-width: 100vw;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h5 {
  line-height: .8em;
  font-weight: 600;
  color: var(--d64-purple);
  text-shadow: -1px -1px 1px var(--d64-white),
                1px -1px 1px var(--d64-white),
               -1px  1px 1px var(--d64-white),
                1px  1px 1px var(--d64-white);
}

p {
  margin: .25em 0 .25em 0;
  line-height: 1.35em;
}

ul {
  display: block;
  margin-left: 4rem;
  padding-left: 4rem;
}

em {
  font-weight: 400;
}

a {
  color: var(--d64-purple);
  text-decoration:  underline var(--d64-green-light) 2px;
}

a:hover {
  text-decoration:  underline var(--d64-black);
  color: var(--d64-purple);
}

/*
html, button, input, select, textarea, .pure-g [class *= "pure-u"] {
}
*/

iframe[src*="https://www.youtube.com/embed/"] {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 16 !important;
    margin: .5em;
    padding: .5em;
}

.site-header {
  display: flex;
  background: transparent;
  padding: 1rem 2rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--d64-green-light);
}

header {
  text-align: right;
  padding: 1em;
  position: relative;
  min-height: 5em;
}

.header-content {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.site-logo {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--d64-purple);
}

.site-logo a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.site-logo a:hover {
  color: var(--d64-green);
}

@media all and (max-width: 768px) {
  .site-header {
    padding: 0.75rem 1rem;
  }
  
  .site-logo {
    font-size: 1.25rem;
  }
  
}

.site-logo img {
  max-width: 100%;
  position: relative;
  bottom: 0;
}

.site-main {
  vertical-align: middle;
  padding: 1rem;
  background-color: var(--d64-darken);
  border: .125rem solid var(--d64-green-trans);
  border-radius: .75em;
  text-align: center;
}

.site-main h1 a {
  text-decoration: none;
}

@media all and (max-width: 768px) {
  .site-menu {
    display: block;
    text-align: center;
  }
}

.site-menu a {
  display: inline-block;
  margin: .25em;
  padding: 0 .75em 0 .75em;
  background: var(--d64-lighten-heavy);
  background: linear-gradient(
                120deg, 
                var(--d64-lighten) 0%,
                var(--d64-lighten-heavy) 20%,
                var(--d64-white) 50%,
                var(--d64-lighten-heavy) 80%,
                var(--d64-lighten) 100%
              );
  border: .125rem solid var(--d64-green-trans);
  border-radius: .375em;
  text-decoration: none;
  font-weight: 500;
  line-height: 2em;
  text-shadow: -1px -1px 1px var(--d64-white),
                1px -1px 1px var(--d64-white),
               -1px  1px 1px var(--d64-white),
                1px  1px 1px var(--d64-white);
}

@media all and (max-width: 768px) {
  .site-menu a {
    display: block;
  }
}

@keyframes highlight {
  0%   { background-color: var(--d64-green); }
  50%  { background-color: var(--d64-purple); }
  100% { background-color: var(--d64-green); }
}

.highlight {
  animation-name: highlight;
  animation-duration: 1.5s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

.site-menu a:hover {
  background: var(--d64-white);
  border-color: var(--d64-green-light);
  box-shadow: 0 0 1rem 1rem var(--d64-lighten);
  animation-duration: 5s;
}

.site-menu .countdown {
  display: none;
  margin: .5rem;
  padding: .25em;
  border-radius: .5rem;
  background-color: var(--d64-darken-heaviest);
  color: var(--d64-green);
  text-align: center;
  font-weight: 400;
  font-size: .75em;
}

.site-menu .notice {
  padding: 0.5em;
  color: var(--d64-yellow);
  font-weight: 600;
  font-size: 1em;
  text-shadow: -1px -1px 1px var(--d64-black),
                1px -1px 1px var(--d64-black),
               -1px  1px 1px var(--d64-black),
                1px  1px 1px var(--d64-black);
}

.content {
  padding: 1.5rem 3rem 3rem 3rem;
  background: var(--d64-nearwhite);
  background: linear-gradient(
                135deg, 
                var(--d64-purple) 0%, 
                var(--d64-white) 33%, 
                var(--d64-white) 67%,
                var(--d64-blue) 100%
              );
}

.index-copy {
  padding: 0 0 0 1rem;
}
.index-video {
  padding: 0 1rem 0 0;
}

@media all and (max-width: 768px) {
  .index-copy {
    padding: 0;
  }
  .index-video {
    padding: 0;
  }

}

.footnote {
  font-style: italic;
  font-size: 75%;
  vertical-align: middle;
}

.feature {
  background: var(--d64-lighten);
  border: 0.25rem solid var(--d64-green);
  padding: 0.75rem 1.5rem 0.75rem 1.5rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  border-radius: 0.5em;
  font-weight: 400;
  box-shadow: 0.5rem 0.5rem 1rem 0 var(--d64-darken);
}

.feature * {
  margin: 0;
  padding: 0;
}

.feature ul {
  margin: .5em;
  list-style: none;
}

.feature li:before {
  content: '★ ';
}

.feature em {
  font-weight: 600;
}

.feature-2 {
  background: var(--d64-green);
  background: linear-gradient(
                135deg,
                var(--d64-green) 0%,
                var(--d64-green-dark) 100%
              );
  border: 0.25rem solid var(--d64-darken);
}

.feature-2 p {
  line-height: 1.1em;
  margin-top: .5em;
  margin-bottom: .5em;
}

.events {
  padding: 2rem;
  background: var(--d64-purple-light);
  background: linear-gradient(
                135deg, 
                var(--d64-purple-nearwhite) 0%, 
                var(--d64-purple-light) 100%
              );
  border-radius: .75em;
  border: 0.25rem solid var(--d64-darken);
  box-shadow: 0.5rem 0.5rem 1rem 0 var(--d64-darken);
}

.float-right {
  float: right;
  padding: 0;
  margin-left: 1em;
  max-width: 35vw;
  text-align: center;
}

.float-right img {
  width: inherit;
  max-width: 30vw;
  border-radius: .75rem;
}

@media all and (max-width: 65em) {
  .float-right {
    float: none;
    margin: 0;
    max-width: 100vw;
  }
  .float-right img {
    max-width: 60vw;
  }
}

.infoblock {
  display: block;
  padding: 1em;
  margin-bottom: 1em;
  text-align: left;
  background-color: var(--d64-green-light);
  border: 0.125rem solid var(--d64-darken);
  border-radius: .5em;
}

@media all and (max-width: 65em) {
  .infoblock {
    margin: 0 0 .5em 0;
  }
}

.infoblock a {
  color: var(--d64-black);
}

.infoblock hr {
  margin-top: 1em;
  margin-bottom: 1em;
}

.infoblock .buttons {
  margin-bottom: 1em;
}

a.button {
  display: block;
  background-color: var(--d64-green);
  border: 0.125rem solid var(--d64-darken);
  border-radius: .5em;
  padding: .5rem;
  margin: .5rem 0 .5rem 0;
  text-decoration: none;
}

a.button:hover {
  color: var(--d64-white);
  border: 0.125rem solid var(--d64-lighten-heavy);
  box-shadow: 0 0 1rem 1rem var(--d64-lighten);
}

.post-snippet {
  margin-bottom: 1em;
  clear: both;
}

.post-snippet h3 {
  margin-bottom: 0.25em;
}

.expired {
  opacity: 0.5;
}

.red-feat {
  background-color: var(--d64-red);
}

.green-feat {
  background-color: var(--d64-green);
}

.blue-feat {
  background-color: var(--d64-blue);
}

.black-feat {
  background-color: var(--d64-black);
}

footer {
  text-align: center;
  background-color: var(--d64-yellow);
  font-size: .75em;
  font-weight: 400;
  color: var(--d64-darken-heavy);
  margin-top: 0;
  padding: 1em 5em 1em 5em;
}

footer a {
  color: var(--d64-darken-heavy);
}

footer nav.social a {
  display: inline-block;
  background-color: var(--d64-darken-heavy);
  color: var(--d64-yellow);
  padding: .5em;
  margin: .125em;
  border-radius: .5em;
  text-decoration: none;
}

@media all and (max-width: 768px) {
  footer nav.social a {
    display: block;
  }
}

.clear {
  clear: both;
}

.event img {
  width: 30vw;
  float: left;
  margin: 1em;
}

.post-snippet .thumb {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: .5rem;
  width: 15rem;
  max-width: 30rem;
  height: 15rem;
  max-height: 30rem;
  float: left;
  clear: both;
  margin: 0 1em .5em 0;
}

.post-snippet .thumb img {
  flex-shrink: 0;
  max-width: 100%;
  min-width: 100%;
  min-height: 100%;
  max-height: 100%;
}

@media all and (max-width: 768px) {
  .post-snippet .thumb {
    width: 60vw;
    text-align: center;
    display: block;
    float: none;
  }
}
@media all and (max-width: 768px) {
  .event img {
    width: 70vw;
    display: block;
    text-align: center;
    float: none;
    clear: both;
    margin: .5em;
  }
}

.event-location-logo {
  max-width: 12em !important;
}

@media all and (max-width: 768px) {
  .hide-small {
    display: none;
    visibility: hidden;
  }
}

/* Landing Page Styles */
.landing-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  width: 100%;
}

.hero-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.hero-icon {
  height: 6rem;
  width: auto;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1));
  object-fit: contain;
}

.hero-logo {
  height: 8rem;
  width: auto;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1));
  object-fit: contain;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--d64-green-dark);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--d64-black);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.email-signup {
  margin-bottom: 4rem;
}

.signup-form {
  max-width: 500px;
  margin: 0 auto;
}

.form-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.email-input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: 2px solid var(--d64-green-light);
  border-radius: 50px;
  font-size: 1.1rem;
  font-family: inherit;
  background: var(--d64-white);
  transition: all 0.3s ease;
  outline: none;
}

.email-input:focus {
  border-color: var(--d64-green);
  box-shadow: 0 0 0 3px var(--d64-green-trans);
}

.signup-button {
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--d64-green) 0%, var(--d64-green-dark) 100%);
  color: var(--d64-white);
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  font-family: inherit;
}

.signup-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(234, 179, 44, 0.4);
}

.signup-button:active {
  transform: translateY(0);
}

.form-message {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  min-height: 1.5rem;
  transition: all 0.3s ease;
}

.form-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-item {
  /* background: var(--d64-white); */
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--d64-green-light);
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.feature-item h3 {
  color: var(--d64-purple);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.feature-item p {
  color: var(--d64-white);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

/* Mobile Responsiveness */
@media all and (max-width: 768px) {
  .hero-title {
    gap: 0.75rem;
  }
  
  .hero-icon {
    height: 5rem;
  }
  
  .hero-logo {
    height: 6rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .form-group {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .email-input,
  .signup-button {
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
  }
  
  .features {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .feature-item {
    padding: 1.5rem;
  }
  
  .landing-hero {
    padding: 1rem;
  }
}

@media all and (max-width: 480px) {
  .hero-title {
    gap: 0.5rem;
  }
  
  .hero-icon {
    height: 4rem;
  }
  
  .hero-logo {
    height: 5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .feature-item {
    padding: 1.25rem;
  }
}
