:root {
  --leaf: #2f441d;
  --leaf-soft: #617443;
  --cream: #fff7db;
  --orange: #e96712;
  --orange-dark: #bd4f0b;
  --shadow: 0 18px 60px rgba(25, 40, 16, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--leaf);
  background: #d8e4bd;
  font-family: "Comic Sans MS", "Comic Neue", "Trebuchet MS", Arial, sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.25rem;
  padding: 1rem clamp(1rem, 5vw, 7rem);
  color: transparent;
  background: transparent;
  pointer-events: none;
}

.brand {
  margin-right: auto;
  font-weight: 800;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
}

.site-nav {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.7rem, 2vw, 2rem);
  font-size: clamp(1rem, 1.8vw, 1.85rem);
  font-weight: 700;
}

.site-nav a {
  text-decoration: none;
  text-shadow: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--leaf);
  background: rgba(255, 247, 219, 0.82);
  border-radius: 6px;
  text-decoration: underline;
  text-underline-offset: 0.24em;
}

.image-nav {
  position: absolute;
  top: 6.6%;
  left: 57.85%;
  width: 35.85%;
  height: 4.8%;
  display: block;
  z-index: 12;
}

.image-nav a {
  position: absolute;
  top: 0;
  height: 100%;
  color: transparent;
  text-decoration: none;
  border-radius: 6px;
  outline-offset: 3px;
}

.image-nav a:hover,
.image-nav a:focus-visible {
  color: transparent;
  background: rgba(47, 68, 29, 0.03);
}

.nav-home {
  left: 0;
  width: 12.5%;
}

.nav-books {
  left: 16.9%;
  width: 13.7%;
}

.nav-free {
  left: 33.9%;
  width: 29.5%;
}

.nav-about {
  left: 65.8%;
  width: 14.5%;
}

.nav-contact {
  left: 82.1%;
  width: 18.6%;
}

.menu-toggle {
  display: none;
  min-height: 44px;
  padding: 0.55rem 0.9rem;
  border: 2px solid var(--leaf-soft);
  border-radius: 6px;
  color: var(--leaf);
  background: rgba(255, 247, 219, 0.84);
  font: inherit;
  font-weight: 700;
}

.layout-panel {
  position: relative;
  min-height: auto;
  display: block;
  padding: 0;
  overflow: hidden;
  background: #d8e4bd;
  scroll-margin-top: 0;
}

.layout-panel > img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: none;
}

.hotspot {
  position: absolute;
  display: grid;
  place-items: center;
  min-height: 44px;
  color: transparent;
  text-decoration: none;
  border-radius: 8px;
  outline-offset: 4px;
}

.hotspot:focus-visible {
  color: #fff;
  background: rgba(47, 68, 29, 0.78);
}

.home-free {
  left: 10%;
  bottom: 14%;
  width: 23%;
  height: 8%;
}

.home-books {
  left: 34%;
  bottom: 14%;
  width: 14%;
  height: 8%;
}

.paperback {
  right: 11%;
  bottom: 22%;
  width: 26%;
  height: 8%;
}

.kindle {
  right: 11%;
  bottom: 12%;
  width: 26%;
  height: 8%;
}

.more-books {
  left: 19%;
  bottom: 13%;
  width: 25%;
  height: 8%;
}

.notify-one {
  right: 10%;
  bottom: 12%;
  width: 34%;
  height: 8%;
}

.education-link {
  left: 29%;
  bottom: 25%;
  width: 34%;
  height: 8%;
}

.bible-link {
  left: 13%;
  bottom: 12%;
  width: 34%;
  height: 8%;
}

.notify-two {
  right: 11%;
  top: 19%;
  width: 34%;
  height: 8%;
}

.email-link {
  left: 26%;
  bottom: 21%;
  width: 27%;
  height: 8%;
}

.signup-form {
  position: absolute;
  left: 14%;
  top: 61.5%;
  width: clamp(360px, 22vw, 420px);
  max-width: 90vw;
  height: auto;
  display: block;
  z-index: 14;
}

