:root {
  color-scheme: light;
  --cream: #f8efe3;
  --paper: #fffaf2;
  --ink: #211d1a;
  --orange: #f0a368;
  --ember: #e5613a;
  --peach: #f4d6b8;
  --warm-grey: #6d625c;
  --line: rgba(33, 29, 26, 0.16);
  --purple: #370b46;
  --purple-soft: #52155f;
  --compersion-cream: #fffcef;
  --compersion-pink: #e50051;
  --shadow: #211d1a;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--cream);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 92% 2%, rgba(240, 163, 104, 0.48) 0 11rem, transparent 26rem),
    radial-gradient(circle at 0% 30%, rgba(229, 97, 58, 0.13) 0 8rem, transparent 24rem),
    var(--cream);
  color: var(--ink);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}

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

.page-top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.85rem;
}

.brand-link {
  width: 3.25rem;
  height: 3.25rem;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--shadow);
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.brand-mark,
.compersion-title,
.link-title,
.play-label {
  font-family: "Space Grotesk", "Avenir Next", ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand-mark {
  font-size: 0.9rem;
}

.brand-mark span {
  color: var(--ember);
}

.brand-link:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--shadow);
}

.brand-link:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--shadow);
}

.page-shell {
  padding-block: 1rem 3rem;
}

.status-heading {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.compersion {
  overflow: hidden;
  border: 2px solid var(--purple);
  border-radius: 1.75rem;
  background: var(--purple);
  box-shadow: 8px 8px 0 var(--shadow);
}

.compersion-card {
  min-height: 25rem;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(8.5rem, 0.75fr);
  gap: clamp(0.5rem, 3vw, 2rem);
  align-items: center;
  padding: clamp(1.35rem, 5vw, 2.65rem);
  border-radius: 1.55rem 1.55rem 0 0;
  background: var(--compersion-cream);
  color: var(--purple);
}

.compersion-title {
  margin: 0 0 0.85rem;
  color: var(--compersion-pink);
  font-size: clamp(2.3rem, 10vw, 4.2rem);
  line-height: 0.88;
  text-transform: uppercase;
}

.compersion-description {
  max-width: 29rem;
  margin: 0;
  font-size: clamp(1rem, 3.5vw, 1.15rem);
  line-height: 1.4;
}

.play-button {
  width: fit-content;
  max-width: 100%;
  margin-top: 1.35rem;
  display: inline-flex;
  flex-direction: column;
  gap: 0.18rem;
  padding: 0.82rem 1rem;
  border-radius: 0.9rem;
  background: var(--compersion-pink);
  color: var(--compersion-cream);
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--purple);
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.play-button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--purple);
}

.play-button:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--purple);
}

.play-button .link-url {
  font-size: 0.85rem;
  opacity: 1;
}

.play-label {
  font-size: 1.08rem;
  text-transform: uppercase;
}

.link-url {
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 0.85rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
  opacity: 0.78;
}

.squirrel-link {
  position: relative;
  min-height: 15rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: var(--purple);
  text-align: center;
  text-decoration: none;
}

.squirrel-visual {
  position: relative;
  width: min(100%, 13rem);
  aspect-ratio: 1;
  display: grid;
  flex: none;
  place-items: center;
}

.squirrel-halo {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(229, 0, 81, 0.1);
  box-shadow: inset 0 0 0 2px rgba(229, 0, 81, 0.2);
}

.squirrel-link img {
  position: relative;
  z-index: 1;
  width: min(100%, 12rem);
  height: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  transform: translate(-2.2%, -7.8%);
  transition: transform 120ms ease;
}

.squirrel-link:hover img,
.squirrel-link:focus-visible img {
  transform: translate(-2.2%, calc(-7.8% - 4px)) rotate(-2deg);
}

.squirrel-caption {
  position: relative;
  z-index: 1;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.status-region {
  padding: 0.9rem 1.15rem 1rem;
  background: var(--purple);
  color: var(--compersion-cream);
}

.status-heading {
  color: rgba(255, 252, 239, 0.62);
}

.status {
  margin: 0.3rem 0 0;
  color: #7ab7ff;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
}

.status.ok {
  color: #6fe3a3;
}

.status.degraded {
  color: #ffda6b;
}

.status.partial {
  color: #ffab61;
}

.status.outage {
  color: #ff8791;
}

.status.maintenance {
  color: #82bdff;
}

.bars {
  width: 4rem;
  margin-left: 0.35rem;
  display: inline-flex;
  gap: 0.18rem;
  vertical-align: 0.18em;
}

.bar {
  width: 100%;
  height: 0.22rem;
  display: block;
  overflow: hidden;
  border-radius: 999px;
  background: currentColor;
  color: inherit;
  font-size: 0;
  line-height: 0;
}

.status-help {
  max-width: 37rem;
  margin: 0.45rem 0 0;
  color: rgba(255, 252, 239, 0.72);
  font-size: 0.75rem;
  line-height: 1.45;
}

.status-help a {
  font-weight: 600;
  text-underline-offset: 0.18em;
}

.link-tree {
  margin-top: 1.65rem;
  display: grid;
  gap: 0.85rem;
}

.link-card {
  position: relative;
  min-height: 6.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
  padding: 1.15rem;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 1.35rem;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 5px 5px 0 var(--shadow);
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.link-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--shadow);
}

.link-card:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--shadow);
}

.link-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.24rem;
}

.link-title {
  font-size: clamp(1.25rem, 4.5vw, 1.7rem);
  line-height: 1.05;
}

.link-arrow {
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
}

.article-card {
  border-color: var(--purple);
  background: var(--purple);
  color: var(--compersion-cream);
  box-shadow: 5px 5px 0 var(--compersion-pink);
}

.article-card:hover {
  box-shadow: 7px 7px 0 var(--compersion-pink);
}

.studio-card {
  background: var(--paper);
}

.support-card {
  background: var(--ember);
  color: var(--ink);
}

.support-card .link-url {
  opacity: 1;
}

.mailing-card {
  background: var(--peach);
}

#mailing-list {
  scroll-margin-top: 1rem;
}

.site-footer {
  padding-block: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  color: var(--warm-grey);
  font-size: 0.72rem;
}

.site-footer img {
  max-width: 8.5rem;
  height: auto;
}

[hidden] {
  display: none !important;
}

.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: 38rem) {
  .page-shell,
  .site-footer {
    width: min(100% - 1.25rem, 44rem);
  }

  .page-shell {
    padding-top: 0.75rem;
  }

  .compersion {
    border-radius: 1.35rem;
    box-shadow: 5px 5px 0 var(--shadow);
  }

  .compersion-card {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) 7.2rem;
    padding: 1.25rem;
    border-radius: 1.15rem 1.15rem 0 0;
  }

  .squirrel-link {
    min-height: 10rem;
  }

  .squirrel-visual {
    width: 7.5rem;
  }

  .squirrel-link img {
    width: 7.2rem;
  }

  .squirrel-caption {
    max-width: 6rem;
  }

  .play-button {
    width: 100%;
  }

  .bars {
    margin: 0.45rem 0 0;
    display: flex;
  }

  .link-card {
    min-height: 7rem;
    padding: 1rem;
  }
}

@media (max-width: 27rem) {
  .compersion-card {
    grid-template-columns: 1fr;
  }

  .squirrel-link {
    min-height: 0;
    order: -1;
  }

  .squirrel-visual {
    width: 8rem;
  }

  .squirrel-link img {
    width: 7.7rem;
  }

  .site-footer {
    justify-content: flex-end;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
