/* Human AI Community: site flourishes. Colours come from YOLO Design's tokens. */

/* A swirl lollipop, drawn in CSS. Markup:
   <div class="lolly lolly-lg" aria-hidden="true"><div class="lolly-head"><span class="lolly-ring"></span><span class="lolly-shine"></span></div><div class="lolly-stick"></div></div>
   Sizes: lolly-sm, lolly-md, lolly-lg. Colours: default raspberry, lolly-teal, lolly-plum. */
.lolly {
  --lolly: 9rem;
  --lolly-a: var(--color-brand, #c2255c);
  --lolly-b: var(--color-surface, #fff);
  --lolly-swirl: repeating-conic-gradient(from 0deg, var(--lolly-a) 0deg 30deg, var(--lolly-b) 30deg 60deg);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  transform: rotate(12deg);
  transform-origin: 50% 85%;
  flex: 0 0 auto;
}
.lolly-sm { --lolly: 5rem; }
.lolly-md { --lolly: 9rem; }
.lolly-lg { --lolly: 14rem; }
.lolly-teal { --lolly-a: var(--color-accent, #0f766e); }
.lolly-plum { --lolly-a: var(--color-contrast, #27162d); }
.lolly-left { transform: rotate(-10deg); }

.lolly-head {
  position: relative;
  width: var(--lolly);
  height: var(--lolly);
  border-radius: 50%;
  background: var(--lolly-swirl);
  box-shadow: inset 0 0 0 calc(var(--lolly) * 0.035) var(--lolly-a), 0 calc(var(--lolly) * 0.05) calc(var(--lolly) * 0.12) rgba(31, 26, 23, 0.16);
  z-index: 1;
}
/* Each inner ring is the same candy stripes, turned a little further: together they read as a swirl. */
.lolly-ring,
.lolly-ring::before,
.lolly-ring::after {
  position: absolute;
  border-radius: 50%;
  background: var(--lolly-swirl);
  transform: rotate(22deg);
}
.lolly-ring { inset: 15%; }
.lolly-ring::before { content: ""; inset: 18%; }
.lolly-ring::after { content: ""; inset: 37%; transform: rotate(44deg); }
.lolly-shine {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 26%, rgba(255, 255, 255, 0.7) 0, rgba(255, 255, 255, 0.25) 9%, rgba(255, 255, 255, 0) 24%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0) 55%, rgba(31, 26, 23, 0.1) 100%);
}
.lolly-stick {
  width: calc(var(--lolly) * 0.07);
  height: calc(var(--lolly) * 0.85);
  margin-top: calc(var(--lolly) * -0.04);
  border-radius: 0 0 999px 999px;
  background: var(--color-surface, #fff);
  box-shadow: inset 0 0 0 2px var(--color-ink, #1f1a17);
}

/* The swirl turns slowly when the lolly, or the section it sits in, is hovered. */
@media (prefers-reduced-motion: no-preference) {
  .lolly-ring { transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
  .lolly:hover .lolly-ring,
  section:hover > div .lolly .lolly-ring { transform: rotate(202deg); }
}

@media (max-width: 767px) {
  .lolly-lg { --lolly: 9rem; }
  .lolly-md { --lolly: 7rem; }
}

/* Short pages: the footer sits at the bottom of the window, not halfway up it. */
.wp-site-blocks {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: calc(100dvh - var(--wp-admin--admin-bar--height, 0px));
}
.wp-site-blocks > main,
.wp-site-blocks > .ycom-main {
  flex: 1 0 auto;
}
.wp-site-blocks > * {
  min-width: 0;
}

/* ---- Design pass, November 2026 ---- */

/* Lolly the moderator: a lolly with a face. Add <span class="lolly-face"></span> after .lolly-ring. */
.lolly-face {
  position: absolute;
  inset: 26%;
  border-radius: 50%;
  transform: rotate(-12deg);
  background:
    radial-gradient(circle at 33% 42%, var(--color-ink, #1f1a17) 0 8%, transparent 9.5%),
    radial-gradient(circle at 67% 42%, var(--color-ink, #1f1a17) 0 8%, transparent 9.5%),
    var(--color-surface, #fff);
  box-shadow: 0 0 0 calc(var(--lolly) * 0.022) var(--lolly-a);
  z-index: 2;
}
.lolly-face::after {
  content: "";
  position: absolute;
  left: 33%;
  right: 33%;
  top: 50%;
  height: 22%;
  border-bottom: calc(var(--lolly) * 0.024) solid var(--color-ink, #1f1a17);
  border-radius: 0 0 999px 999px;
}
.lolly-xl { --lolly: 18rem; }
.lolly-white { --lolly-b: var(--color-page, #fbf7f0); }

/* Photos: one frame shape, rounded like the cards. */
.hai-frame { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-card, 18px); }
.hai-frame-wide { aspect-ratio: 16 / 10; }
.hai-frame-tall { aspect-ratio: 4 / 5; }
.hai-shadow { box-shadow: 0 18px 48px rgba(31, 26, 23, 0.16); }

/* Hero collage: a big photo, a small one tucked over its corner, and a lolly poking out. */
.hai-collage { position: relative; padding: 1.5rem 0.5rem 4.5rem 2.5rem; }
.hai-collage .hai-main { transform: rotate(2deg); }
.hai-collage .hai-small { position: absolute; left: 0; bottom: 0; width: 46%; transform: rotate(-4deg); border: 6px solid var(--color-surface, #fff); }
.hai-collage .lolly { position: absolute; right: -1.25rem; top: -2.5rem; }
.hai-collage .hai-dot { position: absolute; right: 8%; bottom: 1.25rem; width: 4.5rem; height: 4.5rem; border-radius: 50%; background: var(--color-accent, #0f766e); }

/* A soft raspberry tint for panels, mixed from the brand colour. */
.hai-tint { background: color-mix(in srgb, var(--color-brand, #c2255c) 9%, var(--color-surface, #fff)); }
.hai-card-lift { transition: transform 0.2s ease, box-shadow 0.2s ease; }
@media (prefers-reduced-motion: no-preference) {
  .hai-card-lift:hover { transform: translateY(-4px); box-shadow: 0 18px 48px rgba(31, 26, 23, 0.12); }
}
@media (max-width: 1023px) {
  .hai-collage { padding: 1rem 0 3.5rem 1.5rem; margin-top: 1rem; }
  .hai-collage .lolly { right: 0; top: -1.5rem; --lolly: 6rem; }
  .lolly-xl { --lolly: 11rem; }
}

/* Accessibility: menu links at least 24px tall to tap or click (WCAG 2.2 target size). */
.wp-block-navigation .wp-block-navigation-item__content { padding-block: 0.3rem; }

/* ---- Responsive pass ---- */
/* Header stays on one row. Below 1024px the menu folds into the menu button, which sits last. */
.yolo-th-header .wp-block-group.alignwide { flex-wrap: nowrap; gap: 1rem; }
.yolo-th-header .wp-block-site-title { white-space: nowrap; }
.yolo-th-header .ycom-head-cta { flex-shrink: 0; }
.yolo-th-header .ycom-head-cta .wp-block-button__link { white-space: nowrap; }
@media (max-width: 1199px) {
  .yolo-th-header .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none !important; }
  .yolo-th-header .wp-block-navigation__responsive-container-open { display: flex !important; }
  .yolo-th-header .wp-block-navigation { order: 3; }
}
@media (max-width: 1023px) {
  .lolly-lg { --lolly: 10rem; }
}
@media (max-width: 479px) {
  .yolo-th-header .ycom-head-cta .wp-block-button.is-style-outline { display: none; }
  .yolo-th-header .wp-block-site-title { font-size: 0.95rem; }
}
/* A button whose label may need two lines on a phone. */
.hai-btn-wrap { height: auto; min-height: 3rem; padding-block: 0.6rem; white-space: normal; line-height: 1.25; text-align: center; }
/* The opened menu panel: room around it, bigger links, left aligned. */
.yolo-th-header .wp-block-navigation__responsive-container.is-menu-open { padding: 1.5rem; }
.yolo-th-header .is-menu-open .wp-block-navigation__responsive-container-content { align-items: flex-start; padding-top: 3rem; }
.yolo-th-header .is-menu-open .wp-block-navigation__container { align-items: flex-start; gap: 1.25rem; font-size: 1.35rem; font-family: var(--font-display, inherit); font-weight: 700; }
@media (max-width: 1199px) { .hai-collage .lolly { right: 0; } }
