:root {
  color-scheme: light;
  --cream: #fff9ec;
  --cream-deep: #f8e9cf;
  --ink: #32152d;
  --ink-soft: #684d63;
  --plum: #4b2142;
  --plum-dark: #34122d;
  --coral: #f66f61;
  --coral-light: #ffd2c7;
  --gold: #f2b94b;
  --green: #2f715d;
  --green-light: #d8eee3;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(75, 33, 66, 0.14);
  --radius-large: 2rem;
  --radius-medium: 1.25rem;
  font-family: "Avenir Next", Avenir, "Trebuchet MS", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 20rem;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 7%, rgba(246, 111, 97, 0.18) 0 8rem, transparent 8.1rem),
    radial-gradient(circle at 96% 32%, rgba(242, 185, 75, 0.18) 0 11rem, transparent 11.1rem),
    var(--cream);
  line-height: 1.6;
}

body::before,
body::after {
  position: fixed;
  z-index: -1;
  width: 12rem;
  height: 12rem;
  content: "";
  border: 2px solid rgba(75, 33, 66, 0.08);
  border-radius: 46% 54% 55% 45%;
  pointer-events: none;
}

body::before {
  top: 36%;
  left: -8rem;
  transform: rotate(28deg);
}

body::after {
  right: -8rem;
  bottom: 8%;
  transform: rotate(-16deg);
}

button,
a {
  font: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  color: var(--white);
  background: var(--plum-dark);
  border-radius: 0.6rem;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 4px solid var(--gold);
  outline-offset: 4px;
}

.page-shell {
  width: min(100% - 2rem, 76rem);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 6rem;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  color: var(--cream);
  background: var(--plum);
  border-radius: 50% 46% 50% 44%;
  transform: rotate(-5deg);
}

.brand-mark svg {
  width: 1.75rem;
  fill: currentColor;
  transform: rotate(5deg);
}

.header-note {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 700;
}

.header-note span {
  color: #a56300;
  font-size: 1.25rem;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(20rem, 0.98fr);
  min-height: 37rem;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(75, 33, 66, 0.08);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero::before {
  position: absolute;
  z-index: -1;
  right: -6rem;
  bottom: -9rem;
  width: 37rem;
  height: 37rem;
  content: "";
  background: var(--coral-light);
  border-radius: 51% 49% 44% 56% / 57% 44% 56% 43%;
  transform: rotate(-12deg);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.25rem, 6vw, 5.25rem);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.75rem;
  color: #a5362c;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow span {
  color: var(--coral);
}