.signup-form label {
  display: block;
}

.signup-form span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.signup-form input {
  position: absolute;
  left: 0;
  width: 51%;
  height: 19.6%;
  min-height: 0;
  border: 1px solid transparent;
  border-radius: 0;
  padding: 0.1rem 0.8rem;
  color: var(--leaf);
  background: #fff;
  font: inherit;
  font-size: clamp(1rem, 1.55vw, 1.7rem);
}

.signup-form input::placeholder {
  color: rgba(47, 68, 29, 0.72);
  opacity: 1;
}

.signup-form label:first-child input {
  top: 0;
}

.signup-form label:nth-child(2) input {
  top: 26.9%;
}

.signup-form button {
  position: absolute;
  left: 13.7%;
  top: 58.8%;
  width: 86.5%;
  height: 34.8%;
  min-height: 0;
  border: 0;
  border-radius: 12px;
  color: transparent;
  background: transparent;
  font: inherit;
  font-size: clamp(1rem, 1.5vw, 1.6rem);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(111, 54, 10, 0.2);
}

.signup-form button:hover,
.signup-form button:focus-visible {
  color: transparent;
  background: rgba(189, 79, 11, 0.18);
}

.signup-form button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-status {
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  min-height: 1.4em;
  margin: 0;
  font-family: Arial, sans-serif;
  font-size: clamp(0.85rem, 1vw, 1rem);
  font-weight: 700;
  color: var(--leaf);
}

