:root {
  color: #27372c;
  background: #eef4eb;
  -webkit-tap-highlight-color: transparent;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  display: grid;
  min-height: 100svh;
  margin: 0;
  align-items: start;
  justify-items: center;
  background:
    radial-gradient(circle at 15% 10%, #f8fbf6 0, transparent 38rem),
    #eef4eb;
  -webkit-font-smoothing: antialiased;
}

main {
  width: min(100% - 3rem, 60rem);
}

.site-footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #bfd0be;
  color: #536b58;
  font-size: 0.9rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

.site-footer a {
  color: #536b58;
  text-underline-offset: 0.2em;
}

.site-footer a:hover {
  color: #203126;
}

.site-footer a:focus-visible {
  outline: 2px solid #2f633d;
  outline-offset: 4px;
}

.secret-garden-link {
  position: relative;
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  text-decoration: none;
}

.secret-garden-icon {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.secret-garden-tooltip {
  position: absolute;
  z-index: 2;
  bottom: calc(100% + 0.625rem);
  left: 50%;
  width: max-content;
  max-width: 12rem;
  padding: 0.4rem 0.6rem;
  border-radius: 0.375rem;
  background: #203126;
  color: #f8fbf6;
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.25;
  opacity: 0;
  pointer-events: auto;
  transform: translateX(-50%);
  visibility: hidden;
}

.secret-garden-tooltip::before {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  height: 0.625rem;
  content: "";
}

.secret-garden-tooltip::after {
  position: absolute;
  top: 100%;
  left: 50%;
  border: 0.3rem solid transparent;
  border-top-color: #203126;
  content: "";
  transform: translateX(-50%);
}

.secret-garden-link:not(.tooltip-dismissed):focus-visible
  .secret-garden-tooltip {
  opacity: 1;
  visibility: visible;
}

@media (hover: hover) and (pointer: fine) {
  .secret-garden-link:not(.tooltip-dismissed):hover .secret-garden-tooltip {
    opacity: 1;
    visibility: visible;
  }
}

@media (min-width: 48rem) {
  .site-footer {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
  }
}

/*
 * Keep content near the top on constrained screens. On roomy viewports,
 * center pages only while their content fits; the body's intrinsic height
 * grows with longer content, leaving no extra space to center within.
 */
@media (min-width: 48rem) and (min-height: 40rem) {
  body {
    align-items: safe center;
  }
}
