:root {
  --ink: #26323f;
  --muted: #667282;
  --surface: rgba(255, 255, 255, 0.56);
  --surface-strong: rgba(255, 255, 255, 0.82);
  --aqua: #a8eee0;
  --mint: #d7f6d6;
  --peach: #ffd8c8;
  --lavender: #d8d5ff;
  --blue: #a5cfff;
  --rose: #f4b6ca;
  --shadow: 0 28px 90px rgba(61, 81, 107, 0.18);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background:
    radial-gradient(circle at 18% 18%, rgba(168, 238, 224, 0.7), transparent 28%),
    radial-gradient(circle at 82% 20%, rgba(255, 216, 200, 0.68), transparent 26%),
    radial-gradient(circle at 78% 78%, rgba(216, 213, 255, 0.62), transparent 30%),
    linear-gradient(135deg, #f7fbff 0%, #f4fff8 43%, #fff8f5 100%);
}

button {
  font: inherit;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bubble {
  position: absolute;
  display: block;
  width: var(--size);
  height: var(--size);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.92) 0 7%, transparent 8%),
    radial-gradient(circle at 63% 78%, rgba(255, 255, 255, 0.42), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.08));
  box-shadow:
    inset 0 0 24px rgba(255, 255, 255, 0.52),
    0 20px 50px rgba(65, 102, 128, 0.08);
  opacity: 0.64;
  animation: floatUp var(--duration) ease-in-out infinite;
  animation-delay: var(--delay);
}

.bubble-a {
  --size: 116px;
  --duration: 21s;
  --delay: -8s;
  left: 8%;
  bottom: -140px;
}

.bubble-b {
  --size: 78px;
  --duration: 18s;
  --delay: -3s;
  left: 22%;
  bottom: -90px;
}

.bubble-c {
  --size: 152px;
  --duration: 25s;
  --delay: -15s;
  right: 12%;
  bottom: -170px;
}

.bubble-d {
  --size: 64px;
  --duration: 16s;
  --delay: -9s;
  right: 28%;
  bottom: -80px;
}

.bubble-e {
  --size: 96px;
  --duration: 20s;
  --delay: -13s;
  left: 58%;
  bottom: -120px;
}

.bubble-f {
  --size: 44px;
  --duration: 14s;
  --delay: -5s;
  left: 38%;
  bottom: -60px;
}

.bubble-g {
  --size: 132px;
  --duration: 27s;
  --delay: -21s;
  right: 2%;
  bottom: -150px;
}

.bubble-h {
  --size: 54px;
  --duration: 19s;
  --delay: -11s;
  left: 3%;
  bottom: -70px;
}

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 13px;
  color: #24313f;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 54px;
  height: 38px;
}

.brand-core {
  position: absolute;
  inset: 5px 8px 3px 4px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px 999px 999px 22px;
  background:
    radial-gradient(circle at 26% 26%, #ffffff 0 7%, transparent 8%),
    radial-gradient(circle at 76% 72%, rgba(255, 255, 255, 0.5), transparent 32%),
    linear-gradient(135deg, rgba(159, 236, 219, 0.98), rgba(184, 206, 255, 0.9) 74%);
  box-shadow:
    inset 0 0 18px rgba(255, 255, 255, 0.76),
    0 16px 32px rgba(56, 108, 127, 0.16);
}

.brand-orbit {
  position: absolute;
  inset: 1px 1px 2px 0;
  border: 1.5px solid rgba(49, 87, 101, 0.34);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(-18deg);
}

.brand-orbit::after {
  position: absolute;
  top: 0;
  right: 7px;
  width: 7px;
  height: 7px;
  content: "";
  border-top: 1.5px solid rgba(49, 87, 101, 0.58);
  border-right: 1.5px solid rgba(49, 87, 101, 0.58);
  transform: rotate(31deg);
}

.brand-dot {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 16px rgba(56, 108, 127, 0.11);
}

.brand-dot-one {
  top: 3px;
  right: 0;
  width: 12px;
  height: 12px;
}

.brand-dot-two {
  right: 12px;
  bottom: 0;
  width: 8px;
  height: 8px;
}

.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.brand-name {
  color: #213140;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 1.18rem;
  font-weight: 760;
}

.brand-name span {
  color: #285763;
  font-weight: 850;
}

.category-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.category-button {
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  padding: 0 15px;
  color: #405064;
  background: rgba(255, 255, 255, 0.46);
  box-shadow: 0 10px 28px rgba(75, 96, 124, 0.07);
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.category-button:hover,
.category-button:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.72);
  outline: none;
}

.category-button.is-active {
  color: #1f3f47;
  background: linear-gradient(135deg, rgba(168, 238, 224, 0.82), rgba(255, 255, 255, 0.72));
  box-shadow: 0 14px 34px rgba(44, 112, 123, 0.16);
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: calc(100vh - 86px);
  place-items: center;
  padding: 26px 20px 64px;
}