h1,
h2 {
  max-width: 14ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

h1 {
  font-size: clamp(3.4rem, 8vw, 6.5rem);
}

h2 {
  font-size: clamp(2.25rem, 4.8vw, 4rem);
}

.intro {
  max-width: 34rem;
  margin: 1.5rem 0 2.25rem;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.laugh-box {
  display: grid;
  grid-template-columns: max-content minmax(12rem, 1fr);
  align-items: center;
  gap: 1.1rem;
  max-width: 40rem;
}

.laugh-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  padding: 0.85rem 1.25rem;
  color: var(--white);
  font-weight: 850;
  background: var(--plum);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(75, 33, 66, 0.24);
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.laugh-button span {
  display: grid;
  width: 1.85rem;
  height: 1.85rem;
  margin-right: 0.55rem;
  place-items: center;
  color: var(--plum);
  background: var(--gold);
  border-radius: 50%;
  font-size: 1.1rem;
}

.laugh-button:hover {
  background: var(--plum-dark);
  box-shadow: 0 13px 28px rgba(75, 33, 66, 0.3);
  transform: translateY(-2px);
}

.laugh-button:active {
  transform: translateY(1px);
}

.joke {
  min-height: 3.2rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.93rem;
  font-weight: 650;
  line-height: 1.45;
}

.joke.is-new {
  animation: joke-arrives 360ms ease both;
}

@keyframes joke-arrives {
  from {
    opacity: 0;
    transform: translateY(0.35rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-art {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-width: 0;
  padding: 2rem 1.5rem 0;
}

.hero-art img {
  position: relative;
  z-index: 2;
  width: min(100%, 36rem);
  filter: drop-shadow(0 24px 22px rgba(75, 33, 66, 0.14));
}

.sun-dot {
  position: absolute;
  top: 12%;
  right: 13%;
  width: 5.5rem;
  height: 5.5rem;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 1.25rem rgba(242, 185, 75, 0.15);
}

.spark {
  position: absolute;
  z-index: 1;
  color: var(--plum);
  font-size: 2rem;
  animation: float-spark 4s ease-in-out infinite;
}

.spark-one {
  top: 17%;
  left: 12%;
}

.spark-two {
  top: 37%;
  right: 5%;
  color: #a5362c;
  font-size: 1.25rem;
  animation-delay: -1.4s;
}

@keyframes float-spark {
  0%,
  100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-0.65rem) rotate(12deg); }
}

.tass-pause {
  display: grid;
  grid-template-columns: minmax(17rem, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 6rem);
  padding: clamp(4.5rem, 9vw, 8rem) clamp(0.5rem, 3vw, 2rem);
}

.pause-art {
  position: relative;
  padding: 1.25rem;
}

.pause-art::before {
  position: absolute;
  inset: 12% 4% 3%;
  z-index: -1;
  content: "";
  background: var(--green-light);
  border-radius: 58% 42% 55% 45% / 42% 51% 49% 58%;
  transform: rotate(3deg);
}

.pause-art img {
  width: 100%;
  filter: drop-shadow(0 18px 22px rgba(47, 113, 93, 0.15));
}

.eyebrow-green,
.eyebrow-green span {
  color: var(--green);
}

.pause-copy > p:not(.eyebrow) {
  max-width: 38rem;
  margin: 1.5rem 0 2rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.tiny-delights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tiny-delights li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  min-height: 6.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(75, 33, 66, 0.1);
  border-radius: var(--radius-medium);
}

.tiny-delights strong,
.tiny-delights small {
  display: block;
}

.tiny-delights strong {
  font-size: 0.9rem;
  line-height: 1.3;
}

.tiny-delights small {
  margin-top: 0.3rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.35;
}

.delight-icon {
  flex: 0 0 auto;
  color: var(--green);
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1;
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 6rem;
  padding: 1.5rem 0 2.25rem;
  color: var(--ink-soft);
  border-top: 1px solid rgba(75, 33, 66, 0.12);
  font-size: 0.9rem;
  text-align: center;
}

footer p {
  margin: 0;
}

@media (max-width: 58rem) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero::before {
    right: -5rem;
    bottom: -15rem;
    width: 34rem;
    height: 34rem;
  }

  .hero-copy {
    padding-bottom: 1rem;
  }

  .hero-art {
    min-height: 24rem;
  }

  .hero-art img {
    width: min(92%, 31rem);
  }

  .tass-pause {
    gap: 2rem;
  }

  .tiny-delights {
    grid-template-columns: 1fr;
  }

  .tiny-delights li {
    min-height: 0;
  }
}

@media (max-width: 42rem) {
  .page-shell {
    width: min(100% - 1.1rem, 76rem);
  }

  .site-header {
    min-height: 5.25rem;
  }

  .header-note {
    display: none;
  }

  .hero {
    min-height: 0;
    border-radius: 1.4rem;
  }

  .hero-copy {
    padding: 2.5rem 1.35rem 0.5rem;
  }

  h1 {
    font-size: clamp(3.35rem, 17vw, 5rem);
  }

  .intro {
    margin: 1.2rem 0 1.6rem;
  }

  .laugh-box {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .laugh-button {
    width: 100%;
  }

  .joke {
    min-height: 4rem;
    padding-inline: 0.25rem;
    text-align: center;
  }

  .hero-art {
    min-height: 20rem;
    padding-inline: 0.5rem;
  }

  .sun-dot {
    top: 12%;
    width: 4.25rem;
    height: 4.25rem;
  }

  .tass-pause {
    grid-template-columns: 1fr;
    padding: 4.5rem 0.5rem;
  }

  .pause-art {
    width: min(100%, 28rem);
    margin-inline: auto;
  }

  .pause-copy h2 {
    font-size: clamp(2.4rem, 12vw, 3.4rem);
  }

  footer {
    align-items: flex-start;
    padding-inline: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