.mailerlite-signup .ml-embedded,
.mailerlite-signup .ml-form-embedContainer,
.mailerlite-signup .ml-form-align-center,
.mailerlite-signup .ml-form-embedWrapper,
.mailerlite-signup .ml-form-embedBody,
.mailerlite-signup .ml-block-form,
.mailerlite-signup .ml-form-formContent,
.mailerlite-signup .ml-field-group,
.mailerlite-signup .ml-form-embedSubmit {
  position: static !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.mailerlite-signup .ml-form-embedContent,
.mailerlite-signup .ml-form-successContent h4 {
  display: none !important;
}

.mailerlite-signup .ml-form-fieldRow,
.mailerlite-signup .ml-form-embedSubmit {
  position: static !important;
  margin: 0 !important;
  padding: 0 !important;
}

.mailerlite-signup .ml-form-fieldRow {
  width: 380px !important;
  max-width: 100% !important;
  margin-bottom: 12px !important;
}

.mailerlite-signup .ml-form-embedSubmit {
  width: 420px !important;
  max-width: 100% !important;
  margin-top: 18px !important;
}

.mailerlite-signup input,
.mailerlite-signup .ml-form-fieldRow input,
.mailerlite-signup .ml-form-horizontalRow input {
  position: static !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 48px !important;
  padding: 8px 14px !important;
  border: 1px solid rgba(47, 68, 29, 0.25) !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: var(--leaf) !important;
  font: inherit !important;
  font-size: clamp(1rem, 1.45vw, 1.55rem) !important;
  line-height: 1.2 !important;
  box-sizing: border-box !important;
}

.mailerlite-signup button.primary,
.mailerlite-signup button[type="submit"] {
  position: static !important;
  display: block !important;
  width: 100% !important;
  min-height: 76px !important;
  padding: 10px 18px !important;
  color: #fff !important;
  background: var(--orange) !important;
  border: 0 !important;
  border-radius: 12px !important;
  font: inherit !important;
  font-size: clamp(1rem, 1.45vw, 1.55rem) !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  box-sizing: border-box !important;
}

.mailerlite-signup button.primary:hover,
.mailerlite-signup button.primary:focus-visible,
.mailerlite-signup button[type="submit"]:hover,
.mailerlite-signup button[type="submit"]:focus-visible {
  color: #fff !important;
  background: var(--orange-dark) !important;
}

.mailerlite-signup .row-success {
  position: absolute !important;
  left: 0;
  top: 0;
  width: 100%;
  color: var(--leaf);
  font-family: Arial, sans-serif;
  font-weight: 700;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 760px) {
  body {
    padding-top: 4.5rem;
  }

  .site-header {
    position: fixed;
    z-index: 50;
    align-items: flex-start;
    padding: 0.75rem;
    background: rgba(255, 247, 219, 0.92);
    box-shadow: 0 8px 30px rgba(25, 40, 16, 0.13);
    pointer-events: auto;
  }

  .brand {
    opacity: 1;
    pointer-events: auto;
    color: var(--leaf);
    font-size: 1.3rem;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
    cursor: pointer;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.15rem;
    max-height: 0;
    overflow: hidden;
    padding: 0 0.75rem;
    background: rgba(255, 247, 219, 0.96);
    border-bottom: 1px solid rgba(47, 68, 29, 0.12);
    font-size: 1.25rem;
    opacity: 0;
    pointer-events: none;
    transition: max-height 220ms ease, opacity 180ms ease, padding 220ms ease;
  }

  .site-nav.is-open {
    max-height: 22rem;
    padding: 0.35rem 0.75rem 0.85rem;
    opacity: 1;
    pointer-events: auto;
  }

  .image-nav {
    display: none;
  }

  .site-nav a {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 0.75rem 0.35rem;
    color: var(--leaf);
    border-radius: 6px;
    text-decoration: none;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    background: rgba(47, 68, 29, 0.1);
    text-decoration: none;
  }

  .layout-panel {
    min-height: auto;
    padding-top: 0;
    scroll-margin-top: 4.75rem;
  }

  .layout-panel > img {
    width: 100%;
    max-width: 100%;
    min-height: 0;
    height: auto;
    object-fit: contain;
    object-position: center;
  }

  .hotspot {
    min-height: 36px;
  }

  .home-free {
    left: 9%;
    bottom: 12%;
    width: 25%;
    height: 10%;
  }

  .paperback {
    right: 9%;
    bottom: 21%;
    width: 29%;
    height: 9%;
  }

  .kindle {
    right: 9%;
    bottom: 10.5%;
    width: 29%;
    height: 9%;
  }

  .notify-one {
    right: 8%;
    bottom: 10.5%;
    width: 37%;
    height: 10%;
  }

  .notify-two {
    right: 9%;
    top: 18%;
    width: 37%;
    height: 10%;
  }

  .free-panel {
    padding-bottom: 1.25rem;
    background: #d8e4bd;
  }

  .signup-form {
    position: relative;
    left: auto;
    top: auto;
    bottom: auto;
    width: min(90vw, 25rem);
    max-width: 90vw;
    height: auto;
    display: block;
    margin: 0.75rem auto 0;
    padding: 1rem;
    border-radius: 8px;
    background: rgba(255, 247, 219, 0.9);
    box-shadow: var(--shadow);
  }

  .signup-form input,
  .signup-form button {
    position: static;
    width: 100%;
    min-height: 44px;
  }

  .signup-form input {
    color: var(--leaf);
    background: #fff;
  }

  .signup-form button {
    color: #fff;
    background: var(--orange);
  }

  .form-status {
    position: static;
  }

  .mailerlite-signup .ml-form-fieldRow,
  .mailerlite-signup .ml-form-embedSubmit {
    width: 100% !important;
    max-width: 100% !important;
  }

  .mailerlite-signup .ml-form-fieldRow {
    margin-bottom: 0.75rem !important;
  }

  .mailerlite-signup .ml-form-embedSubmit {
    margin-top: 1rem !important;
  }

  .mailerlite-signup input,
  .mailerlite-signup .ml-form-fieldRow input,
  .mailerlite-signup .ml-form-horizontalRow input {
    min-height: 48px !important;
    font-size: 1.05rem !important;
  }

  .mailerlite-signup button.primary,
  .mailerlite-signup button[type="submit"] {
    min-height: 56px !important;
    font-size: 1.05rem !important;
  }
}
