:root {
  color-scheme: light;
  --page-background: #d9eef7;
  /* Sign positions are percentages within the woodland artwork container. */
  --parents-left: 10.2%;
  --parents-top: 36.2%;
  --parents-width: 19.8%;
  --parents-height: 24.2%;
  --teachers-left: 39.6%;
  --teachers-top: 35.5%;
  --teachers-width: 21%;
  --teachers-height: 25.1%;
  --your-voice-left: 69.5%;
  --your-voice-top: 36.2%;
  --your-voice-width: 19.5%;
  --your-voice-height: 24.2%;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--page-background);
}

body {
  min-height: 100svh;
}

.discover {
  display: grid;
  width: 100%;
  height: 100svh;
  place-items: center;
}

.discover__artwork {
  position: relative;
  width: min(100vw, calc(100svh * 1536 / 1024));
  aspect-ratio: 1536 / 1024;
  max-height: 100svh;
}

.discover__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.discover-mobile {
  display: none;
}

.hotspot {
  position: absolute;
  display: block;
  border-radius: 0.75rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background-color 160ms ease, box-shadow 160ms ease;
}

.hotspot--parents {
  left: var(--parents-left);
  top: var(--parents-top);
  width: var(--parents-width);
  height: var(--parents-height);
}

.hotspot--teachers {
  left: var(--teachers-left);
  top: var(--teachers-top);
  width: var(--teachers-width);
  height: var(--teachers-height);
}

.hotspot--your-voice {
  left: var(--your-voice-left);
  top: var(--your-voice-top);
  width: var(--your-voice-width);
  height: var(--your-voice-height);
}

.hotspot:hover {
  background: rgb(255 240 159 / 8%);
  box-shadow: 0 0 1.15rem rgb(255 218 92 / 30%);
}

.hotspot:focus-visible {
  outline: 3px solid #fff2a8;
  outline-offset: 3px;
  background: rgb(255 240 159 / 11%);
  box-shadow: 0 0 0 5px rgb(76 41 16 / 55%), 0 0 1.35rem rgb(255 218 92 / 60%);
}

.visually-hidden {
  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: 767px) {
  :root {
    --ink: #173d3f;
    --ink-soft: #586b67;
    --purple: #5d2878;
  }

  html,
  body {
    overflow-x: hidden;
    overflow-y: auto;
    background: #fdfaf1;
  }

  .discover {
    display: block;
    height: auto;
    min-height: 100svh;
  }

  .discover__artwork {
    display: none;
  }

  .discover-mobile {
    display: block;
    width: min(100% - 2rem, 35rem);
    margin-inline: auto;
    padding: max(1.25rem, env(safe-area-inset-top)) 0 max(3rem, env(safe-area-inset-bottom));
    color: var(--ink);
    font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  }

  .discover-mobile__header {
    padding: 0.25rem 0.35rem 2rem;
  }

  .discover-mobile__home {
    display: inline-block;
    margin-bottom: clamp(2.75rem, 11vw, 4.25rem);
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
  }

  .discover-mobile__header p {
    margin: 0 0 0.55rem;
    color: var(--purple);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  .discover-mobile h1,
  .audience-card h2 {
    margin: 0;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.04;
    letter-spacing: -0.035em;
    text-wrap: balance;
  }

  .discover-mobile h1 {
    font-size: clamp(2.7rem, 13vw, 4.25rem);
  }

  .discover-mobile__cards {
    display: grid;
    gap: 1.35rem;
  }

  .audience-card {
    display: flex;
    width: 100%;
    min-height: 29rem;
    flex-direction: column;
    overflow: hidden;
    padding: clamp(1.5rem, 6vw, 2.15rem);
    border: 1px solid rgb(117 93 48 / 16%);
    border-radius: 1.3rem;
    color: inherit;
    box-shadow: 0 14px 40px rgb(46 62 49 / 8%);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .audience-card--parents {
    background: linear-gradient(155deg, #fffdf3, #edf6df);
  }

  .audience-card--teachers {
    background: linear-gradient(155deg, #fffaf0, #f2e8f4);
  }

  .audience-card--voice {
    background: linear-gradient(155deg, #fffdf2, #e4f1ee);
  }

  .audience-card h2 {
    margin-bottom: 0.75rem;
    font-size: clamp(2rem, 9vw, 2.65rem);
  }

  .audience-card p {
    max-width: 25rem;
    margin: 0;
    color: var(--ink-soft);
    font-size: clamp(1.08rem, 4.5vw, 1.25rem);
    line-height: 1.55;
  }

  .audience-card__portrait {
    position: relative;
    width: min(14.5rem, 75%);
    flex: 0 0 auto;
    margin: 2rem auto 1.5rem;
    overflow: hidden;
    border: 3px solid rgb(255 253 242 / 90%);
    border-radius: 50% 50% 44% 44% / 48% 48% 43% 43%;
    aspect-ratio: 1;
    box-shadow: 0 18px 30px rgb(34 53 43 / 14%), 0 0 0 1px rgb(119 91 40 / 12%);
  }

  .audience-card__portrait::after {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 24px rgb(255 247 213 / 22%);
    content: "";
    pointer-events: none;
  }

  .audience-card__portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .audience-card__action {
    display: flex;
    min-height: 2.75rem;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    color: var(--purple);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.02em;
  }

  .audience-card:focus-visible,
  .discover-mobile__home:focus-visible {
    outline: 3px solid #8d4ca4;
    outline-offset: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hotspot {
    transition: none;
  }
}
