/* Reset & base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
  background-color: #f8f4ef;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - 2rem, 720px);
  margin-inline: auto;
}

/* Hero */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  background-image:
    linear-gradient(to bottom, rgba(255,255,255,0.15), rgba(255,255,255,0.25)),
    url("bg-seamless-web.jpg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 640px;
}

/* The hexagon logo file has a white background baked in.
   mix-blend-mode: multiply drops that white out so it sits
   cleanly on the colorful hero background. This only works on
   light backgrounds, so it's used for the hero logo only. */
.main-logo {
  mix-blend-mode: multiply;
}

.main-logo {
  width: clamp(220px, 32vw, 340px);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 7vw, 3.5rem);
  font-weight: 800;
  color: #111;
  margin-bottom: 0.75rem;
  text-shadow: 0 1px 2px rgba(255,255,255,0.6);
}

.by-line {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.15rem;
  color: #222;
  margin-bottom: 1.5rem;
  padding: 0.3rem 1.1rem;
  background: rgba(255,255,255,0.6);
  border-radius: 999px;
}

.sam-name-img {
  height: 3.2em;
  width: auto;
}

.tagline {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  margin-bottom: 2rem;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.9), 0 1px 2px rgba(0,0,0,0.9);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: #f5c518;
  color: #111;
  box-shadow: 0 4px 14px rgba(245, 197, 24, 0.4);
}

.btn.primary:hover {
  box-shadow: 0 6px 18px rgba(245, 197, 24, 0.55);
}

.btn.secondary {
  background: rgba(255,255,255,0.85);
  color: #111;
  border: 2px solid #111;
}

/* About section */
.about {
  padding: 4.5rem 0;
  background: #fffef9;
}

.about-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  margin-bottom: 1rem;
}

.bee-accent {
  width: 100px;
}

.about h2 {
  font-size: 1.85rem;
}

.about .intro {
  text-align: center;
  max-width: 520px;
  margin: 0 auto 2.5rem;
  font-size: 1.1rem;
}

.hexagon-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.hexagon {
  background: #fdd865;
  width: min(100%, 460px);
  padding: 4.5rem 3.5rem;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.orgs {
  list-style: none;
  font-size: 0.85rem;
  line-height: 1.35;
}

.orgs li {
  margin-bottom: 0.7rem;
  display: flex;
  flex-direction: column;
}

.orgs li strong {
  font-weight: 700;
}

.orgs li span {
  font-style: italic;
  font-size: 0.78rem;
  opacity: 0.85;
}

.closing {
  text-align: center;
  font-size: 1.15rem;
  font-weight: 500;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Wordmark divider */
.wordmark-divider {
  display: flex;
  justify-content: center;
  padding: 1rem 1.5rem 3rem;
  background: #fffef9;
}

.wordmark-divider img {
  width: clamp(200px, 32vw, 320px);
}

/* Book section */
.book {
  padding: 4.5rem 0;
  background: linear-gradient(160deg, #fff8e7 0%, #f5f0e6 100%);
  text-align: center;
}

.book h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.book p {
  max-width: 480px;
  margin: 0 auto 1rem;
  font-size: 1.1rem;
}

.book .btn {
  margin-top: 1.25rem;
}

/* Footer */
footer {
  padding: 3rem 1rem;
  background: #1a1a1a;
  color: #f5f5f5;
  text-align: center;
  position: relative;
}

.footer-logo {
  width: 130px;
  margin: 0 auto 1.25rem;
  background: #fff;
  border-radius: 20px;
  padding: 0.75rem;
}

footer p {
  margin-bottom: 0.35rem;
}

footer .small {
  font-size: 0.9rem;
  opacity: 0.85;
}

footer a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sb-watermark {
  width: 95px;
  margin: 1.5rem auto 0;
  opacity: 0.5;
  filter: invert(1);
}

/* Mobile tweaks */
@media (max-width: 600px) {
  .hero {
    background-attachment: scroll;
  }

  .main-logo {
    width: 210px;
  }

  .hexagon {
    padding: 3rem 2rem;
  }

  .orgs {
    font-size: 0.78rem;
  }

  .orgs li span {
    font-size: 0.72rem;
  }
}
