:root {
  /* Colors */
  --background-color: #ffffff;
  --text-color: #000000;
  --note-background: #fef8ee;

  /* Fonts */
  --font-body: 'DM Sans', sans-serif;
  --font-code: 'Cascadia Code', monospace;
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: var(--font-body);
  max-width: 900px;
  margin: auto;
  padding: 1rem;
  overflow-y: scroll;
}

.site-header {
  padding: 1rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.header-top {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 0.5rem;
}

.logo {
  width: 256px;
  height: 256px;
  object-fit: cover;
  border-radius: 50%;      /* makes it rounded */
  flex-shrink: 0;          /* prevents shrinking */
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.site-title-desc {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  gap: 1rem;
  white-space: pre-line;
}

.site-name {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  color: #222;
}

.site-description {
  margin: 0.25rem 0 0 0;
  font-size: 1rem;
  color: #555;
  line-height: 1.3;
  max-width: 600px;
}

.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0;
  display: flex;
  justify-content: center;  /* center nav links */
  gap: 2rem;
  border-bottom: 2px solid transparent; /* spacing */
}

.social-logos-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: .5em;
  width: 100%;
  font-family: 'DM Sans', sans-serif;
}

.social-logos {
  display: flex;
  align-items: center;
  gap: 18px;
}

.social_logo {
  height: 34px;
  width: 34px;
  display: block;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

/* Style for disabled newsletter button */
#newsletter-submit:disabled {
  background: #ccc;       /* gray color */
  cursor: not-allowed;    /* show it's unclickable */
  color: #666;            /* optional: darker gray text */
}

.subscribe-btn {
  background: #00bf63;
  color: #fff;
  border: none;
  border-radius: 18px;
  height: 34px;
  padding: 0 40px;           /* 0 for vertical, 40px for horizontal */
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 200ms ease;
  font-family: var(--font-body);
  box-shadow: 0 2px 8px rgba(255, 0, 0, 0.07);
}

.subscribe-btn:hover {
  background: #ff6500;
}

.main-nav li {
  position: relative;
}

.nav-link {
  text-decoration: none;
  color: #333;
  padding-bottom: 0.25rem;
  font-weight: 600;
  font-size: 1.1rem;
  border-bottom: 2px solid transparent;
  transition: border-color 200ms ease;
}

.nav-link:hover {
  border-color: #999;
}

.nav-link.active {
  border-color: #ff6500; /* underline for active */
}

.header-divider {
  margin-top: 1.5rem;
  border: none;
  border-top: 1px solid #ccc;
  width: 100%;
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .header-top {
    flex-direction: column; /* stack logo & text vertically */
    align-items: flex-start; /* align to left */
  }
}

@font-face {
  font-family: 'Cascadia Code';
  src: url('/assets/fonts/cascadia/CascadiaCode.woff2') format('woff2'),
       url('/assets/fonts/cascadia/CascadiaCode.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

#thankyou-wrapper {
  display: none;       /* initially hidden */
  justify-content: center;  /* horizontal center */
  align-items: center;      /* vertical center */
  height: 100%;        /* fill modal content height */
  width: 100%;         /* fill modal content width */
  flex-direction: column; /* stack children vertically if needed */
}

/* Logo smaller on mobile */
@media (max-width: 800px) {
    .header-top {
    flex-direction: column; 
    align-items: center;   /* center horizontally */
    text-align: center;    /* center text */
  }

  .logo {
    width: 180px;
    height: 180px;    
  }

  .site-title-desc {
    text-align: center; /* center text under logo */
    align-items: center;
  }

  .site-name {
    font-size: 1.4rem;
  }

  .site-description {
    font-size: 0.9rem;
    max-width: 100%;  /* prevent overflow */
  }

  .social-logos-row {
    flex-direction: column;  /* stack logos & button */
    align-items: center;
  }

  .social-logos {
    gap: 16px; /* tighter spacing on small screens */
  }

  .subscribe-btn {
    width: 100%;      /* full-width button */
    max-width: 300px; /* but not too wide */
  }

  
}

/* Logo smaller on mobile */
@media (max-width: 600px) {
  .site-header {
    padding: 0.5rem 0.5rem;
  }

  .header-top {
  
    gap: 0.35rem;
    margin-bottom: 0.5rem;

    flex-direction: column; 
    align-items: center;   /* center horizontally */
    text-align: center;    /* center text */
  }

  .logo {
    width: 120px;
    height: 120px;    
  }

  .site-title-desc {
    text-align: center; /* center text under logo */
    align-items: center;
  }

  .site-name {
    font-size: 1.4rem;
  }

  .site-description {
    font-size: 0.9rem;
    max-width: 100%;  /* prevent overflow */
  }

  .social-logos-row {
    flex-direction: column;  /* stack logos & button */
    align-items: center;
  }

  .social-logos {
    gap: 16px; /* tighter spacing on small screens */
  }

  .subscribe-btn {
    width: 100%;      /* full-width button */
    max-width: 300px; /* but not too wide */
  }

  .social_logo {
  height: 24px;
  width: 24px;
}

  
}