.refresh-panel {
  display: grid;
  justify-items: center;
  width: min(760px, 100%);
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: #506579;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 680px;
  margin: 0 0 34px;
  font-family: Newsreader, Georgia, serif;
  font-size: 5.7rem;
  font-weight: 600;
  line-height: 0.96;
}

.affirmation-bubble {
  position: relative;
  display: grid;
  width: min(430px, 82vw);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 50%;
  padding: clamp(40px, 9vw, 76px);
  color: #26384a;
  background:
    radial-gradient(circle at 33% 25%, rgba(255, 255, 255, 0.98) 0 8%, transparent 9%),
    radial-gradient(circle at 74% 76%, rgba(255, 255, 255, 0.52), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.74), rgba(168, 238, 224, 0.28) 47%, rgba(216, 213, 255, 0.34));
  box-shadow:
    inset 0 0 42px rgba(255, 255, 255, 0.72),
    inset -22px -26px 48px rgba(95, 149, 176, 0.08),
    var(--shadow);
  cursor: pointer;
  transform: translateY(0) scale(1);
  transition:
    transform 260ms ease,
    box-shadow 260ms ease;
}

.affirmation-bubble::before,
.affirmation-bubble::after {
  position: absolute;
  content: "";
  border-radius: 50%;
  pointer-events: none;
}

.affirmation-bubble::before {
  inset: 8%;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.affirmation-bubble::after {
  width: 24%;
  height: 24%;
  right: 14%;
  bottom: 15%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4), transparent 65%);
}

.affirmation-bubble:hover,
.affirmation-bubble:focus-visible {
  transform: translateY(-5px) scale(1.012);
  box-shadow:
    inset 0 0 48px rgba(255, 255, 255, 0.8),
    inset -22px -26px 48px rgba(95, 149, 176, 0.08),
    0 34px 100px rgba(61, 81, 107, 0.22);
  outline: none;
}

.bubble-shine {
  position: absolute;
  top: 16%;
  left: 23%;
  width: 22%;
  height: 9%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  filter: blur(1px);
  transform: rotate(-29deg);
}

.affirmation-text {
  position: relative;
  z-index: 1;
  max-width: 310px;
  font-family: Newsreader, Georgia, serif;
  font-size: 2.45rem;
  font-weight: 500;
  line-height: 1.08;
}

.affirmation-bubble.is-changing {
  animation: softPop 520ms ease both;
}

.affirmation-bubble.is-changing .affirmation-text {
  animation: textFloat 520ms ease both;
}

.actions {
  display: grid;
  justify-items: center;
  gap: 13px;
  margin-top: 30px;
}

.refresh-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  padding: 0 23px 0 18px;
  color: #203842;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(168, 238, 224, 0.95), rgba(255, 216, 200, 0.92));
  box-shadow: 0 18px 44px rgba(62, 108, 125, 0.18);
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.refresh-button:hover,
.refresh-button:focus-visible {
  transform: translateY(-2px);
  filter: saturate(1.05);
  box-shadow: 0 24px 56px rgba(62, 108, 125, 0.22);
  outline: none;
}

.refresh-icon {
  position: relative;
  width: 26px;
  height: 26px;
  margin-right: 10px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
}

.refresh-icon::before {
  position: absolute;
  inset: 7px;
  content: "";
  border: 2px solid #315765;
  border-left-color: transparent;
  border-radius: 50%;
}

.refresh-icon::after {
  position: absolute;
  top: 6px;
  right: 5px;
  width: 6px;
  height: 6px;
  content: "";
  border-top: 2px solid #315765;
  border-right: 2px solid #315765;
  transform: rotate(42deg);
}

.hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.site-footer {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 24px;
  color: rgba(76, 91, 108, 0.78);
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 0.84rem;
}

@keyframes floatUp {
  0% {
    transform: translate3d(0, 18vh, 0) scale(0.86);
  }

  50% {
    transform: translate3d(24px, -42vh, 0) scale(1);
  }

  100% {
    transform: translate3d(-16px, -106vh, 0) scale(0.92);
  }
}

@keyframes softPop {
  0% {
    transform: translateY(-2px) scale(1);
  }

  42% {
    transform: translateY(-8px) scale(0.965);
  }

  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes textFloat {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 780px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    width: min(100% - 28px, 620px);
  }

  .category-nav {
    justify-content: flex-start;
  }

  .category-button {
    min-height: 38px;
    padding: 0 13px;
    font-size: 0.9rem;
  }

  .hero {
    min-height: calc(100vh - 150px);
    padding-top: 26px;
  }

  h1 {
    font-size: 4.2rem;
    margin-bottom: 28px;
  }

  .affirmation-text {
    font-size: 2.1rem;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding-top: 18px;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 48px;
    height: 34px;
  }

  .brand-name {
    font-size: 1.04rem;
  }

  .category-nav {
    gap: 7px;
  }

  .category-button {
    min-height: 36px;
    padding: 0 11px;
  }

  h1 {
    font-size: 3.15rem;
  }

  .affirmation-bubble {
    width: min(360px, 88vw);
  }

  .affirmation-text {
    font-size: 1.75rem;
  }

  .refresh-button {
    width: min(100%, 280px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
